diff --git a/api_names_out.yaml b/api_names_out.yaml index e1387ad55..6d686c81e 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -103767,9 +103767,12 @@ "/eventarc:v1beta1/eventarc.projects.locations.triggers.create": create_project_location_trigger "/eventarc:v1beta1/eventarc.projects.locations.triggers.create/parent": parent "/eventarc:v1beta1/eventarc.projects.locations.triggers.create/triggerId": trigger_id +"/eventarc:v1beta1/eventarc.projects.locations.triggers.create/validateOnly": validate_only "/eventarc:v1beta1/eventarc.projects.locations.triggers.delete": delete_project_location_trigger +"/eventarc:v1beta1/eventarc.projects.locations.triggers.delete/allowMissing": allow_missing "/eventarc:v1beta1/eventarc.projects.locations.triggers.delete/etag": etag "/eventarc:v1beta1/eventarc.projects.locations.triggers.delete/name": name +"/eventarc:v1beta1/eventarc.projects.locations.triggers.delete/validateOnly": validate_only "/eventarc:v1beta1/eventarc.projects.locations.triggers.get": get_project_location_trigger "/eventarc:v1beta1/eventarc.projects.locations.triggers.get/name": name "/eventarc:v1beta1/eventarc.projects.locations.triggers.getIamPolicy": get_project_location_trigger_iam_policy @@ -103781,8 +103784,10 @@ "/eventarc:v1beta1/eventarc.projects.locations.triggers.list/pageToken": page_token "/eventarc:v1beta1/eventarc.projects.locations.triggers.list/parent": parent "/eventarc:v1beta1/eventarc.projects.locations.triggers.patch": patch_project_location_trigger +"/eventarc:v1beta1/eventarc.projects.locations.triggers.patch/allowMissing": allow_missing "/eventarc:v1beta1/eventarc.projects.locations.triggers.patch/name": name "/eventarc:v1beta1/eventarc.projects.locations.triggers.patch/updateMask": update_mask +"/eventarc:v1beta1/eventarc.projects.locations.triggers.patch/validateOnly": validate_only "/eventarc:v1beta1/eventarc.projects.locations.triggers.setIamPolicy": set_trigger_iam_policy "/eventarc:v1beta1/eventarc.projects.locations.triggers.setIamPolicy/resource": resource "/eventarc:v1beta1/eventarc.projects.locations.triggers.testIamPermissions": test_trigger_iam_permissions diff --git a/generated/google/apis/eventarc_v1beta1.rb b/generated/google/apis/eventarc_v1beta1.rb index a6588b9b4..8805ba2f3 100644 --- a/generated/google/apis/eventarc_v1beta1.rb +++ b/generated/google/apis/eventarc_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/eventarc module EventarcV1beta1 VERSION = 'V1beta1' - REVISION = '20201113' + REVISION = '20201203' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/eventarc_v1beta1/classes.rb b/generated/google/apis/eventarc_v1beta1/classes.rb index 5aad4100b..2e8804392 100644 --- a/generated/google/apis/eventarc_v1beta1/classes.rb +++ b/generated/google/apis/eventarc_v1beta1/classes.rb @@ -435,15 +435,14 @@ module Google class MatchingCriteria include Google::Apis::Core::Hashable - # Required. The name of a CloudEvents atrribute. Currently, only a subset of + # Required. The name of a CloudEvents attribute. Currently, only a subset of # attributes can be specified. All triggers MUST provide a matching criteria for - # attribute 'type'. Event types specify what event type has attributes are - # allowed based on + # the 'type' attribute. # Corresponds to the JSON property `attribute` # @return [String] attr_accessor :attribute - # Required. The value for the attribute + # Required. The value for the attribute. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -676,14 +675,14 @@ module Google # The name of the Pub/Sub subscription created and managed by Eventarc system as # a transport for the event delivery. The value must be in the form of `projects/ - # `PROJECT_ID`/subscriptions/`SUBSCRIPTION_NAME` + # `PROJECT_ID`/subscriptions/`SUBSCRIPTION_NAME``. # Corresponds to the JSON property `subscription` # @return [String] attr_accessor :subscription # The name of the Pub/Sub topic created and managed by Eventarc system as a # transport for the event delivery. The value must be in the form of `projects/` - # PROJECT_ID`/topics/`TOPIC_NAME` + # PROJECT_ID`/topics/`TOPIC_NAME``. # Corresponds to the JSON property `topic` # @return [String] attr_accessor :topic @@ -873,14 +872,14 @@ module Google attr_accessor :etag # Required. The criteria by which events are filtered. Only events that match - # with this critera will be sent to the destinations. + # with this criteria will be sent to the destination. # Corresponds to the JSON property `matchingCriteria` # @return [Array] attr_accessor :matching_criteria # Required. The resource name of the trigger. Must be unique within the location - # on the project. Format: projects/`project`/locations/`location`/triggers/` - # trigger` + # on the project and must in `projects/`project`/locations/`location`/triggers/` + # trigger`` format. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/eventarc_v1beta1/service.rb b/generated/google/apis/eventarc_v1beta1/service.rb index cfbdded94..2ac696fae 100644 --- a/generated/google/apis/eventarc_v1beta1/service.rb +++ b/generated/google/apis/eventarc_v1beta1/service.rb @@ -272,6 +272,9 @@ module Google # @param [Google::Apis::EventarcV1beta1::Trigger] trigger_object # @param [String] trigger_id # Required. The user-provided ID to be assigned to the trigger. + # @param [Boolean] validate_only + # Required. If set, validate the request and preview the review, but do not + # actually post it. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -289,7 +292,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_trigger(parent, trigger_object = nil, trigger_id: nil, fields: nil, quota_user: nil, options: nil, &block) + 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, 'v1beta1/{+parent}/triggers', options) command.request_representation = Google::Apis::EventarcV1beta1::Trigger::Representation command.request_object = trigger_object @@ -297,6 +300,7 @@ module Google command.response_class = Google::Apis::EventarcV1beta1::Operation 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) @@ -305,9 +309,15 @@ module Google # Delete a single trigger. # @param [String] name # Required. The name of the trigger to be deleted. + # @param [Boolean] allow_missing + # If set to true, and the trigger is not found, the request will succeed but no + # action will be taken on the server. # @param [String] etag # If provided, the trigger will only be deleted if the etag matches the current # etag on the resource. + # @param [Boolean] validate_only + # Required. If set, validate the request and preview the review, but do not + # actually post it. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -325,12 +335,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_location_trigger(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) + 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, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::EventarcV1beta1::Operation::Representation command.response_class = Google::Apis::EventarcV1beta1::Operation 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) @@ -456,13 +468,19 @@ module Google # Update a single trigger. # @param [String] name # Required. The resource name of the trigger. Must be unique within the location - # on the project. Format: projects/`project`/locations/`location`/triggers/` - # trigger` + # on the project and must in `projects/`project`/locations/`location`/triggers/` + # trigger`` format. # @param [Google::Apis::EventarcV1beta1::Trigger] trigger_object + # @param [Boolean] allow_missing + # If set to true, and the trigger is not found, a new trigger will be created. + # In this situation, `update_mask` is ignored. # @param [String] update_mask # The fields to be updated; only fields explicitly provided will be updated. If # no field mask is provided, all provided fields in the request will be updated. # To update all fields, provide a field mask of "*". + # @param [Boolean] validate_only + # Required. If set, validate the request and preview the review, but do not + # actually post it. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -480,14 +498,16 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_project_location_trigger(name, trigger_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + 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, 'v1beta1/{+name}', options) command.request_representation = Google::Apis::EventarcV1beta1::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::EventarcV1beta1::Operation::Representation command.response_class = Google::Apis::EventarcV1beta1::Operation 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) diff --git a/generated/google/apis/eventarc_v1beta1/synth.metadata b/generated/google/apis/eventarc_v1beta1/synth.metadata index c997c1675..58cddde25 100644 --- a/generated/google/apis/eventarc_v1beta1/synth.metadata +++ b/generated/google/apis/eventarc_v1beta1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "80ec0b967cd5a5684bfef8245037ac83f2801982" + "sha": "ba14d0ec60e6d407a96d52bb29b6b93fb65bfbc6" } } ]