Skip to content

Commit 5b60269

Browse files
feat: Automated regeneration of eventarc v1 client (#10942)
Auto-created at 2022-07-03 11:38:31 +0000 using the toys pull request generator.
1 parent a2126bc commit 5b60269

File tree

6 files changed

+149
-8
lines changed

6 files changed

+149
-8
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142261,6 +142261,7 @@
142261142261
"/eventarc:v1/Channel": channel
142262142262
"/eventarc:v1/Channel/activationToken": activation_token
142263142263
"/eventarc:v1/Channel/createTime": create_time
142264+
"/eventarc:v1/Channel/cryptoKeyName": crypto_key_name
142264142265
"/eventarc:v1/Channel/name": name
142265142266
"/eventarc:v1/Channel/provider": provider
142266142267
"/eventarc:v1/Channel/pubsubTopic": pubsub_topic
@@ -142310,6 +142311,10 @@
142310142311
"/eventarc:v1/GKE/namespace": namespace
142311142312
"/eventarc:v1/GKE/path": path
142312142313
"/eventarc:v1/GKE/service": service
142314+
"/eventarc:v1/GoogleChannelConfig": google_channel_config
142315+
"/eventarc:v1/GoogleChannelConfig/cryptoKeyName": crypto_key_name
142316+
"/eventarc:v1/GoogleChannelConfig/name": name
142317+
"/eventarc:v1/GoogleChannelConfig/updateTime": update_time
142313142318
"/eventarc:v1/GoogleLongrunningCancelOperationRequest": google_longrunning_cancel_operation_request
142314142319
"/eventarc:v1/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response
142315142320
"/eventarc:v1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token
@@ -142463,6 +142468,8 @@
142463142468
"/eventarc:v1/eventarc.projects.locations.channels.testIamPermissions/resource": resource
142464142469
"/eventarc:v1/eventarc.projects.locations.get": get_project_location
142465142470
"/eventarc:v1/eventarc.projects.locations.get/name": name
142471+
"/eventarc:v1/eventarc.projects.locations.getGoogleChannelConfig": get_project_location_google_channel_config
142472+
"/eventarc:v1/eventarc.projects.locations.getGoogleChannelConfig/name": name
142466142473
"/eventarc:v1/eventarc.projects.locations.list": list_project_locations
142467142474
"/eventarc:v1/eventarc.projects.locations.list/filter": filter
142468142475
"/eventarc:v1/eventarc.projects.locations.list/name": name
@@ -142516,6 +142523,9 @@
142516142523
"/eventarc:v1/eventarc.projects.locations.triggers.setIamPolicy/resource": resource
142517142524
"/eventarc:v1/eventarc.projects.locations.triggers.testIamPermissions": test_trigger_iam_permissions
142518142525
"/eventarc:v1/eventarc.projects.locations.triggers.testIamPermissions/resource": resource
142526+
"/eventarc:v1/eventarc.projects.locations.updateGoogleChannelConfig": update_project_location_google_channel_config
142527+
"/eventarc:v1/eventarc.projects.locations.updateGoogleChannelConfig/name": name
142528+
"/eventarc:v1/eventarc.projects.locations.updateGoogleChannelConfig/updateMask": update_mask
142519142529
"/eventarc:v1/fields": fields
142520142530
"/eventarc:v1/key": key
142521142531
"/eventarc:v1/quotaUser": quota_user

generated/google-apis-eventarc_v1/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Release history for google-apis-eventarc_v1
22

3-
### v0.28.0 (2022-06-30)
3+
### v0.28.0 (2022-07-03)
44

5+
* Regenerated from discovery document revision 20220628
56
* Regenerated using generator version 0.8.0
67

78
### v0.27.0 (2022-06-20)

generated/google-apis-eventarc_v1/lib/google/apis/eventarc_v1/classes.rb

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ class Channel
182182
# @return [String]
183183
attr_accessor :create_time
184184

185+
# Optional. Resource name of a KMS crypto key (managed by the user) used to
186+
# encrypt/decrypt their event data. It must match the pattern `projects/*/
187+
# locations/*/keyRings/*/cryptoKeys/*`.
188+
# Corresponds to the JSON property `cryptoKeyName`
189+
# @return [String]
190+
attr_accessor :crypto_key_name
191+
185192
# Required. The resource name of the channel. Must be unique within the location
186193
# on the project and must be in `projects/`project`/locations/`location`/
187194
# channels/`channel_id`` format.
@@ -228,6 +235,7 @@ def initialize(**args)
228235
def update!(**args)
229236
@activation_token = args[:activation_token] if args.key?(:activation_token)
230237
@create_time = args[:create_time] if args.key?(:create_time)
238+
@crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name)
231239
@name = args[:name] if args.key?(:name)
232240
@provider = args[:provider] if args.key?(:provider)
233241
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
@@ -267,8 +275,8 @@ class ChannelConnection
267275
# @return [String]
268276
attr_accessor :name
269277

270-
# Output only. / Output only. Server assigned ID of the resource. The server
271-
# guarantees uniqueness and immutability until deleted.
278+
# Output only. Server assigned ID of the resource. The server guarantees
279+
# uniqueness and immutability until deleted.
272280
# Corresponds to the JSON property `uid`
273281
# @return [String]
274282
attr_accessor :uid
@@ -608,6 +616,43 @@ def update!(**args)
608616
end
609617
end
610618

619+
# A GoogleChannelConfig is a resource that stores the custom settings respected
620+
# by Eventarc first-party triggers in the matching region. Once configured,
621+
# first-party event data will be protected using the specified custom managed
622+
# encryption key instead of Google-managed encryption keys.
623+
class GoogleChannelConfig
624+
include Google::Apis::Core::Hashable
625+
626+
# Optional. Resource name of a KMS crypto key (managed by the user) used to
627+
# encrypt/decrypt their event data. It must match the pattern `projects/*/
628+
# locations/*/keyRings/*/cryptoKeys/*`.
629+
# Corresponds to the JSON property `cryptoKeyName`
630+
# @return [String]
631+
attr_accessor :crypto_key_name
632+
633+
# Required. The resource name of the config. Must be in the format of, `projects/
634+
# `project`/locations/`location`/googleChannelConfig`.
635+
# Corresponds to the JSON property `name`
636+
# @return [String]
637+
attr_accessor :name
638+
639+
# Output only. The last-modified time.
640+
# Corresponds to the JSON property `updateTime`
641+
# @return [String]
642+
attr_accessor :update_time
643+
644+
def initialize(**args)
645+
update!(**args)
646+
end
647+
648+
# Update properties of this object
649+
def update!(**args)
650+
@crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name)
651+
@name = args[:name] if args.key?(:name)
652+
@update_time = args[:update_time] if args.key?(:update_time)
653+
end
654+
end
655+
611656
# The request message for Operations.CancelOperation.
612657
class GoogleLongrunningCancelOperationRequest
613658
include Google::Apis::Core::Hashable
@@ -756,7 +801,7 @@ class ListChannelConnectionsResponse
756801
# @return [Array<Google::Apis::EventarcV1::ChannelConnection>]
757802
attr_accessor :channel_connections
758803

759-
# A page token that can be sent to ListChannelConnections to request the next
804+
# A page token that can be sent to `ListChannelConnections` to request the next
760805
# page. If this is empty, then there are no more pages.
761806
# Corresponds to the JSON property `nextPageToken`
762807
# @return [String]
@@ -788,7 +833,7 @@ class ListChannelsResponse
788833
# @return [Array<Google::Apis::EventarcV1::Channel>]
789834
attr_accessor :channels
790835

791-
# A page token that can be sent to ListChannels to request the next page. If
836+
# A page token that can be sent to `ListChannels` to request the next page. If
792837
# this is empty, then there are no more pages.
793838
# Corresponds to the JSON property `nextPageToken`
794839
# @return [String]
@@ -840,7 +885,7 @@ def update!(**args)
840885
class ListProvidersResponse
841886
include Google::Apis::Core::Hashable
842887

843-
# A page token that can be sent to ListProviders to request the next page. If
888+
# A page token that can be sent to `ListProviders` to request the next page. If
844889
# this is empty, then there are no more pages.
845890
# Corresponds to the JSON property `nextPageToken`
846891
# @return [String]
@@ -872,7 +917,7 @@ def update!(**args)
872917
class ListTriggersResponse
873918
include Google::Apis::Core::Hashable
874919

875-
# A page token that can be sent to ListTriggers to request the next page. If
920+
# A page token that can be sent to `ListTriggers` to request the next page. If
876921
# this is empty, then there are no more pages.
877922
# Corresponds to the JSON property `nextPageToken`
878923
# @return [String]

generated/google-apis-eventarc_v1/lib/google/apis/eventarc_v1/gem_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module EventarcV1
2222
GENERATOR_VERSION = "0.8.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20220607"
25+
REVISION = "20220628"
2626
end
2727
end
2828
end

generated/google-apis-eventarc_v1/lib/google/apis/eventarc_v1/representations.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
100100
include Google::Apis::Core::JsonObjectSupport
101101
end
102102

103+
class GoogleChannelConfig
104+
class Representation < Google::Apis::Core::JsonRepresentation; end
105+
106+
include Google::Apis::Core::JsonObjectSupport
107+
end
108+
103109
class GoogleLongrunningCancelOperationRequest
104110
class Representation < Google::Apis::Core::JsonRepresentation; end
105111

@@ -252,6 +258,7 @@ class Channel
252258
class Representation < Google::Apis::Core::JsonRepresentation
253259
property :activation_token, as: 'activationToken'
254260
property :create_time, as: 'createTime'
261+
property :crypto_key_name, as: 'cryptoKeyName'
255262
property :name, as: 'name'
256263
property :provider, as: 'provider'
257264
property :pubsub_topic, as: 'pubsubTopic'
@@ -351,6 +358,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
351358
end
352359
end
353360

361+
class GoogleChannelConfig
362+
# @private
363+
class Representation < Google::Apis::Core::JsonRepresentation
364+
property :crypto_key_name, as: 'cryptoKeyName'
365+
property :name, as: 'name'
366+
property :update_time, as: 'updateTime'
367+
end
368+
end
369+
354370
class GoogleLongrunningCancelOperationRequest
355371
# @private
356372
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-eventarc_v1/lib/google/apis/eventarc_v1/service.rb

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,36 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
7979
execute_or_queue_command(command, &block)
8080
end
8181

82+
# Get a GoogleChannelConfig
83+
# @param [String] name
84+
# Required. The name of the config to get.
85+
# @param [String] fields
86+
# Selector specifying which fields to include in a partial response.
87+
# @param [String] quota_user
88+
# Available to use for quota purposes for server-side applications. Can be any
89+
# arbitrary string assigned to a user, but should not exceed 40 characters.
90+
# @param [Google::Apis::RequestOptions] options
91+
# Request-specific options
92+
#
93+
# @yield [result, err] Result & error if block supplied
94+
# @yieldparam result [Google::Apis::EventarcV1::GoogleChannelConfig] parsed result object
95+
# @yieldparam err [StandardError] error object if request failed
96+
#
97+
# @return [Google::Apis::EventarcV1::GoogleChannelConfig]
98+
#
99+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
100+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
101+
# @raise [Google::Apis::AuthorizationError] Authorization is required
102+
def get_project_location_google_channel_config(name, fields: nil, quota_user: nil, options: nil, &block)
103+
command = make_simple_command(:get, 'v1/{+name}', options)
104+
command.response_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation
105+
command.response_class = Google::Apis::EventarcV1::GoogleChannelConfig
106+
command.params['name'] = name unless name.nil?
107+
command.query['fields'] = fields unless fields.nil?
108+
command.query['quotaUser'] = quota_user unless quota_user.nil?
109+
execute_or_queue_command(command, &block)
110+
end
111+
82112
# Lists information about the supported locations for this service.
83113
# @param [String] name
84114
# The resource that owns the locations collection, if applicable.
@@ -122,6 +152,45 @@ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, f
122152
execute_or_queue_command(command, &block)
123153
end
124154

155+
# Update a single GoogleChannelConfig
156+
# @param [String] name
157+
# Required. The resource name of the config. Must be in the format of, `projects/
158+
# `project`/locations/`location`/googleChannelConfig`.
159+
# @param [Google::Apis::EventarcV1::GoogleChannelConfig] google_channel_config_object
160+
# @param [String] update_mask
161+
# The fields to be updated; only fields explicitly provided are updated. If no
162+
# field mask is provided, all provided fields in the request are updated. To
163+
# update all fields, provide a field mask of "*".
164+
# @param [String] fields
165+
# Selector specifying which fields to include in a partial response.
166+
# @param [String] quota_user
167+
# Available to use for quota purposes for server-side applications. Can be any
168+
# arbitrary string assigned to a user, but should not exceed 40 characters.
169+
# @param [Google::Apis::RequestOptions] options
170+
# Request-specific options
171+
#
172+
# @yield [result, err] Result & error if block supplied
173+
# @yieldparam result [Google::Apis::EventarcV1::GoogleChannelConfig] parsed result object
174+
# @yieldparam err [StandardError] error object if request failed
175+
#
176+
# @return [Google::Apis::EventarcV1::GoogleChannelConfig]
177+
#
178+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180+
# @raise [Google::Apis::AuthorizationError] Authorization is required
181+
def update_project_location_google_channel_config(name, google_channel_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
182+
command = make_simple_command(:patch, 'v1/{+name}', options)
183+
command.request_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation
184+
command.request_object = google_channel_config_object
185+
command.response_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation
186+
command.response_class = Google::Apis::EventarcV1::GoogleChannelConfig
187+
command.params['name'] = name unless name.nil?
188+
command.query['updateMask'] = update_mask unless update_mask.nil?
189+
command.query['fields'] = fields unless fields.nil?
190+
command.query['quotaUser'] = quota_user unless quota_user.nil?
191+
execute_or_queue_command(command, &block)
192+
end
193+
125194
# Create a new ChannelConnection in a particular project and location.
126195
# @param [String] parent
127196
# Required. The parent collection in which to add this channel connection.

0 commit comments

Comments
 (0)