diff --git a/clients/workload_manager/README.md b/clients/workload_manager/README.md index c378f06dc7..501b2ab2de 100644 --- a/clients/workload_manager/README.md +++ b/clients/workload_manager/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_workload_manager, "~> 0.4"}] + [{:google_api_workload_manager, "~> 0.5"}] end ``` 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 f6ba297652..b6fd6084f8 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 "20240322" + @discovery_revision "20240501" def discovery_revision(), do: @discovery_revision end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/asset_location.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/asset_location.ex new file mode 100644 index 0000000000..e5cc38c32b --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/asset_location.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.AssetLocation do + @moduledoc """ + Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf. + + ## Attributes + + * `expected` (*type:* `GoogleApi.WorkloadManager.V1.Model.IsolationExpectations.t`, *default:* `nil`) - Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation. + * `extraParameters` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.ExtraParameter.t)`, *default:* `nil`) - Defines extra parameters required for specific asset types. + * `locationData` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.LocationData.t)`, *default:* `nil`) - Contains all kinds of physical location definitions for this asset. + * `parentAsset` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.CloudAsset.t)`, *default:* `nil`) - Defines parents assets if any in order to allow later generation of child_asset_location data via child assets. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :expected => GoogleApi.WorkloadManager.V1.Model.IsolationExpectations.t() | nil, + :extraParameters => list(GoogleApi.WorkloadManager.V1.Model.ExtraParameter.t()) | nil, + :locationData => list(GoogleApi.WorkloadManager.V1.Model.LocationData.t()) | nil, + :parentAsset => list(GoogleApi.WorkloadManager.V1.Model.CloudAsset.t()) | nil + } + + field(:expected, as: GoogleApi.WorkloadManager.V1.Model.IsolationExpectations) + field(:extraParameters, as: GoogleApi.WorkloadManager.V1.Model.ExtraParameter, type: :list) + field(:locationData, as: GoogleApi.WorkloadManager.V1.Model.LocationData, type: :list) + field(:parentAsset, as: GoogleApi.WorkloadManager.V1.Model.CloudAsset, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.AssetLocation do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.AssetLocation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.AssetLocation 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/blobstore_location.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/blobstore_location.ex new file mode 100644 index 0000000000..6add8161b6 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/blobstore_location.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.BlobstoreLocation do + @moduledoc """ + Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains + + ## Attributes + + * `policyId` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :policyId => list(String.t()) | nil + } + + field(:policyId, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.BlobstoreLocation do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.BlobstoreLocation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.BlobstoreLocation 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_asset.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/cloud_asset.ex new file mode 100644 index 0000000000..2789bba1e3 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/cloud_asset.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.CloudAsset do + @moduledoc """ + + + ## Attributes + + * `assetName` (*type:* `String.t`, *default:* `nil`) - + * `assetType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assetName => String.t() | nil, + :assetType => String.t() | nil + } + + field(:assetName) + field(:assetType) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.CloudAsset do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.CloudAsset.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.CloudAsset 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_asset_composition.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/cloud_asset_composition.ex new file mode 100644 index 0000000000..8f53faaa12 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/cloud_asset_composition.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.CloudAssetComposition do + @moduledoc """ + + + ## Attributes + + * `childAsset` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.CloudAsset.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :childAsset => list(GoogleApi.WorkloadManager.V1.Model.CloudAsset.t()) | nil + } + + field(:childAsset, as: GoogleApi.WorkloadManager.V1.Model.CloudAsset, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.CloudAssetComposition do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.CloudAssetComposition.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.CloudAssetComposition 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/direct_location_assignment.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/direct_location_assignment.ex new file mode 100644 index 0000000000..84b0bc6dc7 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/direct_location_assignment.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.DirectLocationAssignment do + @moduledoc """ + + + ## Attributes + + * `location` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.LocationAssignment.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :location => list(GoogleApi.WorkloadManager.V1.Model.LocationAssignment.t()) | nil + } + + field(:location, as: GoogleApi.WorkloadManager.V1.Model.LocationAssignment, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.DirectLocationAssignment do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.DirectLocationAssignment.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.DirectLocationAssignment 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/execution.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/execution.ex index 4c88aa2e96..67ccf972e1 100644 --- a/clients/workload_manager/lib/google_api/workload_manager/v1/model/execution.ex +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/execution.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] End time stamp * `evaluationId` (*type:* `String.t`, *default:* `nil`) - Output only. [Output only] Evaluation ID + * `externalDataSources` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.ExternalDataSources.t)`, *default:* `nil`) - Optional. External data sources * `inventoryTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] Inventory time stamp * `labels` (*type:* `map()`, *default:* `nil`) - Labels as key value pairs * `name` (*type:* `String.t`, *default:* `nil`) - The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution} @@ -36,6 +37,8 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do @type t :: %__MODULE__{ :endTime => DateTime.t() | nil, :evaluationId => String.t() | nil, + :externalDataSources => + list(GoogleApi.WorkloadManager.V1.Model.ExternalDataSources.t()) | nil, :inventoryTime => DateTime.t() | nil, :labels => map() | nil, :name => String.t() | nil, @@ -46,6 +49,12 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do field(:endTime, as: DateTime) field(:evaluationId) + + field(:externalDataSources, + as: GoogleApi.WorkloadManager.V1.Model.ExternalDataSources, + type: :list + ) + field(:inventoryTime, as: DateTime) field(:labels, type: :map) field(:name) diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/external_data_sources.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/external_data_sources.ex new file mode 100644 index 0000000000..15a67781bf --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/external_data_sources.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.ExternalDataSources do + @moduledoc """ + Message for external data sources + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of external data source. The name will be used inside the rego/sql to refer the external data + * `type` (*type:* `String.t`, *default:* `nil`) - Required. Type of external data source + * `uri` (*type:* `String.t`, *default:* `nil`) - Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID} + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :type => String.t() | nil, + :uri => String.t() | nil + } + + field(:name) + field(:type) + field(:uri) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.ExternalDataSources do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.ExternalDataSources.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.ExternalDataSources 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/extra_parameter.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/extra_parameter.ex new file mode 100644 index 0000000000..04ddcc7671 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/extra_parameter.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.ExtraParameter do + @moduledoc """ + Defines parameters that should only be used for specific asset types. + + ## Attributes + + * `regionalMigDistributionPolicy` (*type:* `GoogleApi.WorkloadManager.V1.Model.RegionalMigDistributionPolicy.t`, *default:* `nil`) - Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :regionalMigDistributionPolicy => + GoogleApi.WorkloadManager.V1.Model.RegionalMigDistributionPolicy.t() | nil + } + + field(:regionalMigDistributionPolicy, + as: GoogleApi.WorkloadManager.V1.Model.RegionalMigDistributionPolicy + ) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.ExtraParameter do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.ExtraParameter.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.ExtraParameter 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/isolation_expectations.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/isolation_expectations.ex new file mode 100644 index 0000000000..fcb48396d7 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/isolation_expectations.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.IsolationExpectations do + @moduledoc """ + + + ## Attributes + + * `ziOrgPolicy` (*type:* `String.t`, *default:* `nil`) - + * `ziRegionPolicy` (*type:* `String.t`, *default:* `nil`) - + * `ziRegionState` (*type:* `String.t`, *default:* `nil`) - + * `zoneIsolation` (*type:* `String.t`, *default:* `nil`) - Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead for setting ZI expectations as per go/zicy-publish-physical-location. + * `zoneSeparation` (*type:* `String.t`, *default:* `nil`) - Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs expectations as per go/zicy-publish-physical-location. + * `zsOrgPolicy` (*type:* `String.t`, *default:* `nil`) - + * `zsRegionState` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ziOrgPolicy => String.t() | nil, + :ziRegionPolicy => String.t() | nil, + :ziRegionState => String.t() | nil, + :zoneIsolation => String.t() | nil, + :zoneSeparation => String.t() | nil, + :zsOrgPolicy => String.t() | nil, + :zsRegionState => String.t() | nil + } + + field(:ziOrgPolicy) + field(:ziRegionPolicy) + field(:ziRegionState) + field(:zoneIsolation) + field(:zoneSeparation) + field(:zsOrgPolicy) + field(:zsRegionState) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.IsolationExpectations do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.IsolationExpectations.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.IsolationExpectations 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/location_assignment.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/location_assignment.ex new file mode 100644 index 0000000000..f7bbee90f2 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/location_assignment.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.LocationAssignment do + @moduledoc """ + + + ## Attributes + + * `location` (*type:* `String.t`, *default:* `nil`) - + * `locationType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :location => String.t() | nil, + :locationType => String.t() | nil + } + + field(:location) + field(:locationType) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.LocationAssignment do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.LocationAssignment.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.LocationAssignment 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/location_data.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/location_data.ex new file mode 100644 index 0000000000..47c2c46d90 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/location_data.ex @@ -0,0 +1,60 @@ +# 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.LocationData do + @moduledoc """ + + + ## Attributes + + * `blobstoreLocation` (*type:* `GoogleApi.WorkloadManager.V1.Model.BlobstoreLocation.t`, *default:* `nil`) - + * `childAssetLocation` (*type:* `GoogleApi.WorkloadManager.V1.Model.CloudAssetComposition.t`, *default:* `nil`) - + * `directLocation` (*type:* `GoogleApi.WorkloadManager.V1.Model.DirectLocationAssignment.t`, *default:* `nil`) - + * `gcpProjectProxy` (*type:* `GoogleApi.WorkloadManager.V1.Model.TenantProjectProxy.t`, *default:* `nil`) - + * `spannerLocation` (*type:* `GoogleApi.WorkloadManager.V1.Model.SpannerLocation.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :blobstoreLocation => GoogleApi.WorkloadManager.V1.Model.BlobstoreLocation.t() | nil, + :childAssetLocation => + GoogleApi.WorkloadManager.V1.Model.CloudAssetComposition.t() | nil, + :directLocation => + GoogleApi.WorkloadManager.V1.Model.DirectLocationAssignment.t() | nil, + :gcpProjectProxy => GoogleApi.WorkloadManager.V1.Model.TenantProjectProxy.t() | nil, + :spannerLocation => GoogleApi.WorkloadManager.V1.Model.SpannerLocation.t() | nil + } + + field(:blobstoreLocation, as: GoogleApi.WorkloadManager.V1.Model.BlobstoreLocation) + field(:childAssetLocation, as: GoogleApi.WorkloadManager.V1.Model.CloudAssetComposition) + field(:directLocation, as: GoogleApi.WorkloadManager.V1.Model.DirectLocationAssignment) + field(:gcpProjectProxy, as: GoogleApi.WorkloadManager.V1.Model.TenantProjectProxy) + field(:spannerLocation, as: GoogleApi.WorkloadManager.V1.Model.SpannerLocation) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.LocationData do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.LocationData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.LocationData 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/regional_mig_distribution_policy.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/regional_mig_distribution_policy.ex new file mode 100644 index 0000000000..4d22497af2 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/regional_mig_distribution_policy.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.RegionalMigDistributionPolicy do + @moduledoc """ + To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances + + ## Attributes + + * `targetShape` (*type:* `integer()`, *default:* `nil`) - The shape in which the group converges around distribution of resources. Instance of proto2 enum + * `zones` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.ZoneConfiguration.t)`, *default:* `nil`) - Cloud zones used by regional MIG to create instances. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :targetShape => integer() | nil, + :zones => list(GoogleApi.WorkloadManager.V1.Model.ZoneConfiguration.t()) | nil + } + + field(:targetShape) + field(:zones, as: GoogleApi.WorkloadManager.V1.Model.ZoneConfiguration, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.RegionalMigDistributionPolicy do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.RegionalMigDistributionPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.RegionalMigDistributionPolicy 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_discovery_component_application_properties.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component_application_properties.ex index 5ecd09952f..c3670b406d 100644 --- a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component_application_properties.ex +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component_application_properties.ex @@ -26,6 +26,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentApplicationPro * `applicationType` (*type:* `String.t`, *default:* `nil`) - Required. Type of the application. Netweaver, etc. * `ascsInstanceNumber` (*type:* `String.t`, *default:* `nil`) - Optional. Instance number of the ASCS instance. * `ascsUri` (*type:* `String.t`, *default:* `nil`) - Optional. Resource URI of the recognized ASCS host of the application. + * `ersInstanceNumber` (*type:* `String.t`, *default:* `nil`) - Optional. Instance number of the ERS instance. * `kernelVersion` (*type:* `String.t`, *default:* `nil`) - Optional. Kernel version for Netweaver running in the system. * `nfsUri` (*type:* `String.t`, *default:* `nil`) - Optional. Resource URI of the recognized shared NFS of the application. May be empty if the application server has only a single node. """ @@ -38,6 +39,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentApplicationPro :applicationType => String.t() | nil, :ascsInstanceNumber => String.t() | nil, :ascsUri => String.t() | nil, + :ersInstanceNumber => String.t() | nil, :kernelVersion => String.t() | nil, :nfsUri => String.t() | nil } @@ -47,6 +49,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentApplicationPro field(:applicationType) field(:ascsInstanceNumber) field(:ascsUri) + field(:ersInstanceNumber) field(:kernelVersion) field(:nfsUri) end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_resource_instance_properties.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_resource_instance_properties.ex index 683f5f1b41..b0d4a02f78 100644 --- a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_resource_instance_properties.ex +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_resource_instance_properties.ex @@ -21,21 +21,35 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropert ## Attributes + * `appInstances` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesAppInstance.t)`, *default:* `nil`) - Optional. App server instances on the host * `clusterInstances` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of instance URIs that are part of a cluster with this one. * `instanceNumber` (*type:* `String.t`, *default:* `nil`) - Optional. The VM's instance number. + * `instanceRole` (*type:* `String.t`, *default:* `nil`) - Optional. Bitmask of instance role, a resource may have multiple roles at once. * `virtualHostname` (*type:* `String.t`, *default:* `nil`) - Optional. A virtual hostname of the instance if it has one. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :appInstances => + list( + GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesAppInstance.t() + ) + | nil, :clusterInstances => list(String.t()) | nil, :instanceNumber => String.t() | nil, + :instanceRole => String.t() | nil, :virtualHostname => String.t() | nil } + field(:appInstances, + as: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesAppInstance, + type: :list + ) + field(:clusterInstances, type: :list) field(:instanceNumber) + field(:instanceRole) field(:virtualHostname) end diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_resource_instance_properties_app_instance.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_resource_instance_properties_app_instance.ex new file mode 100644 index 0000000000..9833a2ff6a --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_resource_instance_properties_app_instance.ex @@ -0,0 +1,54 @@ +# 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.SapDiscoveryResourceInstancePropertiesAppInstance do + @moduledoc """ + Fields to describe an SAP application server instance. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Optional. Instance name of the SAP application instance. + * `number` (*type:* `String.t`, *default:* `nil`) - Optional. Instance number of the SAP application instance. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :number => String.t() | nil + } + + field(:name) + field(:number) +end + +defimpl Poison.Decoder, + for: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesAppInstance do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesAppInstance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResourceInstancePropertiesAppInstance 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/spanner_location.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/spanner_location.ex new file mode 100644 index 0000000000..a485c1d251 --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/spanner_location.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.SpannerLocation do + @moduledoc """ + + + ## Attributes + + * `dbName` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dbName => list(String.t()) | nil + } + + field(:dbName, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.SpannerLocation do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.SpannerLocation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.SpannerLocation 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/tenant_project_proxy.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/tenant_project_proxy.ex new file mode 100644 index 0000000000..4dfa7ec77f --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/tenant_project_proxy.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.TenantProjectProxy do + @moduledoc """ + + + ## Attributes + + * `projectNumbers` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :projectNumbers => list(String.t()) | nil + } + + field(:projectNumbers, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.TenantProjectProxy do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.TenantProjectProxy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.TenantProjectProxy 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/zone_configuration.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/zone_configuration.ex new file mode 100644 index 0000000000..c7800ea82c --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/zone_configuration.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.ZoneConfiguration do + @moduledoc """ + + + ## Attributes + + * `zone` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :zone => String.t() | nil + } + + field(:zone) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.ZoneConfiguration do + def decode(value, options) do + GoogleApi.WorkloadManager.V1.Model.ZoneConfiguration.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.ZoneConfiguration do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workload_manager/mix.exs b/clients/workload_manager/mix.exs index 38697fa3c8..c1527e858d 100644 --- a/clients/workload_manager/mix.exs +++ b/clients/workload_manager/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.WorkloadManager.Mixfile do use Mix.Project - @version "0.4.0" + @version "0.5.0" def project() do [