Skip to content

Commit 203f9f7

Browse files
feat: Automated regeneration of AppHub client (googleapis#12312)
Auto-created at 2024-10-12 13:19:59 +0000 using the toys pull request generator.
1 parent 8dd111a commit 203f9f7

27 files changed

+777
-21
lines changed

clients/app_hub/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_app_hub, "~> 0.2"}]
14+
[{:google_api_app_hub, "~> 0.3"}]
1515
end
1616
```
1717

clients/app_hub/lib/google_api/app_hub/v1/api/projects.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ defmodule GoogleApi.AppHub.V1.Api.Projects do
671671
## Parameters
672672
673673
* `connection` (*type:* `GoogleApi.AppHub.V1.Connection.t`) - Connection to server
674-
* `name` (*type:* `String.t`) - Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"
674+
* `name` (*type:* `String.t`) - Identifier. The resource name of an Application. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
675675
* `optional_params` (*type:* `keyword()`) - Optional parameters
676676
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
677677
* `:access_token` (*type:* `String.t`) - OAuth access token.
@@ -1187,7 +1187,7 @@ defmodule GoogleApi.AppHub.V1.Api.Projects do
11871187
## Parameters
11881188
11891189
* `connection` (*type:* `GoogleApi.AppHub.V1.Connection.t`) - Connection to server
1190-
* `name` (*type:* `String.t`) - Identifier. The resource name of a Service. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}"
1190+
* `name` (*type:* `String.t`) - Identifier. The resource name of a Service. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}"`
11911191
* `optional_params` (*type:* `keyword()`) - Optional parameters
11921192
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
11931193
* `:access_token` (*type:* `String.t`) - OAuth access token.
@@ -1559,7 +1559,7 @@ defmodule GoogleApi.AppHub.V1.Api.Projects do
15591559
## Parameters
15601560
15611561
* `connection` (*type:* `GoogleApi.AppHub.V1.Connection.t`) - Connection to server
1562-
* `name` (*type:* `String.t`) - Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"
1562+
* `name` (*type:* `String.t`) - Identifier. The resource name of the Workload. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`
15631563
* `optional_params` (*type:* `keyword()`) - Optional parameters
15641564
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
15651565
* `:access_token` (*type:* `String.t`) - OAuth access token.

clients/app_hub/lib/google_api/app_hub/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.AppHub.V1 do
2020
API client metadata for GoogleApi.AppHub.V1.
2121
"""
2222

23-
@discovery_revision "20240311"
23+
@discovery_revision "20241008"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/app_hub/lib/google_api/app_hub/v1/model/application.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717

1818
defmodule GoogleApi.AppHub.V1.Model.Application do
1919
@moduledoc """
20-
Application defines the governance boundary for App Hub Entities that perform a logical end-to-end business function. App Hub supports application level IAM permission to align with governance requirements.
20+
Application defines the governance boundary for App Hub entities that perform a logical end-to-end business function. App Hub supports application level IAM permission to align with governance requirements.
2121
2222
## Attributes
2323
2424
* `attributes` (*type:* `GoogleApi.AppHub.V1.Model.Attributes.t`, *default:* `nil`) - Optional. Consumer provided attributes.
2525
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Create time.
2626
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. User-defined description of an Application. Can have a maximum length of 2048 characters.
2727
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. User-defined name for the Application. Can have a maximum length of 63 characters.
28-
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"
28+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of an Application. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
2929
* `scope` (*type:* `GoogleApi.AppHub.V1.Model.Scope.t`, *default:* `nil`) - Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.
3030
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. Application state.
3131
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. A universally unique identifier (in UUID4 format) for the `Application`.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AppHub.V1.Model.AssetLocation do
19+
@moduledoc """
20+
Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.
21+
22+
## Attributes
23+
24+
* `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.
25+
* `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.
26+
* `extraParameters` (*type:* `list(GoogleApi.AppHub.V1.Model.ExtraParameter.t)`, *default:* `nil`) - Defines extra parameters required for specific asset types.
27+
* `locationData` (*type:* `list(GoogleApi.AppHub.V1.Model.LocationData.t)`, *default:* `nil`) - Contains all kinds of physical location definitions for this asset.
28+
* `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.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:ccfeRmsPath => String.t() | nil,
35+
:expected => GoogleApi.AppHub.V1.Model.IsolationExpectations.t() | nil,
36+
:extraParameters => list(GoogleApi.AppHub.V1.Model.ExtraParameter.t()) | nil,
37+
:locationData => list(GoogleApi.AppHub.V1.Model.LocationData.t()) | nil,
38+
:parentAsset => list(GoogleApi.AppHub.V1.Model.CloudAsset.t()) | nil
39+
}
40+
41+
field(:ccfeRmsPath)
42+
field(:expected, as: GoogleApi.AppHub.V1.Model.IsolationExpectations)
43+
field(:extraParameters, as: GoogleApi.AppHub.V1.Model.ExtraParameter, type: :list)
44+
field(:locationData, as: GoogleApi.AppHub.V1.Model.LocationData, type: :list)
45+
field(:parentAsset, as: GoogleApi.AppHub.V1.Model.CloudAsset, type: :list)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.AssetLocation do
49+
def decode(value, options) do
50+
GoogleApi.AppHub.V1.Model.AssetLocation.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.AssetLocation do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AppHub.V1.Model.BlobstoreLocation do
19+
@moduledoc """
20+
Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains
21+
22+
## Attributes
23+
24+
* `policyId` (*type:* `list(String.t)`, *default:* `nil`) -
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:policyId => list(String.t()) | nil
31+
}
32+
33+
field(:policyId, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.BlobstoreLocation do
37+
def decode(value, options) do
38+
GoogleApi.AppHub.V1.Model.BlobstoreLocation.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.BlobstoreLocation do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AppHub.V1.Model.CloudAsset do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `assetName` (*type:* `String.t`, *default:* `nil`) -
25+
* `assetType` (*type:* `String.t`, *default:* `nil`) -
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:assetName => String.t() | nil,
32+
:assetType => String.t() | nil
33+
}
34+
35+
field(:assetName)
36+
field(:assetType)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.CloudAsset do
40+
def decode(value, options) do
41+
GoogleApi.AppHub.V1.Model.CloudAsset.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.CloudAsset do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AppHub.V1.Model.CloudAssetComposition do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `childAsset` (*type:* `list(GoogleApi.AppHub.V1.Model.CloudAsset.t)`, *default:* `nil`) -
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:childAsset => list(GoogleApi.AppHub.V1.Model.CloudAsset.t()) | nil
31+
}
32+
33+
field(:childAsset, as: GoogleApi.AppHub.V1.Model.CloudAsset, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.CloudAssetComposition do
37+
def decode(value, options) do
38+
GoogleApi.AppHub.V1.Model.CloudAssetComposition.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.CloudAssetComposition do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AppHub.V1.Model.DirectLocationAssignment do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `location` (*type:* `list(GoogleApi.AppHub.V1.Model.LocationAssignment.t)`, *default:* `nil`) -
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:location => list(GoogleApi.AppHub.V1.Model.LocationAssignment.t()) | nil
31+
}
32+
33+
field(:location, as: GoogleApi.AppHub.V1.Model.LocationAssignment, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.AppHub.V1.Model.DirectLocationAssignment do
37+
def decode(value, options) do
38+
GoogleApi.AppHub.V1.Model.DirectLocationAssignment.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.AppHub.V1.Model.DirectLocationAssignment do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/app_hub/lib/google_api/app_hub/v1/model/discovered_service.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
defmodule GoogleApi.AppHub.V1.Model.DiscoveredService do
1919
@moduledoc """
20-
DiscoveredService is a network/api interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.
20+
DiscoveredService is a network or API interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.
2121
2222
## Attributes
2323
24-
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}""
24+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the discovered service. Format: `"projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"`
2525
* `serviceProperties` (*type:* `GoogleApi.AppHub.V1.Model.ServiceProperties.t`, *default:* `nil`) - Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.
2626
* `serviceReference` (*type:* `GoogleApi.AppHub.V1.Model.ServiceReference.t`, *default:* `nil`) - Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.
2727
"""

0 commit comments

Comments
 (0)