From d07a243fb743c82c9528f9e16cd7db00e123e656 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 14 Nov 2019 00:38:09 +0000 Subject: [PATCH] Autogenerated update (2019-11-14) Update: - bigqueryreservation_v1beta1 - cloudsearch_v1 - containeranalysis_v1alpha1 - containeranalysis_v1beta1 - dataproc_v1 - dataproc_v1beta2 - iam_v1 - servicebroker_v1 - servicebroker_v1alpha1 - servicebroker_v1beta1 --- .../apis/bigqueryreservation_v1beta1.rb | 2 +- .../bigqueryreservation_v1beta1/classes.rb | 33 + .../representations.rb | 15 + .../bigqueryreservation_v1beta1/service.rb | 112 +- generated/google/apis/cloudsearch_v1.rb | 16 +- .../google/apis/cloudsearch_v1/classes.rb | 135 +- .../apis/cloudsearch_v1/representations.rb | 75 - .../google/apis/cloudsearch_v1/service.rb | 49 +- .../google/apis/containeranalysis_v1alpha1.rb | 2 +- .../containeranalysis_v1alpha1/classes.rb | 17 + .../google/apis/containeranalysis_v1beta1.rb | 2 +- .../apis/containeranalysis_v1beta1/classes.rb | 17 + generated/google/apis/datacatalog_v1beta1.rb | 35 + .../apis/datacatalog_v1beta1/classes.rb | 1324 ++++++++++++++++ .../datacatalog_v1beta1/representations.rb | 549 +++++++ .../apis/datacatalog_v1beta1/service.rb | 1347 +++++++++++++++++ generated/google/apis/dataproc_v1.rb | 2 +- generated/google/apis/dataproc_v1/classes.rb | 79 +- .../apis/dataproc_v1/representations.rb | 22 + generated/google/apis/dataproc_v1/service.rb | 21 +- generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 6 +- .../google/apis/dataproc_v1beta2/service.rb | 21 +- generated/google/apis/iam_v1.rb | 2 +- generated/google/apis/iam_v1/classes.rb | 17 + generated/google/apis/servicebroker_v1.rb | 2 +- .../google/apis/servicebroker_v1/classes.rb | 28 +- .../google/apis/servicebroker_v1alpha1.rb | 2 +- .../apis/servicebroker_v1alpha1/classes.rb | 28 +- .../google/apis/servicebroker_v1beta1.rb | 2 +- .../apis/servicebroker_v1beta1/classes.rb | 28 +- 31 files changed, 3673 insertions(+), 319 deletions(-) create mode 100644 generated/google/apis/datacatalog_v1beta1.rb create mode 100644 generated/google/apis/datacatalog_v1beta1/classes.rb create mode 100644 generated/google/apis/datacatalog_v1beta1/representations.rb create mode 100644 generated/google/apis/datacatalog_v1beta1/service.rb diff --git a/generated/google/apis/bigqueryreservation_v1beta1.rb b/generated/google/apis/bigqueryreservation_v1beta1.rb index e6e61ce17..b01f4eb45 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryreservationV1beta1 VERSION = 'V1beta1' - REVISION = '20191029' + REVISION = '20191106' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryreservation_v1beta1/classes.rb b/generated/google/apis/bigqueryreservation_v1beta1/classes.rb index 2a67e6a75..77671320a 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/classes.rb @@ -56,6 +56,39 @@ module Google end end + # Represents a BI Reservation. + class BiReservation + include Google::Apis::Core::Hashable + + # The resource name of the singleton BI reservation. + # Reservation names have the form + # `projects/`project_id`/locations/`location_id`/bireservation`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Size of a reservation, in bytes. + # Corresponds to the JSON property `size` + # @return [Fixnum] + attr_accessor :size + + # Output only. The last update timestamp of a reservation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @size = args[:size] if args.key?(:size) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + # Capacity commitment is a way to purchase compute capacity for BigQuery jobs # (in the form of slots) with some minimum committed period of usage. Capacity # commitment is immutable and cannot be deleted until the end of the commitment diff --git a/generated/google/apis/bigqueryreservation_v1beta1/representations.rb b/generated/google/apis/bigqueryreservation_v1beta1/representations.rb index 6d62d5dcf..1810955bf 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/representations.rb @@ -28,6 +28,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BiReservation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CapacityCommitment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -109,6 +115,15 @@ module Google end end + class BiReservation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :size, :numeric_string => true, as: 'size' + property :update_time, as: 'updateTime' + end + end + class CapacityCommitment # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/bigqueryreservation_v1beta1/service.rb b/generated/google/apis/bigqueryreservation_v1beta1/service.rb index be096c2a4..af9c45740 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/service.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/service.rb @@ -77,6 +77,37 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves a BI reservation. + # @param [String] name + # Name of the requested reservation, for example: + # `projects/`project_id`/locations/`location_id`/bireservation` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BigqueryreservationV1beta1::BiReservation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryreservationV1beta1::BiReservation] + # + # @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 get_project_location_bi_reservation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::BigqueryreservationV1beta1::BiReservation::Representation + command.response_class = Google::Apis::BigqueryreservationV1beta1::BiReservation + 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 + # Lists information about the supported locations for this service. # @param [String] name # The resource that owns the locations collection, if applicable. @@ -175,6 +206,83 @@ module Google execute_or_queue_command(command, &block) end + # Updates a BI reservation. + # Only fields specified in the field_mask are updated. + # Singleton BI reservation always exists with default size 0. + # In order to reserve BI capacity it needs to be updated to an amount + # greater than 0. In order to release BI capacity reservation size + # must be set to 0. + # @param [String] name + # The resource name of the singleton BI reservation. + # Reservation names have the form + # `projects/`project_id`/locations/`location_id`/bireservation`. + # @param [Google::Apis::BigqueryreservationV1beta1::BiReservation] bi_reservation_object + # @param [String] update_mask + # A list of fields to be updated in this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BigqueryreservationV1beta1::BiReservation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryreservationV1beta1::BiReservation] + # + # @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 update_project_location_bi_reservation(name, bi_reservation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::BigqueryreservationV1beta1::BiReservation::Representation + command.request_object = bi_reservation_object + command.response_representation = Google::Apis::BigqueryreservationV1beta1::BiReservation::Representation + command.response_class = Google::Apis::BigqueryreservationV1beta1::BiReservation + 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 + + # Creates a new capacity commitment resource. + # @param [String] parent + # Resource name of the parent reservation. E.g., + # projects/myproject/locations/US + # @param [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] capacity_commitment_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] + # + # @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_capacity_commitment(parent, capacity_commitment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/capacityCommitments', options) + command.request_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation + command.request_object = capacity_commitment_object + command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation + command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes a capacity commitment. Attempting to delete capacity commitment # before its commitment_end_time will fail with the error code # `google.rpc.Code.FAILED_PRECONDITION`. @@ -282,8 +390,8 @@ module Google # projects/myproject/locations/US # @param [Google::Apis::BigqueryreservationV1beta1::Reservation] reservation_object # @param [String] reservation_id - # The reservation ID. This field must only contain alphanumeric characters or - # dash. + # The reservation ID. This field must only contain lower case alphanumeric + # characters or dash. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/cloudsearch_v1.rb b/generated/google/apis/cloudsearch_v1.rb index 2c47cafe8..35c78f308 100644 --- a/generated/google/apis/cloudsearch_v1.rb +++ b/generated/google/apis/cloudsearch_v1.rb @@ -26,33 +26,33 @@ module Google # @see https://developers.google.com/cloud-search/docs/guides/ module CloudsearchV1 VERSION = 'V1' - REVISION = '20191009' + REVISION = '20191112' # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search' - # New Service: https://www.googleapis.com/auth/cloud_search.debug + # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH_DEBUG = 'https://www.googleapis.com/auth/cloud_search.debug' - # New Service: https://www.googleapis.com/auth/cloud_search.indexing + # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH_INDEXING = 'https://www.googleapis.com/auth/cloud_search.indexing' # Search your organization's data in the Cloud Search index AUTH_CLOUD_SEARCH_QUERY = 'https://www.googleapis.com/auth/cloud_search.query' - # New Service: https://www.googleapis.com/auth/cloud_search.settings + # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH_SETTINGS = 'https://www.googleapis.com/auth/cloud_search.settings' - # New Service: https://www.googleapis.com/auth/cloud_search.settings.indexing + # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH_SETTINGS_INDEXING = 'https://www.googleapis.com/auth/cloud_search.settings.indexing' - # New Service: https://www.googleapis.com/auth/cloud_search.settings.query + # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH_SETTINGS_QUERY = 'https://www.googleapis.com/auth/cloud_search.settings.query' - # New Service: https://www.googleapis.com/auth/cloud_search.stats + # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH_STATS = 'https://www.googleapis.com/auth/cloud_search.stats' - # New Service: https://www.googleapis.com/auth/cloud_search.stats.indexing + # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH_STATS_INDEXING = 'https://www.googleapis.com/auth/cloud_search.stats.indexing' end end diff --git a/generated/google/apis/cloudsearch_v1/classes.rb b/generated/google/apis/cloudsearch_v1/classes.rb index 211c134c8..7b94914a1 100644 --- a/generated/google/apis/cloudsearch_v1/classes.rb +++ b/generated/google/apis/cloudsearch_v1/classes.rb @@ -1402,101 +1402,6 @@ module Google end end - # Gmail Action restricts (i.e. read/replied/snoozed). - class GmailActionRestrict - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - end - end - - # Gmail Attachment restricts (i.e. has:attachment, has:drive, filename:pdf). - class GmailAttachmentRestrict - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - end - end - - # Gmail Folder restricts (i.e. in Drafts/Sent/Chats/User Generated Labels). - class GmailFolderRestrict - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - end - end - - # Gmail Intelligent restricts (i.e. smartlabels, important). - class GmailIntelligentRestrict - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - end - end - - # Gmail Time restricts (i.e. received today, this week). - class GmailTimeRestrict - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - end - end - # Used to provide a search operator for html properties. This is optional. # Search operators let users restrict the query to specific fields relevant # to the type of item being searched. @@ -2895,7 +2800,7 @@ module Google attr_accessor :debug_options # Maximum number of items to return. - #
The maximum and the default value is 1000 + #
The maximum value is 100 and the default value is 20. # Corresponds to the JSON property `limit` # @return [Fixnum] attr_accessor :limit @@ -3712,31 +3617,6 @@ module Google # @return [Google::Apis::CloudsearchV1::DriveTimeSpanRestrict] attr_accessor :drive_time_span_restrict - # Gmail Action restricts (i.e. read/replied/snoozed). - # Corresponds to the JSON property `gmailActionRestrict` - # @return [Google::Apis::CloudsearchV1::GmailActionRestrict] - attr_accessor :gmail_action_restrict - - # Gmail Attachment restricts (i.e. has:attachment, has:drive, filename:pdf). - # Corresponds to the JSON property `gmailAttachmentRestrict` - # @return [Google::Apis::CloudsearchV1::GmailAttachmentRestrict] - attr_accessor :gmail_attachment_restrict - - # Gmail Folder restricts (i.e. in Drafts/Sent/Chats/User Generated Labels). - # Corresponds to the JSON property `gmailFolderRestrict` - # @return [Google::Apis::CloudsearchV1::GmailFolderRestrict] - attr_accessor :gmail_folder_restrict - - # Gmail Intelligent restricts (i.e. smartlabels, important). - # Corresponds to the JSON property `gmailIntelligentRestrict` - # @return [Google::Apis::CloudsearchV1::GmailIntelligentRestrict] - attr_accessor :gmail_intelligent_restrict - - # Gmail Time restricts (i.e. received today, this week). - # Corresponds to the JSON property `gmailTimeRestrict` - # @return [Google::Apis::CloudsearchV1::GmailTimeRestrict] - attr_accessor :gmail_time_restrict - # The search restrict (e.g. "after:2017-09-11 before:2017-09-12"). # Corresponds to the JSON property `searchOperator` # @return [String] @@ -3752,11 +3632,6 @@ module Google @drive_location_restrict = args[:drive_location_restrict] if args.key?(:drive_location_restrict) @drive_mime_type_restrict = args[:drive_mime_type_restrict] if args.key?(:drive_mime_type_restrict) @drive_time_span_restrict = args[:drive_time_span_restrict] if args.key?(:drive_time_span_restrict) - @gmail_action_restrict = args[:gmail_action_restrict] if args.key?(:gmail_action_restrict) - @gmail_attachment_restrict = args[:gmail_attachment_restrict] if args.key?(:gmail_attachment_restrict) - @gmail_folder_restrict = args[:gmail_folder_restrict] if args.key?(:gmail_folder_restrict) - @gmail_intelligent_restrict = args[:gmail_intelligent_restrict] if args.key?(:gmail_intelligent_restrict) - @gmail_time_restrict = args[:gmail_time_restrict] if args.key?(:gmail_time_restrict) @search_operator = args[:search_operator] if args.key?(:search_operator) end end @@ -4743,10 +4618,10 @@ module Google class SuggestRequest include Google::Apis::Core::Hashable - # The sources to use for suggestions. If not specified, all data sources - # from the current search application are used. - # Suggestions are based on Gmail titles. Suggestions from third party sources - # are not available. + # The sources to use for suggestions. If not specified, the data sources + # are taken from the current search application. + # NOTE: Suggestions are supported only for third party data sources and + # people (i.e. PredefinedSource.PERSON). # Corresponds to the JSON property `dataSourceRestrictions` # @return [Array] attr_accessor :data_source_restrictions diff --git a/generated/google/apis/cloudsearch_v1/representations.rb b/generated/google/apis/cloudsearch_v1/representations.rb index a6019c59f..2b2702c65 100644 --- a/generated/google/apis/cloudsearch_v1/representations.rb +++ b/generated/google/apis/cloudsearch_v1/representations.rb @@ -310,36 +310,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GmailActionRestrict - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GmailAttachmentRestrict - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GmailFolderRestrict - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GmailIntelligentRestrict - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GmailTimeRestrict - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class HtmlOperatorOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1368,41 +1338,6 @@ module Google end end - class GmailActionRestrict - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - end - end - - class GmailAttachmentRestrict - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - end - end - - class GmailFolderRestrict - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - end - end - - class GmailIntelligentRestrict - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - end - end - - class GmailTimeRestrict - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - end - end - class HtmlOperatorOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2009,16 +1944,6 @@ module Google property :drive_time_span_restrict, as: 'driveTimeSpanRestrict', class: Google::Apis::CloudsearchV1::DriveTimeSpanRestrict, decorator: Google::Apis::CloudsearchV1::DriveTimeSpanRestrict::Representation - property :gmail_action_restrict, as: 'gmailActionRestrict', class: Google::Apis::CloudsearchV1::GmailActionRestrict, decorator: Google::Apis::CloudsearchV1::GmailActionRestrict::Representation - - property :gmail_attachment_restrict, as: 'gmailAttachmentRestrict', class: Google::Apis::CloudsearchV1::GmailAttachmentRestrict, decorator: Google::Apis::CloudsearchV1::GmailAttachmentRestrict::Representation - - property :gmail_folder_restrict, as: 'gmailFolderRestrict', class: Google::Apis::CloudsearchV1::GmailFolderRestrict, decorator: Google::Apis::CloudsearchV1::GmailFolderRestrict::Representation - - property :gmail_intelligent_restrict, as: 'gmailIntelligentRestrict', class: Google::Apis::CloudsearchV1::GmailIntelligentRestrict, decorator: Google::Apis::CloudsearchV1::GmailIntelligentRestrict::Representation - - property :gmail_time_restrict, as: 'gmailTimeRestrict', class: Google::Apis::CloudsearchV1::GmailTimeRestrict, decorator: Google::Apis::CloudsearchV1::GmailTimeRestrict::Representation - property :search_operator, as: 'searchOperator' end end diff --git a/generated/google/apis/cloudsearch_v1/service.rb b/generated/google/apis/cloudsearch_v1/service.rb index ffd6291c5..c2cb602b8 100644 --- a/generated/google/apis/cloudsearch_v1/service.rb +++ b/generated/google/apis/cloudsearch_v1/service.rb @@ -49,6 +49,7 @@ module Google end # Checks whether an item is accessible by specified principal. + # **Note:** This API requires an admin account to execute. # @param [String] name # Item name, format: # datasources/`source_id`/items/`item_id` @@ -88,6 +89,7 @@ module Google # Fetches the item whose viewUrl exactly matches that of the URL provided # in the request. + # **Note:** This API requires an admin account to execute. # @param [String] name # Source name, format: # datasources/`source_id` @@ -122,6 +124,7 @@ module Google end # List all unmapped identities for a specific item. + # **Note:** This API requires an admin account to execute. # @param [String] parent # The name of the item, in the following format: # datasources/`source_id`/items/`ID` @@ -164,6 +167,7 @@ module Google end # Lists names of items associated with an unmapped identity. + # **Note:** This API requires an admin account to execute. # @param [String] parent # The name of the identity source, in the following format: # identitysources/`source_id`` @@ -210,6 +214,7 @@ module Google end # Lists unmapped user identities for an identity source. + # **Note:** This API requires an admin account to execute. # @param [String] parent # The name of the identity source, in the following format: # identitysources/`source_id` @@ -255,6 +260,7 @@ module Google end # Deletes the schema of a data source. + # **Note:** This API requires an admin or service account to execute. # @param [String] name # Name of the data source to delete Schema. Format: # datasources/`source_id` @@ -290,6 +296,7 @@ module Google end # Gets the schema of a data source. + # **Note:** This API requires an admin or service account to execute. # @param [String] name # Name of the data source to get Schema. Format: # datasources/`source_id` @@ -324,7 +331,10 @@ module Google execute_or_queue_command(command, &block) end - # Updates the schema of a data source. + # Updates the schema of a data source. This method does not perform + # incremental updates to the schema. Instead, this method updates the schema + # by overwriting the entire schema. + # **Note:** This API requires an admin or service account to execute. # @param [String] name # Name of the data source to update Schema. Format: # datasources/`source_id` @@ -799,6 +809,7 @@ module Google # For additional information, see # [Create a content connector using the REST API](https://developers.google.com/ # cloud-search/docs/guides/content-connector#rest). + # **Note:** This API requires a service account to execute. # @param [String] resource_name # Name of the media that is being downloaded. See # ReadRequest.resource_name. @@ -878,6 +889,7 @@ module Google # the most relevant results from a user query. The results can come from # G Suite Apps, such as Gmail or Google Drive, or they can come from data # that you have indexed from a third party. + # **Note:** This API requires a standard end user account to execute. # @param [Google::Apis::CloudsearchV1::SearchRequest] search_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -908,6 +920,7 @@ module Google end # Provides suggestions for autocompleting the query. + # **Note:** This API requires a standard end user account to execute. # @param [Google::Apis::CloudsearchV1::SuggestRequest] suggest_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -938,6 +951,7 @@ module Google end # Returns list of sources that user can use for Search and Suggest APIs. + # **Note:** This API requires a standard end user account to execute. # @param [String] page_token # Number of sources to return in the response. # @param [Boolean] request_options_debug_options_enable_debugging @@ -997,6 +1011,7 @@ module Google end # Creates a datasource. + # **Note:** This API requires an admin account to execute. # @param [Google::Apis::CloudsearchV1::DataSource] data_source_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1027,6 +1042,7 @@ module Google end # Deletes a datasource. + # **Note:** This API requires an admin account to execute. # @param [String] name # Name of the datasource. # Format: datasources/`source_id`. @@ -1062,6 +1078,7 @@ module Google end # Gets a datasource. + # **Note:** This API requires an admin account to execute. # @param [String] name # Name of the datasource resource. # Format: datasources/`source_id`. @@ -1097,6 +1114,7 @@ module Google end # Lists datasources. + # **Note:** This API requires an admin account to execute. # @param [Boolean] debug_options_enable_debugging # If you are asked by Google to help with debugging, set this field. # Otherwise, ignore this field. @@ -1136,6 +1154,7 @@ module Google end # Updates a datasource. + # **Note:** This API requires an admin account to execute. # @param [String] name # Name of the datasource resource. # Format: datasources/`source_id`. @@ -1171,6 +1190,7 @@ module Google end # Creates a search application. + # **Note:** This API requires an admin account to execute. # @param [Google::Apis::CloudsearchV1::SearchApplication] search_application_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1201,6 +1221,7 @@ module Google end # Deletes a search application. + # **Note:** This API requires an admin account to execute. # @param [String] name # The name of the search application to be deleted. #
Format: applications/`application_id`. @@ -1236,6 +1257,7 @@ module Google end # Gets the specified search application. + # **Note:** This API requires an admin account to execute. # @param [String] name # Name of the search application. #
Format: applications/`application_id`. @@ -1271,6 +1293,7 @@ module Google end # Lists all search applications. + # **Note:** This API requires an admin account to execute. # @param [Boolean] debug_options_enable_debugging # If you are asked by Google to help with debugging, set this field. # Otherwise, ignore this field. @@ -1310,6 +1333,7 @@ module Google # Resets a search application to default settings. This will return an empty # response. + # **Note:** This API requires an admin account to execute. # @param [String] name # The name of the search application to be reset. #
Format: applications/`application_id`. @@ -1344,6 +1368,7 @@ module Google end # Updates a search application. + # **Note:** This API requires an admin account to execute. # @param [String] name # Name of the Search Application. #
Format: searchapplications/`application_id`. @@ -1380,6 +1405,7 @@ module Google # Gets indexed item statistics aggreggated across all data sources. This # API only returns statistics for previous dates; it doesn't return # statistics for the current day. + # **Note:** This API requires a standard end user account to execute. # @param [Fixnum] from_date_day # Day of month. Must be from 1 to 31 and valid for the year and month. # @param [Fixnum] from_date_month @@ -1424,7 +1450,8 @@ module Google execute_or_queue_command(command, &block) end - # Get the query statistics for customer + # Get the query statistics for customer. + # **Note:** This API requires a standard end user account to execute. # @param [Fixnum] from_date_day # Day of month. Must be from 1 to 31 and valid for the year and month. # @param [Fixnum] from_date_month @@ -1469,7 +1496,9 @@ module Google execute_or_queue_command(command, &block) end - # Get the # of search sessions for the customer + # Get the # of search sessions, % of successful sessions with a click query + # statistics for customer. + # **Note:** This API requires a standard end user account to execute. # @param [Fixnum] from_date_day # Day of month. Must be from 1 to 31 and valid for the year and month. # @param [Fixnum] from_date_month @@ -1514,7 +1543,8 @@ module Google execute_or_queue_command(command, &block) end - # Get the users statistics for customer + # Get the users statistics for customer. + # **Note:** This API requires a standard end user account to execute. # @param [Fixnum] from_date_day # Day of month. Must be from 1 to 31 and valid for the year and month. # @param [Fixnum] from_date_month @@ -1560,6 +1590,7 @@ module Google end # Gets indexed item statistics for a single data source. + # **Note:** This API requires a standard end user account to execute. # @param [String] name # The resource id of the data source to retrieve statistics for, # in the following format: "datasources/`source_id`" @@ -1608,7 +1639,8 @@ module Google execute_or_queue_command(command, &block) end - # Get the query statistics for search application + # Get the query statistics for search application. + # **Note:** This API requires a standard end user account to execute. # @param [String] name # The resource id of the search application query stats, in the following # format: searchapplications/`application_id` @@ -1657,7 +1689,9 @@ module Google execute_or_queue_command(command, &block) end - # Get the # of search sessions for the search application + # Get the # of search sessions, % of successful sessions with a click query + # statistics for search application. + # **Note:** This API requires a standard end user account to execute. # @param [String] name # The resource id of the search application session stats, in the following # format: searchapplications/`application_id` @@ -1706,7 +1740,8 @@ module Google execute_or_queue_command(command, &block) end - # Get the users statistics for search application + # Get the users statistics for search application. + # **Note:** This API requires a standard end user account to execute. # @param [String] name # The resource id of the search application session stats, in the following # format: searchapplications/`application_id` diff --git a/generated/google/apis/containeranalysis_v1alpha1.rb b/generated/google/apis/containeranalysis_v1alpha1.rb index 2ec4d6e80..abf92ef13 100644 --- a/generated/google/apis/containeranalysis_v1alpha1.rb +++ b/generated/google/apis/containeranalysis_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-analysis/api/reference/rest/ module ContaineranalysisV1alpha1 VERSION = 'V1alpha1' - REVISION = '20190930' + REVISION = '20191108' # 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/containeranalysis_v1alpha1/classes.rb b/generated/google/apis/containeranalysis_v1alpha1/classes.rb index 114a5f64c..2242f8b62 100644 --- a/generated/google/apis/containeranalysis_v1alpha1/classes.rb +++ b/generated/google/apis/containeranalysis_v1alpha1/classes.rb @@ -210,6 +210,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example,`alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` diff --git a/generated/google/apis/containeranalysis_v1beta1.rb b/generated/google/apis/containeranalysis_v1beta1.rb index 0fcced5ed..63d93eb4c 100644 --- a/generated/google/apis/containeranalysis_v1beta1.rb +++ b/generated/google/apis/containeranalysis_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-analysis/api/reference/rest/ module ContaineranalysisV1beta1 VERSION = 'V1beta1' - REVISION = '20190930' + REVISION = '20191108' # 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/containeranalysis_v1beta1/classes.rb b/generated/google/apis/containeranalysis_v1beta1/classes.rb index 708033d82..a640c7171 100644 --- a/generated/google/apis/containeranalysis_v1beta1/classes.rb +++ b/generated/google/apis/containeranalysis_v1beta1/classes.rb @@ -283,6 +283,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example,`alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` diff --git a/generated/google/apis/datacatalog_v1beta1.rb b/generated/google/apis/datacatalog_v1beta1.rb new file mode 100644 index 000000000..a85b4cc5f --- /dev/null +++ b/generated/google/apis/datacatalog_v1beta1.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/datacatalog_v1beta1/service.rb' +require 'google/apis/datacatalog_v1beta1/classes.rb' +require 'google/apis/datacatalog_v1beta1/representations.rb' + +module Google + module Apis + # Google Cloud Data Catalog API + # + # A fully managed and highly scalable data discovery and metadata management + # service. + # + # @see https://cloud.google.com/data-catalog/docs/ + module DatacatalogV1beta1 + VERSION = 'V1beta1' + REVISION = '20191104' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/datacatalog_v1beta1/classes.rb b/generated/google/apis/datacatalog_v1beta1/classes.rb new file mode 100644 index 000000000..094298e2d --- /dev/null +++ b/generated/google/apis/datacatalog_v1beta1/classes.rb @@ -0,0 +1,1324 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DatacatalogV1beta1 + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::DatacatalogV1beta1::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@example.com` . + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::DatacatalogV1beta1::GetPolicyOptions] + attr_accessor :options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) + end + end + + # Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. + # Context: + # https://cloud.google.com/bigquery/docs/partitioned-tables# + # partitioning_versus_sharding + class GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec + include Google::Apis::Core::Hashable + + # Output only. The Data Catalog resource name of the dataset entry the current + # table + # belongs to, for example, + # `projects/`project_id`/locations/`location`/entrygroups/`entry_group_id`/ + # entries/`entry_id``. + # Corresponds to the JSON property `dataset` + # @return [String] + attr_accessor :dataset + + # Output only. Total number of shards. + # Corresponds to the JSON property `shardCount` + # @return [Fixnum] + attr_accessor :shard_count + + # Output only. The table name prefix of the shards. The name of any given shard + # is + # `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the + # `table_prefix` is `MyTable`. + # Corresponds to the JSON property `tablePrefix` + # @return [String] + attr_accessor :table_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataset = args[:dataset] if args.key?(:dataset) + @shard_count = args[:shard_count] if args.key?(:shard_count) + @table_prefix = args[:table_prefix] if args.key?(:table_prefix) + end + end + + # Describes a BigQuery table. + class GoogleCloudDatacatalogV1beta1BigQueryTableSpec + include Google::Apis::Core::Hashable + + # Output only. The table source type. + # Corresponds to the JSON property `tableSourceType` + # @return [String] + attr_accessor :table_source_type + + # Normal BigQuery table spec. + # Corresponds to the JSON property `tableSpec` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TableSpec] + attr_accessor :table_spec + + # Table view specification. + # Corresponds to the JSON property `viewSpec` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ViewSpec] + attr_accessor :view_spec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @table_source_type = args[:table_source_type] if args.key?(:table_source_type) + @table_spec = args[:table_spec] if args.key?(:table_spec) + @view_spec = args[:view_spec] if args.key?(:view_spec) + end + end + + # Representation of a column within a schema. Columns could be nested inside + # other columns. + class GoogleCloudDatacatalogV1beta1ColumnSchema + include Google::Apis::Core::Hashable + + # Required. Name of the column. + # Corresponds to the JSON property `column` + # @return [String] + attr_accessor :column + + # Optional. Description of the column. Default value is an empty string. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. A column's mode indicates whether the values in this column are + # required, + # nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are supported. + # Default mode is `NULLABLE`. + # Corresponds to the JSON property `mode` + # @return [String] + attr_accessor :mode + + # Optional. Schema of sub-columns. A column can have zero or more sub-columns. + # Corresponds to the JSON property `subcolumns` + # @return [Array] + attr_accessor :subcolumns + + # Required. Type of the column. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @column = args[:column] if args.key?(:column) + @description = args[:description] if args.key?(:description) + @mode = args[:mode] if args.key?(:mode) + @subcolumns = args[:subcolumns] if args.key?(:subcolumns) + @type = args[:type] if args.key?(:type) + end + end + + # Entry Metadata. + # A Data Catalog Entry resource represents another resource in Google + # Cloud Platform, such as a BigQuery dataset or a Cloud Pub/Sub topic. + # Clients can use the `linked_resource` field in the Entry resource to refer to + # the original resource ID of the source system. + # An Entry resource contains resource details, such as its schema. An Entry can + # also be used to attach flexible metadata, such as a + # Tag. + class GoogleCloudDatacatalogV1beta1Entry + include Google::Apis::Core::Hashable + + # Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. + # Context: + # https://cloud.google.com/bigquery/docs/partitioned-tables# + # partitioning_versus_sharding + # Corresponds to the JSON property `bigqueryDateShardedSpec` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec] + attr_accessor :bigquery_date_sharded_spec + + # Describes a BigQuery table. + # Corresponds to the JSON property `bigqueryTableSpec` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryTableSpec] + attr_accessor :bigquery_table_spec + + # Entry description, which can consist of several sentences or paragraphs + # that describe entry contents. Default value is an empty string. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Display information such as title and description. A short name to identify + # the entry, for example, "Analytics Data - Jan 2011". Default value is an + # empty string. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Describes a Cloud Storage fileset entry. + # Corresponds to the JSON property `gcsFilesetSpec` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFilesetSpec] + attr_accessor :gcs_fileset_spec + + # Output only. The resource this metadata entry refers to. + # For Google Cloud Platform resources, `linked_resource` is the [full name of + # the + # resource](https://cloud.google.com/apis/design/resource_names# + # full_resource_name). + # For example, the `linked_resource` for a table resource from BigQuery is: + # * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/ + # tableId + # Corresponds to the JSON property `linkedResource` + # @return [String] + attr_accessor :linked_resource + + # The Data Catalog resource name of the entry in URL format. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id` + # Note that this Entry and its child resources may not actually be stored in + # the location in this name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema). + # Corresponds to the JSON property `schema` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Schema] + attr_accessor :schema + + # Timestamps about this resource according to a particular system. + # Corresponds to the JSON property `sourceSystemTimestamps` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps] + attr_accessor :source_system_timestamps + + # The type of the entry. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bigquery_date_sharded_spec = args[:bigquery_date_sharded_spec] if args.key?(:bigquery_date_sharded_spec) + @bigquery_table_spec = args[:bigquery_table_spec] if args.key?(:bigquery_table_spec) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @gcs_fileset_spec = args[:gcs_fileset_spec] if args.key?(:gcs_fileset_spec) + @linked_resource = args[:linked_resource] if args.key?(:linked_resource) + @name = args[:name] if args.key?(:name) + @schema = args[:schema] if args.key?(:schema) + @source_system_timestamps = args[:source_system_timestamps] if args.key?(:source_system_timestamps) + @type = args[:type] if args.key?(:type) + end + end + + # EntryGroup Metadata. + # An EntryGroup resource represents a logical grouping of zero or more + # Data Catalog Entry resources. + class GoogleCloudDatacatalogV1beta1EntryGroup + include Google::Apis::Core::Hashable + + # Timestamps about this resource according to a particular system. + # Corresponds to the JSON property `dataCatalogTimestamps` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps] + attr_accessor :data_catalog_timestamps + + # Entry group description, which can consist of several sentences or + # paragraphs that describe entry group contents. Default value is an empty + # string. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A short name to identify the entry group, for example, + # "analytics data - jan 2011". Default value is an empty string. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the entry group in URL format. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id` + # Note that this EntryGroup and its child resources may not actually be + # stored in the location in this name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_catalog_timestamps = args[:data_catalog_timestamps] if args.key?(:data_catalog_timestamps) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + + # + class GoogleCloudDatacatalogV1beta1FieldType + include Google::Apis::Core::Hashable + + # Represents an enum type. + # Corresponds to the JSON property `enumType` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldTypeEnumType] + attr_accessor :enum_type + + # Represents primitive types - string, bool etc. + # Corresponds to the JSON property `primitiveType` + # @return [String] + attr_accessor :primitive_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enum_type = args[:enum_type] if args.key?(:enum_type) + @primitive_type = args[:primitive_type] if args.key?(:primitive_type) + end + end + + # + class GoogleCloudDatacatalogV1beta1FieldTypeEnumType + include Google::Apis::Core::Hashable + + # Required on create; optional on update. The set of allowed values for + # this enum. This set must not be empty, the display names of the values in + # this set must not be empty and the display names of the values must be + # case-insensitively unique within this set. Currently, enum values can + # only be added to the list of allowed values. Deletion and renaming of + # enum values are not supported. Can have up to 500 allowed values. + # Corresponds to the JSON property `allowedValues` + # @return [Array] + attr_accessor :allowed_values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allowed_values = args[:allowed_values] if args.key?(:allowed_values) + end + end + + # + class GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue + include Google::Apis::Core::Hashable + + # Required. The display name of the enum value. Must not be an empty string. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + end + end + + # Specifications of a single file in Cloud Storage. + class GoogleCloudDatacatalogV1beta1GcsFileSpec + include Google::Apis::Core::Hashable + + # Required. The full file path. Example: `gs://bucket_name/a/b.txt`. + # Corresponds to the JSON property `filePath` + # @return [String] + attr_accessor :file_path + + # Timestamps about this resource according to a particular system. + # Corresponds to the JSON property `gcsTimestamps` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps] + attr_accessor :gcs_timestamps + + # Output only. The size of the file, in bytes. + # Corresponds to the JSON property `sizeBytes` + # @return [Fixnum] + attr_accessor :size_bytes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_path = args[:file_path] if args.key?(:file_path) + @gcs_timestamps = args[:gcs_timestamps] if args.key?(:gcs_timestamps) + @size_bytes = args[:size_bytes] if args.key?(:size_bytes) + end + end + + # Describes a Cloud Storage fileset entry. + class GoogleCloudDatacatalogV1beta1GcsFilesetSpec + include Google::Apis::Core::Hashable + + # Required. Patterns to identify a set of files in Google Cloud Storage. + # Examples of valid file_patterns: + # * `gs://bucket_name/*`: matches all files in `bucket_name` + # * `gs://bucket_name/file*`: matches files prefixed by `file` in + # `bucket_name` + # * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match + # `a/*/b` pattern, such as `a/c/b`, `a/d/b` + # * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + # Corresponds to the JSON property `filePatterns` + # @return [Array] + attr_accessor :file_patterns + + # Output only. Sample files contained in this fileset, not all files contained + # in this + # fileset are represented here. + # Corresponds to the JSON property `sampleGcsFileSpecs` + # @return [Array] + attr_accessor :sample_gcs_file_specs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_patterns = args[:file_patterns] if args.key?(:file_patterns) + @sample_gcs_file_specs = args[:sample_gcs_file_specs] if args.key?(:sample_gcs_file_specs) + end + end + + # Response message for + # ListTags. + class GoogleCloudDatacatalogV1beta1ListTagsResponse + include Google::Apis::Core::Hashable + + # Token to retrieve the next page of results. It is set to empty if no items + # remain in results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Tag details. + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @tags = args[:tags] if args.key?(:tags) + end + end + + # Request message for + # RenameTagTemplateField. + class GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest + include Google::Apis::Core::Hashable + + # Required. The new ID of this tag template field. For example, `my_new_field`. + # Corresponds to the JSON property `newTagTemplateFieldId` + # @return [String] + attr_accessor :new_tag_template_field_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @new_tag_template_field_id = args[:new_tag_template_field_id] if args.key?(:new_tag_template_field_id) + end + end + + # Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema). + class GoogleCloudDatacatalogV1beta1Schema + include Google::Apis::Core::Hashable + + # Required. Schema of columns. A maximum of 10,000 columns and sub-columns can + # be + # specified. + # Corresponds to the JSON property `columns` + # @return [Array] + attr_accessor :columns + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @columns = args[:columns] if args.key?(:columns) + end + end + + # Request message for + # SearchCatalog. + class GoogleCloudDatacatalogV1beta1SearchCatalogRequest + include Google::Apis::Core::Hashable + + # Specifies the ordering of results, currently supported case-sensitive + # choices are: + # * `relevance`, only supports desecending + # * `last_access_timestamp [asc|desc]`, defaults to descending if not + # specified + # * `last_modified_timestamp [asc|desc]`, defaults to descending if not + # specified + # If not specified, defaults to `relevance` descending. + # Corresponds to the JSON property `orderBy` + # @return [String] + attr_accessor :order_by + + # Number of results in the search page. If <=0 then defaults to 10. Max limit + # for page_size is 1000. Throws an invalid argument for page_size > 1000. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # Optional. Pagination token returned in an earlier + # SearchCatalogResponse.next_page_token, which + # indicates that this is a continuation of a prior + # SearchCatalogRequest + # call, and that the system should return the next page of data. If empty, + # the first page is returned. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Required. The query string in search query syntax. The query must be non-empty. + # Query strings can be simple as "x" or more qualified as: + # * name:x + # * column:x + # * description:y + # Note: Query tokens need to have a minimum of 3 characters for substring + # matching to work correctly. See [Data Catalog Search + # Syntax](/data-catalog/docs/how-to/search-reference) for more information. + # Corresponds to the JSON property `query` + # @return [String] + attr_accessor :query + + # Required. The scope of this search request. + # Corresponds to the JSON property `scope` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope] + attr_accessor :scope + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @order_by = args[:order_by] if args.key?(:order_by) + @page_size = args[:page_size] if args.key?(:page_size) + @page_token = args[:page_token] if args.key?(:page_token) + @query = args[:query] if args.key?(:query) + @scope = args[:scope] if args.key?(:scope) + end + end + + # + class GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope + include Google::Apis::Core::Hashable + + # If `true`, include Google Cloud Platform (GCP) public datasets in the + # search results. Info on GCP public datasets is available at + # https://cloud.google.com/public-datasets/. By default, GCP public + # datasets are excluded. + # Corresponds to the JSON property `includeGcpPublicDatasets` + # @return [Boolean] + attr_accessor :include_gcp_public_datasets + alias_method :include_gcp_public_datasets?, :include_gcp_public_datasets + + # Data Catalog tries to automatically choose the right corpus of data to + # search through. You can ensure an organization is included by adding it + # to `include_org_ids`. You can ensure a project's org is included with + # `include_project_ids`. You must specify at least one organization + # using `include_org_ids` or `include_project_ids` in all search requests. + # List of organization IDs to search within. To find your organization ID, + # follow instructions in + # https://cloud.google.com/resource-manager/docs/creating-managing-organization. + # Corresponds to the JSON property `includeOrgIds` + # @return [Array] + attr_accessor :include_org_ids + + # List of project IDs to search within. To learn more about the + # distinction between project names/IDs/numbers, go to + # https://cloud.google.com/docs/overview/#projects. + # Corresponds to the JSON property `includeProjectIds` + # @return [Array] + attr_accessor :include_project_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @include_gcp_public_datasets = args[:include_gcp_public_datasets] if args.key?(:include_gcp_public_datasets) + @include_org_ids = args[:include_org_ids] if args.key?(:include_org_ids) + @include_project_ids = args[:include_project_ids] if args.key?(:include_project_ids) + end + end + + # Response message for + # SearchCatalog. + class GoogleCloudDatacatalogV1beta1SearchCatalogResponse + include Google::Apis::Core::Hashable + + # The token that can be used to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Search results. + # Corresponds to the JSON property `results` + # @return [Array] + attr_accessor :results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @results = args[:results] if args.key?(:results) + end + end + + # A result that appears in the response of a search request. Each result + # captures details of one entry that matches the search. + class GoogleCloudDatacatalogV1beta1SearchCatalogResult + include Google::Apis::Core::Hashable + + # The full name of the cloud resource the entry belongs to. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name. + # Example: + # * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/ + # tableId` + # Corresponds to the JSON property `linkedResource` + # @return [String] + attr_accessor :linked_resource + + # The relative resource name of the resource in URL format. + # Examples: + # * `projects/`project_id`/locations/`location_id`/entryGroups/`entry_group_id`/ + # entries/`entry_id`` + # * `projects/`project_id`/tagTemplates/`tag_template_id`` + # Corresponds to the JSON property `relativeResourceName` + # @return [String] + attr_accessor :relative_resource_name + + # Sub-type of the search result. This is a dot-delimited description of the + # resource's full type, and is the same as the value callers would provide in + # the "type" search facet. Examples: `entry.table`, `entry.dataStream`, + # `tagTemplate`. + # Corresponds to the JSON property `searchResultSubtype` + # @return [String] + attr_accessor :search_result_subtype + + # Type of the search result. This field can be used to determine which Get + # method to call to fetch the full resource. + # Corresponds to the JSON property `searchResultType` + # @return [String] + attr_accessor :search_result_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @linked_resource = args[:linked_resource] if args.key?(:linked_resource) + @relative_resource_name = args[:relative_resource_name] if args.key?(:relative_resource_name) + @search_result_subtype = args[:search_result_subtype] if args.key?(:search_result_subtype) + @search_result_type = args[:search_result_type] if args.key?(:search_result_type) + end + end + + # Timestamps about this resource according to a particular system. + class GoogleCloudDatacatalogV1beta1SystemTimestamps + include Google::Apis::Core::Hashable + + # The creation time of the resource within the given system. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The expiration time of the resource within the given system. + # Currently only apllicable to BigQuery resources. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + # The last-modified time of the resource within the given system. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @expire_time = args[:expire_time] if args.key?(:expire_time) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Normal BigQuery table spec. + class GoogleCloudDatacatalogV1beta1TableSpec + include Google::Apis::Core::Hashable + + # Output only. If the table is a dated shard, i.e., with name pattern `[prefix] + # YYYYMMDD`, + # `grouped_entry` is the Data Catalog resource name of the date sharded + # grouped entry, for example, + # `projects/`project_id`/locations/`location`/entrygroups/`entry_group_id`/ + # entries/`entry_id``. + # Otherwise, `grouped_entry` is empty. + # Corresponds to the JSON property `groupedEntry` + # @return [String] + attr_accessor :grouped_entry + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @grouped_entry = args[:grouped_entry] if args.key?(:grouped_entry) + end + end + + # Tags are used to attach custom metadata to Data Catalog resources. Tags + # conform to the specifications within their tag template. + # See [Data Catalog IAM](/data-catalog/docs/concepts/iam) for information on + # the permissions needed to create or view tags. + class GoogleCloudDatacatalogV1beta1Tag + include Google::Apis::Core::Hashable + + # Resources like Entry can have schemas associated with them. This scope + # allows users to attach tags to an individual column based on that schema. + # For attaching a tag to a nested column, use `.` to separate the column + # names. Example: + # * `outer_column.inner_column` + # Corresponds to the JSON property `column` + # @return [String] + attr_accessor :column + + # Required. This maps the ID of a tag field to the value of and additional + # information + # about that field. Valid field IDs are defined by the tag's template. A tag + # must have at least 1 field and at most 500 fields. + # Corresponds to the JSON property `fields` + # @return [Hash] + attr_accessor :fields + + # The resource name of the tag in URL format. Example: + # * projects/`project_id`/locations/`location`/entrygroups/`entry_group_id`/ + # entries/`entry_id`/tags/`tag_id` + # where `tag_id` is a system-generated identifier. + # Note that this Tag may not actually be stored in the location in this name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The resource name of the tag template that this tag uses. Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id` + # This field cannot be modified after creation. + # Corresponds to the JSON property `template` + # @return [String] + attr_accessor :template + + # Output only. The display name of the tag template. + # Corresponds to the JSON property `templateDisplayName` + # @return [String] + attr_accessor :template_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @column = args[:column] if args.key?(:column) + @fields = args[:fields] if args.key?(:fields) + @name = args[:name] if args.key?(:name) + @template = args[:template] if args.key?(:template) + @template_display_name = args[:template_display_name] if args.key?(:template_display_name) + end + end + + # Contains the value and supporting information for a field within + # a Tag. + class GoogleCloudDatacatalogV1beta1TagField + include Google::Apis::Core::Hashable + + # Holds the value for a tag field with boolean type. + # Corresponds to the JSON property `boolValue` + # @return [Boolean] + attr_accessor :bool_value + alias_method :bool_value?, :bool_value + + # Output only. The display name of this field. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Holds the value for a tag field with double type. + # Corresponds to the JSON property `doubleValue` + # @return [Float] + attr_accessor :double_value + + # Holds an enum value. + # Corresponds to the JSON property `enumValue` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue] + attr_accessor :enum_value + + # Holds the value for a tag field with string type. + # Corresponds to the JSON property `stringValue` + # @return [String] + attr_accessor :string_value + + # Holds the value for a tag field with timestamp type. + # Corresponds to the JSON property `timestampValue` + # @return [String] + attr_accessor :timestamp_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bool_value = args[:bool_value] if args.key?(:bool_value) + @display_name = args[:display_name] if args.key?(:display_name) + @double_value = args[:double_value] if args.key?(:double_value) + @enum_value = args[:enum_value] if args.key?(:enum_value) + @string_value = args[:string_value] if args.key?(:string_value) + @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value) + end + end + + # Holds an enum value. + class GoogleCloudDatacatalogV1beta1TagFieldEnumValue + include Google::Apis::Core::Hashable + + # The display name of the enum value. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + end + end + + # A tag template defines the schema of the tags used to attach to Data Catalog + # resources. It defines the mapping of accepted field names and types that can + # be used within the tag. The tag template also controls the access to the tag. + class GoogleCloudDatacatalogV1beta1TagTemplate + include Google::Apis::Core::Hashable + + # The display name for this template. Defaults to an empty string. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Required. Map of tag template field IDs to the settings for the field. + # This map is an exhaustive list of the allowed fields. This map must contain + # at least one field and at most 500 fields. + # The keys to this map are tag template field IDs. Field IDs can contain + # letters (both uppercase and lowercase), numbers (0-9) and underscores (_). + # Field IDs must be at least 1 character long and at most + # 64 characters long. Field IDs must start with a letter or underscore. + # Corresponds to the JSON property `fields` + # @return [Hash] + attr_accessor :fields + + # The resource name of the tag template in URL format. Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id` + # Note that this TagTemplate and its child resources may not actually be + # stored in the location in this name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @fields = args[:fields] if args.key?(:fields) + @name = args[:name] if args.key?(:name) + end + end + + # The template for an individual field within a tag template. + class GoogleCloudDatacatalogV1beta1TagTemplateField + include Google::Apis::Core::Hashable + + # The display name for this field. Defaults to an empty string. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. The resource name of the tag template field in URL format. + # Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template`/ + # fields/`field` + # Note that this TagTemplateField may not actually be stored in the location + # in this name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The type of value this tag field can contain. + # Corresponds to the JSON property `type` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + end + end + + # Table view specification. + class GoogleCloudDatacatalogV1beta1ViewSpec + include Google::Apis::Core::Hashable + + # Output only. The query that defines the table view. + # Corresponds to the JSON property `viewQuery` + # @return [String] + attr_accessor :view_query + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @view_query = args[:view_query] if args.key?(:view_query) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/resourcemanager.organizationAdmin", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin + # - members: + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + class Policy + include Google::Apis::Core::Hashable + + # Associates a list of `members` to a `role`. Optionally may specify a + # `condition` that determines when binding is in effect. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten. Due to blind-set semantics of an etag-less policy, + # 'setIamPolicy' will not fail even if either of incoming or stored policy + # does not meet the version requirements. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Operations affecting conditional bindings must specify version 3. This can + # be either setting a conditional policy, modifying a conditional binding, + # or removing a conditional binding from the stored conditional policy. + # Operations on non-conditional policies may specify any valid value or + # leave the field unset. + # If no etag is provided in the call to `setIamPolicy`, any version + # compliance checks on the incoming and/or stored policy is skipped. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/resourcemanager.organizationAdmin", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin + # - members: + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::DatacatalogV1beta1::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + end + end +end diff --git a/generated/google/apis/datacatalog_v1beta1/representations.rb b/generated/google/apis/datacatalog_v1beta1/representations.rb new file mode 100644 index 000000000..65ce6e77d --- /dev/null +++ b/generated/google/apis/datacatalog_v1beta1/representations.rb @@ -0,0 +1,549 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DatacatalogV1beta1 + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1BigQueryTableSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1ColumnSchema + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1Entry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1EntryGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1FieldType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1FieldTypeEnumType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1GcsFileSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1GcsFilesetSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1ListTagsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1Schema + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1SearchCatalogRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1SearchCatalogResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1SearchCatalogResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1SystemTimestamps + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1TableSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1Tag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1TagField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1TagFieldEnumValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1TagTemplate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1TagTemplateField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1ViewSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::DatacatalogV1beta1::Expr, decorator: Google::Apis::DatacatalogV1beta1::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::DatacatalogV1beta1::GetPolicyOptions, decorator: Google::Apis::DatacatalogV1beta1::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' + end + end + + class GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dataset, as: 'dataset' + property :shard_count, :numeric_string => true, as: 'shardCount' + property :table_prefix, as: 'tablePrefix' + end + end + + class GoogleCloudDatacatalogV1beta1BigQueryTableSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :table_source_type, as: 'tableSourceType' + property :table_spec, as: 'tableSpec', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TableSpec, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TableSpec::Representation + + property :view_spec, as: 'viewSpec', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ViewSpec, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ViewSpec::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1ColumnSchema + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :column, as: 'column' + property :description, as: 'description' + property :mode, as: 'mode' + collection :subcolumns, as: 'subcolumns', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ColumnSchema, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ColumnSchema::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudDatacatalogV1beta1Entry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bigquery_date_sharded_spec, as: 'bigqueryDateShardedSpec', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec::Representation + + property :bigquery_table_spec, as: 'bigqueryTableSpec', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryTableSpec, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryTableSpec::Representation + + property :description, as: 'description' + property :display_name, as: 'displayName' + property :gcs_fileset_spec, as: 'gcsFilesetSpec', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFilesetSpec, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFilesetSpec::Representation + + property :linked_resource, as: 'linkedResource' + property :name, as: 'name' + property :schema, as: 'schema', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Schema, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Schema::Representation + + property :source_system_timestamps, as: 'sourceSystemTimestamps', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudDatacatalogV1beta1EntryGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_catalog_timestamps, as: 'dataCatalogTimestamps', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps::Representation + + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + + class GoogleCloudDatacatalogV1beta1FieldType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enum_type, as: 'enumType', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldTypeEnumType, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldTypeEnumType::Representation + + property :primitive_type, as: 'primitiveType' + end + end + + class GoogleCloudDatacatalogV1beta1FieldTypeEnumType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :allowed_values, as: 'allowedValues', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + end + end + + class GoogleCloudDatacatalogV1beta1GcsFileSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_path, as: 'filePath' + property :gcs_timestamps, as: 'gcsTimestamps', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps::Representation + + property :size_bytes, :numeric_string => true, as: 'sizeBytes' + end + end + + class GoogleCloudDatacatalogV1beta1GcsFilesetSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :file_patterns, as: 'filePatterns' + collection :sample_gcs_file_specs, as: 'sampleGcsFileSpecs', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFileSpec, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFileSpec::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1ListTagsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :tags, as: 'tags', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :new_tag_template_field_id, as: 'newTagTemplateFieldId' + end + end + + class GoogleCloudDatacatalogV1beta1Schema + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :columns, as: 'columns', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ColumnSchema, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ColumnSchema::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1SearchCatalogRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :order_by, as: 'orderBy' + property :page_size, as: 'pageSize' + property :page_token, as: 'pageToken' + property :query, as: 'query' + property :scope, as: 'scope', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :include_gcp_public_datasets, as: 'includeGcpPublicDatasets' + collection :include_org_ids, as: 'includeOrgIds' + collection :include_project_ids, as: 'includeProjectIds' + end + end + + class GoogleCloudDatacatalogV1beta1SearchCatalogResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :results, as: 'results', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogResult, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogResult::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1SearchCatalogResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :linked_resource, as: 'linkedResource' + property :relative_resource_name, as: 'relativeResourceName' + property :search_result_subtype, as: 'searchResultSubtype' + property :search_result_type, as: 'searchResultType' + end + end + + class GoogleCloudDatacatalogV1beta1SystemTimestamps + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :expire_time, as: 'expireTime' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDatacatalogV1beta1TableSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :grouped_entry, as: 'groupedEntry' + end + end + + class GoogleCloudDatacatalogV1beta1Tag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :column, as: 'column' + hash :fields, as: 'fields', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagField, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagField::Representation + + property :name, as: 'name' + property :template, as: 'template' + property :template_display_name, as: 'templateDisplayName' + end + end + + class GoogleCloudDatacatalogV1beta1TagField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bool_value, as: 'boolValue' + property :display_name, as: 'displayName' + property :double_value, as: 'doubleValue' + property :enum_value, as: 'enumValue', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue::Representation + + property :string_value, as: 'stringValue' + property :timestamp_value, as: 'timestampValue' + end + end + + class GoogleCloudDatacatalogV1beta1TagFieldEnumValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + end + end + + class GoogleCloudDatacatalogV1beta1TagTemplate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + hash :fields, as: 'fields', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField::Representation + + property :name, as: 'name' + end + end + + class GoogleCloudDatacatalogV1beta1TagTemplateField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :name, as: 'name' + property :type, as: 'type', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1ViewSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :view_query, as: 'viewQuery' + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::DatacatalogV1beta1::Binding, decorator: Google::Apis::DatacatalogV1beta1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::DatacatalogV1beta1::Policy, decorator: Google::Apis::DatacatalogV1beta1::Policy::Representation + + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + end + end +end diff --git a/generated/google/apis/datacatalog_v1beta1/service.rb b/generated/google/apis/datacatalog_v1beta1/service.rb new file mode 100644 index 000000000..4c52ac0fe --- /dev/null +++ b/generated/google/apis/datacatalog_v1beta1/service.rb @@ -0,0 +1,1347 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DatacatalogV1beta1 + # Google Cloud Data Catalog API + # + # A fully managed and highly scalable data discovery and metadata management + # service. + # + # @example + # require 'google/apis/datacatalog_v1beta1' + # + # Datacatalog = Google::Apis::DatacatalogV1beta1 # Alias the module + # service = Datacatalog::DataCatalogService.new + # + # @see https://cloud.google.com/data-catalog/docs/ + class DataCatalogService < Google::Apis::Core::BaseService + # @return [String] + # 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. + attr_accessor :key + + # @return [String] + # 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. + attr_accessor :quota_user + + def initialize + super('https://datacatalog.googleapis.com/', '') + @batch_path = 'batch' + end + + # Searches Data Catalog for multiple resources like entries, tags that + # match a query. + # This is a custom method + # (https://cloud.google.com/apis/design/custom_methods) and does not return + # the complete resource, only the resource identifier and high level + # fields. Clients can subsequentally call `Get` methods. + # Note that searches do not have full recall. There may be results that match + # your query but are not returned, even in subsequent pages of results. These + # missing results may vary across repeated calls to search. Do not rely on + # this method if you need to guarantee full recall. + # See [Data Catalog Search + # Syntax](/data-catalog/docs/how-to/search-reference) for more information. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogRequest] google_cloud_datacatalog_v1beta1_search_catalog_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogResponse] + # + # @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 search_catalogs(google_cloud_datacatalog_v1beta1_search_catalog_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/catalog:search', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogRequest::Representation + command.request_object = google_cloud_datacatalog_v1beta1_search_catalog_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Get an entry by target resource name. This method allows clients to use + # the resource name from the source Google Cloud Platform service to get the + # Data Catalog Entry. + # @param [String] linked_resource + # The full name of the Google Cloud Platform resource the Data Catalog + # entry represents. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name. + # Full names are case-sensitive. + # Examples: + # * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/ + # tableId + # * //pubsub.googleapis.com/projects/projectId/topics/topicId + # @param [String] sql_resource + # The SQL name of the entry. SQL names are case-sensitive. + # Examples: + # * `cloud_pubsub.project_id.topic_id` + # * ``pubsub.project_id.`topic.id.with.dots` `` + # * `bigquery.project_id.dataset_id.table_id` + # * `datacatalog.project_id.location_id.entry_group_id.entry_id` + # `*_id`s shoud satisfy the standard SQL rules for identifiers. + # https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] + # + # @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 lookup_entry(linked_resource: nil, sql_resource: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/entries:lookup', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry + command.query['linkedResource'] = linked_resource unless linked_resource.nil? + command.query['sqlResource'] = sql_resource unless sql_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 + + # Alpha feature. + # Creates an EntryGroup. + # The user should enable the Data Catalog API in the project identified by + # the `parent` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). + # @param [String] parent + # Required. The name of the project this entry group is in. Example: + # * projects/`project_id`/locations/`location` + # Note that this EntryGroup and its child resources may not actually be + # stored in the location in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup] google_cloud_datacatalog_v1beta1_entry_group_object + # @param [String] entry_group_id + # Required. The id of the entry group to create. + # The id must begin with a letter or underscore, contain only English + # letters, numbers and underscores, and be at most 64 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup] + # + # @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_entry_group(parent, google_cloud_datacatalog_v1beta1_entry_group_object = nil, entry_group_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/entryGroups', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup::Representation + command.request_object = google_cloud_datacatalog_v1beta1_entry_group_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup + command.params['parent'] = parent unless parent.nil? + command.query['entryGroupId'] = entry_group_id unless entry_group_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 + + # Alpha feature. + # Deletes an EntryGroup. Only entry groups that do not contain entries can be + # deleted. The user should enable the Data Catalog API in the project + # identified by the `name` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). + # @param [String] name + # Required. The name of the entry group. For example, + # `projects/`project_id`/locations/`location`/entryGroups/`entry_group_id``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Empty] + # + # @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_entry_group(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::Empty::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Alpha feature. + # Gets an EntryGroup. + # @param [String] name + # Required. The name of the entry group. For example, + # `projects/`project_id`/locations/`location`/entryGroups/`entry_group_id``. + # @param [String] read_mask + # The fields to return. If not set or empty, all fields are returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup] + # + # @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 get_project_location_entry_group(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup + command.params['name'] = name unless name.nil? + command.query['readMask'] = read_mask unless read_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 + + # Gets the access control policy for a resource. A `NOT_FOUND` error + # is returned if the resource does not exist. An empty policy is returned + # if the resource exists but does not have a policy set on it. + # Supported resources are: + # - Tag templates. + # - Entries. + # - Entry groups. + # Note, this method cannot be used to manage policies for BigQuery, Cloud + # Pub/Sub and any external Google Cloud Platform resources synced to Cloud + # Data Catalog. + # Callers must have following Google IAM permission + # - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag + # templates. + # - `datacatalog.entries.getIamPolicy` to get policies on entries. + # - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Policy] + # + # @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 get_entry_group_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Sets the access control policy for a resource. Replaces any existing + # policy. + # Supported resources are: + # - Tag templates. + # - Entries. + # - Entry groups. + # Note, this method cannot be used to manage policies for BigQuery, Cloud + # Pub/Sub and any external Google Cloud Platform resources synced to Cloud + # Data Catalog. + # Callers must have following Google IAM permission + # - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag + # templates. + # - `datacatalog.entries.setIamPolicy` to set policies on entries. + # - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Policy] + # + # @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 set_entry_group_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Returns the caller's permissions on a resource. + # If the resource does not exist, an empty set of permissions is returned + # (We don't return a `NOT_FOUND` error). + # Supported resources are: + # - Tag templates. + # - Entries. + # - Entry groups. + # Note, this method cannot be used to manage policies for BigQuery, Cloud + # Pub/Sub and any external Google Cloud Platform resources synced to Cloud + # Data Catalog. + # A caller is not required to have Google IAM permission to make this + # request. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] + # + # @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 test_entry_group_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Alpha feature. + # Creates an entry. Currently only entries of 'FILESET' type can be created. + # The user should enable the Data Catalog API in the project identified by + # the `parent` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). + # @param [String] parent + # Required. The name of the entry group this entry is in. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id` + # Note that this Entry and its child resources may not actually be stored in + # the location in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] google_cloud_datacatalog_v1beta1_entry_object + # @param [String] entry_id + # Required. The id of the entry to create. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] + # + # @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_entry_group_entry(parent, google_cloud_datacatalog_v1beta1_entry_object = nil, entry_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/entries', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry::Representation + command.request_object = google_cloud_datacatalog_v1beta1_entry_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry + command.params['parent'] = parent unless parent.nil? + command.query['entryId'] = entry_id unless entry_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 + + # Alpha feature. + # Deletes an existing entry. Only entries created through + # CreateEntry + # method can be deleted. + # The user should enable the Data Catalog API in the project identified by + # the `name` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). + # @param [String] name + # Required. The name of the entry. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Empty] + # + # @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_entry_group_entry(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::Empty::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Gets an entry. + # @param [String] name + # Required. The name of the entry. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id` + # Entry groups are logical groupings of entries. Currently, users cannot + # create/modify entry groups. They are created by Data Catalog; they include + # `@bigquery` for all BigQuery entries, and `@pubsub` for all Cloud Pub/Sub + # entries. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] + # + # @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 get_project_location_entry_group_entry(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry + 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 + + # Gets the access control policy for a resource. A `NOT_FOUND` error + # is returned if the resource does not exist. An empty policy is returned + # if the resource exists but does not have a policy set on it. + # Supported resources are: + # - Tag templates. + # - Entries. + # - Entry groups. + # Note, this method cannot be used to manage policies for BigQuery, Cloud + # Pub/Sub and any external Google Cloud Platform resources synced to Cloud + # Data Catalog. + # Callers must have following Google IAM permission + # - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag + # templates. + # - `datacatalog.entries.getIamPolicy` to get policies on entries. + # - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Policy] + # + # @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 get_entry_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Updates an existing entry. + # The user should enable the Data Catalog API in the project identified by + # the `entry.name` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). + # @param [String] name + # The Data Catalog resource name of the entry in URL format. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id` + # Note that this Entry and its child resources may not actually be stored in + # the location in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] google_cloud_datacatalog_v1beta1_entry_object + # @param [String] update_mask + # The fields to update on the entry. If absent or empty, all modifiable + # fields are updated. + # The following fields are modifiable: + # * For entries with type `DATA_STREAM`: + # * `schema` + # * For entries with type `FILESET` + # * `schema` + # * `display_name` + # * `description` + # * `gcs_fileset_spec` + # * `gcs_fileset_spec.file_patterns` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry] + # + # @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_entry_group_entry(name, google_cloud_datacatalog_v1beta1_entry_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry::Representation + command.request_object = google_cloud_datacatalog_v1beta1_entry_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry + 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 + + # Sets the access control policy for a resource. Replaces any existing + # policy. + # Supported resources are: + # - Tag templates. + # - Entries. + # - Entry groups. + # Note, this method cannot be used to manage policies for BigQuery, Cloud + # Pub/Sub and any external Google Cloud Platform resources synced to Cloud + # Data Catalog. + # Callers must have following Google IAM permission + # - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag + # templates. + # - `datacatalog.entries.setIamPolicy` to set policies on entries. + # - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Policy] + # + # @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 set_entry_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Returns the caller's permissions on a resource. + # If the resource does not exist, an empty set of permissions is returned + # (We don't return a `NOT_FOUND` error). + # Supported resources are: + # - Tag templates. + # - Entries. + # - Entry groups. + # Note, this method cannot be used to manage policies for BigQuery, Cloud + # Pub/Sub and any external Google Cloud Platform resources synced to Cloud + # Data Catalog. + # A caller is not required to have Google IAM permission to make this + # request. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] + # + # @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 test_entry_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Creates a tag on an Entry. + # Note: The project identified by the `parent` parameter for the + # [tag](/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups. + # entries.tags/create#path-parameters) + # and the + # [tag + # template](/data-catalog/docs/reference/rest/v1beta1/projects.locations. + # tagTemplates/create#path-parameters) + # used to create the tag must be from the same organization. + # @param [String] parent + # Required. The name of the resource to attach this tag to. Tags can be attached + # to + # Entries. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id` + # Note that this Tag and its child resources may not actually be stored in + # the location in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] google_cloud_datacatalog_v1beta1_tag_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] + # + # @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_entry_group_entry_tag(parent, google_cloud_datacatalog_v1beta1_tag_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/tags', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag::Representation + command.request_object = google_cloud_datacatalog_v1beta1_tag_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a tag. + # @param [String] name + # Required. The name of the tag to delete. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id`/tags/`tag_id` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Empty] + # + # @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_entry_group_entry_tag(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::Empty::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Lists the tags on an Entry. + # @param [String] parent + # Required. The name of the Data Catalog resource to list the tags of. The + # resource could be an Entry. + # @param [Fixnum] page_size + # The maximum number of tags to return. Default is 10. Max limit is 1000. + # @param [String] page_token + # Token that specifies which page is requested. If empty, the first page is + # returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTagsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTagsResponse] + # + # @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 list_project_location_entry_group_entry_tags(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/tags', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTagsResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTagsResponse + 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 + + # Updates an existing tag. + # @param [String] name + # The resource name of the tag in URL format. Example: + # * projects/`project_id`/locations/`location`/entrygroups/`entry_group_id`/ + # entries/`entry_id`/tags/`tag_id` + # where `tag_id` is a system-generated identifier. + # Note that this Tag may not actually be stored in the location in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] google_cloud_datacatalog_v1beta1_tag_object + # @param [String] update_mask + # The fields to update on the Tag. If absent or empty, all modifiable fields + # are updated. Currently the only modifiable field is the field `fields`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] + # + # @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_entry_group_entry_tag(name, google_cloud_datacatalog_v1beta1_tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag::Representation + command.request_object = google_cloud_datacatalog_v1beta1_tag_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag + 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 + + # Creates a tag template. The user should enable the Data Catalog API in + # the project identified by the `parent` parameter (see [Data Catalog + # Resource Project](/data-catalog/docs/concepts/resource-project) for more + # information). + # @param [String] parent + # Required. The name of the project and the location this template is in. + # Example: + # * projects/`project_id`/locations/`location` + # TagTemplate and its child resources may not actually be stored in the + # location in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate] google_cloud_datacatalog_v1beta1_tag_template_object + # @param [String] tag_template_id + # Required. The id of the tag template to create. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate] + # + # @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_tag_template(parent, google_cloud_datacatalog_v1beta1_tag_template_object = nil, tag_template_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/tagTemplates', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate::Representation + command.request_object = google_cloud_datacatalog_v1beta1_tag_template_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate + command.params['parent'] = parent unless parent.nil? + command.query['tagTemplateId'] = tag_template_id unless tag_template_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 + + # Deletes a tag template and all tags using the template. + # The user should enable the Data Catalog API in the project identified by + # the `name` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). + # @param [String] name + # Required. The name of the tag template to delete. Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id` + # @param [Boolean] force + # Required. Currently, this field must always be set to `true`. + # This confirms the deletion of any possible tags using this template. + # `force = false` will be supported in the future. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Empty] + # + # @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_tag_template(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::Empty::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a tag template. + # @param [String] name + # Required. The name of the tag template. Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate] + # + # @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 get_project_location_tag_template(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate + 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 + + # Gets the access control policy for a resource. A `NOT_FOUND` error + # is returned if the resource does not exist. An empty policy is returned + # if the resource exists but does not have a policy set on it. + # Supported resources are: + # - Tag templates. + # - Entries. + # - Entry groups. + # Note, this method cannot be used to manage policies for BigQuery, Cloud + # Pub/Sub and any external Google Cloud Platform resources synced to Cloud + # Data Catalog. + # Callers must have following Google IAM permission + # - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag + # templates. + # - `datacatalog.entries.getIamPolicy` to get policies on entries. + # - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Policy] + # + # @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 get_tag_template_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Updates a tag template. This method cannot be used to update the fields of + # a template. The tag template fields are represented as separate resources + # and should be updated using their own create/update/delete methods. + # The user should enable the Data Catalog API in the project identified by + # the `tag_template.name` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). + # @param [String] name + # The resource name of the tag template in URL format. Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id` + # Note that this TagTemplate and its child resources may not actually be + # stored in the location in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate] google_cloud_datacatalog_v1beta1_tag_template_object + # @param [String] update_mask + # The field mask specifies the parts of the template to overwrite. + # Allowed fields: + # * `display_name` + # If absent or empty, all of the allowed fields above will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate] + # + # @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_tag_template(name, google_cloud_datacatalog_v1beta1_tag_template_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate::Representation + command.request_object = google_cloud_datacatalog_v1beta1_tag_template_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate + 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 + + # Sets the access control policy for a resource. Replaces any existing + # policy. + # Supported resources are: + # - Tag templates. + # - Entries. + # - Entry groups. + # Note, this method cannot be used to manage policies for BigQuery, Cloud + # Pub/Sub and any external Google Cloud Platform resources synced to Cloud + # Data Catalog. + # Callers must have following Google IAM permission + # - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag + # templates. + # - `datacatalog.entries.setIamPolicy` to set policies on entries. + # - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Policy] + # + # @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 set_tag_template_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Returns the caller's permissions on a resource. + # If the resource does not exist, an empty set of permissions is returned + # (We don't return a `NOT_FOUND` error). + # Supported resources are: + # - Tag templates. + # - Entries. + # - Entry groups. + # Note, this method cannot be used to manage policies for BigQuery, Cloud + # Pub/Sub and any external Google Cloud Platform resources synced to Cloud + # Data Catalog. + # A caller is not required to have Google IAM permission to make this + # request. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] + # + # @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 test_tag_template_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::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 + + # Creates a field in a tag template. The user should enable the Data Catalog + # API in the project identified by the `parent` parameter (see + # [Data Catalog Resource + # Project](/data-catalog/docs/concepts/resource-project) for more + # information). + # @param [String] parent + # Required. The name of the project this template is in. Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id` + # Note that this TagTemplateField may not actually be stored in the location + # in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField] google_cloud_datacatalog_v1beta1_tag_template_field_object + # @param [String] tag_template_field_id + # Required. The ID of the tag template field to create. + # Field ids can contain letters (both uppercase and lowercase), numbers + # (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 + # character long and at most 128 characters long. Field IDs must also be + # unique within their template. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField] + # + # @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_tag_template_field(parent, google_cloud_datacatalog_v1beta1_tag_template_field_object = nil, tag_template_field_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/fields', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField::Representation + command.request_object = google_cloud_datacatalog_v1beta1_tag_template_field_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField + command.params['parent'] = parent unless parent.nil? + command.query['tagTemplateFieldId'] = tag_template_field_id unless tag_template_field_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 + + # Deletes a field in a tag template and all uses of that field. + # The user should enable the Data Catalog API in the project identified by + # the `name` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). + # @param [String] name + # Required. The name of the tag template field to delete. Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id`/ + # fields/`tag_template_field_id` + # @param [Boolean] force + # Required. Currently, this field must always be set to `true`. + # This confirms the deletion of this field from any tags using this field. + # `force = false` will be supported in the future. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Empty] + # + # @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_tag_template_field(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::Empty::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a field in a tag template. This method cannot be used to update the + # field type. The user should enable the Data Catalog API in the project + # identified by the `name` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). + # @param [String] name + # Required. The name of the tag template field. Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id`/ + # fields/`tag_template_field_id` + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField] google_cloud_datacatalog_v1beta1_tag_template_field_object + # @param [String] update_mask + # The field mask specifies the parts of the template to be updated. + # Allowed fields: + # * `display_name` + # * `type.enum_type` + # If `update_mask` is not set or empty, all of the allowed fields above will + # be updated. + # When updating an enum type, the provided values will be merged with the + # existing values. Therefore, enum values can only be added, existing enum + # values cannot be deleted nor renamed. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField] + # + # @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_tag_template_field(name, google_cloud_datacatalog_v1beta1_tag_template_field_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField::Representation + command.request_object = google_cloud_datacatalog_v1beta1_tag_template_field_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField + 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 + + # Renames a field in a tag template. The user should enable the Data Catalog + # API in the project identified by the `name` parameter (see [Data Catalog + # Resource Project](/data-catalog/docs/concepts/resource-project) for more + # information). + # @param [String] name + # Required. The name of the tag template. Example: + # * projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id`/ + # fields/`tag_template_field_id` + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest] google_cloud_datacatalog_v1beta1_rename_tag_template_field_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField] + # + # @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 rename_project_location_tag_template_field(name, google_cloud_datacatalog_v1beta1_rename_tag_template_field_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:rename', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest::Representation + command.request_object = google_cloud_datacatalog_v1beta1_rename_tag_template_field_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField + 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 + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index 8c1f6014a..e0cbbf1cc 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20190920' + REVISION = '20191031' # 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/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index bab2afafe..6f9dccf82 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -1168,8 +1168,6 @@ module Google include Google::Apis::Core::Hashable # Optional. The Compute Engine accelerator configuration for these instances. - # Beta Feature: This feature is still under development. It may be changed - # before final release. # Corresponds to the JSON property `accelerators` # @return [Array] attr_accessor :accelerators @@ -1214,6 +1212,12 @@ module Google # @return [Google::Apis::DataprocV1::ManagedGroupConfig] attr_accessor :managed_group_config + # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud + # Dataproc→Minimum CPU Platform. + # Corresponds to the JSON property `minCpuPlatform` + # @return [String] + attr_accessor :min_cpu_platform + # Optional. The number of VM instances in the instance group. For master # instance groups, must be set to 1. # Corresponds to the JSON property `numInstances` @@ -1233,6 +1237,7 @@ module Google @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible) @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri) @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config) + @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @num_instances = args[:num_instances] if args.key?(:num_instances) end end @@ -1357,6 +1362,12 @@ module Google # @return [Google::Apis::DataprocV1::SparkJob] attr_accessor :spark_job + # A Cloud Dataproc job for running Apache SparkR (https://spark.apache.org/docs/ + # latest/sparkr.html) applications on YARN. + # Corresponds to the JSON property `sparkRJob` + # @return [Google::Apis::DataprocV1::SparkRJob] + attr_accessor :spark_r_job + # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/ # ) queries. # Corresponds to the JSON property `sparkSqlJob` @@ -1398,6 +1409,7 @@ module Google @reference = args[:reference] if args.key?(:reference) @scheduling = args[:scheduling] if args.key?(:scheduling) @spark_job = args[:spark_job] if args.key?(:spark_job) + @spark_r_job = args[:spark_r_job] if args.key?(:spark_r_job) @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job) @status = args[:status] if args.key?(:status) @status_history = args[:status_history] if args.key?(:status_history) @@ -2183,7 +2195,7 @@ module Google # ` # "bindings": [ # ` - # "role": "role/resourcemanager.organizationAdmin", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", @@ -2427,7 +2439,7 @@ module Google # ` # "bindings": [ # ` - # "role": "role/resourcemanager.organizationAdmin", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", @@ -2595,6 +2607,65 @@ module Google end end + # A Cloud Dataproc job for running Apache SparkR (https://spark.apache.org/docs/ + # latest/sparkr.html) applications on YARN. + class SparkRJob + include Google::Apis::Core::Hashable + + # Optional. HCFS URIs of archives to be extracted in the working directory of + # Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and . + # zip. + # Corresponds to the JSON property `archiveUris` + # @return [Array] + attr_accessor :archive_uris + + # Optional. The arguments to pass to the driver. Do not include arguments, such + # as --conf, that can be set as job properties, since a collision may occur that + # causes an incorrect job submission. + # Corresponds to the JSON property `args` + # @return [Array] + attr_accessor :args + + # Optional. HCFS URIs of files to be copied to the working directory of R + # drivers and distributed tasks. Useful for naively parallel tasks. + # Corresponds to the JSON property `fileUris` + # @return [Array] + attr_accessor :file_uris + + # The runtime logging config of the job. + # Corresponds to the JSON property `loggingConfig` + # @return [Google::Apis::DataprocV1::LoggingConfig] + attr_accessor :logging_config + + # Required. The HCFS URI of the main R file to use as the driver. Must be a .R + # file. + # Corresponds to the JSON property `mainRFileUri` + # @return [String] + attr_accessor :main_r_file_uri + + # Optional. A mapping of property names to values, used to configure SparkR. + # Properties that conflict with values set by the Cloud Dataproc API may be + # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf + # and classes in user code. + # Corresponds to the JSON property `properties` + # @return [Hash] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @archive_uris = args[:archive_uris] if args.key?(:archive_uris) + @args = args[:args] if args.key?(:args) + @file_uris = args[:file_uris] if args.key?(:file_uris) + @logging_config = args[:logging_config] if args.key?(:logging_config) + @main_r_file_uri = args[:main_r_file_uri] if args.key?(:main_r_file_uri) + @properties = args[:properties] if args.key?(:properties) + end + end + # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/ # ) queries. class SparkSqlJob diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index 04bbd07c4..570fc865c 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -364,6 +364,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SparkRJob + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SparkSqlJob class Representation < Google::Apis::Core::JsonRepresentation; end @@ -737,6 +743,7 @@ module Google property :machine_type_uri, as: 'machineTypeUri' property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation + property :min_cpu_platform, as: 'minCpuPlatform' property :num_instances, as: 'numInstances' end end @@ -773,6 +780,8 @@ module Google property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation + property :spark_r_job, as: 'sparkRJob', class: Google::Apis::DataprocV1::SparkRJob, decorator: Google::Apis::DataprocV1::SparkRJob::Representation + property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation property :status, as: 'status', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation @@ -1065,6 +1074,19 @@ module Google end end + class SparkRJob + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :archive_uris, as: 'archiveUris' + collection :args, as: 'args' + collection :file_uris, as: 'fileUris' + property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation + + property :main_r_file_uri, as: 'mainRFileUri' + hash :properties, as: 'properties' + end + end + class SparkSqlJob # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dataproc_v1/service.rb b/generated/google/apis/dataproc_v1/service.rb index 9fdd68309..ff7337431 100644 --- a/generated/google/apis/dataproc_v1/service.rb +++ b/generated/google/apis/dataproc_v1/service.rb @@ -239,7 +239,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -652,7 +653,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -957,7 +959,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -1425,7 +1428,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -1749,7 +1753,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -2040,7 +2045,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -2412,7 +2418,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 05b6528dd..d8001cd02 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20190920' + REVISION = '20191031' # 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index bd035197d..ce83ac884 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -1207,8 +1207,6 @@ module Google include Google::Apis::Core::Hashable # Optional. The Compute Engine accelerator configuration for these instances. - # Beta Feature: This feature is still under development. It may be changed - # before final release. # Corresponds to the JSON property `accelerators` # @return [Array] attr_accessor :accelerators @@ -2261,7 +2259,7 @@ module Google # ` # "bindings": [ # ` - # "role": "role/resourcemanager.organizationAdmin", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", @@ -2597,7 +2595,7 @@ module Google # ` # "bindings": [ # ` - # "role": "role/resourcemanager.organizationAdmin", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", diff --git a/generated/google/apis/dataproc_v1beta2/service.rb b/generated/google/apis/dataproc_v1beta2/service.rb index 95a815c63..f333ac175 100644 --- a/generated/google/apis/dataproc_v1beta2/service.rb +++ b/generated/google/apis/dataproc_v1beta2/service.rb @@ -242,7 +242,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -661,7 +662,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -969,7 +971,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -1464,7 +1467,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -1791,7 +1795,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -2085,7 +2090,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. @@ -2463,7 +2469,8 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. + # existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and + # PERMISSION_DENIED # @param [String] resource # REQUIRED: The resource for which the policy is being specified. See the # operation documentation for the appropriate value for this field. diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index 492e97e88..8449cfc8f 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20191025' + REVISION = '20191108' # 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/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index 7dae63b90..9877d3cb1 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -225,6 +225,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example,`alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` diff --git a/generated/google/apis/servicebroker_v1.rb b/generated/google/apis/servicebroker_v1.rb index 16f25b586..a9a62bd5e 100644 --- a/generated/google/apis/servicebroker_v1.rb +++ b/generated/google/apis/servicebroker_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1 VERSION = 'V1' - REVISION = '20191107' + REVISION = '20191112' # 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/servicebroker_v1/classes.rb b/generated/google/apis/servicebroker_v1/classes.rb index 69dafcdb4..31e423a64 100644 --- a/generated/google/apis/servicebroker_v1/classes.rb +++ b/generated/google/apis/servicebroker_v1/classes.rb @@ -46,23 +46,6 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example,`alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -156,8 +139,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -168,11 +151,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/servicebroker_v1alpha1.rb b/generated/google/apis/servicebroker_v1alpha1.rb index 600a3a50b..417c10128 100644 --- a/generated/google/apis/servicebroker_v1alpha1.rb +++ b/generated/google/apis/servicebroker_v1alpha1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1alpha1 VERSION = 'V1alpha1' - REVISION = '20191107' + REVISION = '20191112' # 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/servicebroker_v1alpha1/classes.rb b/generated/google/apis/servicebroker_v1alpha1/classes.rb index 517c76d3a..ffeafbcc7 100644 --- a/generated/google/apis/servicebroker_v1alpha1/classes.rb +++ b/generated/google/apis/servicebroker_v1alpha1/classes.rb @@ -750,23 +750,6 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example,`alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -860,8 +843,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -872,11 +855,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/servicebroker_v1beta1.rb b/generated/google/apis/servicebroker_v1beta1.rb index 554b879bd..ce7ae8928 100644 --- a/generated/google/apis/servicebroker_v1beta1.rb +++ b/generated/google/apis/servicebroker_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1beta1 VERSION = 'V1beta1' - REVISION = '20191107' + REVISION = '20191112' # 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/servicebroker_v1beta1/classes.rb b/generated/google/apis/servicebroker_v1beta1/classes.rb index 847c6b545..c8571a113 100644 --- a/generated/google/apis/servicebroker_v1beta1/classes.rb +++ b/generated/google/apis/servicebroker_v1beta1/classes.rb @@ -867,23 +867,6 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example,`alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -977,8 +960,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -989,11 +972,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version