Autogenerated update (2019-12-20)

Update:
- bigquery_v2
- datacatalog_v1beta1
- driveactivity_v2
This commit is contained in:
Google APIs 2019-12-20 00:38:31 +00:00
parent 2c3ca589fe
commit 1ac8479da2
11 changed files with 53 additions and 8 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20191201'
REVISION = '20191211'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -1654,6 +1654,11 @@ module Google
# @return [Fixnum]
attr_accessor :shuffle_output_bytes_spilled
# Slot-milliseconds used by the stage.
# Corresponds to the JSON property `slotMs`
# @return [Fixnum]
attr_accessor :slot_ms
# Stage start time represented as milliseconds since epoch.
# Corresponds to the JSON property `startMs`
# @return [Fixnum]
@ -1734,6 +1739,7 @@ module Google
@records_written = args[:records_written] if args.key?(:records_written)
@shuffle_output_bytes = args[:shuffle_output_bytes] if args.key?(:shuffle_output_bytes)
@shuffle_output_bytes_spilled = args[:shuffle_output_bytes_spilled] if args.key?(:shuffle_output_bytes_spilled)
@slot_ms = args[:slot_ms] if args.key?(:slot_ms)
@start_ms = args[:start_ms] if args.key?(:start_ms)
@status = args[:status] if args.key?(:status)
@steps = args[:steps] if args.key?(:steps)

View File

@ -1102,6 +1102,7 @@ module Google
property :records_written, :numeric_string => true, as: 'recordsWritten'
property :shuffle_output_bytes, :numeric_string => true, as: 'shuffleOutputBytes'
property :shuffle_output_bytes_spilled, :numeric_string => true, as: 'shuffleOutputBytesSpilled'
property :slot_ms, :numeric_string => true, as: 'slotMs'
property :start_ms, :numeric_string => true, as: 'startMs'
property :status, as: 'status'
collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation

View File

@ -858,6 +858,9 @@ module Google
# Required. Dataset ID of the requested routine
# @param [String] routine_id
# Required. Routine ID of the requested routine
# @param [String] read_mask
# If set, only the Routine fields in the field mask are returned in the
# response. If unset, all Routine fields are returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -877,13 +880,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_routine(project_id, dataset_id, routine_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_routine(project_id, dataset_id, routine_id, read_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}', options)
command.response_representation = Google::Apis::BigqueryV2::Routine::Representation
command.response_class = Google::Apis::BigqueryV2::Routine
command.params['projectId'] = project_id unless project_id.nil?
command.params['datasetId'] = dataset_id unless dataset_id.nil?
command.params['routineId'] = routine_id unless routine_id.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?
command.query['userIp'] = user_ip unless user_ip.nil?
@ -935,12 +939,23 @@ module Google
# Required. Project ID of the routines to list
# @param [String] dataset_id
# Required. Dataset ID of the routines to list
# @param [String] filter
# If set, then only the Routines matching this filter are returned.
# The current supported form is either "routine_type:<RoutineType>" or
# "routineType:<RoutineType>", where <RoutineType> is a RoutineType enum.
# Example: "routineType:SCALAR_FUNCTION".
# @param [Fixnum] max_results
# The maximum number of results to return in a single response page.
# Leverage the page tokens to iterate through the entire collection.
# @param [String] page_token
# Page token, returned by a previous call, to request the next page of
# results
# @param [String] read_mask
# If set, then only the Routine fields in the field mask, as well as
# project_id, dataset_id and routine_id, are returned in the response.
# If unset, then the following Routine fields are returned:
# etag, project_id, dataset_id, routine_id, routine_type, creation_time,
# last_modified_time, and language.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -960,14 +975,16 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_routines(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_routines(project_id, dataset_id, filter: nil, max_results: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/routines', options)
command.response_representation = Google::Apis::BigqueryV2::ListRoutinesResponse::Representation
command.response_class = Google::Apis::BigqueryV2::ListRoutinesResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['datasetId'] = dataset_id unless dataset_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.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?
command.query['userIp'] = user_ip unless user_ip.nil?

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/data-catalog/docs/
module DatacatalogV1beta1
VERSION = 'V1beta1'
REVISION = '20191211'
REVISION = '20191217'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1345,6 +1345,12 @@ module Google
# @return [String]
attr_accessor :display_name
# Whether this is a required field. Defaults to false.
# Corresponds to the JSON property `isRequired`
# @return [Boolean]
attr_accessor :is_required
alias_method :is_required?, :is_required
# Output only. The resource name of the tag template field in URL format.
# Example:
# * projects/`project_id`/locations/`location`/tagTemplates/`tag_template`/
@ -1367,6 +1373,7 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@is_required = args[:is_required] if args.key?(:is_required)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end

View File

@ -641,6 +641,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :is_required, as: 'isRequired'
property :name, as: 'name'
property :type, as: 'type', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType::Representation

View File

@ -192,6 +192,8 @@ module Google
# @param [String] name
# Required. The name of the entry group. For example,
# `projects/`project_id`/locations/`location`/entryGroups/`entry_group_id``.
# @param [Boolean] force
# Optional. If true, deletes all entries in the entry group.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -209,11 +211,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_entry_group(name, fields: nil, quota_user: nil, options: nil, &block)
def delete_project_location_entry_group(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)
@ -1259,15 +1262,17 @@ module Google
# 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.
# Optional. The field mask specifies the parts of the template to be updated.
# Allowed fields:
# * `display_name`
# * `type.enum_type`
# * `is_required`
# 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.
# values cannot be deleted nor renamed. Updating a template field from
# optional to required is NOT allowed.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/drive/activity/
module DriveactivityV2
VERSION = 'V2'
REVISION = '20190907'
REVISION = '20191218'
# View and add to the activity record of files in your Google Drive
AUTH_DRIVE_ACTIVITY = 'https://www.googleapis.com/auth/drive.activity'

View File

@ -252,6 +252,11 @@ module Google
class Assignment
include Google::Apis::Core::Hashable
# Information about an end user.
# Corresponds to the JSON property `assignedUser`
# @return [Google::Apis::DriveactivityV2::User]
attr_accessor :assigned_user
# The sub-type of this event.
# Corresponds to the JSON property `subtype`
# @return [String]
@ -263,6 +268,7 @@ module Google
# Update properties of this object
def update!(**args)
@assigned_user = args[:assigned_user] if args.key?(:assigned_user)
@subtype = args[:subtype] if args.key?(:subtype)
end
end

View File

@ -433,6 +433,8 @@ module Google
class Assignment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :assigned_user, as: 'assignedUser', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
property :subtype, as: 'subtype'
end
end