Class: Google::Apis::EventarcV1::EventarcService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::EventarcV1::EventarcService
- Defined in:
- lib/google/apis/eventarc_v1/service.rb
Overview
Eventarc API
Build event-driven applications on Google Cloud Platform.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://eventarc.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_channel(parent, channel_object = nil, channel_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Create a new channel in a particular project and location.
-
#create_project_location_channel_connection(parent, channel_connection_object = nil, channel_connection_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Create a new ChannelConnection in a particular project and location.
-
#create_project_location_trigger(parent, trigger_object = nil, trigger_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Create a new trigger in a particular project and location.
-
#delete_project_location_channel(name, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Delete a single channel.
-
#delete_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Delete a single ChannelConnection.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Empty
Deletes a long-running operation.
-
#delete_project_location_trigger(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Delete a single trigger.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Location
Gets information about a location.
-
#get_project_location_channel(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Channel
Get a single Channel.
-
#get_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ChannelConnection
Get a single ChannelConnection.
-
#get_project_location_channel_connection_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_channel_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_google_channel_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleChannelConfig
Get a GoogleChannelConfig.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_project_location_provider(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Provider
Get a single Provider.
-
#get_project_location_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Trigger
Get a single trigger.
-
#get_project_location_trigger_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Gets the access control policy for a resource.
-
#initialize ⇒ EventarcService
constructor
A new instance of EventarcService.
-
#list_project_location_channel_connections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListChannelConnectionsResponse
List channel connections.
-
#list_project_location_channels(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListChannelsResponse
List channels.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_providers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListProvidersResponse
List providers.
-
#list_project_location_triggers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListTriggersResponse
List triggers.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_channel(name, channel_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Update a single channel.
-
#patch_project_location_trigger(name, trigger_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Update a single trigger.
-
#set_channel_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Sets the access control policy on the specified resource.
-
#set_channel_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Sets the access control policy on the specified resource.
-
#set_trigger_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Sets the access control policy on the specified resource.
-
#test_channel_connection_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_channel_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_trigger_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#update_project_location_google_channel_config(name, google_channel_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleChannelConfig
Update a single GoogleChannelConfig.
Constructor Details
#initialize ⇒ EventarcService
Returns a new instance of EventarcService.
47 48 49 50 51 52 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-eventarc_v1', client_version: Google::Apis::EventarcV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns 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.
40 41 42 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns 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.
45 46 47 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Empty
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
.
796 797 798 799 800 801 802 803 804 805 806 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 796 def cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::EventarcV1::GoogleLongrunningCancelOperationRequest::Representation command.request_object = google_longrunning_cancel_operation_request_object command.response_representation = Google::Apis::EventarcV1::Empty::Representation command.response_class = Google::Apis::EventarcV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_channel(parent, channel_object = nil, channel_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Create a new channel in a particular project and location.
479 480 481 482 483 484 485 486 487 488 489 490 491 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 479 def create_project_location_channel(parent, channel_object = nil, channel_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/channels', ) command.request_representation = Google::Apis::EventarcV1::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['channelId'] = channel_id unless channel_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_channel_connection(parent, channel_connection_object = nil, channel_connection_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Create a new ChannelConnection in a particular project and location.
219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 219 def create_project_location_channel_connection(parent, channel_connection_object = nil, channel_connection_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/channelConnections', ) command.request_representation = Google::Apis::EventarcV1::ChannelConnection::Representation command.request_object = channel_connection_object command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['channelConnectionId'] = channel_connection_id unless channel_connection_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_trigger(parent, trigger_object = nil, trigger_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Create a new trigger in a particular project and location.
1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 1015 def create_project_location_trigger(parent, trigger_object = nil, trigger_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/triggers', ) command.request_representation = Google::Apis::EventarcV1::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['triggerId'] = trigger_id unless trigger_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_channel(name, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Delete a single channel.
516 517 518 519 520 521 522 523 524 525 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 516 def delete_project_location_channel(name, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Delete a single ChannelConnection.
252 253 254 255 256 257 258 259 260 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 252 def delete_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED
.
831 832 833 834 835 836 837 838 839 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 831 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::Empty::Representation command.response_class = Google::Apis::EventarcV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_trigger(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Delete a single trigger.
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 1058 def delete_project_location_trigger(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Location
Gets information about a location.
74 75 76 77 78 79 80 81 82 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 74 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::Location::Representation command.response_class = Google::Apis::EventarcV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_channel(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Channel
Get a single Channel.
547 548 549 550 551 552 553 554 555 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 547 def get_project_location_channel(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::Channel::Representation command.response_class = Google::Apis::EventarcV1::Channel command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ChannelConnection
Get a single ChannelConnection.
282 283 284 285 286 287 288 289 290 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 282 def get_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::ChannelConnection::Representation command.response_class = Google::Apis::EventarcV1::ChannelConnection command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_channel_connection_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
326 327 328 329 330 331 332 333 334 335 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 326 def get_project_location_channel_connection_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::EventarcV1::Policy::Representation command.response_class = Google::Apis::EventarcV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_channel_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
591 592 593 594 595 596 597 598 599 600 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 591 def get_project_location_channel_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::EventarcV1::Policy::Representation command.response_class = Google::Apis::EventarcV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_google_channel_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleChannelConfig
Get a GoogleChannelConfig
104 105 106 107 108 109 110 111 112 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 104 def get_project_location_google_channel_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation command.response_class = Google::Apis::EventarcV1::GoogleChannelConfig command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
862 863 864 865 866 867 868 869 870 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 862 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_provider(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Provider
Get a single Provider.
932 933 934 935 936 937 938 939 940 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 932 def get_project_location_provider(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::Provider::Representation command.response_class = Google::Apis::EventarcV1::Provider command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Trigger
Get a single trigger.
1091 1092 1093 1094 1095 1096 1097 1098 1099 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 1091 def get_project_location_trigger(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::EventarcV1::Trigger::Representation command.response_class = Google::Apis::EventarcV1::Trigger command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_trigger_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 1135 def get_project_location_trigger_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::EventarcV1::Policy::Representation command.response_class = Google::Apis::EventarcV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_channel_connections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListChannelConnectionsResponse
List channel connections.
365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 365 def list_project_location_channel_connections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/channelConnections', ) command.response_representation = Google::Apis::EventarcV1::ListChannelConnectionsResponse::Representation command.response_class = Google::Apis::EventarcV1::ListChannelConnectionsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_channels(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListChannelsResponse
List channels.
635 636 637 638 639 640 641 642 643 644 645 646 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 635 def list_project_location_channels(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/channels', ) command.response_representation = Google::Apis::EventarcV1::ListChannelsResponse::Representation command.response_class = Google::Apis::EventarcV1::ListChannelsResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
899 900 901 902 903 904 905 906 907 908 909 910 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 899 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', ) command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_providers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListProvidersResponse
List providers.
975 976 977 978 979 980 981 982 983 984 985 986 987 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 975 def list_project_location_providers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/providers', ) command.response_representation = Google::Apis::EventarcV1::ListProvidersResponse::Representation command.response_class = Google::Apis::EventarcV1::ListProvidersResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_triggers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListTriggersResponse
List triggers.
1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 1183 def list_project_location_triggers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/triggers', ) command.response_representation = Google::Apis::EventarcV1::ListTriggersResponse::Representation command.response_class = Google::Apis::EventarcV1::ListTriggersResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::ListLocationsResponse
Lists information about the supported locations for this service.
144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 144 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', ) command.response_representation = Google::Apis::EventarcV1::ListLocationsResponse::Representation command.response_class = Google::Apis::EventarcV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_channel(name, channel_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Update a single channel.
678 679 680 681 682 683 684 685 686 687 688 689 690 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 678 def patch_project_location_channel(name, channel_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::EventarcV1::Channel::Representation command.request_object = channel_object command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_trigger(name, trigger_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleLongrunningOperation
Update a single trigger.
1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 1230 def patch_project_location_trigger(name, trigger_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::EventarcV1::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_channel_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
402 403 404 405 406 407 408 409 410 411 412 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 402 def set_channel_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::EventarcV1::Policy::Representation command.response_class = Google::Apis::EventarcV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_channel_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
717 718 719 720 721 722 723 724 725 726 727 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 717 def set_channel_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::EventarcV1::Policy::Representation command.response_class = Google::Apis::EventarcV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_trigger_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 1270 def set_trigger_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::EventarcV1::Policy::Representation command.response_class = Google::Apis::EventarcV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_channel_connection_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 441 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_channel_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
756 757 758 759 760 761 762 763 764 765 766 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 756 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_trigger_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 1309 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_project_location_google_channel_config(name, google_channel_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::EventarcV1::GoogleChannelConfig
Update a single GoogleChannelConfig
183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/google/apis/eventarc_v1/service.rb', line 183 def update_project_location_google_channel_config(name, google_channel_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation command.request_object = google_channel_config_object command.response_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation command.response_class = Google::Apis::EventarcV1::GoogleChannelConfig command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |