Skip to content

Commit aca6317

Browse files
feat: Automated regeneration of DeploymentManager client (googleapis#12487)
Auto-created at 2024-11-06 13:12:34 +0000 using the toys pull request generator.
1 parent f979d31 commit aca6317

19 files changed

+489
-11
lines changed

clients/deployment_manager/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_deployment_manager, "~> 0.19"}]
14+
[{:google_api_deployment_manager, "~> 0.20"}]
1515
end
1616
```
1717

clients/deployment_manager/lib/google_api/deployment_manager/v2/api/deployments.ex

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
125125
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
126126
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
127127
* `:deletePolicy` (*type:* `String.t`) - Sets the policy to use for deleting resources.
128+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
128129
* `opts` (*type:* `keyword()`) - Call options
129130
130131
## Returns
@@ -162,7 +163,8 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
162163
:quotaUser => :query,
163164
:uploadType => :query,
164165
:upload_protocol => :query,
165-
:deletePolicy => :query
166+
:deletePolicy => :query,
167+
:"header.bypassBillingFilter" => :query
166168
}
167169

168170
request =
@@ -203,6 +205,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
203205
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
204206
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
205207
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
208+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
206209
* `opts` (*type:* `keyword()`) - Call options
207210
208211
## Returns
@@ -239,7 +242,8 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
239242
:prettyPrint => :query,
240243
:quotaUser => :query,
241244
:uploadType => :query,
242-
:upload_protocol => :query
245+
:upload_protocol => :query,
246+
:"header.bypassBillingFilter" => :query
243247
}
244248

245249
request =
@@ -280,6 +284,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
280284
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
281285
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
282286
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
287+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
283288
* `:optionsRequestedPolicyVersion` (*type:* `integer()`) - Requested IAM Policy version.
284289
* `opts` (*type:* `keyword()`) - Call options
285290
@@ -318,6 +323,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
318323
:quotaUser => :query,
319324
:uploadType => :query,
320325
:upload_protocol => :query,
326+
:"header.bypassBillingFilter" => :query,
321327
:optionsRequestedPolicyVersion => :query
322328
}
323329

@@ -359,6 +365,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
359365
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
360366
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
361367
* `:createPolicy` (*type:* `String.t`) - Sets the policy to use for creating new resources.
368+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
362369
* `:preview` (*type:* `boolean()`) - If set to true, creates a deployment and creates "shell" resources but does not actually instantiate these resources. This allows you to preview what your deployment looks like. After previewing a deployment, you can deploy your resources by making a request with the `update()` method or you can use the `cancelPreview()` method to cancel the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it.
363370
* `:body` (*type:* `GoogleApi.DeploymentManager.V2.Model.Deployment.t`) -
364371
* `opts` (*type:* `keyword()`) - Call options
@@ -387,6 +394,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
387394
:uploadType => :query,
388395
:upload_protocol => :query,
389396
:createPolicy => :query,
397+
:"header.bypassBillingFilter" => :query,
390398
:preview => :query,
391399
:body => :body
392400
}
@@ -497,6 +505,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
497505
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
498506
* `:createPolicy` (*type:* `String.t`) - Sets the policy to use for creating new resources.
499507
* `:deletePolicy` (*type:* `String.t`) - Sets the policy to use for deleting resources.
508+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
500509
* `:preview` (*type:* `boolean()`) - If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a `target.config` with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the `update()` or you can `cancelPreview()` to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it.
501510
* `:body` (*type:* `GoogleApi.DeploymentManager.V2.Model.Deployment.t`) -
502511
* `opts` (*type:* `keyword()`) - Call options
@@ -538,6 +547,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
538547
:upload_protocol => :query,
539548
:createPolicy => :query,
540549
:deletePolicy => :query,
550+
:"header.bypassBillingFilter" => :query,
541551
:preview => :query,
542552
:body => :body
543553
}
@@ -738,6 +748,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
738748
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
739749
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
740750
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
751+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
741752
* `:body` (*type:* `GoogleApi.DeploymentManager.V2.Model.TestPermissionsRequest.t`) -
742753
* `opts` (*type:* `keyword()`) - Call options
743754
@@ -776,6 +787,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
776787
:quotaUser => :query,
777788
:uploadType => :query,
778789
:upload_protocol => :query,
790+
:"header.bypassBillingFilter" => :query,
779791
:body => :body
780792
}
781793

@@ -821,6 +833,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
821833
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
822834
* `:createPolicy` (*type:* `String.t`) - Sets the policy to use for creating new resources.
823835
* `:deletePolicy` (*type:* `String.t`) - Sets the policy to use for deleting resources.
836+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
824837
* `:preview` (*type:* `boolean()`) - If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a `target.config` with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the `update()` or you can `cancelPreview()` to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it.
825838
* `:body` (*type:* `GoogleApi.DeploymentManager.V2.Model.Deployment.t`) -
826839
* `opts` (*type:* `keyword()`) - Call options
@@ -862,6 +875,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Deployments do
862875
:upload_protocol => :query,
863876
:createPolicy => :query,
864877
:deletePolicy => :query,
878+
:"header.bypassBillingFilter" => :query,
865879
:preview => :query,
866880
:body => :body
867881
}

clients/deployment_manager/lib/google_api/deployment_manager/v2/api/manifests.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Manifests do
4646
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
4747
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4848
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
49+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
4950
* `opts` (*type:* `keyword()`) - Call options
5051
5152
## Returns
@@ -84,7 +85,8 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Manifests do
8485
:prettyPrint => :query,
8586
:quotaUser => :query,
8687
:uploadType => :query,
87-
:upload_protocol => :query
88+
:upload_protocol => :query,
89+
:"header.bypassBillingFilter" => :query
8890
}
8991

9092
request =

clients/deployment_manager/lib/google_api/deployment_manager/v2/api/operations.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Operations do
4545
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
4646
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4747
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
48+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
4849
* `opts` (*type:* `keyword()`) - Call options
4950
5051
## Returns
@@ -81,7 +82,8 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Operations do
8182
:prettyPrint => :query,
8283
:quotaUser => :query,
8384
:uploadType => :query,
84-
:upload_protocol => :query
85+
:upload_protocol => :query,
86+
:"header.bypassBillingFilter" => :query
8587
}
8688

8789
request =

clients/deployment_manager/lib/google_api/deployment_manager/v2/api/resources.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Resources do
4646
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
4747
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4848
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
49+
* `:"header.bypassBillingFilter"` (*type:* `boolean()`) -
4950
* `opts` (*type:* `keyword()`) - Call options
5051
5152
## Returns
@@ -84,7 +85,8 @@ defmodule GoogleApi.DeploymentManager.V2.Api.Resources do
8485
:prettyPrint => :query,
8586
:quotaUser => :query,
8687
:uploadType => :query,
87-
:upload_protocol => :query
88+
:upload_protocol => :query,
89+
:"header.bypassBillingFilter" => :query
8890
}
8991

9092
request =

clients/deployment_manager/lib/google_api/deployment_manager/v2/metadata.ex

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

23-
@discovery_revision "20240306"
23+
@discovery_revision "20241031"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
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.DeploymentManager.V2.Model.DebugInfo do
19+
@moduledoc """
20+
Describes additional debugging info.
21+
22+
## Attributes
23+
24+
* `detail` (*type:* `String.t`, *default:* `nil`) - Additional debugging information provided by the server.
25+
* `stackEntries` (*type:* `list(String.t)`, *default:* `nil`) - The stack trace entries indicating where the error occurred.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:detail => String.t() | nil,
32+
:stackEntries => list(String.t()) | nil
33+
}
34+
35+
field(:detail)
36+
field(:stackEntries, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.DeploymentManager.V2.Model.DebugInfo do
40+
def decode(value, options) do
41+
GoogleApi.DeploymentManager.V2.Model.DebugInfo.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.DeploymentManager.V2.Model.DebugInfo do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.DeploymentManager.V2.Model.ErrorInfo do
19+
@moduledoc """
20+
Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { "resource": "projects/123", "service": "pubsub.googleapis.com" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { "availableRegions": "us-central1,us-east2" } }
21+
22+
## Attributes
23+
24+
* `domain` (*type:* `String.t`, *default:* `nil`) - The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com".
25+
* `metadata` (*type:* `map()`, *default:* `nil`) - Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
26+
* `reason` (*type:* `String.t`, *default:* `nil`) - The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:domain => String.t() | nil,
33+
:metadata => map() | nil,
34+
:reason => String.t() | nil
35+
}
36+
37+
field(:domain)
38+
field(:metadata, type: :map)
39+
field(:reason)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.DeploymentManager.V2.Model.ErrorInfo do
43+
def decode(value, options) do
44+
GoogleApi.DeploymentManager.V2.Model.ErrorInfo.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.DeploymentManager.V2.Model.ErrorInfo do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/deployment_manager/lib/google_api/deployment_manager/v2/model/global_set_policy_request.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ defmodule GoogleApi.DeploymentManager.V2.Model.GlobalSetPolicyRequest do
2424
* `bindings` (*type:* `list(GoogleApi.DeploymentManager.V2.Model.Binding.t)`, *default:* `nil`) - Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
2525
* `etag` (*type:* `String.t`, *default:* `nil`) - Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
2626
* `policy` (*type:* `GoogleApi.DeploymentManager.V2.Model.Policy.t`, *default:* `nil`) - REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them.
27+
* `updateMask` (*type:* `String.t`, *default:* `nil`) -
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
3233
:bindings => list(GoogleApi.DeploymentManager.V2.Model.Binding.t()) | nil,
3334
:etag => String.t() | nil,
34-
:policy => GoogleApi.DeploymentManager.V2.Model.Policy.t() | nil
35+
:policy => GoogleApi.DeploymentManager.V2.Model.Policy.t() | nil,
36+
:updateMask => String.t() | nil
3537
}
3638

3739
field(:bindings, as: GoogleApi.DeploymentManager.V2.Model.Binding, type: :list)
3840
field(:etag)
3941
field(:policy, as: GoogleApi.DeploymentManager.V2.Model.Policy)
42+
field(:updateMask)
4043
end
4144

4245
defimpl Poison.Decoder, for: GoogleApi.DeploymentManager.V2.Model.GlobalSetPolicyRequest do
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.DeploymentManager.V2.Model.Help do
19+
@moduledoc """
20+
Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.
21+
22+
## Attributes
23+
24+
* `links` (*type:* `list(GoogleApi.DeploymentManager.V2.Model.HelpLink.t)`, *default:* `nil`) - URL(s) pointing to additional information on handling the current error.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:links => list(GoogleApi.DeploymentManager.V2.Model.HelpLink.t()) | nil
31+
}
32+
33+
field(:links, as: GoogleApi.DeploymentManager.V2.Model.HelpLink, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.DeploymentManager.V2.Model.Help do
37+
def decode(value, options) do
38+
GoogleApi.DeploymentManager.V2.Model.Help.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.DeploymentManager.V2.Model.Help do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)