Skip to content

Commit 7b27c2f

Browse files
feat: Automated regeneration of CloudDeploy client (#12797)
Auto-created at 2025-01-10 13:12:30 +0000 using the toys pull request generator.
1 parent a49f7c5 commit 7b27c2f

28 files changed

+201
-54
lines changed

clients/cloud_deploy/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_cloud_deploy, "~> 0.13"}]
14+
[{:google_api_cloud_deploy, "~> 0.14"}]
1515
end
1616
```
1717

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

Lines changed: 147 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ defmodule GoogleApi.CloudDeploy.V1.Api.Projects do
605605
## Parameters
606606
607607
* `connection` (*type:* `GoogleApi.CloudDeploy.V1.Connection.t`) - Connection to server
608-
* `name` (*type:* `String.t`) - Optional. Name of the `CustomTargetType`. Format is `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. The `customTargetType` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
608+
* `name` (*type:* `String.t`) - Identifier. Name of the `CustomTargetType`. Format is `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. The `customTargetType` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
609609
* `optional_params` (*type:* `keyword()`) - Optional parameters
610610
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
611611
* `:access_token` (*type:* `String.t`) - OAuth access token.
@@ -1137,7 +1137,7 @@ defmodule GoogleApi.CloudDeploy.V1.Api.Projects do
11371137
## Parameters
11381138
11391139
* `connection` (*type:* `GoogleApi.CloudDeploy.V1.Connection.t`) - Connection to server
1140-
* `name` (*type:* `String.t`) - Optional. Name of the `DeliveryPipeline`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. The `deliveryPipeline` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
1140+
* `name` (*type:* `String.t`) - Identifier. Name of the `DeliveryPipeline`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. The `deliveryPipeline` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
11411141
* `optional_params` (*type:* `keyword()`) - Optional parameters
11421142
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
11431143
* `:access_token` (*type:* `String.t`) - OAuth access token.
@@ -3377,6 +3377,78 @@ defmodule GoogleApi.CloudDeploy.V1.Api.Projects do
33773377
|> Response.decode(opts ++ [struct: %GoogleApi.CloudDeploy.V1.Model.DeployPolicy{}])
33783378
end
33793379

3380+
@doc """
3381+
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
3382+
3383+
## Parameters
3384+
3385+
* `connection` (*type:* `GoogleApi.CloudDeploy.V1.Connection.t`) - Connection to server
3386+
* `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3387+
* `optional_params` (*type:* `keyword()`) - Optional parameters
3388+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
3389+
* `:access_token` (*type:* `String.t`) - OAuth access token.
3390+
* `:alt` (*type:* `String.t`) - Data format for response.
3391+
* `:callback` (*type:* `String.t`) - JSONP
3392+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
3393+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
3394+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
3395+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
3396+
* `: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.
3397+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
3398+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
3399+
* `:"options.requestedPolicyVersion"` (*type:* `integer()`) - Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3400+
* `opts` (*type:* `keyword()`) - Call options
3401+
3402+
## Returns
3403+
3404+
* `{:ok, %GoogleApi.CloudDeploy.V1.Model.Policy{}}` on success
3405+
* `{:error, info}` on failure
3406+
"""
3407+
@spec clouddeploy_projects_locations_deploy_policies_get_iam_policy(
3408+
Tesla.Env.client(),
3409+
String.t(),
3410+
keyword(),
3411+
keyword()
3412+
) ::
3413+
{:ok, GoogleApi.CloudDeploy.V1.Model.Policy.t()}
3414+
| {:ok, Tesla.Env.t()}
3415+
| {:ok, list()}
3416+
| {:error, any()}
3417+
def clouddeploy_projects_locations_deploy_policies_get_iam_policy(
3418+
connection,
3419+
resource,
3420+
optional_params \\ [],
3421+
opts \\ []
3422+
) do
3423+
optional_params_config = %{
3424+
:"$.xgafv" => :query,
3425+
:access_token => :query,
3426+
:alt => :query,
3427+
:callback => :query,
3428+
:fields => :query,
3429+
:key => :query,
3430+
:oauth_token => :query,
3431+
:prettyPrint => :query,
3432+
:quotaUser => :query,
3433+
:uploadType => :query,
3434+
:upload_protocol => :query,
3435+
:"options.requestedPolicyVersion" => :query
3436+
}
3437+
3438+
request =
3439+
Request.new()
3440+
|> Request.method(:get)
3441+
|> Request.url("/v1/{+resource}:getIamPolicy", %{
3442+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
3443+
})
3444+
|> Request.add_optional_params(optional_params_config, optional_params)
3445+
|> Request.library_version(@library_version)
3446+
3447+
connection
3448+
|> Connection.execute(request)
3449+
|> Response.decode(opts ++ [struct: %GoogleApi.CloudDeploy.V1.Model.Policy{}])
3450+
end
3451+
33803452
@doc """
33813453
Lists DeployPolicies in a given project and location.
33823454
@@ -3537,6 +3609,78 @@ defmodule GoogleApi.CloudDeploy.V1.Api.Projects do
35373609
|> Response.decode(opts ++ [struct: %GoogleApi.CloudDeploy.V1.Model.Operation{}])
35383610
end
35393611

3612+
@doc """
3613+
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
3614+
3615+
## Parameters
3616+
3617+
* `connection` (*type:* `GoogleApi.CloudDeploy.V1.Connection.t`) - Connection to server
3618+
* `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3619+
* `optional_params` (*type:* `keyword()`) - Optional parameters
3620+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
3621+
* `:access_token` (*type:* `String.t`) - OAuth access token.
3622+
* `:alt` (*type:* `String.t`) - Data format for response.
3623+
* `:callback` (*type:* `String.t`) - JSONP
3624+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
3625+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
3626+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
3627+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
3628+
* `: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.
3629+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
3630+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
3631+
* `:body` (*type:* `GoogleApi.CloudDeploy.V1.Model.SetIamPolicyRequest.t`) -
3632+
* `opts` (*type:* `keyword()`) - Call options
3633+
3634+
## Returns
3635+
3636+
* `{:ok, %GoogleApi.CloudDeploy.V1.Model.Policy{}}` on success
3637+
* `{:error, info}` on failure
3638+
"""
3639+
@spec clouddeploy_projects_locations_deploy_policies_set_iam_policy(
3640+
Tesla.Env.client(),
3641+
String.t(),
3642+
keyword(),
3643+
keyword()
3644+
) ::
3645+
{:ok, GoogleApi.CloudDeploy.V1.Model.Policy.t()}
3646+
| {:ok, Tesla.Env.t()}
3647+
| {:ok, list()}
3648+
| {:error, any()}
3649+
def clouddeploy_projects_locations_deploy_policies_set_iam_policy(
3650+
connection,
3651+
resource,
3652+
optional_params \\ [],
3653+
opts \\ []
3654+
) do
3655+
optional_params_config = %{
3656+
:"$.xgafv" => :query,
3657+
:access_token => :query,
3658+
:alt => :query,
3659+
:callback => :query,
3660+
:fields => :query,
3661+
:key => :query,
3662+
:oauth_token => :query,
3663+
:prettyPrint => :query,
3664+
:quotaUser => :query,
3665+
:uploadType => :query,
3666+
:upload_protocol => :query,
3667+
:body => :body
3668+
}
3669+
3670+
request =
3671+
Request.new()
3672+
|> Request.method(:post)
3673+
|> Request.url("/v1/{+resource}:setIamPolicy", %{
3674+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
3675+
})
3676+
|> Request.add_optional_params(optional_params_config, optional_params)
3677+
|> Request.library_version(@library_version)
3678+
3679+
connection
3680+
|> Connection.execute(request)
3681+
|> Response.decode(opts ++ [struct: %GoogleApi.CloudDeploy.V1.Model.Policy{}])
3682+
end
3683+
35403684
@doc """
35413685
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`.
35423686
@@ -4207,7 +4351,7 @@ defmodule GoogleApi.CloudDeploy.V1.Api.Projects do
42074351
## Parameters
42084352
42094353
* `connection` (*type:* `GoogleApi.CloudDeploy.V1.Connection.t`) - Connection to server
4210-
* `name` (*type:* `String.t`) - Optional. Name of the `Target`. Format is `projects/{project}/locations/{location}/targets/{target}`. The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
4354+
* `name` (*type:* `String.t`) - Identifier. Name of the `Target`. Format is `projects/{project}/locations/{location}/targets/{target}`. The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
42114355
* `optional_params` (*type:* `keyword()`) - Optional parameters
42124356
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
42134357
* `:access_token` (*type:* `String.t`) - OAuth access token.

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

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

23-
@discovery_revision "20241204"
23+
@discovery_revision "20250101"
2424

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

clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/automation_resource_selector.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.AutomationResourceSelector do
2121
2222
## Attributes
2323
24-
* `targets` (*type:* `list(GoogleApi.CloudDeploy.V1.Model.TargetAttribute.t)`, *default:* `nil`) - Contains attributes about a target.
24+
* `targets` (*type:* `list(GoogleApi.CloudDeploy.V1.Model.TargetAttribute.t)`, *default:* `nil`) - Optional. Contains attributes about a target.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase

clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/build_artifact.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ defmodule GoogleApi.CloudDeploy.V1.Model.BuildArtifact do
2121
2222
## Attributes
2323
24-
* `image` (*type:* `String.t`, *default:* `nil`) - Image name in Skaffold configuration.
25-
* `tag` (*type:* `String.t`, *default:* `nil`) - Image tag to use. This will generally be the full path to an image, such as "gcr.io/my-project/busybox:1.2.3" or "gcr.io/my-project/busybox@sha256:abc123".
24+
* `image` (*type:* `String.t`, *default:* `nil`) - Optional. Image name in Skaffold configuration.
25+
* `tag` (*type:* `String.t`, *default:* `nil`) - Optional. Image tag to use. This will generally be the full path to an image, such as "gcr.io/my-project/busybox:1.2.3" or "gcr.io/my-project/busybox@sha256:abc123".
2626
"""
2727

2828
use GoogleApi.Gax.ModelBase

clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/canary.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ defmodule GoogleApi.CloudDeploy.V1.Model.Canary do
2121
2222
## Attributes
2323
24-
* `canaryDeployment` (*type:* `GoogleApi.CloudDeploy.V1.Model.CanaryDeployment.t`, *default:* `nil`) - Configures the progressive based deployment for a Target.
25-
* `customCanaryDeployment` (*type:* `GoogleApi.CloudDeploy.V1.Model.CustomCanaryDeployment.t`, *default:* `nil`) - Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.
24+
* `canaryDeployment` (*type:* `GoogleApi.CloudDeploy.V1.Model.CanaryDeployment.t`, *default:* `nil`) - Optional. Configures the progressive based deployment for a Target.
25+
* `customCanaryDeployment` (*type:* `GoogleApi.CloudDeploy.V1.Model.CustomCanaryDeployment.t`, *default:* `nil`) - Optional. Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments.
2626
* `runtimeConfig` (*type:* `GoogleApi.CloudDeploy.V1.Model.RuntimeConfig.t`, *default:* `nil`) - Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment.
2727
"""
2828

clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/canary_deployment.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.CanaryDeployment do
2424
* `percentages` (*type:* `list(integer())`, *default:* `nil`) - Required. The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 <= n <= 100.
2525
* `postdeploy` (*type:* `GoogleApi.CloudDeploy.V1.Model.Postdeploy.t`, *default:* `nil`) - Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
2626
* `predeploy` (*type:* `GoogleApi.CloudDeploy.V1.Model.Predeploy.t`, *default:* `nil`) - Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
27-
* `verify` (*type:* `boolean()`, *default:* `nil`) - Whether to run verify tests after each percentage deployment.
27+
* `verify` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to run verify tests after each percentage deployment.
2828
"""
2929

3030
use GoogleApi.Gax.ModelBase

clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/cloud_run_config.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.CloudRunConfig do
2121
2222
## Attributes
2323
24-
* `automaticTrafficControl` (*type:* `boolean()`, *default:* `nil`) - Whether Cloud Deploy should update the traffic stanza in a Cloud Run Service on the user's behalf to facilitate traffic splitting. This is required to be true for CanaryDeployments, but optional for CustomCanaryDeployments.
24+
* `automaticTrafficControl` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether Cloud Deploy should update the traffic stanza in a Cloud Run Service on the user's behalf to facilitate traffic splitting. This is required to be true for CanaryDeployments, but optional for CustomCanaryDeployments.
2525
* `canaryRevisionTags` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of tags that are added to the canary revision while the canary phase is in progress.
2626
* `priorRevisionTags` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of tags that are added to the prior revision while the canary phase is in progress.
2727
* `stableRevisionTags` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of tags that are added to the final stable revision when the stable phase is applied.

clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/custom_target_type.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ defmodule GoogleApi.CloudDeploy.V1.Model.CustomTargetType do
2323
2424
* `annotations` (*type:* `map()`, *default:* `nil`) - Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
2525
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which the `CustomTargetType` was created.
26-
* `customActions` (*type:* `GoogleApi.CloudDeploy.V1.Model.CustomTargetSkaffoldActions.t`, *default:* `nil`) - Configures render and deploy for the `CustomTargetType` using Skaffold custom actions.
26+
* `customActions` (*type:* `GoogleApi.CloudDeploy.V1.Model.CustomTargetSkaffoldActions.t`, *default:* `nil`) - Optional. Configures render and deploy for the `CustomTargetType` using Skaffold custom actions.
2727
* `customTargetTypeId` (*type:* `String.t`, *default:* `nil`) - Output only. Resource id of the `CustomTargetType`.
2828
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the `CustomTargetType`. Max length is 255 characters.
2929
* `etag` (*type:* `String.t`, *default:* `nil`) - Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
3030
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
31-
* `name` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the `CustomTargetType`. Format is `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. The `customTargetType` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
31+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Name of the `CustomTargetType`. Format is `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. The `customTargetType` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
3232
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Unique identifier of the `CustomTargetType`.
3333
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Most recent time at which the `CustomTargetType` was updated.
3434
"""

0 commit comments

Comments
 (0)