Autogenerated update (2020-03-06)

Update:
- classroom_v1
- cloudidentity_v1beta1
- cloudtasks_v2
- serviceconsumermanagement_v1
- serviceusage_v1
- serviceusage_v1beta1
- videointelligence_v1beta2
- videointelligence_v1p1beta1
- videointelligence_v1p2beta1
This commit is contained in:
Google APIs 2020-03-06 00:38:16 +00:00
parent 843df90d42
commit ca464fe4f7
21 changed files with 119 additions and 527 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/classroom/
module ClassroomV1
VERSION = 'V1'
REVISION = '20200229'
REVISION = '20200305'
# View and manage announcements in Google Classroom
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
@ -51,12 +51,6 @@ module Google
# View course work and grades for students in the Google Classroom classes you teach or administer
AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly'
# See, edit, and create classwork materials in Google Classroom
AUTH_CLASSROOM_COURSEWORKMATERIALS = 'https://www.googleapis.com/auth/classroom.courseworkmaterials'
# See all classwork materials for your Google Classroom classes
AUTH_CLASSROOM_COURSEWORKMATERIALS_READONLY = 'https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly'
# View your Google Classroom guardians
AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly'

View File

@ -714,121 +714,6 @@ module Google
end
end
# Course work material created by a teacher for students of the course
class CourseWorkMaterial
include Google::Apis::Core::Hashable
# Absolute link to this course work material in the Classroom web UI.
# This is only populated if `state` is `PUBLISHED`.
# Read-only.
# Corresponds to the JSON property `alternateLink`
# @return [String]
attr_accessor :alternate_link
# Assignee mode of the course work material.
# If unspecified, the default value is `ALL_STUDENTS`.
# Corresponds to the JSON property `assigneeMode`
# @return [String]
attr_accessor :assignee_mode
# Identifier of the course.
# Read-only.
# Corresponds to the JSON property `courseId`
# @return [String]
attr_accessor :course_id
# Timestamp when this course work material was created.
# Read-only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# Identifier for the user that created the course work material.
# Read-only.
# Corresponds to the JSON property `creatorUserId`
# @return [String]
attr_accessor :creator_user_id
# Optional description of this course work material.
# The text must be a valid UTF-8 string containing no more
# than 30,000 characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Classroom-assigned identifier of this course work material, unique per
# course.
# Read-only.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Assignee details about a coursework/announcement.
# This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
# Corresponds to the JSON property `individualStudentsOptions`
# @return [Google::Apis::ClassroomV1::IndividualStudentsOptions]
attr_accessor :individual_students_options
# Additional materials.
# A course work material must have no more than 20 material items.
# Corresponds to the JSON property `materials`
# @return [Array<Google::Apis::ClassroomV1::Material>]
attr_accessor :materials
# Optional timestamp when this course work material is scheduled to be
# published.
# Corresponds to the JSON property `scheduledTime`
# @return [String]
attr_accessor :scheduled_time
# Status of this course work material.
# If unspecified, the default state is `DRAFT`.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Title of this course work material.
# The title must be a valid UTF-8 string containing between 1 and 3000
# characters.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# Identifier for the topic that this course work material is associated with.
# Must match an existing topic in the course.
# Corresponds to the JSON property `topicId`
# @return [String]
attr_accessor :topic_id
# Timestamp of the most recent change to this course work material.
# Read-only.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
@assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode)
@course_id = args[:course_id] if args.key?(:course_id)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options)
@materials = args[:materials] if args.key?(:materials)
@scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time)
@state = args[:state] if args.key?(:state)
@title = args[:title] if args.key?(:title)
@topic_id = args[:topic_id] if args.key?(:topic_id)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
@ -1337,32 +1222,6 @@ module Google
end
end
# Response when listing course work material.
class ListCourseWorkMaterialResponse
include Google::Apis::Core::Hashable
# Course work material items that match the request.
# Corresponds to the JSON property `courseWorkMaterial`
# @return [Array<Google::Apis::ClassroomV1::CourseWorkMaterial>]
attr_accessor :course_work_material
# Token identifying the next page of results to return. If empty, no further
# results are available.
# 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)
@course_work_material = args[:course_work_material] if args.key?(:course_work_material)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response when listing course work.
class ListCourseWorkResponse
include Google::Apis::Core::Hashable

View File

@ -94,12 +94,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CourseWorkMaterial
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Date
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -190,12 +184,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListCourseWorkMaterialResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCourseWorkResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -549,28 +537,6 @@ module Google
end
end
class CourseWorkMaterial
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alternate_link, as: 'alternateLink'
property :assignee_mode, as: 'assigneeMode'
property :course_id, as: 'courseId'
property :creation_time, as: 'creationTime'
property :creator_user_id, as: 'creatorUserId'
property :description, as: 'description'
property :id, as: 'id'
property :individual_students_options, as: 'individualStudentsOptions', class: Google::Apis::ClassroomV1::IndividualStudentsOptions, decorator: Google::Apis::ClassroomV1::IndividualStudentsOptions::Representation
collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation
property :scheduled_time, as: 'scheduledTime'
property :state, as: 'state'
property :title, as: 'title'
property :topic_id, as: 'topicId'
property :update_time, as: 'updateTime'
end
end
class Date
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -710,15 +676,6 @@ module Google
end
end
class ListCourseWorkMaterialResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :course_work_material, as: 'courseWorkMaterial', class: Google::Apis::ClassroomV1::CourseWorkMaterial, decorator: Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListCourseWorkResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1476,272 +1476,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a course work material.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course, create course work material in the requested course,
# share a Drive attachment, or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed or if more than 20
# * materials are provided.
# * `NOT_FOUND` if the requested course does not exist.
# * `FAILED_PRECONDITION` for the following request error:
# * AttachmentNotVisible
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [Google::Apis::ClassroomV1::CourseWorkMaterial] course_work_material_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::ClassroomV1::CourseWorkMaterial] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::CourseWorkMaterial]
#
# @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_course_course_work_material(course_id, course_work_material_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWorkMaterials', options)
command.request_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.request_object = course_work_material_object
command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial
command.params['courseId'] = course_id unless course_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a course work material.
# This request must be made by the Developer Console project of the
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
# create the corresponding course work material item.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting developer project did not create
# the corresponding course work material, if the requesting user is not
# permitted to delete the requested course or for access errors.
# * `FAILED_PRECONDITION` if the requested course work material has already
# been deleted.
# * `NOT_FOUND` if no course exists with the requested ID.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the course work material to delete.
# This identifier is a Classroom-assigned identifier.
# @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::ClassroomV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_course_course_work_material(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options)
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1::Empty
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a course work material.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course or course work material, or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `NOT_FOUND` if the requested course or course work material does not
# exist.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the course work material.
# @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::ClassroomV1::CourseWorkMaterial] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::CourseWorkMaterial]
#
# @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_course_course_work_material(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options)
command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a list of course work material that the requester is permitted to
# view.
# Course students may only view `PUBLISHED` course work material. Course
# teachers and domain administrators may view all course work material.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access
# the requested course or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `NOT_FOUND` if the requested course does not exist.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [Array<String>, String] course_work_material_states
# Restriction on the work status to return. Only course work material that
# matches is returned. If unspecified, items with a work status of
# `PUBLISHED` is returned.
# @param [String] material_drive_id
# Optional filtering for course work material with at least one Drive
# material whose ID matches the provided string. If `material_link` is also
# specified, course work material must have materials matching both filters.
# @param [String] material_link
# Optional filtering for course work material with at least one link material
# whose URL partially matches the provided string.
# @param [String] order_by
# Optional sort ordering for results. A comma-separated list of fields with
# an optional sort direction keyword. Supported field is `updateTime`.
# Supported direction keywords are `asc` and `desc`.
# If not specified, `updateTime desc` is the default behavior.
# Examples: `updateTime asc`, `updateTime`
# @param [Fixnum] page_size
# Maximum number of items to return. Zero or unspecified indicates that the
# server may assign a maximum.
# The server may return fewer than the specified number of results.
# @param [String] page_token
# nextPageToken
# value returned from a previous
# list call,
# indicating that the subsequent page of results should be returned.
# The list request
# must be otherwise identical to the one that resulted in this 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::ClassroomV1::ListCourseWorkMaterialResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse]
#
# @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_course_course_work_materials(course_id, course_work_material_states: nil, material_drive_id: nil, material_link: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/courses/{courseId}/courseWorkMaterials', options)
command.response_representation = Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse::Representation
command.response_class = Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse
command.params['courseId'] = course_id unless course_id.nil?
command.query['courseWorkMaterialStates'] = course_work_material_states unless course_work_material_states.nil?
command.query['materialDriveId'] = material_drive_id unless material_drive_id.nil?
command.query['materialLink'] = material_link unless material_link.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates one or more fields of a course work material.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting developer project for
# access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `FAILED_PRECONDITION` if the requested course work material has already
# been deleted.
# * `NOT_FOUND` if the requested course or course work material does not
# exist
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the course work material.
# @param [Google::Apis::ClassroomV1::CourseWorkMaterial] course_work_material_object
# @param [String] update_mask
# Mask that identifies which fields on the course work material to update.
# This field is required to do an update. The update fails if invalid
# fields are specified. If a field supports empty values, it can be cleared
# by specifying it in the update mask and not in the course work material
# object. If a field that does not support empty values is included in the
# update mask and not set in the course work material object, an
# `INVALID_ARGUMENT` error will be returned.
# The following fields may be specified by teachers:
# * `title`
# * `description`
# * `state`
# * `scheduled_time`
# * `topic_id`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::CourseWorkMaterial] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::CourseWorkMaterial]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_course_course_work_material(course_id, id, course_work_material_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options)
command.request_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.request_object = course_work_material_object
command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Adds a user as a student of a course.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to create

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/
module CloudidentityV1beta1
VERSION = 'V1beta1'
REVISION = '20200215'
REVISION = '20200303'
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

View File

@ -62,11 +62,11 @@ module Google
# A group within the Cloud Identity Groups API.
# A `Group` is a collection of entities, where each entity is either a user or
# another group.
# another group or a service account.
class Group
include Google::Apis::Core::Hashable
# Optional. Additional entity key aliases for a Group.
# Additional entity key aliases for a Group.
# Corresponds to the JSON property `additionalGroupKeys`
# @return [Array<Google::Apis::CloudidentityV1beta1::EntityKey>]
attr_accessor :additional_group_keys

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tasks/
module CloudtasksV2
VERSION = 'V2'
REVISION = '20200210'
REVISION = '20200228'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1110,6 +1110,12 @@ module Google
# @return [Google::Apis::CloudtasksV2::RetryConfig]
attr_accessor :retry_config
# Configuration options for writing logs to
# [Stackdriver Logging](https://cloud.google.com/logging/docs/).
# Corresponds to the JSON property `stackdriverLoggingConfig`
# @return [Google::Apis::CloudtasksV2::StackdriverLoggingConfig]
attr_accessor :stackdriver_logging_config
# Output only. The state of the queue.
# `state` can only be changed by called
# PauseQueue,
@ -1132,6 +1138,7 @@ module Google
@purge_time = args[:purge_time] if args.key?(:purge_time)
@rate_limits = args[:rate_limits] if args.key?(:rate_limits)
@retry_config = args[:retry_config] if args.key?(:retry_config)
@stackdriver_logging_config = args[:stackdriver_logging_config] if args.key?(:stackdriver_logging_config)
@state = args[:state] if args.key?(:state)
end
end
@ -1442,6 +1449,29 @@ module Google
end
end
# Configuration options for writing logs to
# [Stackdriver Logging](https://cloud.google.com/logging/docs/).
class StackdriverLoggingConfig
include Google::Apis::Core::Hashable
# Specifies the fraction of operations to write to
# [Stackdriver Logging](https://cloud.google.com/logging/docs/).
# This field may contain any value between 0.0 and 1.0, inclusive.
# 0.0 is the default and means that no operations are logged.
# Corresponds to the JSON property `samplingRatio`
# @return [Float]
attr_accessor :sampling_ratio
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@sampling_ratio = args[:sampling_ratio] if args.key?(:sampling_ratio)
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains

View File

@ -172,6 +172,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class StackdriverLoggingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -380,6 +386,8 @@ module Google
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2::RetryConfig, decorator: Google::Apis::CloudtasksV2::RetryConfig::Representation
property :stackdriver_logging_config, as: 'stackdriverLoggingConfig', class: Google::Apis::CloudtasksV2::StackdriverLoggingConfig, decorator: Google::Apis::CloudtasksV2::StackdriverLoggingConfig::Representation
property :state, as: 'state'
end
end
@ -425,6 +433,13 @@ module Google
end
end
class StackdriverLoggingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :sampling_ratio, as: 'samplingRatio'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1
VERSION = 'V1'
REVISION = '20200226'
REVISION = '20200303'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -4057,17 +4057,18 @@ module Google
# could contain an entry with the key "region" and the value "us-east-1";
# the override is only applied to quota consumed in that region.
# This map has the following restrictions:
# - Keys that are not defined in the limit's unit are not valid keys.
# * Keys that are not defined in the limit's unit are not valid keys.
# Any string appearing in `brackets` in the unit (besides `project` or
# `user`) is a defined key.
# - "project" is not a valid key; the project is already specified in
# * "project" is not a valid key; the project is already specified in
# the parent resource name.
# - "user" is not a valid key; the API does not support quota overrides
# * "user" is not a valid key; the API does not support quota overrides
# that apply only to a specific user.
# - If "region" appears as a key, its value must be a valid Cloud region.
# - If "zone" appears as a key, its value must be a valid Cloud zone.
# - If any valid key other than "region" or "zone" appears in the map, then
# all valid keys other than "region" or "zone" must also appear in the map.
# * If "region" appears as a key, its value must be a valid Cloud region.
# * If "zone" appears as a key, its value must be a valid Cloud zone.
# * If any valid key other than "region" or "zone" appears in the map, then
# all valid keys other than "region" or "zone" must also appear in the
# map.
# Corresponds to the JSON property `dimensions`
# @return [Hash<String,String>]
attr_accessor :dimensions

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1
VERSION = 'V1'
REVISION = '20200226'
REVISION = '20200303'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3674,17 +3674,18 @@ module Google
# could contain an entry with the key "region" and the value "us-east-1";
# the override is only applied to quota consumed in that region.
# This map has the following restrictions:
# - Keys that are not defined in the limit's unit are not valid keys.
# * Keys that are not defined in the limit's unit are not valid keys.
# Any string appearing in `brackets` in the unit (besides `project` or
# `user`) is a defined key.
# - "project" is not a valid key; the project is already specified in
# * "project" is not a valid key; the project is already specified in
# the parent resource name.
# - "user" is not a valid key; the API does not support quota overrides
# * "user" is not a valid key; the API does not support quota overrides
# that apply only to a specific user.
# - If "region" appears as a key, its value must be a valid Cloud region.
# - If "zone" appears as a key, its value must be a valid Cloud zone.
# - If any valid key other than "region" or "zone" appears in the map, then
# all valid keys other than "region" or "zone" must also appear in the map.
# * If "region" appears as a key, its value must be a valid Cloud region.
# * If "zone" appears as a key, its value must be a valid Cloud zone.
# * If any valid key other than "region" or "zone" appears in the map, then
# all valid keys other than "region" or "zone" must also appear in the
# map.
# Corresponds to the JSON property `dimensions`
# @return [Hash<String,String>]
attr_accessor :dimensions

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1
VERSION = 'V1beta1'
REVISION = '20200226'
REVISION = '20200303'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3652,17 +3652,18 @@ module Google
# could contain an entry with the key "region" and the value "us-east-1";
# the override is only applied to quota consumed in that region.
# This map has the following restrictions:
# - Keys that are not defined in the limit's unit are not valid keys.
# * Keys that are not defined in the limit's unit are not valid keys.
# Any string appearing in `brackets` in the unit (besides `project` or
# `user`) is a defined key.
# - "project" is not a valid key; the project is already specified in
# * "project" is not a valid key; the project is already specified in
# the parent resource name.
# - "user" is not a valid key; the API does not support quota overrides
# * "user" is not a valid key; the API does not support quota overrides
# that apply only to a specific user.
# - If "region" appears as a key, its value must be a valid Cloud region.
# - If "zone" appears as a key, its value must be a valid Cloud zone.
# - If any valid key other than "region" or "zone" appears in the map, then
# all valid keys other than "region" or "zone" must also appear in the map.
# * If "region" appears as a key, its value must be a valid Cloud region.
# * If "zone" appears as a key, its value must be a valid Cloud zone.
# * If any valid key other than "region" or "zone" appears in the map, then
# all valid keys other than "region" or "zone" must also appear in the
# map.
# Corresponds to the JSON property `dimensions`
# @return [Hash<String,String>]
attr_accessor :dimensions

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1beta2
VERSION = 'V1beta2'
REVISION = '20200122'
REVISION = '20200226'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -593,7 +593,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -662,7 +662,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -872,7 +872,7 @@ module Google
attr_accessor :input_content
# Input video location. Currently, only
# [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
# [Cloud Storage](https://cloud.google.com/storage/) URIs are
# supported, which must be specified in the following format:
# `gs://bucket-id/object-id` (other URI formats return
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
@ -893,7 +893,7 @@ module Google
attr_accessor :location_id
# Optional. Location where the output (in JSON format) should be stored.
# Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
# Currently, only [Cloud Storage](https://cloud.google.com/storage/)
# URIs are supported, which must be specified in the following format:
# `gs://bucket-id/object-id` (other URI formats return
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
@ -1749,7 +1749,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -1818,7 +1818,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -2617,7 +2617,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -2686,7 +2686,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -3428,7 +3428,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -3497,7 +3497,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -4391,7 +4391,7 @@ module Google
# @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults]
attr_accessor :annotation_results
# GCS URI that stores annotation results of one streaming session.
# Cloud Storage URI that stores annotation results of one streaming session.
# It is a directory that can hold multiple files in JSON format.
# Example uri format:
# gs://bucket_id/object_id/cloud_project_name-session_id
@ -4651,7 +4651,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -4730,7 +4730,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200122'
REVISION = '20200226'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -593,7 +593,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -662,7 +662,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -1404,7 +1404,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -1473,7 +1473,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -1683,7 +1683,7 @@ module Google
attr_accessor :input_content
# Input video location. Currently, only
# [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
# [Cloud Storage](https://cloud.google.com/storage/) URIs are
# supported, which must be specified in the following format:
# `gs://bucket-id/object-id` (other URI formats return
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
@ -1704,7 +1704,7 @@ module Google
attr_accessor :location_id
# Optional. Location where the output (in JSON format) should be stored.
# Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
# Currently, only [Cloud Storage](https://cloud.google.com/storage/)
# URIs are supported, which must be specified in the following format:
# `gs://bucket-id/object-id` (other URI formats return
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
@ -2560,7 +2560,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -2629,7 +2629,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -3428,7 +3428,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -3497,7 +3497,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -4391,7 +4391,7 @@ module Google
# @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults]
attr_accessor :annotation_results
# GCS URI that stores annotation results of one streaming session.
# Cloud Storage URI that stores annotation results of one streaming session.
# It is a directory that can hold multiple files in JSON format.
# Example uri format:
# gs://bucket_id/object_id/cloud_project_name-session_id
@ -4651,7 +4651,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -4730,7 +4730,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1p2beta1
VERSION = 'V1p2beta1'
REVISION = '20200122'
REVISION = '20200226'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -593,7 +593,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -662,7 +662,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -1404,7 +1404,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -1473,7 +1473,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -2215,7 +2215,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -2284,7 +2284,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -2494,7 +2494,7 @@ module Google
attr_accessor :input_content
# Input video location. Currently, only
# [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
# [Cloud Storage](https://cloud.google.com/storage/) URIs are
# supported, which must be specified in the following format:
# `gs://bucket-id/object-id` (other URI formats return
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
@ -2515,7 +2515,7 @@ module Google
attr_accessor :location_id
# Optional. Location where the output (in JSON format) should be stored.
# Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
# Currently, only [Cloud Storage](https://cloud.google.com/storage/)
# URIs are supported, which must be specified in the following format:
# `gs://bucket-id/object-id` (other URI formats return
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
@ -3371,7 +3371,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -3440,7 +3440,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -4391,7 +4391,7 @@ module Google
# @return [Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults]
attr_accessor :annotation_results
# GCS URI that stores annotation results of one streaming session.
# Cloud Storage URI that stores annotation results of one streaming session.
# It is a directory that can hold multiple files in JSON format.
# Example uri format:
# gs://bucket_id/object_id/cloud_project_name-session_id
@ -4651,7 +4651,7 @@ module Google
attr_accessor :feature
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
@ -4730,7 +4730,7 @@ module Google
attr_accessor :frame_label_annotations
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# [Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri