diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/api/projects.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/api/projects.ex index ad3946d695..fbd0932c19 100644 --- a/clients/workload_manager/lib/google_api/workload_manager/v1/api/projects.ex +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/api/projects.ex @@ -163,6 +163,226 @@ defmodule GoogleApi.WorkloadManager.V1.Api.Projects do ) end + @doc """ + Gets details of a discovered workload profile. + + ## Parameters + + * `connection` (*type:* `GoogleApi.WorkloadManager.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Name of the resource + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.WorkloadManager.V1.Model.WorkloadProfile{}}` on success + * `{:error, info}` on failure + """ + @spec workloadmanager_projects_locations_discoveredprofiles_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.WorkloadManager.V1.Model.WorkloadProfile.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def workloadmanager_projects_locations_discoveredprofiles_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.WorkloadManager.V1.Model.WorkloadProfile{}]) + end + + @doc """ + List discovered workload profiles + + ## Parameters + + * `connection` (*type:* `GoogleApi.WorkloadManager.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Parent value for ListDiscoveredProfilesRequest + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Optional. Filtering results + * `:pageSize` (*type:* `integer()`) - Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + * `:pageToken` (*type:* `String.t`) - Optional. A token identifying a page of results the server should return. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.WorkloadManager.V1.Model.ListDiscoveredProfilesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec workloadmanager_projects_locations_discoveredprofiles_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.WorkloadManager.V1.Model.ListDiscoveredProfilesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def workloadmanager_projects_locations_discoveredprofiles_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/discoveredprofiles", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.WorkloadManager.V1.Model.ListDiscoveredProfilesResponse{}] + ) + end + + @doc """ + Get the health of a discovered workload profile. + + ## Parameters + + * `connection` (*type:* `GoogleApi.WorkloadManager.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource name + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.WorkloadManager.V1.Model.WorkloadProfileHealth{}}` on success + * `{:error, info}` on failure + """ + @spec workloadmanager_projects_locations_discoveredprofiles_healthes_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.WorkloadManager.V1.Model.WorkloadProfileHealth.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def workloadmanager_projects_locations_discoveredprofiles_healthes_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.WorkloadManager.V1.Model.WorkloadProfileHealth{}] + ) + end + @doc """ Creates a new Evaluation in a given project and location. diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/metadata.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/metadata.ex index cb69688eff..6b4c9e7db4 100644 --- a/clients/workload_manager/lib/google_api/workload_manager/v1/metadata.ex +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.WorkloadManager.V1 do API client metadata for GoogleApi.WorkloadManager.V1. """ - @discovery_revision "20250205" + @discovery_revision "20250219" def discovery_revision(), do: @discovery_revision end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/api_layer_server.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/api_layer_server.ex new file mode 100644 index 0000000000..b70e2d97c6 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/api_layer_server.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.APILayerServer do + @moduledoc """ + The API layer server + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The api layer name + * `osVersion` (*type:* `String.t`, *default:* `nil`) - Output only. OS information + * `resources` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.CloudResource.t)`, *default:* `nil`) - Output only. resources in the component + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :osVersion => String.t() | nil, + :resources => list(GoogleApi.WorkloadManager.V1.Model.CloudResource.t()) | nil + } + + field(:name) + field(:osVersion) + field(:resources, as: GoogleApi.WorkloadManager.V1.Model.CloudResource, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.APILayerServer do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.APILayerServer.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.APILayerServer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/availability_group.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/availability_group.ex new file mode 100644 index 0000000000..1bc382eb4c --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/availability_group.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.AvailabilityGroup do + @moduledoc """ + The availability groups for sqlserver + + ## Attributes + + * `databases` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The databases + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The availability group name + * `primaryServer` (*type:* `String.t`, *default:* `nil`) - Output only. The primary server + * `secondaryServers` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The secondary servers + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :databases => list(String.t()) | nil, + :name => String.t() | nil, + :primaryServer => String.t() | nil, + :secondaryServers => list(String.t()) | nil + } + + field(:databases, type: :list) + field(:name) + field(:primaryServer) + field(:secondaryServers, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.AvailabilityGroup do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.AvailabilityGroup.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.AvailabilityGroup do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/backend_server.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/backend_server.ex new file mode 100644 index 0000000000..b42708141c --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/backend_server.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.BackendServer do + @moduledoc """ + The backend server + + ## Attributes + + * `backupFile` (*type:* `String.t`, *default:* `nil`) - Output only. The backup file + * `backupSchedule` (*type:* `String.t`, *default:* `nil`) - Output only. The backup schedule + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The backend name + * `osVersion` (*type:* `String.t`, *default:* `nil`) - Output only. OS information + * `resources` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.CloudResource.t)`, *default:* `nil`) - Output only. resources in the component + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backupFile => String.t() | nil, + :backupSchedule => String.t() | nil, + :name => String.t() | nil, + :osVersion => String.t() | nil, + :resources => list(GoogleApi.WorkloadManager.V1.Model.CloudResource.t()) | nil + } + + field(:backupFile) + field(:backupSchedule) + field(:name) + field(:osVersion) + field(:resources, as: GoogleApi.WorkloadManager.V1.Model.CloudResource, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.BackendServer do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.BackendServer.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.BackendServer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/backup_properties.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/backup_properties.ex new file mode 100644 index 0000000000..8276763a3a --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/backup_properties.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.BackupProperties do + @moduledoc """ + Backup properties. + + ## Attributes + + * `latestBackupStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the latest backup. + * `latestBackupTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the latest backup was performed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :latestBackupStatus => String.t() | nil, + :latestBackupTime => DateTime.t() | nil + } + + field(:latestBackupStatus) + field(:latestBackupTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.BackupProperties do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.BackupProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.BackupProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/cloud_resource.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/cloud_resource.ex new file mode 100644 index 0000000000..c827991cc6 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/cloud_resource.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.CloudResource do + @moduledoc """ + The resource on GCP + + ## Attributes + + * `instanceProperties` (*type:* `GoogleApi.WorkloadManager.V1.Model.InstanceProperties.t`, *default:* `nil`) - Output only. All instance properties. + * `kind` (*type:* `String.t`, *default:* `nil`) - Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. resource name + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instanceProperties => GoogleApi.WorkloadManager.V1.Model.InstanceProperties.t() | nil, + :kind => String.t() | nil, + :name => String.t() | nil + } + + field(:instanceProperties, as: GoogleApi.WorkloadManager.V1.Model.InstanceProperties) + field(:kind) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.CloudResource do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.CloudResource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.CloudResource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/cluster.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/cluster.ex new file mode 100644 index 0000000000..2270693165 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/cluster.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.Cluster do + @moduledoc """ + The cluster for sqlserver + + ## Attributes + + * `nodes` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The nodes + * `witnessServer` (*type:* `String.t`, *default:* `nil`) - Output only. The witness server + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nodes => list(String.t()) | nil, + :witnessServer => String.t() | nil + } + + field(:nodes, type: :list) + field(:witnessServer) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.Cluster do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.Cluster.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.Cluster do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/component_health.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/component_health.ex new file mode 100644 index 0000000000..3bf2a77e9f --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/component_health.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.ComponentHealth do + @moduledoc """ + HealthCondition contains the detailed health check of each component. + + ## Attributes + + * `component` (*type:* `String.t`, *default:* `nil`) - The component of a workload. + * `componentHealthChecks` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.HealthCheck.t)`, *default:* `nil`) - The detailed health checks of the component. + * `componentHealthType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the component health. + * `isRequired` (*type:* `boolean()`, *default:* `nil`) - Output only. The requirement of the component. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The health state of the component. + * `subComponentHealthes` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.ComponentHealth.t)`, *default:* `nil`) - Sub component health. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :component => String.t() | nil, + :componentHealthChecks => + list(GoogleApi.WorkloadManager.V1.Model.HealthCheck.t()) | nil, + :componentHealthType => String.t() | nil, + :isRequired => boolean() | nil, + :state => String.t() | nil, + :subComponentHealthes => + list(GoogleApi.WorkloadManager.V1.Model.ComponentHealth.t()) | nil + } + + field(:component) + field(:componentHealthChecks, as: GoogleApi.WorkloadManager.V1.Model.HealthCheck, type: :list) + field(:componentHealthType) + field(:isRequired) + field(:state) + + field(:subComponentHealthes, as: GoogleApi.WorkloadManager.V1.Model.ComponentHealth, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.ComponentHealth do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.ComponentHealth.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.ComponentHealth do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/database.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/database.ex new file mode 100644 index 0000000000..be7e089116 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/database.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.Database do + @moduledoc """ + The database for sqlserver + + ## Attributes + + * `backupFile` (*type:* `String.t`, *default:* `nil`) - Output only. The backup file + * `backupSchedule` (*type:* `String.t`, *default:* `nil`) - Output only. The backup schedule + * `hostVm` (*type:* `String.t`, *default:* `nil`) - Output only. The host VM + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The database name + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backupFile => String.t() | nil, + :backupSchedule => String.t() | nil, + :hostVm => String.t() | nil, + :name => String.t() | nil + } + + field(:backupFile) + field(:backupSchedule) + field(:hostVm) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.Database do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.Database.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.Database do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/database_properties.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/database_properties.ex new file mode 100644 index 0000000000..d774bbfe69 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/database_properties.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.DatabaseProperties do + @moduledoc """ + Database Properties. + + ## Attributes + + * `backupProperties` (*type:* `GoogleApi.WorkloadManager.V1.Model.BackupProperties.t`, *default:* `nil`) - Output only. Backup properties. + * `databaseType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the database. HANA, DB2, etc. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :backupProperties => GoogleApi.WorkloadManager.V1.Model.BackupProperties.t() | nil, + :databaseType => String.t() | nil + } + + field(:backupProperties, as: GoogleApi.WorkloadManager.V1.Model.BackupProperties) + field(:databaseType) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.DatabaseProperties do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.DatabaseProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.DatabaseProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/front_end_server.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/front_end_server.ex new file mode 100644 index 0000000000..63756a7328 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/front_end_server.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.FrontEndServer do + @moduledoc """ + The front end server + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The frontend name + * `osVersion` (*type:* `String.t`, *default:* `nil`) - Output only. OS information + * `resources` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.CloudResource.t)`, *default:* `nil`) - Output only. resources in the component + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :osVersion => String.t() | nil, + :resources => list(GoogleApi.WorkloadManager.V1.Model.CloudResource.t()) | nil + } + + field(:name) + field(:osVersion) + field(:resources, as: GoogleApi.WorkloadManager.V1.Model.CloudResource, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.FrontEndServer do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.FrontEndServer.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.FrontEndServer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/health_check.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/health_check.ex new file mode 100644 index 0000000000..2e5f2dcd6a --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/health_check.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.HealthCheck do + @moduledoc """ + HealthCheck contains the detailed health check of a component based on asource. + + ## Attributes + + * `message` (*type:* `String.t`, *default:* `nil`) - Output only. The message of the health check. + * `metric` (*type:* `String.t`, *default:* `nil`) - Output only. The health check source metric name. + * `resource` (*type:* `GoogleApi.WorkloadManager.V1.Model.CloudResource.t`, *default:* `nil`) - Output only. The resource the check performs on. + * `source` (*type:* `String.t`, *default:* `nil`) - Output only. The source of the health check. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the health check. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => String.t() | nil, + :metric => String.t() | nil, + :resource => GoogleApi.WorkloadManager.V1.Model.CloudResource.t() | nil, + :source => String.t() | nil, + :state => String.t() | nil + } + + field(:message) + field(:metric) + field(:resource, as: GoogleApi.WorkloadManager.V1.Model.CloudResource) + field(:source) + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.HealthCheck do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.HealthCheck.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.HealthCheck do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/instance.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/instance.ex new file mode 100644 index 0000000000..dad379286c --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/instance.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.Instance do + @moduledoc """ + a vm instance + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. name of the VM + * `region` (*type:* `String.t`, *default:* `nil`) - Output only. The location of the VM + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the VM + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :region => String.t() | nil, + :status => String.t() | nil + } + + field(:name) + field(:region) + field(:status) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.Instance do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.Instance.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.Instance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/instance_properties.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/instance_properties.ex new file mode 100644 index 0000000000..2c9abf6370 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/instance_properties.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.InstanceProperties do + @moduledoc """ + Instance Properties. + + ## Attributes + + * `instanceNumber` (*type:* `String.t`, *default:* `nil`) - Optional. Instance number. + * `machineType` (*type:* `String.t`, *default:* `nil`) - Optional. Instance machine type. + * `role` (*type:* `String.t`, *default:* `nil`) - Optional. Instance role. + * `roles` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Instance roles. + * `sapInstanceProperties` (*type:* `GoogleApi.WorkloadManager.V1.Model.SapInstanceProperties.t`, *default:* `nil`) - Optional. SAP Instance properties. + * `status` (*type:* `String.t`, *default:* `nil`) - Optional. Instance status. + * `upcomingMaintenanceEvent` (*type:* `GoogleApi.WorkloadManager.V1.Model.UpcomingMaintenanceEvent.t`, *default:* `nil`) - Optional. the next maintenance event on VM + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instanceNumber => String.t() | nil, + :machineType => String.t() | nil, + :role => String.t() | nil, + :roles => list(String.t()) | nil, + :sapInstanceProperties => + GoogleApi.WorkloadManager.V1.Model.SapInstanceProperties.t() | nil, + :status => String.t() | nil, + :upcomingMaintenanceEvent => + GoogleApi.WorkloadManager.V1.Model.UpcomingMaintenanceEvent.t() | nil + } + + field(:instanceNumber) + field(:machineType) + field(:role) + field(:roles, type: :list) + field(:sapInstanceProperties, as: GoogleApi.WorkloadManager.V1.Model.SapInstanceProperties) + field(:status) + + field(:upcomingMaintenanceEvent, as: GoogleApi.WorkloadManager.V1.Model.UpcomingMaintenanceEvent) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.InstanceProperties do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.InstanceProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.InstanceProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/layer.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/layer.ex new file mode 100644 index 0000000000..a23b63cf6f --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/layer.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.Layer do + @moduledoc """ + The database layer + + ## Attributes + + * `applicationType` (*type:* `String.t`, *default:* `nil`) - the application layer + * `databaseType` (*type:* `String.t`, *default:* `nil`) - Optional. the database layer + * `instances` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.Instance.t)`, *default:* `nil`) - Optional. instances in a layer + * `sid` (*type:* `String.t`, *default:* `nil`) - Output only. system identification of a layer + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :applicationType => String.t() | nil, + :databaseType => String.t() | nil, + :instances => list(GoogleApi.WorkloadManager.V1.Model.Instance.t()) | nil, + :sid => String.t() | nil + } + + field(:applicationType) + field(:databaseType) + field(:instances, as: GoogleApi.WorkloadManager.V1.Model.Instance, type: :list) + field(:sid) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.Layer do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.Layer.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.Layer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/list_discovered_profiles_response.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/list_discovered_profiles_response.ex new file mode 100644 index 0000000000..528fd52d85 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/list_discovered_profiles_response.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.ListDiscoveredProfilesResponse do + @moduledoc """ + List discovered profile Response returns discovered profiles from agents + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Output only. A token identifying a page of results the server should return + * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. + * `workloadProfiles` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.WorkloadProfile.t)`, *default:* `nil`) - Output only. The list of workload profiles + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :unreachable => list(String.t()) | nil, + :workloadProfiles => list(GoogleApi.WorkloadManager.V1.Model.WorkloadProfile.t()) | nil + } + + field(:nextPageToken) + field(:unreachable, type: :list) + field(:workloadProfiles, as: GoogleApi.WorkloadManager.V1.Model.WorkloadProfile, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.ListDiscoveredProfilesResponse do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.ListDiscoveredProfilesResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.ListDiscoveredProfilesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/load_balancer_server.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/load_balancer_server.ex new file mode 100644 index 0000000000..cd32399575 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/load_balancer_server.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.LoadBalancerServer do + @moduledoc """ + The load balancer for sqlserver + + ## Attributes + + * `ip` (*type:* `String.t`, *default:* `nil`) - Output only. The IP address + * `vm` (*type:* `String.t`, *default:* `nil`) - Output only. The VM name + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ip => String.t() | nil, + :vm => String.t() | nil + } + + field(:ip) + field(:vm) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.LoadBalancerServer do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.LoadBalancerServer.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.LoadBalancerServer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/product.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/product.ex new file mode 100644 index 0000000000..b68ab1c78f --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/product.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.Product do + @moduledoc """ + Product contains the details of a product. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the product. + * `version` (*type:* `String.t`, *default:* `nil`) - Optional. Version of the product. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :version => String.t() | nil + } + + field(:name) + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.Product do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.Product.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.Product do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_component.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_component.ex new file mode 100644 index 0000000000..40ca1ab2fe --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_component.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.SapComponent do + @moduledoc """ + The component of sap workload + + ## Attributes + + * `databaseProperties` (*type:* `GoogleApi.WorkloadManager.V1.Model.DatabaseProperties.t`, *default:* `nil`) - Output only. All instance properties. + * `haHosts` (*type:* `list(String.t)`, *default:* `nil`) - A list of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA. + * `resources` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.CloudResource.t)`, *default:* `nil`) - Output only. resources in the component + * `sid` (*type:* `String.t`, *default:* `nil`) - Output only. sid is the sap component identificator + * `topologyType` (*type:* `String.t`, *default:* `nil`) - The detected topology of the component. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :databaseProperties => GoogleApi.WorkloadManager.V1.Model.DatabaseProperties.t() | nil, + :haHosts => list(String.t()) | nil, + :resources => list(GoogleApi.WorkloadManager.V1.Model.CloudResource.t()) | nil, + :sid => String.t() | nil, + :topologyType => String.t() | nil + } + + field(:databaseProperties, as: GoogleApi.WorkloadManager.V1.Model.DatabaseProperties) + field(:haHosts, type: :list) + field(:resources, as: GoogleApi.WorkloadManager.V1.Model.CloudResource, type: :list) + field(:sid) + field(:topologyType) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.SapComponent do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.SapComponent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.SapComponent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_instance_properties.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_instance_properties.ex new file mode 100644 index 0000000000..41de636d26 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_instance_properties.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.SapInstanceProperties do + @moduledoc """ + SAP instance properties. + + ## Attributes + + * `numbers` (*type:* `list(String.t)`, *default:* `nil`) - Optional. SAP Instance numbers. They are from '00' to '99'. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :numbers => list(String.t()) | nil + } + + field(:numbers, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.SapInstanceProperties do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.SapInstanceProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.SapInstanceProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_workload.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_workload.ex new file mode 100644 index 0000000000..b676338071 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_workload.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.SapWorkload do + @moduledoc """ + The body of sap workload + + ## Attributes + + * `application` (*type:* `GoogleApi.WorkloadManager.V1.Model.SapComponent.t`, *default:* `nil`) - Output only. the acsc componment + * `architecture` (*type:* `String.t`, *default:* `nil`) - Output only. the architecture + * `database` (*type:* `GoogleApi.WorkloadManager.V1.Model.SapComponent.t`, *default:* `nil`) - Output only. the database componment + * `metadata` (*type:* `map()`, *default:* `nil`) - Output only. The metadata for SAP workload. + * `products` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.Product.t)`, *default:* `nil`) - Output only. the products on this workload. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :application => GoogleApi.WorkloadManager.V1.Model.SapComponent.t() | nil, + :architecture => String.t() | nil, + :database => GoogleApi.WorkloadManager.V1.Model.SapComponent.t() | nil, + :metadata => map() | nil, + :products => list(GoogleApi.WorkloadManager.V1.Model.Product.t()) | nil + } + + field(:application, as: GoogleApi.WorkloadManager.V1.Model.SapComponent) + field(:architecture) + field(:database, as: GoogleApi.WorkloadManager.V1.Model.SapComponent) + field(:metadata, type: :map) + field(:products, as: GoogleApi.WorkloadManager.V1.Model.Product, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.SapWorkload do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.SapWorkload.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.SapWorkload do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sqlserver_workload.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sqlserver_workload.ex new file mode 100644 index 0000000000..216f5f23a3 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sqlserver_workload.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.SqlserverWorkload do + @moduledoc """ + The body of sqlserver workload + + ## Attributes + + * `ags` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.AvailabilityGroup.t)`, *default:* `nil`) - Output only. The availability groups for sqlserver + * `cluster` (*type:* `GoogleApi.WorkloadManager.V1.Model.Cluster.t`, *default:* `nil`) - Output only. The cluster for sqlserver + * `databases` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.Database.t)`, *default:* `nil`) - Output only. The databases for sqlserver + * `loadBalancerServer` (*type:* `GoogleApi.WorkloadManager.V1.Model.LoadBalancerServer.t`, *default:* `nil`) - Output only. The load balancer for sqlserver + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ags => list(GoogleApi.WorkloadManager.V1.Model.AvailabilityGroup.t()) | nil, + :cluster => GoogleApi.WorkloadManager.V1.Model.Cluster.t() | nil, + :databases => list(GoogleApi.WorkloadManager.V1.Model.Database.t()) | nil, + :loadBalancerServer => GoogleApi.WorkloadManager.V1.Model.LoadBalancerServer.t() | nil + } + + field(:ags, as: GoogleApi.WorkloadManager.V1.Model.AvailabilityGroup, type: :list) + field(:cluster, as: GoogleApi.WorkloadManager.V1.Model.Cluster) + field(:databases, as: GoogleApi.WorkloadManager.V1.Model.Database, type: :list) + field(:loadBalancerServer, as: GoogleApi.WorkloadManager.V1.Model.LoadBalancerServer) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.SqlserverWorkload do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.SqlserverWorkload.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.SqlserverWorkload do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/three_tier_workload.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/three_tier_workload.ex new file mode 100644 index 0000000000..c89908c260 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/three_tier_workload.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.ThreeTierWorkload do + @moduledoc """ + The body of three tier workload + + ## Attributes + + * `apiLayer` (*type:* `GoogleApi.WorkloadManager.V1.Model.APILayerServer.t`, *default:* `nil`) - Output only. The API layer for three tier workload + * `backend` (*type:* `GoogleApi.WorkloadManager.V1.Model.BackendServer.t`, *default:* `nil`) - Output only. The backend for three tier workload + * `endpoint` (*type:* `String.t`, *default:* `nil`) - Output only. the workload endpoint + * `frontend` (*type:* `GoogleApi.WorkloadManager.V1.Model.FrontEndServer.t`, *default:* `nil`) - Output only. The frontend for three tier workload + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apiLayer => GoogleApi.WorkloadManager.V1.Model.APILayerServer.t() | nil, + :backend => GoogleApi.WorkloadManager.V1.Model.BackendServer.t() | nil, + :endpoint => String.t() | nil, + :frontend => GoogleApi.WorkloadManager.V1.Model.FrontEndServer.t() | nil + } + + field(:apiLayer, as: GoogleApi.WorkloadManager.V1.Model.APILayerServer) + field(:backend, as: GoogleApi.WorkloadManager.V1.Model.BackendServer) + field(:endpoint) + field(:frontend, as: GoogleApi.WorkloadManager.V1.Model.FrontEndServer) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.ThreeTierWorkload do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.ThreeTierWorkload.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.ThreeTierWorkload do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/upcoming_maintenance_event.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/upcoming_maintenance_event.ex new file mode 100644 index 0000000000..553f426602 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/upcoming_maintenance_event.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.UpcomingMaintenanceEvent do + @moduledoc """ + Maintenance Event + + ## Attributes + + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. End time + * `maintenanceStatus` (*type:* `String.t`, *default:* `nil`) - Optional. Maintenance status + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. Start time + * `type` (*type:* `String.t`, *default:* `nil`) - Optional. Type + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endTime => DateTime.t() | nil, + :maintenanceStatus => String.t() | nil, + :startTime => DateTime.t() | nil, + :type => String.t() | nil + } + + field(:endTime, as: DateTime) + field(:maintenanceStatus) + field(:startTime, as: DateTime) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.UpcomingMaintenanceEvent do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.UpcomingMaintenanceEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.UpcomingMaintenanceEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/workload_profile.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/workload_profile.ex new file mode 100644 index 0000000000..8c05511d9a --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/workload_profile.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.WorkloadProfile do + @moduledoc """ + workload resource + + ## Attributes + + * `application` (*type:* `GoogleApi.WorkloadManager.V1.Model.Layer.t`, *default:* `nil`) - Optional. The application layer + * `ascs` (*type:* `GoogleApi.WorkloadManager.V1.Model.Layer.t`, *default:* `nil`) - Optional. The ascs layer + * `database` (*type:* `GoogleApi.WorkloadManager.V1.Model.Layer.t`, *default:* `nil`) - Optional. The database layer + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. such as name, description, version. More example can be found in deployment + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. name of resource names have the form 'projects/{project_id}/workloads/{workload_id}' + * `refreshedTime` (*type:* `DateTime.t`, *default:* `nil`) - Required. time when the workload data was refreshed + * `sapWorkload` (*type:* `GoogleApi.WorkloadManager.V1.Model.SapWorkload.t`, *default:* `nil`) - The sap workload content + * `sqlserverWorkload` (*type:* `GoogleApi.WorkloadManager.V1.Model.SqlserverWorkload.t`, *default:* `nil`) - The sqlserver workload content + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. [output only] the current state if a a workload + * `threeTierWorkload` (*type:* `GoogleApi.WorkloadManager.V1.Model.ThreeTierWorkload.t`, *default:* `nil`) - The 3 tier web app workload content + * `workloadType` (*type:* `String.t`, *default:* `nil`) - Required. The type of the workload + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :application => GoogleApi.WorkloadManager.V1.Model.Layer.t() | nil, + :ascs => GoogleApi.WorkloadManager.V1.Model.Layer.t() | nil, + :database => GoogleApi.WorkloadManager.V1.Model.Layer.t() | nil, + :labels => map() | nil, + :name => String.t() | nil, + :refreshedTime => DateTime.t() | nil, + :sapWorkload => GoogleApi.WorkloadManager.V1.Model.SapWorkload.t() | nil, + :sqlserverWorkload => GoogleApi.WorkloadManager.V1.Model.SqlserverWorkload.t() | nil, + :state => String.t() | nil, + :threeTierWorkload => GoogleApi.WorkloadManager.V1.Model.ThreeTierWorkload.t() | nil, + :workloadType => String.t() | nil + } + + field(:application, as: GoogleApi.WorkloadManager.V1.Model.Layer) + field(:ascs, as: GoogleApi.WorkloadManager.V1.Model.Layer) + field(:database, as: GoogleApi.WorkloadManager.V1.Model.Layer) + field(:labels, type: :map) + field(:name) + field(:refreshedTime, as: DateTime) + field(:sapWorkload, as: GoogleApi.WorkloadManager.V1.Model.SapWorkload) + field(:sqlserverWorkload, as: GoogleApi.WorkloadManager.V1.Model.SqlserverWorkload) + field(:state) + field(:threeTierWorkload, as: GoogleApi.WorkloadManager.V1.Model.ThreeTierWorkload) + field(:workloadType) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.WorkloadProfile do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.WorkloadProfile.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.WorkloadProfile do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/workload_profile_health.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/workload_profile_health.ex new file mode 100644 index 0000000000..43f87bed2d --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/workload_profile_health.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkloadManager.V1.Model.WorkloadProfileHealth do + @moduledoc """ + WorkloadProfileHealth contains the detailed health check of workload. + + ## Attributes + + * `checkTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the health check was performed. + * `componentHealthes` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.ComponentHealth.t)`, *default:* `nil`) - The detailed condition reports of each component. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The health state of the workload. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :checkTime => DateTime.t() | nil, + :componentHealthes => + list(GoogleApi.WorkloadManager.V1.Model.ComponentHealth.t()) | nil, + :state => String.t() | nil + } + + field(:checkTime, as: DateTime) + field(:componentHealthes, as: GoogleApi.WorkloadManager.V1.Model.ComponentHealth, type: :list) + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.WorkloadProfileHealth do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.WorkloadProfileHealth.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.WorkloadProfileHealth do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end