From 39eacb45b6651d8b6245dc94fc4ba0eedcbdc0bc Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Fri, 24 Jan 2025 05:18:22 -0800 Subject: [PATCH] feat: Automated regeneration of AppHub client (#12862) Auto-created at 2025-01-24 13:13:51 +0000 using the toys pull request generator. --- clients/app_hub/README.md | 2 +- .../lib/google_api/app_hub/v1/api/projects.ex | 2 +- .../lib/google_api/app_hub/v1/metadata.ex | 2 +- .../app_hub/v1/model/asset_location.ex | 58 ---------------- .../app_hub/v1/model/blobstore_location.ex | 46 ------------- .../app_hub/v1/model/cloud_asset.ex | 49 -------------- .../v1/model/cloud_asset_composition.ex | 46 ------------- .../v1/model/direct_location_assignment.ex | 46 ------------- .../app_hub/v1/model/extra_parameter.ex | 49 -------------- .../v1/model/isolation_expectations.ex | 67 ------------------- .../app_hub/v1/model/location_assignment.ex | 49 -------------- .../app_hub/v1/model/location_data.ex | 61 ----------------- .../app_hub/v1/model/operation_metadata.ex | 2 +- .../app_hub/v1/model/placer_location.ex | 46 ------------- .../model/regional_mig_distribution_policy.ex | 49 -------------- .../app_hub/v1/model/requirement_override.ex | 49 -------------- .../app_hub/v1/model/spanner_location.ex | 49 -------------- .../app_hub/v1/model/tenant_project_proxy.ex | 46 ------------- .../app_hub/v1/model/zone_configuration.ex | 46 ------------- clients/app_hub/mix.exs | 2 +- 20 files changed, 5 insertions(+), 761 deletions(-) delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/asset_location.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/blobstore_location.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/cloud_asset.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/cloud_asset_composition.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/direct_location_assignment.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/extra_parameter.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/isolation_expectations.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/location_assignment.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/location_data.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/placer_location.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/regional_mig_distribution_policy.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/requirement_override.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/spanner_location.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/tenant_project_proxy.ex delete mode 100644 clients/app_hub/lib/google_api/app_hub/v1/model/zone_configuration.ex diff --git a/clients/app_hub/README.md b/clients/app_hub/README.md index a89f3f3672..57a6be9941 100644 --- a/clients/app_hub/README.md +++ b/clients/app_hub/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_app_hub, "~> 0.3"}] + [{:google_api_app_hub, "~> 0.4"}] end ``` diff --git a/clients/app_hub/lib/google_api/app_hub/v1/api/projects.ex b/clients/app_hub/lib/google_api/app_hub/v1/api/projects.ex index 8fd198778f..4132cf7b9c 100644 --- a/clients/app_hub/lib/google_api/app_hub/v1/api/projects.ex +++ b/clients/app_hub/lib/google_api/app_hub/v1/api/projects.ex @@ -2078,7 +2078,7 @@ defmodule GoogleApi.AppHub.V1.Api.Projects do end @doc """ - Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. ## Parameters diff --git a/clients/app_hub/lib/google_api/app_hub/v1/metadata.ex b/clients/app_hub/lib/google_api/app_hub/v1/metadata.ex index e87ee71d53..83d38963c6 100644 --- a/clients/app_hub/lib/google_api/app_hub/v1/metadata.ex +++ b/clients/app_hub/lib/google_api/app_hub/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.AppHub.V1 do API client metadata for GoogleApi.AppHub.V1. """ - @discovery_revision "20241008" + @discovery_revision "20250115" def discovery_revision(), do: @discovery_revision end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/asset_location.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/asset_location.ex deleted file mode 100644 index c86521c374..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/asset_location.ex +++ /dev/null @@ -1,58 +0,0 @@ -# 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.AppHub.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 - - * `ccfeRmsPath` (*type:* `String.t`, *default:* `nil`) - Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata. - * `expected` (*type:* `GoogleApi.AppHub.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.AppHub.V1.Model.ExtraParameter.t)`, *default:* `nil`) - Defines extra parameters required for specific asset types. - * `locationData` (*type:* `list(GoogleApi.AppHub.V1.Model.LocationData.t)`, *default:* `nil`) - Contains all kinds of physical location definitions for this asset. - * `parentAsset` (*type:* `list(GoogleApi.AppHub.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__{ - :ccfeRmsPath => String.t() | nil, - :expected => GoogleApi.AppHub.V1.Model.IsolationExpectations.t() | nil, - :extraParameters => list(GoogleApi.AppHub.V1.Model.ExtraParameter.t()) | nil, - :locationData => list(GoogleApi.AppHub.V1.Model.LocationData.t()) | nil, - :parentAsset => list(GoogleApi.AppHub.V1.Model.CloudAsset.t()) | nil - } - - field(:ccfeRmsPath) - field(:expected, as: GoogleApi.AppHub.V1.Model.IsolationExpectations) - field(:extraParameters, as: GoogleApi.AppHub.V1.Model.ExtraParameter, type: :list) - field(:locationData, as: GoogleApi.AppHub.V1.Model.LocationData, type: :list) - field(:parentAsset, as: GoogleApi.AppHub.V1.Model.CloudAsset, type: :list) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.AssetLocation do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.AssetLocation.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.AssetLocation do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/blobstore_location.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/blobstore_location.ex deleted file mode 100644 index ab25513932..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/blobstore_location.ex +++ /dev/null @@ -1,46 +0,0 @@ -# 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.AppHub.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.AppHub.V1.Model.BlobstoreLocation do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.BlobstoreLocation.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.BlobstoreLocation do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/cloud_asset.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/cloud_asset.ex deleted file mode 100644 index 65014d3db1..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/cloud_asset.ex +++ /dev/null @@ -1,49 +0,0 @@ -# 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.AppHub.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.AppHub.V1.Model.CloudAsset do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.CloudAsset.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.CloudAsset do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/cloud_asset_composition.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/cloud_asset_composition.ex deleted file mode 100644 index dbda9ecb05..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/cloud_asset_composition.ex +++ /dev/null @@ -1,46 +0,0 @@ -# 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.AppHub.V1.Model.CloudAssetComposition do - @moduledoc """ - - - ## Attributes - - * `childAsset` (*type:* `list(GoogleApi.AppHub.V1.Model.CloudAsset.t)`, *default:* `nil`) - - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :childAsset => list(GoogleApi.AppHub.V1.Model.CloudAsset.t()) | nil - } - - field(:childAsset, as: GoogleApi.AppHub.V1.Model.CloudAsset, type: :list) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.CloudAssetComposition do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.CloudAssetComposition.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.CloudAssetComposition do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/direct_location_assignment.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/direct_location_assignment.ex deleted file mode 100644 index 407c9cc66d..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/direct_location_assignment.ex +++ /dev/null @@ -1,46 +0,0 @@ -# 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.AppHub.V1.Model.DirectLocationAssignment do - @moduledoc """ - - - ## Attributes - - * `location` (*type:* `list(GoogleApi.AppHub.V1.Model.LocationAssignment.t)`, *default:* `nil`) - - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :location => list(GoogleApi.AppHub.V1.Model.LocationAssignment.t()) | nil - } - - field(:location, as: GoogleApi.AppHub.V1.Model.LocationAssignment, type: :list) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.DirectLocationAssignment do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.DirectLocationAssignment.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.DirectLocationAssignment do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/extra_parameter.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/extra_parameter.ex deleted file mode 100644 index 6b67ae1599..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/extra_parameter.ex +++ /dev/null @@ -1,49 +0,0 @@ -# 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.AppHub.V1.Model.ExtraParameter do - @moduledoc """ - Defines parameters that should only be used for specific asset types. - - ## Attributes - - * `regionalMigDistributionPolicy` (*type:* `GoogleApi.AppHub.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.AppHub.V1.Model.RegionalMigDistributionPolicy.t() | nil - } - - field(:regionalMigDistributionPolicy, - as: GoogleApi.AppHub.V1.Model.RegionalMigDistributionPolicy - ) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.ExtraParameter do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.ExtraParameter.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.ExtraParameter do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/isolation_expectations.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/isolation_expectations.ex deleted file mode 100644 index 540af3cdaa..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/isolation_expectations.ex +++ /dev/null @@ -1,67 +0,0 @@ -# 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.AppHub.V1.Model.IsolationExpectations do - @moduledoc """ - - - ## Attributes - - * `requirementOverride` (*type:* `GoogleApi.AppHub.V1.Model.RequirementOverride.t`, *default:* `nil`) - Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic. - * `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__{ - :requirementOverride => GoogleApi.AppHub.V1.Model.RequirementOverride.t() | nil, - :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(:requirementOverride, as: GoogleApi.AppHub.V1.Model.RequirementOverride) - field(:ziOrgPolicy) - field(:ziRegionPolicy) - field(:ziRegionState) - field(:zoneIsolation) - field(:zoneSeparation) - field(:zsOrgPolicy) - field(:zsRegionState) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.IsolationExpectations do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.IsolationExpectations.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.IsolationExpectations do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/location_assignment.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/location_assignment.ex deleted file mode 100644 index 3e47e01863..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/location_assignment.ex +++ /dev/null @@ -1,49 +0,0 @@ -# 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.AppHub.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.AppHub.V1.Model.LocationAssignment do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.LocationAssignment.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.LocationAssignment do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/location_data.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/location_data.ex deleted file mode 100644 index 42edafcff6..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/location_data.ex +++ /dev/null @@ -1,61 +0,0 @@ -# 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.AppHub.V1.Model.LocationData do - @moduledoc """ - - - ## Attributes - - * `blobstoreLocation` (*type:* `GoogleApi.AppHub.V1.Model.BlobstoreLocation.t`, *default:* `nil`) - - * `childAssetLocation` (*type:* `GoogleApi.AppHub.V1.Model.CloudAssetComposition.t`, *default:* `nil`) - - * `directLocation` (*type:* `GoogleApi.AppHub.V1.Model.DirectLocationAssignment.t`, *default:* `nil`) - - * `gcpProjectProxy` (*type:* `GoogleApi.AppHub.V1.Model.TenantProjectProxy.t`, *default:* `nil`) - - * `placerLocation` (*type:* `GoogleApi.AppHub.V1.Model.PlacerLocation.t`, *default:* `nil`) - - * `spannerLocation` (*type:* `GoogleApi.AppHub.V1.Model.SpannerLocation.t`, *default:* `nil`) - - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :blobstoreLocation => GoogleApi.AppHub.V1.Model.BlobstoreLocation.t() | nil, - :childAssetLocation => GoogleApi.AppHub.V1.Model.CloudAssetComposition.t() | nil, - :directLocation => GoogleApi.AppHub.V1.Model.DirectLocationAssignment.t() | nil, - :gcpProjectProxy => GoogleApi.AppHub.V1.Model.TenantProjectProxy.t() | nil, - :placerLocation => GoogleApi.AppHub.V1.Model.PlacerLocation.t() | nil, - :spannerLocation => GoogleApi.AppHub.V1.Model.SpannerLocation.t() | nil - } - - field(:blobstoreLocation, as: GoogleApi.AppHub.V1.Model.BlobstoreLocation) - field(:childAssetLocation, as: GoogleApi.AppHub.V1.Model.CloudAssetComposition) - field(:directLocation, as: GoogleApi.AppHub.V1.Model.DirectLocationAssignment) - field(:gcpProjectProxy, as: GoogleApi.AppHub.V1.Model.TenantProjectProxy) - field(:placerLocation, as: GoogleApi.AppHub.V1.Model.PlacerLocation) - field(:spannerLocation, as: GoogleApi.AppHub.V1.Model.SpannerLocation) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.LocationData do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.LocationData.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.LocationData do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/operation_metadata.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/operation_metadata.ex index eae0dd3662..e5a9341951 100644 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/operation_metadata.ex +++ b/clients/app_hub/lib/google_api/app_hub/v1/model/operation_metadata.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.AppHub.V1.Model.OperationMetadata do * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. - * `requestedCancellation` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * `requestedCancellation` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. * `statusMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any. * `target` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined resource path for the target of the operation. * `verb` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the verb executed by the operation. diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/placer_location.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/placer_location.ex deleted file mode 100644 index a90fd3cfa9..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/placer_location.ex +++ /dev/null @@ -1,46 +0,0 @@ -# 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.AppHub.V1.Model.PlacerLocation do - @moduledoc """ - Message describing that the location of the customer resource is tied to placer allocations - - ## Attributes - - * `placerConfig` (*type:* `String.t`, *default:* `nil`) - Directory with a config related to it in placer (e.g. "/placer/prod/home/my-root/my-dir") - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :placerConfig => String.t() | nil - } - - field(:placerConfig) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.PlacerLocation do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.PlacerLocation.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.PlacerLocation do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/regional_mig_distribution_policy.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/regional_mig_distribution_policy.ex deleted file mode 100644 index 078edbf43c..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/regional_mig_distribution_policy.ex +++ /dev/null @@ -1,49 +0,0 @@ -# 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.AppHub.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.AppHub.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.AppHub.V1.Model.ZoneConfiguration.t()) | nil - } - - field(:targetShape) - field(:zones, as: GoogleApi.AppHub.V1.Model.ZoneConfiguration, type: :list) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.RegionalMigDistributionPolicy do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.RegionalMigDistributionPolicy.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.RegionalMigDistributionPolicy do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/requirement_override.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/requirement_override.ex deleted file mode 100644 index 6a2ba1113a..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/requirement_override.ex +++ /dev/null @@ -1,49 +0,0 @@ -# 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.AppHub.V1.Model.RequirementOverride do - @moduledoc """ - - - ## Attributes - - * `ziOverride` (*type:* `String.t`, *default:* `nil`) - - * `zsOverride` (*type:* `String.t`, *default:* `nil`) - - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :ziOverride => String.t() | nil, - :zsOverride => String.t() | nil - } - - field(:ziOverride) - field(:zsOverride) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.RequirementOverride do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.RequirementOverride.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.RequirementOverride do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/spanner_location.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/spanner_location.ex deleted file mode 100644 index e7f0d6621b..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/spanner_location.ex +++ /dev/null @@ -1,49 +0,0 @@ -# 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.AppHub.V1.Model.SpannerLocation do - @moduledoc """ - - - ## Attributes - - * `backupName` (*type:* `list(String.t)`, *default:* `nil`) - Set of backups used by the resource with name in the same format as what is available at http://table/spanner_automon.backup_metadata - * `dbName` (*type:* `list(String.t)`, *default:* `nil`) - Set of databases used by the resource in format /span// - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :backupName => list(String.t()) | nil, - :dbName => list(String.t()) | nil - } - - field(:backupName, type: :list) - field(:dbName, type: :list) -end - -defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.SpannerLocation do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.SpannerLocation.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.SpannerLocation do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/tenant_project_proxy.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/tenant_project_proxy.ex deleted file mode 100644 index 108ad8039a..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/tenant_project_proxy.ex +++ /dev/null @@ -1,46 +0,0 @@ -# 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.AppHub.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.AppHub.V1.Model.TenantProjectProxy do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.TenantProjectProxy.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.TenantProjectProxy do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/lib/google_api/app_hub/v1/model/zone_configuration.ex b/clients/app_hub/lib/google_api/app_hub/v1/model/zone_configuration.ex deleted file mode 100644 index 77a7427e90..0000000000 --- a/clients/app_hub/lib/google_api/app_hub/v1/model/zone_configuration.ex +++ /dev/null @@ -1,46 +0,0 @@ -# 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.AppHub.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.AppHub.V1.Model.ZoneConfiguration do - def decode(value, options) do - GoogleApi.AppHub.V1.Model.ZoneConfiguration.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.ZoneConfiguration do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/app_hub/mix.exs b/clients/app_hub/mix.exs index 2fd3f28a6e..1687f1d689 100644 --- a/clients/app_hub/mix.exs +++ b/clients/app_hub/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.AppHub.Mixfile do use Mix.Project - @version "0.3.0" + @version "0.4.0" def project() do [