Autogenerated update (2020-09-15)

Update:
- admob_v1
- billingbudgets_v1beta1
- cloudbilling_v1
- healthcare_v1
- healthcare_v1beta1
- run_v1
- sasportal_v1alpha1
- sheets_v4
- spanner_v1
- youtube_v3
This commit is contained in:
Google APIs 2020-09-15 00:38:05 +00:00
parent 47c329a09f
commit 1a22c88f8a
29 changed files with 614 additions and 1420 deletions

View File

@ -16080,6 +16080,7 @@
"/bigtableadmin:v2/key": key
"/bigtableadmin:v2/quotaUser": quota_user
"/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule": google_cloud_billing_budgets_v1beta1_all_updates_rule
"/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/disableDefaultIamRecipients": disable_default_iam_recipients
"/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/monitoringNotificationChannels": monitoring_notification_channels
? "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/monitoringNotificationChannels/monitoring_notification_channel"
: monitoring_notification_channel
@ -104621,6 +104622,7 @@
"/healthcare:v1beta1/ParserConfig/allowNullHeader": allow_null_header
"/healthcare:v1beta1/ParserConfig/schema": schema
"/healthcare:v1beta1/ParserConfig/segmentTerminator": segment_terminator
"/healthcare:v1beta1/ParserConfig/version": version
"/healthcare:v1beta1/PatientId": patient_id
"/healthcare:v1beta1/PatientId/type": type
"/healthcare:v1beta1/PatientId/value": value
@ -123906,6 +123908,8 @@
"/sasportal:v1alpha1/SasPortalListNodesResponse/nextPageToken": next_page_token
"/sasportal:v1alpha1/SasPortalListNodesResponse/nodes": nodes
"/sasportal:v1alpha1/SasPortalListNodesResponse/nodes/node": node
"/sasportal:v1alpha1/SasPortalMoveDeploymentRequest": sas_portal_move_deployment_request
"/sasportal:v1alpha1/SasPortalMoveDeploymentRequest/destination": destination
"/sasportal:v1alpha1/SasPortalMoveDeviceRequest": sas_portal_move_device_request
"/sasportal:v1alpha1/SasPortalMoveDeviceRequest/destination": destination
"/sasportal:v1alpha1/SasPortalMoveNodeRequest": sas_portal_move_node_request
@ -123960,12 +123964,23 @@
"/sasportal:v1alpha1/sasportal.customers.deployments.create/parent": parent
"/sasportal:v1alpha1/sasportal.customers.deployments.delete": delete_customer_deployment
"/sasportal:v1alpha1/sasportal.customers.deployments.delete/name": name
"/sasportal:v1alpha1/sasportal.customers.deployments.devices.create": create_customer_deployment_device
"/sasportal:v1alpha1/sasportal.customers.deployments.devices.create/parent": parent
"/sasportal:v1alpha1/sasportal.customers.deployments.devices.createSigned": create_customer_deployment_device_signed
"/sasportal:v1alpha1/sasportal.customers.deployments.devices.createSigned/parent": parent
"/sasportal:v1alpha1/sasportal.customers.deployments.devices.list": list_customer_deployment_devices
"/sasportal:v1alpha1/sasportal.customers.deployments.devices.list/filter": filter
"/sasportal:v1alpha1/sasportal.customers.deployments.devices.list/pageSize": page_size
"/sasportal:v1alpha1/sasportal.customers.deployments.devices.list/pageToken": page_token
"/sasportal:v1alpha1/sasportal.customers.deployments.devices.list/parent": parent
"/sasportal:v1alpha1/sasportal.customers.deployments.get": get_customer_deployment
"/sasportal:v1alpha1/sasportal.customers.deployments.get/name": name
"/sasportal:v1alpha1/sasportal.customers.deployments.list": list_customer_deployments
"/sasportal:v1alpha1/sasportal.customers.deployments.list/pageSize": page_size
"/sasportal:v1alpha1/sasportal.customers.deployments.list/pageToken": page_token
"/sasportal:v1alpha1/sasportal.customers.deployments.list/parent": parent
"/sasportal:v1alpha1/sasportal.customers.deployments.move": move_customer_deployment
"/sasportal:v1alpha1/sasportal.customers.deployments.move/name": name
"/sasportal:v1alpha1/sasportal.customers.deployments.patch": patch_customer_deployment
"/sasportal:v1alpha1/sasportal.customers.deployments.patch/name": name
"/sasportal:v1alpha1/sasportal.customers.deployments.patch/updateMask": update_mask
@ -124028,18 +124043,42 @@
"/sasportal:v1alpha1/sasportal.customers.patch": patch_customer
"/sasportal:v1alpha1/sasportal.customers.patch/name": name
"/sasportal:v1alpha1/sasportal.customers.patch/updateMask": update_mask
"/sasportal:v1alpha1/sasportal.deployments.devices.delete": delete_deployment_device
"/sasportal:v1alpha1/sasportal.deployments.devices.delete/name": name
"/sasportal:v1alpha1/sasportal.deployments.devices.get": get_deployment_device
"/sasportal:v1alpha1/sasportal.deployments.devices.get/name": name
"/sasportal:v1alpha1/sasportal.deployments.devices.move": move_deployment_device
"/sasportal:v1alpha1/sasportal.deployments.devices.move/name": name
"/sasportal:v1alpha1/sasportal.deployments.devices.patch": patch_deployment_device
"/sasportal:v1alpha1/sasportal.deployments.devices.patch/name": name
"/sasportal:v1alpha1/sasportal.deployments.devices.patch/updateMask": update_mask
"/sasportal:v1alpha1/sasportal.deployments.devices.signDevice": sign_deployment_device_device
"/sasportal:v1alpha1/sasportal.deployments.devices.signDevice/name": name
"/sasportal:v1alpha1/sasportal.deployments.devices.updateSigned": update_deployment_device_signed
"/sasportal:v1alpha1/sasportal.deployments.devices.updateSigned/name": name
"/sasportal:v1alpha1/sasportal.deployments.get": get_deployment
"/sasportal:v1alpha1/sasportal.deployments.get/name": name
"/sasportal:v1alpha1/sasportal.installer.generateSecret": generate_installer_secret
"/sasportal:v1alpha1/sasportal.installer.validate": validate_installer
"/sasportal:v1alpha1/sasportal.nodes.deployments.delete": delete_node_deployment
"/sasportal:v1alpha1/sasportal.nodes.deployments.delete/name": name
"/sasportal:v1alpha1/sasportal.nodes.deployments.devices.create": create_node_deployment_device
"/sasportal:v1alpha1/sasportal.nodes.deployments.devices.create/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.deployments.devices.createSigned": create_node_deployment_device_signed
"/sasportal:v1alpha1/sasportal.nodes.deployments.devices.createSigned/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.deployments.devices.list": list_node_deployment_devices
"/sasportal:v1alpha1/sasportal.nodes.deployments.devices.list/filter": filter
"/sasportal:v1alpha1/sasportal.nodes.deployments.devices.list/pageSize": page_size
"/sasportal:v1alpha1/sasportal.nodes.deployments.devices.list/pageToken": page_token
"/sasportal:v1alpha1/sasportal.nodes.deployments.devices.list/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.deployments.get": get_node_deployment
"/sasportal:v1alpha1/sasportal.nodes.deployments.get/name": name
"/sasportal:v1alpha1/sasportal.nodes.deployments.list": list_node_deployments
"/sasportal:v1alpha1/sasportal.nodes.deployments.list/pageSize": page_size
"/sasportal:v1alpha1/sasportal.nodes.deployments.list/pageToken": page_token
"/sasportal:v1alpha1/sasportal.nodes.deployments.list/parent": parent
"/sasportal:v1alpha1/sasportal.nodes.deployments.move": move_node_deployment
"/sasportal:v1alpha1/sasportal.nodes.deployments.move/name": name
"/sasportal:v1alpha1/sasportal.nodes.deployments.patch": patch_node_deployment
"/sasportal:v1alpha1/sasportal.nodes.deployments.patch/name": name
"/sasportal:v1alpha1/sasportal.nodes.deployments.patch/updateMask": update_mask
@ -133329,6 +133368,7 @@
"/spanner:v1/BeginTransactionRequest": begin_transaction_request
"/spanner:v1/BeginTransactionRequest/options": options
"/spanner:v1/Binding": binding
"/spanner:v1/Binding/bindingId": binding_id
"/spanner:v1/Binding/condition": condition
"/spanner:v1/Binding/members": members
"/spanner:v1/Binding/members/member": member

View File

@ -25,7 +25,10 @@ module Google
# @see https://developers.google.com/admob/api/
module AdmobV1
VERSION = 'V1'
REVISION = '20200905'
REVISION = '20200914'
# See your AdMob data
AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report'
end
end
end

View File

@ -345,7 +345,7 @@ module Google
# Maximum number of report data rows to return. If the value is not set, the API
# returns as many rows as possible, up to 100000. Acceptable values are 1-100000,
# inclusive. Any other values are treated as 100000.
# inclusive. Values larger than 100000 return an error.
# Corresponds to the JSON property `maxReportRows`
# @return [Fixnum]
attr_accessor :max_report_rows
@ -485,7 +485,7 @@ module Google
# Maximum number of report data rows to return. If the value is not set, the API
# returns as many rows as possible, up to 100000. Acceptable values are 1-100000,
# inclusive. Any other values are treated as 100000.
# inclusive. Values larger than 100000 return an error.
# Corresponds to the JSON property `maxReportRows`
# @return [Fixnum]
attr_accessor :max_report_rows

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
module BillingbudgetsV1beta1
VERSION = 'V1beta1'
REVISION = '20200821'
REVISION = '20200912'
# View and manage your Google Cloud Platform billing accounts
AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing'

View File

@ -27,12 +27,21 @@ module Google
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
include Google::Apis::Core::Hashable
# Optional. When set to true, disables default notifications sent when a
# threshold is exceeded. Default notifications are sent to those with Billing
# Account Administrator and Billing Account User IAM roles for the target
# account.
# Corresponds to the JSON property `disableDefaultIamRecipients`
# @return [Boolean]
attr_accessor :disable_default_iam_recipients
alias_method :disable_default_iam_recipients?, :disable_default_iam_recipients
# Optional. Targets to send notifications to when a threshold is exceeded. This
# is in addition to default recipients who have billing account roles. The value
# is the full REST resource name of a monitoring notification channel with the
# form `projects/`project_id`/notificationChannels/`channel_id``. A maximum of 5
# channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-
# notification-recipients for more details.
# is in addition to default recipients who have billing account IAM roles. The
# value is the full REST resource name of a monitoring notification channel with
# the form `projects/`project_id`/notificationChannels/`channel_id``. A maximum
# of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/
# budgets-notification-recipients for more details.
# Corresponds to the JSON property `monitoringNotificationChannels`
# @return [Array<String>]
attr_accessor :monitoring_notification_channels
@ -64,6 +73,7 @@ module Google
# Update properties of this object
def update!(**args)
@disable_default_iam_recipients = args[:disable_default_iam_recipients] if args.key?(:disable_default_iam_recipients)
@monitoring_notification_channels = args[:monitoring_notification_channels] if args.key?(:monitoring_notification_channels)
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
@schema_version = args[:schema_version] if args.key?(:schema_version)

View File

@ -91,6 +91,7 @@ module Google
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disable_default_iam_recipients, as: 'disableDefaultIamRecipients'
collection :monitoring_notification_channels, as: 'monitoringNotificationChannels'
property :pubsub_topic, as: 'pubsubTopic'
property :schema_version, as: 'schemaVersion'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/billing/
module CloudbillingV1
VERSION = 'V1'
REVISION = '20200821'
REVISION = '20200912'
# View and manage your Google Cloud Platform billing accounts
AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing'

View File

@ -143,10 +143,10 @@ module Google
# @return [String]
attr_accessor :master_billing_account
# The resource name of the billing account. The resource name has the form `
# billingAccounts/`billing_account_id``. For example, `billingAccounts/012345-
# 567890-ABCDEF` would be the resource name for billing account `012345-567890-
# ABCDEF`.
# Output only. The resource name of the billing account. The resource name has
# the form `billingAccounts/`billing_account_id``. For example, `billingAccounts/
# 012345-567890-ABCDEF` would be the resource name for billing account `012345-
# 567890-ABCDEF`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/healthcare
module HealthcareV1
VERSION = 'V1'
REVISION = '20200901'
REVISION = '20200909'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -118,9 +118,7 @@ module Google
# Creates a new health dataset. Results are returned through the Operation
# interface which returns either an `Operation.response` which contains a
# Dataset or `Operation.error`. The metadata field type is OperationMetadata. A
# Google Cloud Platform project can contain up to 500 datasets across all
# regions.
# Dataset or `Operation.error`. The metadata field type is OperationMetadata.
# @param [String] parent
# The name of the project where the server creates the dataset. For example, `
# projects/`project_id`/locations/`location_id``.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/healthcare
module HealthcareV1beta1
VERSION = 'V1beta1'
REVISION = '20200901'
REVISION = '20200909'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3231,6 +3231,12 @@ module Google
# @return [String]
attr_accessor :segment_terminator
# Immutable. Determines the version of the unschematized parser to be used when `
# schema` is not given. This field is immutable after store creation.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
@ -3240,6 +3246,7 @@ module Google
@allow_null_header = args[:allow_null_header] if args.key?(:allow_null_header)
@schema = args[:schema] if args.key?(:schema)
@segment_terminator = args[:segment_terminator] if args.key?(:segment_terminator)
@version = args[:version] if args.key?(:version)
end
end

View File

@ -1645,6 +1645,7 @@ module Google
property :schema, as: 'schema', class: Google::Apis::HealthcareV1beta1::SchemaPackage, decorator: Google::Apis::HealthcareV1beta1::SchemaPackage::Representation
property :segment_terminator, :base64 => true, as: 'segmentTerminator'
property :version, as: 'version'
end
end

View File

@ -118,9 +118,7 @@ module Google
# Creates a new health dataset. Results are returned through the Operation
# interface which returns either an `Operation.response` which contains a
# Dataset or `Operation.error`. The metadata field type is OperationMetadata. A
# Google Cloud Platform project can contain up to 500 datasets across all
# regions.
# Dataset or `Operation.error`. The metadata field type is OperationMetadata.
# @param [String] parent
# The name of the project where the server creates the dataset. For example, `
# projects/`project_id`/locations/`location_id``.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/
module RunV1
VERSION = 'V1'
REVISION = '20200814'
REVISION = '20200907'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2052,19 +2052,19 @@ module Google
include Google::Apis::Core::Hashable
# (Optional) Cloud Run fully managed: Only memory and CPU are supported. Note:
# The only supported value for CPU is '1'. Cloud Run for Anthos: supported
# Limits describes the maximum amount of compute resources allowed. The values
# of the map is string form of the 'quantity' k8s type: https://github.com/
# kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
# resource/quantity.go
# The only supported values for CPU are '1' and '2'. Cloud Run for Anthos:
# supported Limits describes the maximum amount of compute resources allowed.
# The values of the map is string form of the 'quantity' k8s type: https://
# github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
# pkg/api/resource/quantity.go
# Corresponds to the JSON property `limits`
# @return [Hash<String,String>]
attr_accessor :limits
# (Optional) Cloud Run fully managed: Only memory and CPU are supported. Note:
# The only supported value for CPU is '1'. Cloud Run for Anthos: supported
# Requests describes the minimum amount of compute resources required. If
# Requests is omitted for a container, it defaults to Limits if that is
# The only supported values for CPU are '1' and '2'. Cloud Run for Anthos:
# supported Requests describes the minimum amount of compute resources required.
# If Requests is omitted for a container, it defaults to Limits if that is
# explicitly specified, otherwise to an implementation-defined value. The values
# of the map is string form of the 'quantity' k8s type: https://github.com/
# kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/spectrum-access-system/
module SasportalV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200824'
REVISION = '20200909'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'

View File

@ -764,6 +764,26 @@ module Google
end
end
# Request for MoveDeployment method.
class SasPortalMoveDeploymentRequest
include Google::Apis::Core::Hashable
# Required. The name of the new parent resource Node or Customer to reparent the
# deployment under.
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :destination
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@destination = args[:destination] if args.key?(:destination)
end
end
# Request for MoveDevice method.
class SasPortalMoveDeviceRequest
include Google::Apis::Core::Hashable

View File

@ -148,6 +148,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SasPortalMoveDeploymentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SasPortalMoveDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -435,6 +441,13 @@ module Google
end
end
class SasPortalMoveDeploymentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :destination, as: 'destination'
end
end
class SasPortalMoveDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -147,6 +147,148 @@ module Google
execute_or_queue_command(command, &block)
end
# Moves a deployment under another node or customer.
# @param [String] name
# Required. The name of the deployment to move.
# @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest] sas_portal_move_deployment_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::SasportalV1alpha1::SasPortalOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
#
# @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 move_customer_deployment(name, sas_portal_move_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest::Representation
command.request_object = sas_portal_move_deployment_request_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
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
# Creates a device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_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::SasportalV1alpha1::SasPortalDevice] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
#
# @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_customer_deployment_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.request_object = sas_portal_device_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a signed device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_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::SasportalV1alpha1::SasPortalDevice] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
#
# @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_customer_deployment_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
command.request_object = sas_portal_create_signed_device_request_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists devices under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [String] filter
# The filter expression. The filter should have one of the following formats: "
# sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
# device. The filter is case insensitive.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response. If empty or zero, all
# devices will be listed. Must be in the range [0, 1000].
# @param [String] page_token
# A pagination token returned from a previous call to ListDevices that indicates
# where this listing should continue from.
# @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::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
#
# @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_customer_deployment_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
command.params['parent'] = parent unless parent.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
# Creates a device under a node or customer. Returned devices are unordered.
# @param [String] parent
# Required. The name of the parent resource.
@ -753,6 +895,201 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a device.
# @param [String] name
# Required. The name of the device.
# @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::SasportalV1alpha1::SasPortalEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
#
# @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_deployment_device(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets details about a device.
# @param [String] name
# Required. The name of the device.
# @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::SasportalV1alpha1::SasPortalDevice] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
#
# @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_deployment_device(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
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
# Moves a device under another node or customer.
# @param [String] name
# Required. The name of the device to move.
# @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest] sas_portal_move_device_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::SasportalV1alpha1::SasPortalOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
#
# @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 move_deployment_device(name, sas_portal_move_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest::Representation
command.request_object = sas_portal_move_device_request_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
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
# Updates a device.
# @param [String] name
# Output only. The resource path name.
# @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
# @param [String] update_mask
# Fields to be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
#
# @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_deployment_device(name, sas_portal_device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.request_object = sas_portal_device_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Signs a device.
# @param [String] name
# Output only. The resource path name.
# @param [Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest] sas_portal_sign_device_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::SasportalV1alpha1::SasPortalEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
#
# @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 sign_deployment_device_device(name, sas_portal_sign_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+name}:signDevice', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest::Representation
command.request_object = sas_portal_sign_device_request_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
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
# Updates a signed device.
# @param [String] name
# Required. The name of the device to update.
# @param [Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest] sas_portal_update_signed_device_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::SasportalV1alpha1::SasPortalDevice] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_deployment_device_signed(name, sas_portal_update_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1alpha1/{+name}:updateSigned', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest::Representation
command.request_object = sas_portal_update_signed_device_request_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
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
# Generates a secret to be used with the ValidateInstaller method
# @param [Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretRequest] sas_portal_generate_secret_request_object
# @param [String] fields
@ -843,6 +1180,148 @@ module Google
execute_or_queue_command(command, &block)
end
# Moves a deployment under another node or customer.
# @param [String] name
# Required. The name of the deployment to move.
# @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest] sas_portal_move_deployment_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::SasportalV1alpha1::SasPortalOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
#
# @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 move_node_deployment(name, sas_portal_move_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest::Representation
command.request_object = sas_portal_move_deployment_request_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
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
# Creates a device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_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::SasportalV1alpha1::SasPortalDevice] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
#
# @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_node_deployment_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.request_object = sas_portal_device_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a signed device under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_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::SasportalV1alpha1::SasPortalDevice] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
#
# @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_node_deployment_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
command.request_object = sas_portal_create_signed_device_request_object
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists devices under a node or customer.
# @param [String] parent
# Required. The name of the parent resource.
# @param [String] filter
# The filter expression. The filter should have one of the following formats: "
# sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
# device. The filter is case insensitive.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response. If empty or zero, all
# devices will be listed. Must be in the range [0, 1000].
# @param [String] page_token
# A pagination token returned from a previous call to ListDevices that indicates
# where this listing should continue from.
# @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::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
#
# @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_node_deployment_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
command.params['parent'] = parent unless parent.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
# Creates a device under a node or customer. Returned devices are unordered.
# @param [String] parent
# Required. The name of the parent resource.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/
module SheetsV4
VERSION = 'V4'
REVISION = '20200825'
REVISION = '20200908'
# See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -9032,7 +9032,7 @@ module Google
class SpreadsheetTheme
include Google::Apis::Core::Hashable
# / Name of the primary font family.
# Name of the primary font family.
# Corresponds to the JSON property `primaryFontFamily`
# @return [String]
attr_accessor :primary_font_family

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/spanner/
module SpannerV1
VERSION = 'V1'
REVISION = '20200807'
REVISION = '20200905'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -356,6 +356,12 @@ module Google
class Binding
include Google::Apis::Core::Hashable
# A client-specified ID for this binding. Expected to be globally unique to
# support the internal bindings-by-ID API.
# Corresponds to the JSON property `bindingId`
# @return [String]
attr_accessor :binding_id
# 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:
@ -417,6 +423,7 @@ module Google
# Update properties of this object
def update!(**args)
@binding_id = args[:binding_id] if args.key?(:binding_id)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)

View File

@ -558,6 +558,7 @@ module Google
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binding_id, as: 'bindingId'
property :condition, as: 'condition', class: Google::Apis::SpannerV1::Expr, decorator: Google::Apis::SpannerV1::Expr::Representation
collection :members, as: 'members'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/youtube/
module YoutubeV3
VERSION = 'V3'
REVISION = '20200909'
REVISION = '20200912'
# Manage your YouTube account
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'

View File

@ -1142,31 +1142,6 @@ module Google
end
end
#
class ChannelCard
include Google::Apis::Core::Hashable
# External channel ID. Required.
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# Each card can have a custom message. Required.
# Corresponds to the JSON property `customMessage`
# @return [String]
attr_accessor :custom_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_id = args[:channel_id] if args.key?(:channel_id)
@custom_message = args[:custom_message] if args.key?(:custom_message)
end
end
# Details about the content of a channel.
class ChannelContentDetails
include Google::Apis::Core::Hashable
@ -1320,31 +1295,6 @@ module Google
end
end
#
class ChannelElement
include Google::Apis::Core::Hashable
# External channel ID. Required.
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# Customized message for the element. Required.
# Corresponds to the JSON property `customMessage`
# @return [String]
attr_accessor :custom_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_id = args[:channel_id] if args.key?(:channel_id)
@custom_message = args[:custom_message] if args.key?(:custom_message)
end
end
#
class ListChannelsResponse
include Google::Apis::Core::Hashable
@ -2918,178 +2868,6 @@ module Google
end
end
#
class Endscreen
include Google::Apis::Core::Hashable
# A list of endscreen elements.
# Corresponds to the JSON property `elements`
# @return [Array<Google::Apis::YoutubeV3::EndscreenElement>]
attr_accessor :elements
# The time we start the endscreen in milliseconds.
# Corresponds to the JSON property `startOffset`
# @return [String]
attr_accessor :start_offset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@elements = args[:elements] if args.key?(:elements)
@start_offset = args[:start_offset] if args.key?(:start_offset)
end
end
#
class EndscreenElement
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# UUID for this element.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the element.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::EndscreenElementSnippet]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@snippet = args[:snippet] if args.key?(:snippet)
end
end
#
class EndscreenElementSnippet
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `channelElement`
# @return [Google::Apis::YoutubeV3::ChannelElement]
attr_accessor :channel_element
# Duration of the element in milliseconds. Required.
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# Fraction of video width.
# Corresponds to the JSON property `left`
# @return [Float]
attr_accessor :left
#
# Corresponds to the JSON property `linkElement`
# @return [Google::Apis::YoutubeV3::LinkElement]
attr_accessor :link_element
#
# Corresponds to the JSON property `merchandiseElement`
# @return [Google::Apis::YoutubeV3::MerchandiseElement]
attr_accessor :merchandise_element
#
# Corresponds to the JSON property `playlistElement`
# @return [Google::Apis::YoutubeV3::PlaylistElement]
attr_accessor :playlist_element
# Start of the element in milliseconds. Required.
# Corresponds to the JSON property `startOffset`
# @return [String]
attr_accessor :start_offset
#
# Corresponds to the JSON property `subscribeElement`
# @return [Google::Apis::YoutubeV3::SubscribeElement]
attr_accessor :subscribe_element
# Fraction of video height.
# Corresponds to the JSON property `top`
# @return [Float]
attr_accessor :top
#
# Corresponds to the JSON property `videoElement`
# @return [Google::Apis::YoutubeV3::VideoElement]
attr_accessor :video_element
# Fraction of video width.
# Corresponds to the JSON property `width`
# @return [Float]
attr_accessor :width
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_element = args[:channel_element] if args.key?(:channel_element)
@duration = args[:duration] if args.key?(:duration)
@left = args[:left] if args.key?(:left)
@link_element = args[:link_element] if args.key?(:link_element)
@merchandise_element = args[:merchandise_element] if args.key?(:merchandise_element)
@playlist_element = args[:playlist_element] if args.key?(:playlist_element)
@start_offset = args[:start_offset] if args.key?(:start_offset)
@subscribe_element = args[:subscribe_element] if args.key?(:subscribe_element)
@top = args[:top] if args.key?(:top)
@video_element = args[:video_element] if args.key?(:video_element)
@width = args[:width] if args.key?(:width)
end
end
#
class EndscreenGetResponse
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies what kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Endscreen resource.
# Corresponds to the JSON property `resource`
# @return [Google::Apis::YoutubeV3::Endscreen]
attr_accessor :resource
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@resource = args[:resource] if args.key?(:resource)
end
end
#
class Entity
include Google::Apis::Core::Hashable
@ -3152,146 +2930,6 @@ module Google
end
end
# A *guideCategory* resource identifies a category that YouTube algorithmically
# assigns based on a channel's content or other indicators, such as the channel'
# s popularity. The list is similar to video categories, with the difference
# being that a video's uploader can assign a video category but only YouTube can
# assign a channel category.
class GuideCategory
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The ID that YouTube uses to uniquely identify the guide category.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# guideCategory".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Basic details about a guide category.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::GuideCategorySnippet]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@snippet = args[:snippet] if args.key?(:snippet)
end
end
#
class ListGuideCategoriesResponse
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Serialized EventId of the request which produced this response.
# Corresponds to the JSON property `eventId`
# @return [String]
attr_accessor :event_id
# A list of categories that can be associated with YouTube channels. In this map,
# the category ID is the map key, and its value is the corresponding
# guideCategory resource.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubeV3::GuideCategory>]
attr_accessor :items
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# guideCategoryListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token that can be used as the value of the pageToken parameter to retrieve
# the next page in the result set.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Paging details for lists of resources, including total number of items
# available and number of resources returned in a single page.
# Corresponds to the JSON property `pageInfo`
# @return [Google::Apis::YoutubeV3::PageInfo]
attr_accessor :page_info
# The token that can be used as the value of the pageToken parameter to retrieve
# the previous page in the result set.
# Corresponds to the JSON property `prevPageToken`
# @return [String]
attr_accessor :prev_page_token
# Stub token pagination template to suppress results.
# Corresponds to the JSON property `tokenPagination`
# @return [Google::Apis::YoutubeV3::TokenPagination]
attr_accessor :token_pagination
# The visitorId identifies the visitor.
# Corresponds to the JSON property `visitorId`
# @return [String]
attr_accessor :visitor_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@event_id = args[:event_id] if args.key?(:event_id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@page_info = args[:page_info] if args.key?(:page_info)
@prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
@visitor_id = args[:visitor_id] if args.key?(:visitor_id)
end
end
# Basic details about a guide category.
class GuideCategorySnippet
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# Description of the guide category.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_id = args[:channel_id] if args.key?(:channel_id)
@title = args[:title] if args.key?(:title)
end
end
# An *i18nLanguage* resource identifies a UI language currently supported by
# YouTube.
class I18nLanguage
@ -3665,163 +3303,6 @@ module Google
end
end
#
class InfoCard
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# UUID for this infocard.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the infocard.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::InfoCardSnippet]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@snippet = args[:snippet] if args.key?(:snippet)
end
end
#
class InfoCardSnippet
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `channelInfocard`
# @return [Google::Apis::YoutubeV3::ChannelCard]
attr_accessor :channel_infocard
#
# Corresponds to the JSON property `linkInfocard`
# @return [Google::Apis::YoutubeV3::LinkCard]
attr_accessor :link_infocard
#
# Corresponds to the JSON property `playlistInfocard`
# @return [Google::Apis::YoutubeV3::PlaylistCard]
attr_accessor :playlist_infocard
# Each card can have a teaser. Required.
# Corresponds to the JSON property `teaser`
# @return [Google::Apis::YoutubeV3::InfoCardSnippetTeaser]
attr_accessor :teaser
#
# Corresponds to the JSON property `videoInfocard`
# @return [Google::Apis::YoutubeV3::VideoCard]
attr_accessor :video_infocard
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_infocard = args[:channel_infocard] if args.key?(:channel_infocard)
@link_infocard = args[:link_infocard] if args.key?(:link_infocard)
@playlist_infocard = args[:playlist_infocard] if args.key?(:playlist_infocard)
@teaser = args[:teaser] if args.key?(:teaser)
@video_infocard = args[:video_infocard] if args.key?(:video_infocard)
end
end
#
class InfoCardSnippetTeaser
include Google::Apis::Core::Hashable
# The offset from the video start at which the teaser should be displayed (
# activated), in milliseconds. Required.
# Corresponds to the JSON property `teaserStartOffset`
# @return [String]
attr_accessor :teaser_start_offset
# The teaser text to show at the top of the player for the info-card. Required
# for channel and link type cards. Optional for video and playlist type cards.
# Corresponds to the JSON property `teaserText`
# @return [String]
attr_accessor :teaser_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@teaser_start_offset = args[:teaser_start_offset] if args.key?(:teaser_start_offset)
@teaser_text = args[:teaser_text] if args.key?(:teaser_text)
end
end
#
class InfoCards
include Google::Apis::Core::Hashable
# A list of infocards.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubeV3::InfoCard>]
attr_accessor :items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
end
end
#
class InfocardListResponse
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# A list of infocards.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubeV3::InfoCard>]
attr_accessor :items
# Identifies what kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
# Describes information necessary for ingesting an RTMP or an HTTP stream.
class IngestionInfo
include Google::Apis::Core::Hashable
@ -4063,148 +3544,6 @@ module Google
end
end
#
class LinkCard
include Google::Apis::Core::Hashable
# Custom text to show as the website link. Required.
# Corresponds to the JSON property `customLinkText`
# @return [String]
attr_accessor :custom_link_text
# URL to an externally hosted image.
# Corresponds to the JSON property `externalImageUrl`
# @return [String]
attr_accessor :external_image_url
# The URL to which this card points. Required.
# Corresponds to the JSON property `targetUrl`
# @return [String]
attr_accessor :target_url
# The title to show on the card. Required.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# Previously uploaded image.
# Corresponds to the JSON property `uploadedImage`
# @return [Google::Apis::YoutubeV3::LinkCardUploadedImage]
attr_accessor :uploaded_image
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@custom_link_text = args[:custom_link_text] if args.key?(:custom_link_text)
@external_image_url = args[:external_image_url] if args.key?(:external_image_url)
@target_url = args[:target_url] if args.key?(:target_url)
@title = args[:title] if args.key?(:title)
@uploaded_image = args[:uploaded_image] if args.key?(:uploaded_image)
end
end
#
class LinkCardUploadedImage
include Google::Apis::Core::Hashable
# Image reference on the thumbnail service.
# Corresponds to the JSON property `imageFile`
# @return [String]
attr_accessor :image_file
# The version in the thumbnail service.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image_file = args[:image_file] if args.key?(:image_file)
@version = args[:version] if args.key?(:version)
end
end
#
class LinkElement
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `callToActionType`
# @return [String]
attr_accessor :call_to_action_type
# Custom text to show as the website link.
# Corresponds to the JSON property `customLinkText`
# @return [String]
attr_accessor :custom_link_text
# URL to an externally hosted image.
# Corresponds to the JSON property `externalImageUrl`
# @return [String]
attr_accessor :external_image_url
# The URL to which this card points. Required.
# Corresponds to the JSON property `targetUrl`
# @return [String]
attr_accessor :target_url
# Previously uploaded image.
# Corresponds to the JSON property `uploadedImage`
# @return [Google::Apis::YoutubeV3::LinkElementUploadedImage]
attr_accessor :uploaded_image
#
# Corresponds to the JSON property `websiteType`
# @return [String]
attr_accessor :website_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@call_to_action_type = args[:call_to_action_type] if args.key?(:call_to_action_type)
@custom_link_text = args[:custom_link_text] if args.key?(:custom_link_text)
@external_image_url = args[:external_image_url] if args.key?(:external_image_url)
@target_url = args[:target_url] if args.key?(:target_url)
@uploaded_image = args[:uploaded_image] if args.key?(:uploaded_image)
@website_type = args[:website_type] if args.key?(:website_type)
end
end
#
class LinkElementUploadedImage
include Google::Apis::Core::Hashable
# Image reference on the thumbnail service.
# Corresponds to the JSON property `imageFile`
# @return [String]
attr_accessor :image_file
# The version in the thumbnail service.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image_file = args[:image_file] if args.key?(:image_file)
@version = args[:version] if args.key?(:version)
end
end
# A *liveBroadcast* resource represents an event that will be streamed, via live
# video, on YouTube.
class LiveBroadcast
@ -6079,19 +5418,6 @@ module Google
end
end
#
class MerchandiseElement
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Settings and Info of the monitor stream
class MonitorStreamInfo
include Google::Apis::Core::Hashable
@ -6233,37 +5559,6 @@ module Google
end
end
#
class PlaylistCard
include Google::Apis::Core::Hashable
# Each card can have a custom message. Optional.
# Corresponds to the JSON property `customMessage`
# @return [String]
attr_accessor :custom_message
# External playlist ID. Required.
# Corresponds to the JSON property `playlistId`
# @return [String]
attr_accessor :playlist_id
# Starting video, if not the first. Optional.
# Corresponds to the JSON property `startVideoId`
# @return [String]
attr_accessor :start_video_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@custom_message = args[:custom_message] if args.key?(:custom_message)
@playlist_id = args[:playlist_id] if args.key?(:playlist_id)
@start_video_id = args[:start_video_id] if args.key?(:start_video_id)
end
end
#
class PlaylistContentDetails
include Google::Apis::Core::Hashable
@ -6283,25 +5578,6 @@ module Google
end
end
#
class PlaylistElement
include Google::Apis::Core::Hashable
# External playlist ID. Required.
# Corresponds to the JSON property `playlistId`
# @return [String]
attr_accessor :playlist_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@playlist_id = args[:playlist_id] if args.key?(:playlist_id)
end
end
# A *playlistItem* resource identifies another resource, such as a video, that
# is included in a playlist. In addition, the playlistItem resource contains
# details about the included resource that pertain specifically to how that
@ -7271,19 +6547,6 @@ module Google
end
end
#
class SubscribeElement
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A *subscription* resource contains information about a YouTube user
# subscription. A subscription notifies a user when new videos are added to a
# channel or when another user takes one of several actions on YouTube, such as
@ -8369,37 +7632,6 @@ module Google
end
end
#
class VideoCard
include Google::Apis::Core::Hashable
# Each card can have a custom message. Optional.
# Corresponds to the JSON property `customMessage`
# @return [String]
attr_accessor :custom_message
# Playback start time offset in milliseconds. Optional.
# Corresponds to the JSON property `playbackStartOffset`
# @return [String]
attr_accessor :playback_start_offset
# Encrypted Video ID. Required.
# Corresponds to the JSON property `videoId`
# @return [String]
attr_accessor :video_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@custom_message = args[:custom_message] if args.key?(:custom_message)
@playback_start_offset = args[:playback_start_offset] if args.key?(:playback_start_offset)
@video_id = args[:video_id] if args.key?(:video_id)
end
end
# A *videoCategory* resource identifies a category that has been or could be
# associated with uploaded videos.
class VideoCategory
@ -8659,37 +7891,6 @@ module Google
end
end
#
class VideoElement
include Google::Apis::Core::Hashable
# Playback start time offset in milliseconds. Optional.
# Corresponds to the JSON property `playbackStartOffset`
# @return [String]
attr_accessor :playback_start_offset
# Encrypted Video ID. Required.
# Corresponds to the JSON property `videoId`
# @return [String]
attr_accessor :video_id
#
# Corresponds to the JSON property `videoType`
# @return [String]
attr_accessor :video_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@playback_start_offset = args[:playback_start_offset] if args.key?(:playback_start_offset)
@video_id = args[:video_id] if args.key?(:video_id)
@video_type = args[:video_type] if args.key?(:video_type)
end
end
# Describes original video file properties, including technical details about
# audio and video streams, but also metadata information like content length,
# digitization time, or geotagging information.

View File

@ -178,12 +178,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ChannelCard
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ChannelContentDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -214,12 +208,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ChannelElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListChannelsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -364,30 +352,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Endscreen
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndscreenElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndscreenElementSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndscreenGetResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Entity
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -400,24 +364,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GuideCategory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGuideCategoriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GuideCategorySnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class I18nLanguage
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -460,36 +406,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InfoCard
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InfoCardSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InfoCardSnippetTeaser
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InfoCards
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InfocardListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class IngestionInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -532,30 +448,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LinkCard
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LinkCardUploadedImage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LinkElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LinkElementUploadedImage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LiveBroadcast
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -796,12 +688,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class MerchandiseElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitorStreamInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -820,24 +706,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PlaylistCard
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlaylistContentDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlaylistElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlaylistItem
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -964,12 +838,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SubscribeElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Subscription
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1120,12 +988,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VideoCard
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VideoCategory
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1156,12 +1018,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VideoElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VideoFileDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1611,14 +1467,6 @@ module Google
end
end
class ChannelCard
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_id, as: 'channelId'
property :custom_message, as: 'customMessage'
end
end
class ChannelContentDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1662,14 +1510,6 @@ module Google
end
end
class ChannelElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_id, as: 'channelId'
property :custom_message, as: 'customMessage'
end
end
class ListChannelsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2032,59 +1872,6 @@ module Google
end
end
class Endscreen
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :elements, as: 'elements', class: Google::Apis::YoutubeV3::EndscreenElement, decorator: Google::Apis::YoutubeV3::EndscreenElement::Representation
property :start_offset, as: 'startOffset'
end
end
class EndscreenElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :id, as: 'id'
property :kind, as: 'kind'
property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::EndscreenElementSnippet, decorator: Google::Apis::YoutubeV3::EndscreenElementSnippet::Representation
end
end
class EndscreenElementSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_element, as: 'channelElement', class: Google::Apis::YoutubeV3::ChannelElement, decorator: Google::Apis::YoutubeV3::ChannelElement::Representation
property :duration, as: 'duration'
property :left, as: 'left'
property :link_element, as: 'linkElement', class: Google::Apis::YoutubeV3::LinkElement, decorator: Google::Apis::YoutubeV3::LinkElement::Representation
property :merchandise_element, as: 'merchandiseElement', class: Google::Apis::YoutubeV3::MerchandiseElement, decorator: Google::Apis::YoutubeV3::MerchandiseElement::Representation
property :playlist_element, as: 'playlistElement', class: Google::Apis::YoutubeV3::PlaylistElement, decorator: Google::Apis::YoutubeV3::PlaylistElement::Representation
property :start_offset, as: 'startOffset'
property :subscribe_element, as: 'subscribeElement', class: Google::Apis::YoutubeV3::SubscribeElement, decorator: Google::Apis::YoutubeV3::SubscribeElement::Representation
property :top, as: 'top'
property :video_element, as: 'videoElement', class: Google::Apis::YoutubeV3::VideoElement, decorator: Google::Apis::YoutubeV3::VideoElement::Representation
property :width, as: 'width'
end
end
class EndscreenGetResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :kind, as: 'kind'
property :resource, as: 'resource', class: Google::Apis::YoutubeV3::Endscreen, decorator: Google::Apis::YoutubeV3::Endscreen::Representation
end
end
class Entity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2103,43 +1890,6 @@ module Google
end
end
class GuideCategory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :id, as: 'id'
property :kind, as: 'kind'
property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::GuideCategorySnippet, decorator: Google::Apis::YoutubeV3::GuideCategorySnippet::Representation
end
end
class ListGuideCategoriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :event_id, as: 'eventId'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::GuideCategory, decorator: Google::Apis::YoutubeV3::GuideCategory::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
property :prev_page_token, as: 'prevPageToken'
property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation
property :visitor_id, as: 'visitorId'
end
end
class GuideCategorySnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_id, as: 'channelId'
property :title, as: 'title'
end
end
class I18nLanguage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2235,59 +1985,6 @@ module Google
end
end
class InfoCard
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :id, as: 'id'
property :kind, as: 'kind'
property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::InfoCardSnippet, decorator: Google::Apis::YoutubeV3::InfoCardSnippet::Representation
end
end
class InfoCardSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_infocard, as: 'channelInfocard', class: Google::Apis::YoutubeV3::ChannelCard, decorator: Google::Apis::YoutubeV3::ChannelCard::Representation
property :link_infocard, as: 'linkInfocard', class: Google::Apis::YoutubeV3::LinkCard, decorator: Google::Apis::YoutubeV3::LinkCard::Representation
property :playlist_infocard, as: 'playlistInfocard', class: Google::Apis::YoutubeV3::PlaylistCard, decorator: Google::Apis::YoutubeV3::PlaylistCard::Representation
property :teaser, as: 'teaser', class: Google::Apis::YoutubeV3::InfoCardSnippetTeaser, decorator: Google::Apis::YoutubeV3::InfoCardSnippetTeaser::Representation
property :video_infocard, as: 'videoInfocard', class: Google::Apis::YoutubeV3::VideoCard, decorator: Google::Apis::YoutubeV3::VideoCard::Representation
end
end
class InfoCardSnippetTeaser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :teaser_start_offset, as: 'teaserStartOffset'
property :teaser_text, as: 'teaserText'
end
end
class InfoCards
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::YoutubeV3::InfoCard, decorator: Google::Apis::YoutubeV3::InfoCard::Representation
end
end
class InfocardListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::InfoCard, decorator: Google::Apis::YoutubeV3::InfoCard::Representation
property :kind, as: 'kind'
end
end
class IngestionInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2356,47 +2053,6 @@ module Google
end
end
class LinkCard
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :custom_link_text, as: 'customLinkText'
property :external_image_url, as: 'externalImageUrl'
property :target_url, as: 'targetUrl'
property :title, as: 'title'
property :uploaded_image, as: 'uploadedImage', class: Google::Apis::YoutubeV3::LinkCardUploadedImage, decorator: Google::Apis::YoutubeV3::LinkCardUploadedImage::Representation
end
end
class LinkCardUploadedImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_file, as: 'imageFile'
property :version, :numeric_string => true, as: 'version'
end
end
class LinkElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :call_to_action_type, as: 'callToActionType'
property :custom_link_text, as: 'customLinkText'
property :external_image_url, as: 'externalImageUrl'
property :target_url, as: 'targetUrl'
property :uploaded_image, as: 'uploadedImage', class: Google::Apis::YoutubeV3::LinkElementUploadedImage, decorator: Google::Apis::YoutubeV3::LinkElementUploadedImage::Representation
property :website_type, as: 'websiteType'
end
end
class LinkElementUploadedImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_file, as: 'imageFile'
property :version, :numeric_string => true, as: 'version'
end
end
class LiveBroadcast
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2890,12 +2546,6 @@ module Google
end
end
class MerchandiseElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class MonitorStreamInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2932,15 +2582,6 @@ module Google
end
end
class PlaylistCard
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :custom_message, as: 'customMessage'
property :playlist_id, as: 'playlistId'
property :start_video_id, as: 'startVideoId'
end
end
class PlaylistContentDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2948,13 +2589,6 @@ module Google
end
end
class PlaylistElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :playlist_id, as: 'playlistId'
end
end
class PlaylistItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3211,12 +2845,6 @@ module Google
end
end
class SubscribeElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Subscription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3527,15 +3155,6 @@ module Google
end
end
class VideoCard
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :custom_message, as: 'customMessage'
property :playback_start_offset, as: 'playbackStartOffset'
property :video_id, as: 'videoId'
end
end
class VideoCategory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3601,15 +3220,6 @@ module Google
end
end
class VideoElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :playback_start_offset, as: 'playbackStartOffset'
property :video_id, as: 'videoId'
property :video_type, as: 'videoType'
end
end
class VideoFileDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1178,123 +1178,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves endscreen for a given video.
# @param [String] video_id
# Encrypted id of the video.
# @param [Array<String>, String] part
# The properties to return.
# @param [String] on_behalf_of_content_owner
# Content owner of the video.
# @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::YoutubeV3::EndscreenGetResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::EndscreenGetResponse]
#
# @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_endscreen(video_id, part, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'youtube/v3/endscreen', options)
command.response_representation = Google::Apis::YoutubeV3::EndscreenGetResponse::Representation
command.response_class = Google::Apis::YoutubeV3::EndscreenGetResponse
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
command.query['part'] = part unless part.nil?
command.query['videoId'] = video_id unless video_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
# Updates endscreen for a given video. Note: * If the element id is not provided,
# a new element will be created. * If the element id is provided, that element
# will be updated. * Existing elements will be discarded if they're not included
# in the request.
# @param [String] video_id
# Encrypted id of the video this endscreen corresponds to.
# @param [Array<String>, String] part
# The properties to return.
# @param [Google::Apis::YoutubeV3::Endscreen] endscreen_object
# @param [String] on_behalf_of_content_owner
# Content owner of the video.
# @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::YoutubeV3::Endscreen] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::Endscreen]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_endscreen(video_id, part, endscreen_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'youtube/v3/endscreen', options)
command.request_representation = Google::Apis::YoutubeV3::Endscreen::Representation
command.request_object = endscreen_object
command.response_representation = Google::Apis::YoutubeV3::Endscreen::Representation
command.response_class = Google::Apis::YoutubeV3::Endscreen
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
command.query['part'] = part unless part.nil?
command.query['videoId'] = video_id unless video_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
# Retrieves a list of guide categories.
# @param [Array<String>, String] part
# The *part* parameter specifies the guideCategory resource properties that the
# API response will include. Set the parameter value to snippet.
# @param [String] hl
# @param [Array<String>, String] id
# Return the guide categories with the given IDs.
# @param [String] region_code
# Return all categories in the given region code.
# @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::YoutubeV3::ListGuideCategoriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::ListGuideCategoriesResponse]
#
# @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_guide_categories(part, hl: nil, id: nil, region_code: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'youtube/v3/guideCategories', options)
command.response_representation = Google::Apis::YoutubeV3::ListGuideCategoriesResponse::Representation
command.response_class = Google::Apis::YoutubeV3::ListGuideCategoriesResponse
command.query['hl'] = hl unless hl.nil?
command.query['id'] = id unless id.nil?
command.query['part'] = part unless part.nil?
command.query['regionCode'] = region_code unless region_code.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 list of resources, possibly filtered.
# @param [Array<String>, String] part
# The *part* parameter specifies the i18nLanguage resource properties that the
@ -1361,84 +1244,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves all infocards for a given video.
# @param [Array<String>, String] part
# The properties to return.
# @param [String] on_behalf_of_content_owner
# Content owner of the video.
# @param [String] video_id
# Encrypted id of the video.
# @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::YoutubeV3::InfocardListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::InfocardListResponse]
#
# @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_infocards(part, on_behalf_of_content_owner: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'youtube/v3/infocards', options)
command.response_representation = Google::Apis::YoutubeV3::InfocardListResponse::Representation
command.response_class = Google::Apis::YoutubeV3::InfocardListResponse
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
command.query['part'] = part unless part.nil?
command.query['videoId'] = video_id unless video_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
# Updates infocards for a given video. Note: * If the card id is not provided, a
# new card will be created. * If the card id is provided, that card will be
# updated. * Existing cards will be discarded if they're not included in the
# request.
# @param [Array<String>, String] part
# The properties to update.
# @param [Google::Apis::YoutubeV3::InfoCards] info_cards_object
# @param [String] on_behalf_of_content_owner
# Content owner of the video.
# @param [String] video_id
# Encrypted id of the video.
# @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::YoutubeV3::InfoCards] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::InfoCards]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_infocard(part, info_cards_object = nil, on_behalf_of_content_owner: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'youtube/v3/infocards', options)
command.request_representation = Google::Apis::YoutubeV3::InfoCards::Representation
command.request_object = info_cards_object
command.response_representation = Google::Apis::YoutubeV3::InfoCards::Representation
command.response_class = Google::Apis::YoutubeV3::InfoCards
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
command.query['part'] = part unless part.nil?
command.query['videoId'] = video_id unless video_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
# Bind a broadcast to a stream.
# @param [String] id
# Broadcast to bind to the stream