Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Run client #11301

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/run/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_run, "~> 0.30"}]
[{:google_api_run, "~> 0.31"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/run/lib/google_api/run/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Run.V1 do
API client metadata for GoogleApi.Run.V1.
"""

@discovery_revision "20240322"
@discovery_revision "20240412"

def discovery_revision(), do: @discovery_revision
end
6 changes: 6 additions & 0 deletions clients/run/lib/google_api/run/v1/model/job_spec.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,21 @@ defmodule GoogleApi.Run.V1.Model.JobSpec do

## Attributes

* `runExecutionToken` (*type:* `String.t`, *default:* `nil`) - A unique string used as a suffix for creating a new execution. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters.
* `startExecutionToken` (*type:* `String.t`, *default:* `nil`) - A unique string used as a suffix for creating a new execution. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
* `template` (*type:* `GoogleApi.Run.V1.Model.ExecutionTemplateSpec.t`, *default:* `nil`) - Optional. Describes the execution that will be created when running a job.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:runExecutionToken => String.t() | nil,
:startExecutionToken => String.t() | nil,
:template => GoogleApi.Run.V1.Model.ExecutionTemplateSpec.t() | nil
}

field(:runExecutionToken)
field(:startExecutionToken)
field(:template, as: GoogleApi.Run.V1.Model.ExecutionTemplateSpec)
end

Expand Down
4 changes: 2 additions & 2 deletions clients/run/lib/google_api/run/v2/api/projects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ defmodule GoogleApi.Run.V2.Api.Projects do
* `: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.
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:allowMissing` (*type:* `boolean()`) - If set to true, and if the Job does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true.
* `:allowMissing` (*type:* `boolean()`) - Optional. If set to true, and if the Job does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true.
* `:validateOnly` (*type:* `boolean()`) - Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.
* `:body` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Job.t`) -
* `opts` (*type:* `keyword()`) - Call options
Expand Down Expand Up @@ -2385,7 +2385,7 @@ defmodule GoogleApi.Run.V2.Api.Projects do
* `: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.
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:allowMissing` (*type:* `boolean()`) - If set to true, and if the Service does not exist, it will create a new one. The caller must have 'run.services.create' permissions if this is set to true and the Service does not exist.
* `:allowMissing` (*type:* `boolean()`) - Optional. If set to true, and if the Service does not exist, it will create a new one. The caller must have 'run.services.create' permissions if this is set to true and the Service does not exist.
* `:updateMask` (*type:* `String.t`) - Optional. The list of fields to be updated.
* `:validateOnly` (*type:* `boolean()`) - Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.
* `:body` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Service.t`) -
Expand Down
2 changes: 1 addition & 1 deletion clients/run/lib/google_api/run/v2/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Run.V2 do
API client metadata for GoogleApi.Run.V2.
"""

@discovery_revision "20240322"
@discovery_revision "20240412"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2BinaryAuthorization do

## Attributes

* `breakglassJustification` (*type:* `String.t`, *default:* `nil`) - If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
* `policy` (*type:* `String.t`, *default:* `nil`) - The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
* `useDefault` (*type:* `boolean()`, *default:* `nil`) - If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
* `breakglassJustification` (*type:* `String.t`, *default:* `nil`) - Optional. If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
* `policy` (*type:* `String.t`, *default:* `nil`) - Optional. The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
* `useDefault` (*type:* `boolean()`, *default:* `nil`) - Optional. If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition do

## Attributes

* `executionReason` (*type:* `String.t`, *default:* `nil`) - A reason for the execution condition.
* `executionReason` (*type:* `String.t`, *default:* `nil`) - Output only. A reason for the execution condition.
* `lastTransitionTime` (*type:* `DateTime.t`, *default:* `nil`) - Last time the condition transitioned from one status to another.
* `message` (*type:* `String.t`, *default:* `nil`) - Human readable message indicating details about the current status.
* `reason` (*type:* `String.t`, *default:* `nil`) - A common (service-level) reason for this condition.
* `revisionReason` (*type:* `String.t`, *default:* `nil`) - A reason for the revision condition.
* `reason` (*type:* `String.t`, *default:* `nil`) - Output only. A common (service-level) reason for this condition.
* `revisionReason` (*type:* `String.t`, *default:* `nil`) - Output only. A reason for the revision condition.
* `severity` (*type:* `String.t`, *default:* `nil`) - How to interpret failures of this condition, one of Error, Warning, Info
* `state` (*type:* `String.t`, *default:* `nil`) - State of the condition.
* `type` (*type:* `String.t`, *default:* `nil`) - type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2GRPCAction do

## Attributes

* `port` (*type:* `integer()`, *default:* `nil`) - Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
* `service` (*type:* `String.t`, *default:* `nil`) - Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC.
* `port` (*type:* `integer()`, *default:* `nil`) - Optional. Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
* `service` (*type:* `String.t`, *default:* `nil`) - Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPGetAction do

## Attributes

* `httpHeaders` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPHeader.t)`, *default:* `nil`) - Custom headers to set in the request. HTTP allows repeated headers.
* `path` (*type:* `String.t`, *default:* `nil`) - Path to access on the HTTP server. Defaults to '/'.
* `port` (*type:* `integer()`, *default:* `nil`) - Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
* `httpHeaders` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPHeader.t)`, *default:* `nil`) - Optional. Custom headers to set in the request. HTTP allows repeated headers.
* `path` (*type:* `String.t`, *default:* `nil`) - Optional. Path to access on the HTTP server. Defaults to '/'.
* `port` (*type:* `integer()`, *default:* `nil`) - Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPHeader do
## Attributes

* `name` (*type:* `String.t`, *default:* `nil`) - Required. The header field name
* `value` (*type:* `String.t`, *default:* `nil`) - The header field value
* `value` (*type:* `String.t`, *default:* `nil`) - Optional. The header field value
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Job do
* `observedGeneration` (*type:* `String.t`, *default:* `nil`) - Output only. The generation of this Job. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.
* `reconciling` (*type:* `boolean()`, *default:* `nil`) - Output only. Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, `observed_generation` and `latest_succeeded_execution`, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `observed_generation` and `generation`, `latest_succeeded_execution` and `latest_created_execution`. If reconciliation failed, `observed_generation` and `latest_succeeded_execution` will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in `terminal_condition` and `conditions`.
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
* `startExecutionToken` (*type:* `String.t`, *default:* `nil`) - A unique string used as a suffix creating a new execution. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters.
* `template` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2ExecutionTemplate.t`, *default:* `nil`) - Required. The template used to create executions for this Job.
* `terminalCondition` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t`, *default:* `nil`) - Output only. The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state.
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
Expand Down Expand Up @@ -72,6 +73,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Job do
:observedGeneration => String.t() | nil,
:reconciling => boolean() | nil,
:satisfiesPzs => boolean() | nil,
:startExecutionToken => String.t() | nil,
:template => GoogleApi.Run.V2.Model.GoogleCloudRunV2ExecutionTemplate.t() | nil,
:terminalCondition => GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t() | nil,
:uid => String.t() | nil,
Expand All @@ -98,6 +100,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Job do
field(:observedGeneration)
field(:reconciling)
field(:satisfiesPzs)
field(:startExecutionToken)
field(:template, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2ExecutionTemplate)
field(:terminalCondition, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition)
field(:uid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2NetworkInterface do

## Attributes

* `network` (*type:* `String.t`, *default:* `nil`) - The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
* `subnetwork` (*type:* `String.t`, *default:* `nil`) - The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
* `tags` (*type:* `list(String.t)`, *default:* `nil`) - Network tags applied to this Cloud Run resource.
* `network` (*type:* `String.t`, *default:* `nil`) - Optional. The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
* `subnetwork` (*type:* `String.t`, *default:* `nil`) - Optional. The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
* `tags` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Network tags applied to this Cloud Run resource.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Probe do

## Attributes

* `failureThreshold` (*type:* `integer()`, *default:* `nil`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
* `grpc` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2GRPCAction.t`, *default:* `nil`) - GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
* `httpGet` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPGetAction.t`, *default:* `nil`) - HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
* `initialDelaySeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240.
* `periodSeconds` (*type:* `integer()`, *default:* `nil`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds.
* `tcpSocket` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2TCPSocketAction.t`, *default:* `nil`) - TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
* `timeoutSeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
* `failureThreshold` (*type:* `integer()`, *default:* `nil`) - Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
* `grpc` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2GRPCAction.t`, *default:* `nil`) - Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
* `httpGet` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPGetAction.t`, *default:* `nil`) - Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
* `initialDelaySeconds` (*type:* `integer()`, *default:* `nil`) - Optional. Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240.
* `periodSeconds` (*type:* `integer()`, *default:* `nil`) - Optional. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds.
* `tcpSocket` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2TCPSocketAction.t`, *default:* `nil`) - Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
* `timeoutSeconds` (*type:* `integer()`, *default:* `nil`) - Optional. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScaling do

## Attributes

* `maxInstanceCount` (*type:* `integer()`, *default:* `nil`) - Maximum number of serving instances that this resource should have.
* `minInstanceCount` (*type:* `integer()`, *default:* `nil`) - Minimum number of serving instances that this resource should have.
* `maxInstanceCount` (*type:* `integer()`, *default:* `nil`) - Optional. Maximum number of serving instances that this resource should have.
* `minInstanceCount` (*type:* `integer()`, *default:* `nil`) - Optional. Minimum number of serving instances that this resource should have.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Loading
Loading