Skip to content

Commit

Permalink
feat: Automated regeneration of Eventarc client (#12634)
Browse files Browse the repository at this point in the history
Auto-created at 2024-12-04 13:14:35 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Dec 4, 2024
1 parent 6433cad commit 8da0332
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion clients/eventarc/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_eventarc, "~> 0.16"}]
[{:google_api_eventarc, "~> 0.17"}]
end
```

Expand Down
10 changes: 5 additions & 5 deletions clients/eventarc/lib/google_api/eventarc/v1/api/projects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ defmodule GoogleApi.Eventarc.V1.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").
* `:enrollmentId` (*type:* `String.t`) - Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
* `:enrollmentId` (*type:* `String.t`) - Required. The user-provided ID to be assigned to the Enrollment. It should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
* `:validateOnly` (*type:* `boolean()`) - Optional. If set, validate the request and preview the review, but do not post it.
* `:body` (*type:* `GoogleApi.Eventarc.V1.Model.Enrollment.t`) -
* `opts` (*type:* `keyword()`) - Call options
Expand Down Expand Up @@ -2022,7 +2022,7 @@ defmodule GoogleApi.Eventarc.V1.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").
* `:googleApiSourceId` (*type:* `String.t`) - Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
* `:googleApiSourceId` (*type:* `String.t`) - Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
* `:validateOnly` (*type:* `boolean()`) - Optional. If set, validate the request and preview the review, but do not post it.
* `:body` (*type:* `GoogleApi.Eventarc.V1.Model.GoogleApiSource.t`) -
* `opts` (*type:* `keyword()`) - Call options
Expand Down Expand Up @@ -2626,7 +2626,7 @@ defmodule GoogleApi.Eventarc.V1.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").
* `:messageBusId` (*type:* `String.t`) - Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$)
* `:messageBusId` (*type:* `String.t`) - Required. The user-provided ID to be assigned to the MessageBus. It should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
* `:validateOnly` (*type:* `boolean()`) - Optional. If set, validate the request and preview the review, but do not post it.
* `:body` (*type:* `GoogleApi.Eventarc.V1.Model.MessageBus.t`) -
* `opts` (*type:* `keyword()`) - Call options
Expand Down Expand Up @@ -3286,7 +3286,7 @@ defmodule GoogleApi.Eventarc.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
Expand Down Expand Up @@ -3596,7 +3596,7 @@ defmodule GoogleApi.Eventarc.V1.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").
* `:pipelineId` (*type:* `String.t`) - Required. The user-provided ID to be assigned to the Pipeline.
* `:pipelineId` (*type:* `String.t`) - Required. The user-provided ID to be assigned to the Pipeline. It should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
* `:validateOnly` (*type:* `boolean()`) - Optional. If set, validate the request and preview the review, but do not post it.
* `:body` (*type:* `GoogleApi.Eventarc.V1.Model.Pipeline.t`) -
* `opts` (*type:* `keyword()`) - Call options
Expand Down
2 changes: 1 addition & 1 deletion clients/eventarc/lib/google_api/eventarc/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Eventarc.V1 do
API client metadata for GoogleApi.Eventarc.V1.
"""

@discovery_revision "20241029"
@discovery_revision "20241119"

def discovery_revision(), do: @discovery_revision
end
3 changes: 3 additions & 0 deletions clients/eventarc/lib/google_api/eventarc/v1/model/channel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ defmodule GoogleApi.Eventarc.V1.Model.Channel do
* `activationToken` (*type:* `String.t`, *default:* `nil`) - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time.
* `cryptoKeyName` (*type:* `String.t`, *default:* `nil`) - Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Resource labels.
* `name` (*type:* `String.t`, *default:* `nil`) - Required. The resource name of the channel. Must be unique within the location on the project and must be in `projects/{project}/locations/{location}/channels/{channel_id}` format.
* `provider` (*type:* `String.t`, *default:* `nil`) - The name of the event provider (e.g. Eventarc SaaS partner) associated with the channel. This provider will be granted permissions to publish events to the channel. Format: `projects/{project}/locations/{location}/providers/{provider_id}`.
* `pubsubTopic` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{project}/topics/{topic_id}`.
Expand All @@ -39,6 +40,7 @@ defmodule GoogleApi.Eventarc.V1.Model.Channel do
:activationToken => String.t() | nil,
:createTime => DateTime.t() | nil,
:cryptoKeyName => String.t() | nil,
:labels => map() | nil,
:name => String.t() | nil,
:provider => String.t() | nil,
:pubsubTopic => String.t() | nil,
Expand All @@ -51,6 +53,7 @@ defmodule GoogleApi.Eventarc.V1.Model.Channel do
field(:activationToken)
field(:createTime, as: DateTime)
field(:cryptoKeyName)
field(:labels, type: :map)
field(:name)
field(:provider)
field(:pubsubTopic)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ defmodule GoogleApi.Eventarc.V1.Model.ChannelConnection do
* `activationToken` (*type:* `String.t`, *default:* `nil`) - Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.
* `channel` (*type:* `String.t`, *default:* `nil`) - Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in `projects/{project}/location/{location}/channels/{channel_id}` format.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time.
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Resource labels.
* `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the connection.
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last-modified time.
Expand All @@ -35,6 +36,7 @@ defmodule GoogleApi.Eventarc.V1.Model.ChannelConnection do
:activationToken => String.t() | nil,
:channel => String.t() | nil,
:createTime => DateTime.t() | nil,
:labels => map() | nil,
:name => String.t() | nil,
:uid => String.t() | nil,
:updateTime => DateTime.t() | nil
Expand All @@ -43,6 +45,7 @@ defmodule GoogleApi.Eventarc.V1.Model.ChannelConnection do
field(:activationToken)
field(:channel)
field(:createTime, as: DateTime)
field(:labels, type: :map)
field(:name)
field(:uid)
field(:updateTime, as: DateTime)
Expand Down
Loading

0 comments on commit 8da0332

Please sign in to comment.