Skip to content

Commit 63493eb

Browse files
feat: Automated regeneration of Eventarc client (googleapis#12420)
Auto-created at 2024-10-27 13:14:52 +0000 using the toys pull request generator.
1 parent c4f9e23 commit 63493eb

27 files changed

+3141
-152
lines changed

clients/eventarc/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_eventarc, "~> 0.15"}]
14+
[{:google_api_eventarc, "~> 0.16"}]
1515
end
1616
```
1717

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

Lines changed: 1763 additions & 149 deletions
Large diffs are not rendered by default.

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

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

23-
@discovery_revision "20240913"
23+
@discovery_revision "20241021"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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.Eventarc.V1.Model.Enrollment do
19+
@moduledoc """
20+
An enrollment represents a subscription for messages on a particular message bus. It defines a matching criteria for messages on the bus and the subscriber endpoint where matched messages should be delivered.
21+
22+
## Attributes
23+
24+
* `annotations` (*type:* `map()`, *default:* `nil`) - Optional. Resource annotations.
25+
* `celMatch` (*type:* `String.t`, *default:* `nil`) - Required. A CEL expression identifying which messages this enrollment applies to.
26+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time.
27+
* `destination` (*type:* `String.t`, *default:* `nil`) - Required. Destination is the Pipeline that the Enrollment is delivering to. It must point to the full resource name of a Pipeline. Format: "projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)"
28+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Resource display name.
29+
* `etag` (*type:* `String.t`, *default:* `nil`) - Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
30+
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Resource labels.
31+
* `messageBus` (*type:* `String.t`, *default:* `nil`) - Required. Resource name of the message bus identifying the source of the messages. It matches the form projects/{project}/locations/{location}/messageBuses/{messageBus}.
32+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of the form projects/{project}/locations/{location}/enrollments/{enrollment}
33+
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
34+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last-modified time.
35+
"""
36+
37+
use GoogleApi.Gax.ModelBase
38+
39+
@type t :: %__MODULE__{
40+
:annotations => map() | nil,
41+
:celMatch => String.t() | nil,
42+
:createTime => DateTime.t() | nil,
43+
:destination => String.t() | nil,
44+
:displayName => String.t() | nil,
45+
:etag => String.t() | nil,
46+
:labels => map() | nil,
47+
:messageBus => String.t() | nil,
48+
:name => String.t() | nil,
49+
:uid => String.t() | nil,
50+
:updateTime => DateTime.t() | nil
51+
}
52+
53+
field(:annotations, type: :map)
54+
field(:celMatch)
55+
field(:createTime, as: DateTime)
56+
field(:destination)
57+
field(:displayName)
58+
field(:etag)
59+
field(:labels, type: :map)
60+
field(:messageBus)
61+
field(:name)
62+
field(:uid)
63+
field(:updateTime, as: DateTime)
64+
end
65+
66+
defimpl Poison.Decoder, for: GoogleApi.Eventarc.V1.Model.Enrollment do
67+
def decode(value, options) do
68+
GoogleApi.Eventarc.V1.Model.Enrollment.decode(value, options)
69+
end
70+
end
71+
72+
defimpl Poison.Encoder, for: GoogleApi.Eventarc.V1.Model.Enrollment do
73+
def encode(value, options) do
74+
GoogleApi.Gax.ModelBase.encode(value, options)
75+
end
76+
end
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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.Eventarc.V1.Model.GoogleApiSource do
19+
@moduledoc """
20+
A GoogleApiSource represents a subscription of 1P events from a MessageBus.
21+
22+
## Attributes
23+
24+
* `annotations` (*type:* `map()`, *default:* `nil`) - Optional. Resource annotations.
25+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time.
26+
* `cryptoKeyName` (*type:* `String.t`, *default:* `nil`) - Optional. 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/*`.
27+
* `destination` (*type:* `String.t`, *default:* `nil`) - Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
28+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Resource display name.
29+
* `etag` (*type:* `String.t`, *default:* `nil`) - Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
30+
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Resource labels.
31+
* `loggingConfig` (*type:* `GoogleApi.Eventarc.V1.Model.LoggingConfig.t`, *default:* `nil`) - Optional. Config to control Platform logging for the GoogleApiSource.
32+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}
33+
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
34+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last-modified time.
35+
"""
36+
37+
use GoogleApi.Gax.ModelBase
38+
39+
@type t :: %__MODULE__{
40+
:annotations => map() | nil,
41+
:createTime => DateTime.t() | nil,
42+
:cryptoKeyName => String.t() | nil,
43+
:destination => String.t() | nil,
44+
:displayName => String.t() | nil,
45+
:etag => String.t() | nil,
46+
:labels => map() | nil,
47+
:loggingConfig => GoogleApi.Eventarc.V1.Model.LoggingConfig.t() | nil,
48+
:name => String.t() | nil,
49+
:uid => String.t() | nil,
50+
:updateTime => DateTime.t() | nil
51+
}
52+
53+
field(:annotations, type: :map)
54+
field(:createTime, as: DateTime)
55+
field(:cryptoKeyName)
56+
field(:destination)
57+
field(:displayName)
58+
field(:etag)
59+
field(:labels, type: :map)
60+
field(:loggingConfig, as: GoogleApi.Eventarc.V1.Model.LoggingConfig)
61+
field(:name)
62+
field(:uid)
63+
field(:updateTime, as: DateTime)
64+
end
65+
66+
defimpl Poison.Decoder, for: GoogleApi.Eventarc.V1.Model.GoogleApiSource do
67+
def decode(value, options) do
68+
GoogleApi.Eventarc.V1.Model.GoogleApiSource.decode(value, options)
69+
end
70+
end
71+
72+
defimpl Poison.Encoder, for: GoogleApi.Eventarc.V1.Model.GoogleApiSource do
73+
def encode(value, options) do
74+
GoogleApi.Gax.ModelBase.encode(value, options)
75+
end
76+
end
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestination do
19+
@moduledoc """
20+
Represents a target of an invocation over HTTP.
21+
22+
## Attributes
23+
24+
* `authenticationConfig` (*type:* `GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig.t`, *default:* `nil`) - Optional. An authentication config used to authenticate message requests, such that destinations can verify the source. For example, this can be used with private GCP destinations that require GCP credentials to access like Cloud Run. This field is optional and should be set only by users interested in authenticated push
25+
* `httpEndpoint` (*type:* `GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationHttpEndpoint.t`, *default:* `nil`) - Optional. An HTTP endpoint destination described by an URI. If a DNS FQDN is provided as the endpoint, Pipeline will create a peering zone to the consumer VPC and forward DNS requests to the VPC specified by network config to resolve the service endpoint. See: https://cloud.google.com/dns/docs/zones/zones-overview#peering_zones
26+
* `messageBus` (*type:* `String.t`, *default:* `nil`) - Optional. The resource name of the Message Bus to which events should be published. The Message Bus resource should exist in the same project as the Pipeline. Format: `projects/{project}/locations/{location}/messageBuses/{message_bus}`
27+
* `networkConfig` (*type:* `GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationNetworkConfig.t`, *default:* `nil`) - Optional. Network config is used to configure how Pipeline resolves and connects to a destination.
28+
* `outputPayloadFormat` (*type:* `GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineMessagePayloadFormat.t`, *default:* `nil`) - Optional. The message format before it is delivered to the destination. If not set, the message will be delivered in the format it was originally delivered to the Pipeline. This field can only be set if Pipeline.input_payload_format is also set.
29+
* `topic` (*type:* `String.t`, *default:* `nil`) - Optional. The resource name of the Pub/Sub topic to which events should be published. Format: `projects/{project}/locations/{location}/topics/{topic}`
30+
* `workflow` (*type:* `String.t`, *default:* `nil`) - Optional. The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the Pipeline. Format: `projects/{project}/locations/{location}/workflows/{workflow}`
31+
"""
32+
33+
use GoogleApi.Gax.ModelBase
34+
35+
@type t :: %__MODULE__{
36+
:authenticationConfig =>
37+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig.t()
38+
| nil,
39+
:httpEndpoint =>
40+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationHttpEndpoint.t()
41+
| nil,
42+
:messageBus => String.t() | nil,
43+
:networkConfig =>
44+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationNetworkConfig.t()
45+
| nil,
46+
:outputPayloadFormat =>
47+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineMessagePayloadFormat.t()
48+
| nil,
49+
:topic => String.t() | nil,
50+
:workflow => String.t() | nil
51+
}
52+
53+
field(:authenticationConfig,
54+
as: GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig
55+
)
56+
57+
field(:httpEndpoint,
58+
as: GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationHttpEndpoint
59+
)
60+
61+
field(:messageBus)
62+
63+
field(:networkConfig,
64+
as: GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationNetworkConfig
65+
)
66+
67+
field(:outputPayloadFormat,
68+
as: GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineMessagePayloadFormat
69+
)
70+
71+
field(:topic)
72+
field(:workflow)
73+
end
74+
75+
defimpl Poison.Decoder, for: GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestination do
76+
def decode(value, options) do
77+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestination.decode(value, options)
78+
end
79+
end
80+
81+
defimpl Poison.Encoder, for: GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestination do
82+
def encode(value, options) do
83+
GoogleApi.Gax.ModelBase.encode(value, options)
84+
end
85+
end
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig do
19+
@moduledoc """
20+
Represents a config used to authenticate message requests.
21+
22+
## Attributes
23+
24+
* `googleOidc` (*type:* `GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken.t`, *default:* `nil`) - Optional. This authenticate method will apply Google OIDC tokens signed by a GCP service account to the requests.
25+
* `oauthToken` (*type:* `GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken.t`, *default:* `nil`) - Optional. If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:googleOidc =>
32+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken.t()
33+
| nil,
34+
:oauthToken =>
35+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken.t()
36+
| nil
37+
}
38+
39+
field(:googleOidc,
40+
as:
41+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken
42+
)
43+
44+
field(:oauthToken,
45+
as:
46+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken
47+
)
48+
end
49+
50+
defimpl Poison.Decoder,
51+
for: GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig do
52+
def decode(value, options) do
53+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig.decode(
54+
value,
55+
options
56+
)
57+
end
58+
end
59+
60+
defimpl Poison.Encoder,
61+
for: GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig do
62+
def encode(value, options) do
63+
GoogleApi.Gax.ModelBase.encode(value, options)
64+
end
65+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken do
19+
@moduledoc """
20+
Contains information needed for generating an [OAuth token](https://developers.google.com/identity/protocols/OAuth2). This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
21+
22+
## Attributes
23+
24+
* `scope` (*type:* `String.t`, *default:* `nil`) - Optional. OAuth scope to be used for generating OAuth access token. If not specified, "https://www.googleapis.com/auth/cloud-platform" will be used.
25+
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Required. Service account email used to generate the [OAuth token](https://developers.google.com/identity/protocols/OAuth2). The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. Eventarc service agents must have roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline to create OAuth2 tokens for authenticated requests.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:scope => String.t() | nil,
32+
:serviceAccount => String.t() | nil
33+
}
34+
35+
field(:scope)
36+
field(:serviceAccount)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken do
42+
def decode(value, options) do
43+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.Eventarc.V1.Model.GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end

0 commit comments

Comments
 (0)