diff --git a/generated/google/apis/alertcenter_v1beta1.rb b/generated/google/apis/alertcenter_v1beta1.rb index d57765b9f..98e14ff4f 100644 --- a/generated/google/apis/alertcenter_v1beta1.rb +++ b/generated/google/apis/alertcenter_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/admin-sdk/alertcenter/ module AlertcenterV1beta1 VERSION = 'V1beta1' - REVISION = '20200104' + REVISION = '20200116' # See and delete your domain's G Suite alerts, and send alert feedback AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts' diff --git a/generated/google/apis/alertcenter_v1beta1/classes.rb b/generated/google/apis/alertcenter_v1beta1/classes.rb index 5a8969f7b..073a44cd9 100644 --- a/generated/google/apis/alertcenter_v1beta1/classes.rb +++ b/generated/google/apis/alertcenter_v1beta1/classes.rb @@ -962,6 +962,7 @@ module Google # * Suspicious message reported # * Phishing reclassification # * Malware reclassification + # * Gmail potential employee spoofing class MailPhishing include Google::Apis::Core::Hashable @@ -986,6 +987,11 @@ module Google # @return [Array] attr_accessor :messages + # System actions on the messages. + # Corresponds to the JSON property `systemActionType` + # @return [String] + attr_accessor :system_action_type + def initialize(**args) update!(**args) end @@ -996,6 +1002,7 @@ module Google @is_internal = args[:is_internal] if args.key?(:is_internal) @malicious_entity = args[:malicious_entity] if args.key?(:malicious_entity) @messages = args[:messages] if args.key?(:messages) + @system_action_type = args[:system_action_type] if args.key?(:system_action_type) end end diff --git a/generated/google/apis/alertcenter_v1beta1/representations.rb b/generated/google/apis/alertcenter_v1beta1/representations.rb index 5f66676f8..626dd3b39 100644 --- a/generated/google/apis/alertcenter_v1beta1/representations.rb +++ b/generated/google/apis/alertcenter_v1beta1/representations.rb @@ -506,6 +506,7 @@ module Google collection :messages, as: 'messages', class: Google::Apis::AlertcenterV1beta1::GmailMessageInfo, decorator: Google::Apis::AlertcenterV1beta1::GmailMessageInfo::Representation + property :system_action_type, as: 'systemActionType' end end diff --git a/generated/google/apis/bigqueryreservation_v1.rb b/generated/google/apis/bigqueryreservation_v1.rb index 140780620..b7908a717 100644 --- a/generated/google/apis/bigqueryreservation_v1.rb +++ b/generated/google/apis/bigqueryreservation_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryreservationV1 VERSION = 'V1' - REVISION = '20191029' + REVISION = '20200116' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryreservation_v1/classes.rb b/generated/google/apis/bigqueryreservation_v1/classes.rb index 86099cba3..d716126e0 100644 --- a/generated/google/apis/bigqueryreservation_v1/classes.rb +++ b/generated/google/apis/bigqueryreservation_v1/classes.rb @@ -66,28 +66,6 @@ module Google end end - # BigQuery-specific metadata about a location. This will be set on - # google.cloud.location.Location.metadata in Cloud Location API - # responses. - class LocationMetadata - include Google::Apis::Core::Hashable - - # The legacy BigQuery location ID, e.g. “EU” for the “europe” location. - # This is for any API consumers that need the legacy “US” and “EU” locations. - # Corresponds to the JSON property `legacyLocationId` - # @return [String] - attr_accessor :legacy_location_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @legacy_location_id = args[:legacy_location_id] if args.key?(:legacy_location_id) - end - end - # This resource represents a long-running operation that is the result of a # network API call. class Operation diff --git a/generated/google/apis/bigqueryreservation_v1/representations.rb b/generated/google/apis/bigqueryreservation_v1/representations.rb index 309d91f0c..580b47abe 100644 --- a/generated/google/apis/bigqueryreservation_v1/representations.rb +++ b/generated/google/apis/bigqueryreservation_v1/representations.rb @@ -34,12 +34,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class LocationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -67,13 +61,6 @@ module Google end end - class LocationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :legacy_location_id, as: 'legacyLocationId' - end - end - class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/bigqueryreservation_v1alpha2.rb b/generated/google/apis/bigqueryreservation_v1alpha2.rb index 22b3cc554..78085479f 100644 --- a/generated/google/apis/bigqueryreservation_v1alpha2.rb +++ b/generated/google/apis/bigqueryreservation_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryreservationV1alpha2 VERSION = 'V1alpha2' - REVISION = '20191211' + REVISION = '20200116' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb b/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb index 5b32b8602..7e580e3d6 100644 --- a/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +++ b/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb @@ -140,28 +140,6 @@ module Google end end - # BigQuery-specific metadata about a location. This will be set on - # google.cloud.location.Location.metadata in Cloud Location API - # responses. - class LocationMetadata - include Google::Apis::Core::Hashable - - # The legacy BigQuery location ID, e.g. “EU” for the “europe” location. - # This is for any API consumers that need the legacy “US” and “EU” locations. - # Corresponds to the JSON property `legacyLocationId` - # @return [String] - attr_accessor :legacy_location_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @legacy_location_id = args[:legacy_location_id] if args.key?(:legacy_location_id) - end - end - # This resource represents a long-running operation that is the result of a # network API call. class Operation diff --git a/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb b/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb index 53d96e57f..b056f40a7 100644 --- a/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +++ b/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb @@ -52,12 +52,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class LocationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -134,13 +128,6 @@ module Google end end - class LocationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :legacy_location_id, as: 'legacyLocationId' - end - end - class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/bigqueryreservation_v1beta1.rb b/generated/google/apis/bigqueryreservation_v1beta1.rb index d3d7d20d6..dd17a05a9 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 = '20191211' + REVISION = '20200116' # 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 056aa73c3..5f104d8bb 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/classes.rb @@ -231,31 +231,6 @@ module Google end end - # The response message for Locations.ListLocations. - class ListLocationsResponse - include Google::Apis::Core::Hashable - - # A list of locations that matches the specified filter in the request. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # The standard List next-page token. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @locations = args[:locations] if args.key?(:locations) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - # The response for ReservationService.ListReservations. class ListReservationsResponse include Google::Apis::Core::Hashable @@ -282,75 +257,6 @@ module Google end end - # A resource that represents Google Cloud Platform location. - class Location - include Google::Apis::Core::Hashable - - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # The canonical id for this location. For example: `"us-east1"`. - # Corresponds to the JSON property `locationId` - # @return [String] - attr_accessor :location_id - - # Service-specific metadata. For example the available capacity at the given - # location. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` - # 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) - @labels = args[:labels] if args.key?(:labels) - @location_id = args[:location_id] if args.key?(:location_id) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - end - end - - # BigQuery-specific metadata about a location. This will be set on - # google.cloud.location.Location.metadata in Cloud Location API - # responses. - class LocationMetadata - include Google::Apis::Core::Hashable - - # The legacy BigQuery location ID, e.g. “EU” for the “europe” location. - # This is for any API consumers that need the legacy “US” and “EU” locations. - # Corresponds to the JSON property `legacyLocationId` - # @return [String] - attr_accessor :legacy_location_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @legacy_location_id = args[:legacy_location_id] if args.key?(:legacy_location_id) - end - end - # The request for # ReservationService.MoveAssignment. # Note: "bigquery.reservationAssignments.create" permission is required on the @@ -382,7 +288,7 @@ module Google # If false, any query using this reservation will use idle slots from other # reservations within the same admin project. If true, a query using this - # reservation will execute with the maximum slot capacity as specified above. + # reservation will execute with the slot capacity specified above at most. # Corresponds to the JSON property `ignoreIdleSlots` # @return [Boolean] attr_accessor :ignore_idle_slots @@ -394,10 +300,10 @@ module Google # @return [String] attr_accessor :name - # Maximum slots available to this reservation. A slot is a unit of - # computational power in BigQuery, and serves as the unit of parallelism. In - # a scan of a multi-partitioned table, a single slot operates on a single - # partition of the table. + # Minimum slots available to this reservation. A slot is a unit of + # computational power in BigQuery, and serves as the unit of parallelism. + # Queries using this reservation might use more slots during runtime if + # ignore_idle_slots is set to false. # If the new reservation's slot capacity exceed the parent's slot capacity or # if total slot capacity of the new reservation and its siblings exceeds the # parent's slot capacity, the request will fail with diff --git a/generated/google/apis/bigqueryreservation_v1beta1/representations.rb b/generated/google/apis/bigqueryreservation_v1beta1/representations.rb index 752ea365f..212aef687 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/representations.rb @@ -58,30 +58,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListLocationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListReservationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Location - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LocationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class MoveAssignmentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -162,15 +144,6 @@ module Google end end - class ListLocationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :locations, as: 'locations', class: Google::Apis::BigqueryreservationV1beta1::Location, decorator: Google::Apis::BigqueryreservationV1beta1::Location::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - class ListReservationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -180,24 +153,6 @@ module Google end end - class Location - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :display_name, as: 'displayName' - hash :labels, as: 'labels' - property :location_id, as: 'locationId' - hash :metadata, as: 'metadata' - property :name, as: 'name' - end - end - - class LocationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :legacy_location_id, as: 'legacyLocationId' - end - end - class MoveAssignmentRequest # @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 18fe7f305..2189e2f3c 100644 --- a/generated/google/apis/bigqueryreservation_v1beta1/service.rb +++ b/generated/google/apis/bigqueryreservation_v1beta1/service.rb @@ -47,36 +47,6 @@ module Google @batch_path = 'batch' end - # Gets information about a location. - # @param [String] name - # Resource name for the location. - # @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::Location] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::BigqueryreservationV1beta1::Location] - # - # @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(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::BigqueryreservationV1beta1::Location::Representation - command.response_class = Google::Apis::BigqueryreservationV1beta1::Location - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Retrieves a BI reservation. # @param [String] name # Name of the requested reservation, for example: @@ -108,45 +78,6 @@ module Google 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. - # @param [String] filter - # The standard list filter. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @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::ListLocationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::BigqueryreservationV1beta1::ListLocationsResponse] - # - # @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_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/locations', options) - command.response_representation = Google::Apis::BigqueryreservationV1beta1::ListLocationsResponse::Representation - command.response_class = Google::Apis::BigqueryreservationV1beta1::ListLocationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Looks up assignments for a specified resource for a particular region. # If the request is about a project: # 1) Assignments created on the project will be returned if they exist. diff --git a/generated/google/apis/containeranalysis_v1alpha1.rb b/generated/google/apis/containeranalysis_v1alpha1.rb index 2808c36f6..2c7d3f600 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 = '20191209' + REVISION = '20200120' # 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 c07276182..a611af88e 100644 --- a/generated/google/apis/containeranalysis_v1alpha1/classes.rb +++ b/generated/google/apis/containeranalysis_v1alpha1/classes.rb @@ -190,10 +190,28 @@ module Google 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" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::ContaineranalysisV1alpha1::Expr] attr_accessor :condition @@ -885,34 +903,50 @@ module Google 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" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # 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. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # 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 + # 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` diff --git a/generated/google/apis/containeranalysis_v1beta1.rb b/generated/google/apis/containeranalysis_v1beta1.rb index 39fd541ac..713a79d9c 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 = '20191209' + REVISION = '20200120' # 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 a97214047..0e7deecf9 100644 --- a/generated/google/apis/containeranalysis_v1beta1/classes.rb +++ b/generated/google/apis/containeranalysis_v1beta1/classes.rb @@ -263,10 +263,28 @@ module Google 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" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::ContaineranalysisV1beta1::Expr] attr_accessor :condition @@ -1027,34 +1045,50 @@ module Google 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" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # 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. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # 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 + # 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` diff --git a/generated/google/apis/datacatalog_v1beta1.rb b/generated/google/apis/datacatalog_v1beta1.rb index 08c2ab749..9a3b9dcf6 100644 --- a/generated/google/apis/datacatalog_v1beta1.rb +++ b/generated/google/apis/datacatalog_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/data-catalog/docs/ module DatacatalogV1beta1 VERSION = 'V1beta1' - REVISION = '20191231' + REVISION = '20200115' # 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/datacatalog_v1beta1/classes.rb b/generated/google/apis/datacatalog_v1beta1/classes.rb index 5d073ec3e..18e592be6 100644 --- a/generated/google/apis/datacatalog_v1beta1/classes.rb +++ b/generated/google/apis/datacatalog_v1beta1/classes.rb @@ -582,7 +582,7 @@ module Google # Required. Patterns to identify a set of files in Google Cloud Storage. See [ # Cloud - # Storage documentation](storage/docs/gsutil/addlhelp/WildcardNames) for + # Storage documentation](/storage/docs/gsutil/addlhelp/WildcardNames) for # more information. Note that bucket wildcards are currently not supported. # Examples of valid file_patterns: # * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir` diff --git a/generated/google/apis/datacatalog_v1beta1/service.rb b/generated/google/apis/datacatalog_v1beta1/service.rb index fa1cfbe8d..538b52bd9 100644 --- a/generated/google/apis/datacatalog_v1beta1/service.rb +++ b/generated/google/apis/datacatalog_v1beta1/service.rb @@ -108,7 +108,7 @@ module Google # * ``pubsub.project_id.`topic.id.with.dots` `` # * `bigquery.table.project_id.dataset_id.table_id` # * `bigquery.dataset.project_id.dataset_id` - # * `datacatalog.project_id.location_id.entry_group_id.entry_id` + # * `datacatalog.entry.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 @@ -615,53 +615,6 @@ module Google 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). diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index 53fda80a7..17dc1b37f 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20191213' + REVISION = '20200116' # 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/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index 2941d9562..cb440378f 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -1613,9 +1613,12 @@ module Google # @return [Google::Apis::HealthcareV1beta1::RedactConfig] attr_accessor :redact_config - # When using the INSPECT_AND_TRANSFORM action, each match is replaced with - # the name of the info_type. For example, "My name is Jake" becomes "My name is - # [PERSON_NAME]." The TRANSFORM action is equivalent to redacting. + # When using the + # INSPECT_AND_TRANSFORM + # action, each match is replaced with the name of the info_type. For example, + # "My name is Jake" becomes "My name is [PERSON_NAME]." The + # TRANSFORM + # action is equivalent to redacting. # Corresponds to the JSON property `replaceWithInfoTypeConfig` # @return [Google::Apis::HealthcareV1beta1::ReplaceWithInfoTypeConfig] attr_accessor :replace_with_info_type_config @@ -2368,9 +2371,12 @@ module Google end end - # When using the INSPECT_AND_TRANSFORM action, each match is replaced with - # the name of the info_type. For example, "My name is Jake" becomes "My name is - # [PERSON_NAME]." The TRANSFORM action is equivalent to redacting. + # When using the + # INSPECT_AND_TRANSFORM + # action, each match is replaced with the name of the info_type. For example, + # "My name is Jake" becomes "My name is [PERSON_NAME]." The + # TRANSFORM + # action is equivalent to redacting. class ReplaceWithInfoTypeConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index fe54851fb..985271e05 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -3599,6 +3599,11 @@ module Google end # Update the message. + # The contents of the message in Message.data and data extracted from + # the contents such as Message.create_time cannot be altered. Only the + # Message.labels field is allowed to be updated. The labels in the + # request are merged with the existing set of labels. Existing labels with + # the same keys are updated. # @param [String] name # Resource name of the Message, of the form # `projects/`project_id`/datasets/`dataset_id`/hl7V2Stores/`hl7_v2_store_id`/ @@ -3610,9 +3615,6 @@ module Google # see # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# # fieldmask - # Only the `labels` field is allowed to be updated. - # The labels in the request are merged with the existing set of labels. - # Existing labels with the same keys are updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/iap_v1.rb b/generated/google/apis/iap_v1.rb index 6fa781378..8c8e2ee30 100644 --- a/generated/google/apis/iap_v1.rb +++ b/generated/google/apis/iap_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iap module IapV1 VERSION = 'V1' - REVISION = '20200102' + REVISION = '20200117' # 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/iap_v1/classes.rb b/generated/google/apis/iap_v1/classes.rb index b3175398d..5d264b841 100644 --- a/generated/google/apis/iap_v1/classes.rb +++ b/generated/google/apis/iap_v1/classes.rb @@ -80,10 +80,28 @@ module Google 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" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::IapV1::Expr] attr_accessor :condition @@ -247,34 +265,50 @@ module Google 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" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # 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. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # 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 + # 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` diff --git a/generated/google/apis/iap_v1/service.rb b/generated/google/apis/iap_v1/service.rb index 8a8c70c43..7663c3758 100644 --- a/generated/google/apis/iap_v1/service.rb +++ b/generated/google/apis/iap_v1/service.rb @@ -75,8 +75,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_oauth_project_brand(parent, brand_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/oauth/{+parent}/brands', options) + def create_project_brand(parent, brand_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/brands', options) command.request_representation = Google::Apis::IapV1::Brand::Representation command.request_object = brand_object command.response_representation = Google::Apis::IapV1::Brand::Representation @@ -108,8 +108,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_oauth_project_brand(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/oauth/{+name}', options) + def get_project_brand(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::IapV1::Brand::Representation command.response_class = Google::Apis::IapV1::Brand command.params['name'] = name unless name.nil? @@ -139,8 +139,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_oauth_project_brands(parent, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/oauth/{+parent}/brands', options) + def list_project_brands(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/brands', options) command.response_representation = Google::Apis::IapV1::ListBrandsResponse::Representation command.response_class = Google::Apis::IapV1::ListBrandsResponse command.params['parent'] = parent unless parent.nil? @@ -175,8 +175,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_oauth_project_brand_identity_aware_proxy_client(parent, identity_aware_proxy_client_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/oauth/{+parent}/identityAwareProxyClients', options) + def create_project_brand_identity_aware_proxy_client(parent, identity_aware_proxy_client_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/identityAwareProxyClients', options) command.request_representation = Google::Apis::IapV1::IdentityAwareProxyClient::Representation command.request_object = identity_aware_proxy_client_object command.response_representation = Google::Apis::IapV1::IdentityAwareProxyClient::Representation @@ -212,8 +212,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_oauth_project_brand_identity_aware_proxy_client(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/oauth/{+name}', options) + def delete_project_brand_identity_aware_proxy_client(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::IapV1::Empty::Representation command.response_class = Google::Apis::IapV1::Empty command.params['name'] = name unless name.nil? @@ -246,8 +246,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_oauth_project_brand_identity_aware_proxy_client(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/oauth/{+name}', options) + def get_project_brand_identity_aware_proxy_client(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::IapV1::IdentityAwareProxyClient::Representation command.response_class = Google::Apis::IapV1::IdentityAwareProxyClient command.params['name'] = name unless name.nil? @@ -288,8 +288,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_oauth_project_brand_identity_aware_proxy_clients(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/oauth/{+parent}/identityAwareProxyClients', options) + def list_project_brand_identity_aware_proxy_clients(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/identityAwareProxyClients', options) command.response_representation = Google::Apis::IapV1::ListIdentityAwareProxyClientsResponse::Representation command.response_class = Google::Apis::IapV1::ListIdentityAwareProxyClientsResponse command.params['parent'] = parent unless parent.nil? @@ -325,8 +325,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def reset_oauth_project_brand_identity_aware_proxy_client_secret(name, reset_identity_aware_proxy_client_secret_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/oauth/{+name}:resetSecret', options) + def reset_project_brand_identity_aware_proxy_client_secret(name, reset_identity_aware_proxy_client_secret_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:resetSecret', options) command.request_representation = Google::Apis::IapV1::ResetIdentityAwareProxyClientSecretRequest::Representation command.request_object = reset_identity_aware_proxy_client_secret_request_object command.response_representation = Google::Apis::IapV1::IdentityAwareProxyClient::Representation diff --git a/generated/google/apis/remotebuildexecution_v2.rb b/generated/google/apis/remotebuildexecution_v2.rb index 1cbf24192..a6da130f2 100644 --- a/generated/google/apis/remotebuildexecution_v2.rb +++ b/generated/google/apis/remotebuildexecution_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV2 VERSION = 'V2' - REVISION = '20200102' + REVISION = '20200121' # 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/remotebuildexecution_v2/classes.rb b/generated/google/apis/remotebuildexecution_v2/classes.rb index 2bc2b2f10..4ff5859c6 100644 --- a/generated/google/apis/remotebuildexecution_v2/classes.rb +++ b/generated/google/apis/remotebuildexecution_v2/classes.rb @@ -2793,6 +2793,11 @@ module Google # @return [String] attr_accessor :machine_type + # The maximum number of actions a worker can execute concurrently. + # Corresponds to the JSON property `maxConcurrentActions` + # @return [Fixnum] + attr_accessor :max_concurrent_actions + # Minimum CPU platform to use when creating the worker. # See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms). # Corresponds to the JSON property `minCpuPlatform` @@ -2828,6 +2833,7 @@ module Google @disk_type = args[:disk_type] if args.key?(:disk_type) @labels = args[:labels] if args.key?(:labels) @machine_type = args[:machine_type] if args.key?(:machine_type) + @max_concurrent_actions = args[:max_concurrent_actions] if args.key?(:max_concurrent_actions) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_access = args[:network_access] if args.key?(:network_access) @reserved = args[:reserved] if args.key?(:reserved) diff --git a/generated/google/apis/remotebuildexecution_v2/representations.rb b/generated/google/apis/remotebuildexecution_v2/representations.rb index 4bb6c1e2a..34706dc55 100644 --- a/generated/google/apis/remotebuildexecution_v2/representations.rb +++ b/generated/google/apis/remotebuildexecution_v2/representations.rb @@ -1093,6 +1093,7 @@ module Google property :disk_type, as: 'diskType' hash :labels, as: 'labels' property :machine_type, as: 'machineType' + property :max_concurrent_actions, :numeric_string => true, as: 'maxConcurrentActions' property :min_cpu_platform, as: 'minCpuPlatform' property :network_access, as: 'networkAccess' property :reserved, as: 'reserved' diff --git a/generated/google/apis/videointelligence_v1.rb b/generated/google/apis/videointelligence_v1.rb index 9a72c7b20..066bff4a5 100644 --- a/generated/google/apis/videointelligence_v1.rb +++ b/generated/google/apis/videointelligence_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1 VERSION = 'V1' - REVISION = '20191109' + REVISION = '20200115' # 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/videointelligence_v1/classes.rb b/generated/google/apis/videointelligence_v1/classes.rb index e73fa557d..f4459bcab 100644 --- a/generated/google/apis/videointelligence_v1/classes.rb +++ b/generated/google/apis/videointelligence_v1/classes.rb @@ -3904,6 +3904,32 @@ module Google end end + # Face detection annotation. + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + include Google::Apis::Core::Hashable + + # The thumbnail of a person's face. + # Corresponds to the JSON property `thumbnail` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :thumbnail + + # The face tracks with attributes. + # Corresponds to the JSON property `tracks` + # @return [Array] + attr_accessor :tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @thumbnail = args[:thumbnail] if args.key?(:thumbnail) + @tracks = args[:tracks] if args.key?(:tracks) + end + end + # Label annotation. class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation include Google::Apis::Core::Hashable @@ -4633,6 +4659,11 @@ module Google # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation] attr_accessor :explicit_annotation + # Face detection annotations. + # Corresponds to the JSON property `faceDetectionAnnotations` + # @return [Array] + attr_accessor :face_detection_annotations + # Label annotations on frame level. # There is exactly one element for each unique label. # Corresponds to the JSON property `frameLabelAnnotations` @@ -4717,6 +4748,7 @@ module Google @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) + @face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) @input_uri = args[:input_uri] if args.key?(:input_uri) @logo_recognition_annotations = args[:logo_recognition_annotations] if args.key?(:logo_recognition_annotations) diff --git a/generated/google/apis/videointelligence_v1/representations.rb b/generated/google/apis/videointelligence_v1/representations.rb index d347c3d5a..d720e51bf 100644 --- a/generated/google/apis/videointelligence_v1/representations.rb +++ b/generated/google/apis/videointelligence_v1/representations.rb @@ -658,6 +658,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1927,6 +1933,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :thumbnail, :base64 => true, as: 'thumbnail' + collection :tracks, as: 'tracks', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2147,6 +2162,8 @@ module Google property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation + collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation::Representation + collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation property :input_uri, as: 'inputUri' diff --git a/generated/google/apis/videointelligence_v1beta2.rb b/generated/google/apis/videointelligence_v1beta2.rb index 696eabe18..69bdcac54 100644 --- a/generated/google/apis/videointelligence_v1beta2.rb +++ b/generated/google/apis/videointelligence_v1beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1beta2 VERSION = 'V1beta2' - REVISION = '20191109' + REVISION = '20200115' # 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/videointelligence_v1beta2/classes.rb b/generated/google/apis/videointelligence_v1beta2/classes.rb index 948f95036..007fd9043 100644 --- a/generated/google/apis/videointelligence_v1beta2/classes.rb +++ b/generated/google/apis/videointelligence_v1beta2/classes.rb @@ -3904,6 +3904,32 @@ module Google end end + # Face detection annotation. + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + include Google::Apis::Core::Hashable + + # The thumbnail of a person's face. + # Corresponds to the JSON property `thumbnail` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :thumbnail + + # The face tracks with attributes. + # Corresponds to the JSON property `tracks` + # @return [Array] + attr_accessor :tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @thumbnail = args[:thumbnail] if args.key?(:thumbnail) + @tracks = args[:tracks] if args.key?(:tracks) + end + end + # Label annotation. class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation include Google::Apis::Core::Hashable @@ -4633,6 +4659,11 @@ module Google # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation] attr_accessor :explicit_annotation + # Face detection annotations. + # Corresponds to the JSON property `faceDetectionAnnotations` + # @return [Array] + attr_accessor :face_detection_annotations + # Label annotations on frame level. # There is exactly one element for each unique label. # Corresponds to the JSON property `frameLabelAnnotations` @@ -4717,6 +4748,7 @@ module Google @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) + @face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) @input_uri = args[:input_uri] if args.key?(:input_uri) @logo_recognition_annotations = args[:logo_recognition_annotations] if args.key?(:logo_recognition_annotations) diff --git a/generated/google/apis/videointelligence_v1beta2/representations.rb b/generated/google/apis/videointelligence_v1beta2/representations.rb index 6090f9846..2adc92f12 100644 --- a/generated/google/apis/videointelligence_v1beta2/representations.rb +++ b/generated/google/apis/videointelligence_v1beta2/representations.rb @@ -658,6 +658,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1909,6 +1915,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :thumbnail, :base64 => true, as: 'thumbnail' + collection :tracks, as: 'tracks', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2129,6 +2144,8 @@ module Google property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation + collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation::Representation + collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation property :input_uri, as: 'inputUri' diff --git a/generated/google/apis/videointelligence_v1p1beta1.rb b/generated/google/apis/videointelligence_v1p1beta1.rb index 23bd29160..d3ad1c752 100644 --- a/generated/google/apis/videointelligence_v1p1beta1.rb +++ b/generated/google/apis/videointelligence_v1p1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20191109' + REVISION = '20200115' # 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/videointelligence_v1p1beta1/classes.rb b/generated/google/apis/videointelligence_v1p1beta1/classes.rb index 5c1a861fd..f561058c3 100644 --- a/generated/google/apis/videointelligence_v1p1beta1/classes.rb +++ b/generated/google/apis/videointelligence_v1p1beta1/classes.rb @@ -3904,6 +3904,32 @@ module Google end end + # Face detection annotation. + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + include Google::Apis::Core::Hashable + + # The thumbnail of a person's face. + # Corresponds to the JSON property `thumbnail` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :thumbnail + + # The face tracks with attributes. + # Corresponds to the JSON property `tracks` + # @return [Array] + attr_accessor :tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @thumbnail = args[:thumbnail] if args.key?(:thumbnail) + @tracks = args[:tracks] if args.key?(:tracks) + end + end + # Label annotation. class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation include Google::Apis::Core::Hashable @@ -4633,6 +4659,11 @@ module Google # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation] attr_accessor :explicit_annotation + # Face detection annotations. + # Corresponds to the JSON property `faceDetectionAnnotations` + # @return [Array] + attr_accessor :face_detection_annotations + # Label annotations on frame level. # There is exactly one element for each unique label. # Corresponds to the JSON property `frameLabelAnnotations` @@ -4717,6 +4748,7 @@ module Google @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) + @face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) @input_uri = args[:input_uri] if args.key?(:input_uri) @logo_recognition_annotations = args[:logo_recognition_annotations] if args.key?(:logo_recognition_annotations) diff --git a/generated/google/apis/videointelligence_v1p1beta1/representations.rb b/generated/google/apis/videointelligence_v1p1beta1/representations.rb index 7fc00a3ce..0faada473 100644 --- a/generated/google/apis/videointelligence_v1p1beta1/representations.rb +++ b/generated/google/apis/videointelligence_v1p1beta1/representations.rb @@ -658,6 +658,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1909,6 +1915,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :thumbnail, :base64 => true, as: 'thumbnail' + collection :tracks, as: 'tracks', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2129,6 +2144,8 @@ module Google property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation + collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation::Representation + collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation property :input_uri, as: 'inputUri' diff --git a/generated/google/apis/videointelligence_v1p2beta1.rb b/generated/google/apis/videointelligence_v1p2beta1.rb index 01081dcb8..48f5aba5f 100644 --- a/generated/google/apis/videointelligence_v1p2beta1.rb +++ b/generated/google/apis/videointelligence_v1p2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1p2beta1 VERSION = 'V1p2beta1' - REVISION = '20191109' + REVISION = '20200115' # 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/videointelligence_v1p2beta1/classes.rb b/generated/google/apis/videointelligence_v1p2beta1/classes.rb index 30dc5789a..ec0b7f8ee 100644 --- a/generated/google/apis/videointelligence_v1p2beta1/classes.rb +++ b/generated/google/apis/videointelligence_v1p2beta1/classes.rb @@ -3904,6 +3904,32 @@ module Google end end + # Face detection annotation. + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + include Google::Apis::Core::Hashable + + # The thumbnail of a person's face. + # Corresponds to the JSON property `thumbnail` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :thumbnail + + # The face tracks with attributes. + # Corresponds to the JSON property `tracks` + # @return [Array] + attr_accessor :tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @thumbnail = args[:thumbnail] if args.key?(:thumbnail) + @tracks = args[:tracks] if args.key?(:tracks) + end + end + # Label annotation. class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation include Google::Apis::Core::Hashable @@ -4633,6 +4659,11 @@ module Google # @return [Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation] attr_accessor :explicit_annotation + # Face detection annotations. + # Corresponds to the JSON property `faceDetectionAnnotations` + # @return [Array] + attr_accessor :face_detection_annotations + # Label annotations on frame level. # There is exactly one element for each unique label. # Corresponds to the JSON property `frameLabelAnnotations` @@ -4717,6 +4748,7 @@ module Google @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) + @face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) @input_uri = args[:input_uri] if args.key?(:input_uri) @logo_recognition_annotations = args[:logo_recognition_annotations] if args.key?(:logo_recognition_annotations) diff --git a/generated/google/apis/videointelligence_v1p2beta1/representations.rb b/generated/google/apis/videointelligence_v1p2beta1/representations.rb index fe049511f..f7f3baf0c 100644 --- a/generated/google/apis/videointelligence_v1p2beta1/representations.rb +++ b/generated/google/apis/videointelligence_v1p2beta1/representations.rb @@ -658,6 +658,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1909,6 +1915,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :thumbnail, :base64 => true, as: 'thumbnail' + collection :tracks, as: 'tracks', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2129,6 +2144,8 @@ module Google property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation + collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation::Representation + collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation property :input_uri, as: 'inputUri' diff --git a/generated/google/apis/videointelligence_v1p3beta1.rb b/generated/google/apis/videointelligence_v1p3beta1.rb index 798bd2faf..fb355765b 100644 --- a/generated/google/apis/videointelligence_v1p3beta1.rb +++ b/generated/google/apis/videointelligence_v1p3beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1p3beta1 VERSION = 'V1p3beta1' - REVISION = '20191109' + REVISION = '20200115' # 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/videointelligence_v1p3beta1/classes.rb b/generated/google/apis/videointelligence_v1p3beta1/classes.rb index 419313c5f..d665210e1 100644 --- a/generated/google/apis/videointelligence_v1p3beta1/classes.rb +++ b/generated/google/apis/videointelligence_v1p3beta1/classes.rb @@ -3591,6 +3591,68 @@ module Google end end + # Face detection annotation. + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + include Google::Apis::Core::Hashable + + # The thumbnail of a person's face. + # Corresponds to the JSON property `thumbnail` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :thumbnail + + # The face tracks with attributes. + # Corresponds to the JSON property `tracks` + # @return [Array] + attr_accessor :tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @thumbnail = args[:thumbnail] if args.key?(:thumbnail) + @tracks = args[:tracks] if args.key?(:tracks) + end + end + + # Config for FACE_DETECTION. + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionConfig + include Google::Apis::Core::Hashable + + # Whether to enable face attributes detection, such as glasses, dark_glasses, + # mouth_open etc. Ignored if 'include_bounding_boxes' is false. + # Corresponds to the JSON property `includeAttributes` + # @return [Boolean] + attr_accessor :include_attributes + alias_method :include_attributes?, :include_attributes + + # Whether bounding boxes be included in the face annotation output. + # Corresponds to the JSON property `includeBoundingBoxes` + # @return [Boolean] + attr_accessor :include_bounding_boxes + alias_method :include_bounding_boxes?, :include_bounding_boxes + + # Model to use for face detection. + # Supported values: "builtin/stable" (the default if unset) and + # "builtin/latest". + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @include_attributes = args[:include_attributes] if args.key?(:include_attributes) + @include_bounding_boxes = args[:include_bounding_boxes] if args.key?(:include_bounding_boxes) + @model = args[:model] if args.key?(:model) + end + end + # Label annotation. class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation include Google::Apis::Core::Hashable @@ -4576,6 +4638,11 @@ module Google # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation] attr_accessor :explicit_annotation + # Face detection annotations. + # Corresponds to the JSON property `faceDetectionAnnotations` + # @return [Array] + attr_accessor :face_detection_annotations + # Label annotations on frame level. # There is exactly one element for each unique label. # Corresponds to the JSON property `frameLabelAnnotations` @@ -4660,6 +4727,7 @@ module Google @celebrity_recognition_annotations = args[:celebrity_recognition_annotations] if args.key?(:celebrity_recognition_annotations) @error = args[:error] if args.key?(:error) @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) + @face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) @input_uri = args[:input_uri] if args.key?(:input_uri) @logo_recognition_annotations = args[:logo_recognition_annotations] if args.key?(:logo_recognition_annotations) @@ -4684,6 +4752,11 @@ module Google # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentDetectionConfig] attr_accessor :explicit_content_detection_config + # Config for FACE_DETECTION. + # Corresponds to the JSON property `faceDetectionConfig` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionConfig] + attr_accessor :face_detection_config + # Config for LABEL_DETECTION. # Corresponds to the JSON property `labelDetectionConfig` # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelDetectionConfig] @@ -4723,6 +4796,7 @@ module Google # Update properties of this object def update!(**args) @explicit_content_detection_config = args[:explicit_content_detection_config] if args.key?(:explicit_content_detection_config) + @face_detection_config = args[:face_detection_config] if args.key?(:face_detection_config) @label_detection_config = args[:label_detection_config] if args.key?(:label_detection_config) @object_tracking_config = args[:object_tracking_config] if args.key?(:object_tracking_config) @segments = args[:segments] if args.key?(:segments) diff --git a/generated/google/apis/videointelligence_v1p3beta1/representations.rb b/generated/google/apis/videointelligence_v1p3beta1/representations.rb index ec1526433..2e283d60b 100644 --- a/generated/google/apis/videointelligence_v1p3beta1/representations.rb +++ b/generated/google/apis/videointelligence_v1p3beta1/representations.rb @@ -616,6 +616,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1833,6 +1845,24 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :thumbnail, :base64 => true, as: 'thumbnail' + collection :tracks, as: 'tracks', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + + class GoogleCloudVideointelligenceV1p3beta1FaceDetectionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :include_attributes, as: 'includeAttributes' + property :include_bounding_boxes, as: 'includeBoundingBoxes' + property :model, as: 'model' + end + end + class GoogleCloudVideointelligenceV1p3beta1LabelAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2109,6 +2139,8 @@ module Google property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation + collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation::Representation + collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation property :input_uri, as: 'inputUri' @@ -2140,6 +2172,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :explicit_content_detection_config, as: 'explicitContentDetectionConfig', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentDetectionConfig, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentDetectionConfig::Representation + property :face_detection_config, as: 'faceDetectionConfig', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionConfig, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionConfig::Representation + property :label_detection_config, as: 'labelDetectionConfig', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelDetectionConfig, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelDetectionConfig::Representation property :object_tracking_config, as: 'objectTrackingConfig', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingConfig, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingConfig::Representation