Autogenerated update (2020-01-11)
Update: - androidpublisher_v3 - clouddebugger_v2 - dialogflow_v2 - dialogflow_v2beta1 - drive_v2 - gmail_v1 - storage_v1 - youtube_v3
This commit is contained in:
parent
99b422b4e0
commit
6032d14082
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20191202'
|
||||
REVISION = '20191215'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -486,6 +486,37 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class DeviceSpec
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `screenDensity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :screen_density
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `supportedAbis`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :supported_abis
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `supportedLocales`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :supported_locales
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@screen_density = args[:screen_density] if args.key?(:screen_density)
|
||||
@supported_abis = args[:supported_abis] if args.key?(:supported_abis)
|
||||
@supported_locales = args[:supported_locales] if args.key?(:supported_locales)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ExpansionFile
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1268,6 +1299,11 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :purchase_type
|
||||
|
||||
# The quantity associated with the purchase of the inapp product.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -1284,6 +1320,7 @@ module Google
|
|||
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
|
||||
@purchase_token = args[:purchase_token] if args.key?(:purchase_token)
|
||||
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1883,6 +1920,44 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SystemApkVariantsCreateRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `deviceSpec`
|
||||
# @return [Google::Apis::AndroidpublisherV3::DeviceSpec]
|
||||
attr_accessor :device_spec
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@device_spec = args[:device_spec] if args.key?(:device_spec)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SystemApkVariantsListResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `variants`
|
||||
# @return [Array<Google::Apis::AndroidpublisherV3::Variant>]
|
||||
attr_accessor :variants
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@variants = args[:variants] if args.key?(:variants)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Testers
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -2164,6 +2239,31 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Represents the variant of a generated system APK from an uploaded App Bundle.
|
||||
class Variant
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `deviceSpec`
|
||||
# @return [Google::Apis::AndroidpublisherV3::DeviceSpec]
|
||||
attr_accessor :device_spec
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `variantId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :variant_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@device_spec = args[:device_spec] if args.key?(:device_spec)
|
||||
@variant_id = args[:variant_id] if args.key?(:variant_id)
|
||||
end
|
||||
end
|
||||
|
||||
# A VoidedPurchase resource indicates a purchase that was either canceled/
|
||||
# refunded/charged-back.
|
||||
class VoidedPurchase
|
||||
|
|
|
@ -118,6 +118,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeviceSpec
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExpansionFile
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -340,6 +346,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SystemApkVariantsCreateRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SystemApkVariantsListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Testers
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -382,6 +400,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Variant
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VoidedPurchase
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -540,6 +564,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class DeviceSpec
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :screen_density, as: 'screenDensity'
|
||||
collection :supported_abis, as: 'supportedAbis'
|
||||
collection :supported_locales, as: 'supportedLocales'
|
||||
end
|
||||
end
|
||||
|
||||
class ExpansionFile
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -756,6 +789,7 @@ module Google
|
|||
property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
|
||||
property :purchase_token, as: 'purchaseToken'
|
||||
property :purchase_type, as: 'purchaseType'
|
||||
property :quantity, as: 'quantity'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -924,6 +958,22 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SystemApkVariantsCreateRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :device_spec, as: 'deviceSpec', class: Google::Apis::AndroidpublisherV3::DeviceSpec, decorator: Google::Apis::AndroidpublisherV3::DeviceSpec::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SystemApkVariantsListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :variants, as: 'variants', class: Google::Apis::AndroidpublisherV3::Variant, decorator: Google::Apis::AndroidpublisherV3::Variant::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Testers
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1003,6 +1053,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Variant
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :device_spec, as: 'deviceSpec', class: Google::Apis::AndroidpublisherV3::DeviceSpec, decorator: Google::Apis::AndroidpublisherV3::DeviceSpec::Representation
|
||||
|
||||
property :variant_id, as: 'variantId'
|
||||
end
|
||||
end
|
||||
|
||||
class VoidedPurchase
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -2427,6 +2427,164 @@ module Google
|
|||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new variant of APK which is suitable for inclusion in a system image.
|
||||
# @param [String] package_name
|
||||
# Unique identifier for the Android app; for example, "com.spiffygame".
|
||||
# @param [Fixnum] version_code
|
||||
# The version code of the App Bundle.
|
||||
# @param [Google::Apis::AndroidpublisherV3::SystemApkVariantsCreateRequest] system_apk_variants_create_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AndroidpublisherV3::Variant] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AndroidpublisherV3::Variant]
|
||||
#
|
||||
# @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_systemapk_variant(package_name, version_code, system_apk_variants_create_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{packageName}/systemApks/{versionCode}/variants', options)
|
||||
command.request_representation = Google::Apis::AndroidpublisherV3::SystemApkVariantsCreateRequest::Representation
|
||||
command.request_object = system_apk_variants_create_request_object
|
||||
command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation
|
||||
command.response_class = Google::Apis::AndroidpublisherV3::Variant
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['versionCode'] = version_code unless version_code.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Download a previously created APK which is suitable for inclusion in a system
|
||||
# image.
|
||||
# @param [String] package_name
|
||||
# Unique identifier for the Android app; for example, "com.spiffygame".
|
||||
# @param [Fixnum] version_code
|
||||
# The version code of the App Bundle.
|
||||
# @param [Fixnum] variant_id
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [IO, String] download_dest
|
||||
# IO stream or filename to receive content download
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @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 download_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
||||
if download_dest.nil?
|
||||
command = make_simple_command(:get, '{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options)
|
||||
else
|
||||
command = make_download_command(:get, '{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options)
|
||||
command.download_dest = download_dest
|
||||
end
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['versionCode'] = version_code unless version_code.nil?
|
||||
command.params['variantId'] = variant_id unless variant_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a previously created system APK variant.
|
||||
# @param [String] package_name
|
||||
# Unique identifier for the Android app; for example, "com.spiffygame".
|
||||
# @param [Fixnum] version_code
|
||||
# The version code of the App Bundle.
|
||||
# @param [Fixnum] variant_id
|
||||
# Unique identifier for this variant.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AndroidpublisherV3::Variant] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AndroidpublisherV3::Variant]
|
||||
#
|
||||
# @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_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{packageName}/systemApks/{versionCode}/variants/{variantId}', options)
|
||||
command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation
|
||||
command.response_class = Google::Apis::AndroidpublisherV3::Variant
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['versionCode'] = version_code unless version_code.nil?
|
||||
command.params['variantId'] = variant_id unless variant_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the list of previously created system APK variants.
|
||||
# @param [String] package_name
|
||||
# Unique identifier for the Android app; for example, "com.spiffygame".
|
||||
# @param [Fixnum] version_code
|
||||
# The version code of the App Bundle.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AndroidpublisherV3::SystemApkVariantsListResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AndroidpublisherV3::SystemApkVariantsListResponse]
|
||||
#
|
||||
# @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_systemapk_variants(package_name, version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{packageName}/systemApks/{versionCode}/variants', options)
|
||||
command.response_representation = Google::Apis::AndroidpublisherV3::SystemApkVariantsListResponse::Representation
|
||||
command.response_class = Google::Apis::AndroidpublisherV3::SystemApkVariantsListResponse
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['versionCode'] = version_code unless version_code.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/debugger
|
||||
module ClouddebuggerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20191003'
|
||||
REVISION = '20200102'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow/
|
||||
module DialogflowV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20191216'
|
||||
REVISION = '20200104'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -462,6 +462,11 @@ module Google
|
|||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||
# The `Context ID` is always converted to lowercase, may only contain
|
||||
# characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
|
||||
# The following context names are reserved for internal use by Dialogflow.
|
||||
# You should not use these contexts or create contexts with these names:
|
||||
# * `__system_counters__`
|
||||
# * `*_id_dialog_context`
|
||||
# * `*_dialog_params_size`
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
@ -864,6 +869,15 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :audio_encoding
|
||||
|
||||
# Optional. If `true`, Dialogflow returns SpeechWordInfo in
|
||||
# StreamingRecognitionResult with information about the recognized speech
|
||||
# words, e.g. start and end time offsets. If false or unspecified, Speech
|
||||
# doesn't return any word-level information.
|
||||
# Corresponds to the JSON property `enableWordInfo`
|
||||
# @return [Boolean]
|
||||
attr_accessor :enable_word_info
|
||||
alias_method :enable_word_info?, :enable_word_info
|
||||
|
||||
# Required. The language of the supplied audio. Dialogflow does not do
|
||||
# translations. See [Language
|
||||
# Support](https://cloud.google.com/dialogflow/docs/reference/language)
|
||||
|
@ -873,6 +887,22 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :language_code
|
||||
|
||||
# Optional. Which Speech model to select for the given request. Select the
|
||||
# model best suited to your domain to get best results. If a model is not
|
||||
# explicitly specified, then we auto-select a model based on the parameters
|
||||
# in the InputAudioConfig.
|
||||
# If enhanced speech model is enabled for the agent and an enhanced
|
||||
# version of the specified model for the language does not exist, then the
|
||||
# speech is recognized using the standard version of the specified model.
|
||||
# Refer to
|
||||
# [Cloud Speech API
|
||||
# documentation](https://cloud.google.com/speech-to-text/docs/basics#select-
|
||||
# model)
|
||||
# for more details.
|
||||
# Corresponds to the JSON property `model`
|
||||
# @return [String]
|
||||
attr_accessor :model
|
||||
|
||||
# Optional. Which variant of the Speech model to use.
|
||||
# Corresponds to the JSON property `modelVariant`
|
||||
# @return [String]
|
||||
|
@ -884,6 +914,9 @@ module Google
|
|||
# documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-
|
||||
# hints)
|
||||
# for more details.
|
||||
# This field is deprecated. Please use [speech_contexts]() instead. If you
|
||||
# specify both [phrase_hints]() and [speech_contexts](), Dialogflow will
|
||||
# treat the [phrase_hints]() as a single additional [SpeechContext]().
|
||||
# Corresponds to the JSON property `phraseHints`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :phrase_hints
|
||||
|
@ -912,6 +945,15 @@ module Google
|
|||
attr_accessor :single_utterance
|
||||
alias_method :single_utterance?, :single_utterance
|
||||
|
||||
# Optional. Context information to assist speech recognition.
|
||||
# See [the Cloud Speech
|
||||
# documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-
|
||||
# hints)
|
||||
# for more details.
|
||||
# Corresponds to the JSON property `speechContexts`
|
||||
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechContext>]
|
||||
attr_accessor :speech_contexts
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -919,11 +961,14 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
|
||||
@enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
|
||||
@language_code = args[:language_code] if args.key?(:language_code)
|
||||
@model = args[:model] if args.key?(:model)
|
||||
@model_variant = args[:model_variant] if args.key?(:model_variant)
|
||||
@phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints)
|
||||
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
||||
@single_utterance = args[:single_utterance] if args.key?(:single_utterance)
|
||||
@speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2892,6 +2937,47 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Hints for the speech recognizer to help with recognition in a specific
|
||||
# conversation state.
|
||||
class GoogleCloudDialogflowV2SpeechContext
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. Boost for this context compared to other contexts:
|
||||
# * If the boost is positive, Dialogflow will increase the probability that
|
||||
# the phrases in this context are recognized over similar sounding phrases.
|
||||
# * If the boost is unspecified or non-positive, Dialogflow will not apply
|
||||
# any boost.
|
||||
# Dialogflow recommends that you use boosts in the range (0, 20] and that you
|
||||
# find a value that fits your use case with binary search.
|
||||
# Corresponds to the JSON property `boost`
|
||||
# @return [Float]
|
||||
attr_accessor :boost
|
||||
|
||||
# Optional. A list of strings containing words and phrases that the speech
|
||||
# recognizer should recognize with higher likelihood.
|
||||
# This list can be used to:
|
||||
# * improve accuracy for words and phrases you expect the user to say,
|
||||
# e.g. typical commands for your Dialogflow agent
|
||||
# * add additional words to the speech recognizer vocabulary
|
||||
# * ...
|
||||
# See the [Cloud Speech
|
||||
# documentation](https://cloud.google.com/speech-to-text/quotas) for usage
|
||||
# limits.
|
||||
# Corresponds to the JSON property `phrases`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :phrases
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@boost = args[:boost] if args.key?(:boost)
|
||||
@phrases = args[:phrases] if args.key?(:phrases)
|
||||
end
|
||||
end
|
||||
|
||||
# Configuration of how speech should be synthesized.
|
||||
class GoogleCloudDialogflowV2SynthesizeSpeechConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -466,6 +466,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudDialogflowV2SpeechContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudDialogflowV2SynthesizeSpeechConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -1149,11 +1155,15 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :audio_encoding, as: 'audioEncoding'
|
||||
property :enable_word_info, as: 'enableWordInfo'
|
||||
property :language_code, as: 'languageCode'
|
||||
property :model, as: 'model'
|
||||
property :model_variant, as: 'modelVariant'
|
||||
collection :phrase_hints, as: 'phraseHints'
|
||||
property :sample_rate_hertz, as: 'sampleRateHertz'
|
||||
property :single_utterance, as: 'singleUtterance'
|
||||
collection :speech_contexts, as: 'speechContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechContext, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechContext::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1706,6 +1716,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleCloudDialogflowV2SpeechContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :boost, as: 'boost'
|
||||
collection :phrases, as: 'phrases'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudDialogflowV2SynthesizeSpeechConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -1218,6 +1218,11 @@ module Google
|
|||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||
# The `Context ID` is always converted to lowercase, may only contain
|
||||
# characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
|
||||
# The following context names are reserved for internal use by Dialogflow.
|
||||
# You should not use these contexts or create contexts with these names:
|
||||
# * `__system_counters__`
|
||||
# * `*_id_dialog_context`
|
||||
# * `*_dialog_params_size`
|
||||
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object
|
||||
# @param [String] update_mask
|
||||
# Optional. The mask to control which fields get updated.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow/
|
||||
module DialogflowV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20191216'
|
||||
REVISION = '20200104'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -121,6 +121,11 @@ module Google
|
|||
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||
# The `Context ID` is always converted to lowercase, may only contain
|
||||
# characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.
|
||||
# The following context names are reserved for internal use by Dialogflow.
|
||||
# You should not use these contexts or create contexts with these names:
|
||||
# * `__system_counters__`
|
||||
# * `*_id_dialog_context`
|
||||
# * `*_dialog_params_size`
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
@ -3088,6 +3093,9 @@ module Google
|
|||
# documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-
|
||||
# hints)
|
||||
# for more details.
|
||||
# This field is deprecated. Please use [speech_contexts]() instead. If you
|
||||
# specify both [phrase_hints]() and [speech_contexts](), Dialogflow will
|
||||
# treat the [phrase_hints]() as a single additional [SpeechContext]().
|
||||
# Corresponds to the JSON property `phraseHints`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :phrase_hints
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/drive/
|
||||
module DriveV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20191017'
|
||||
REVISION = '20191213'
|
||||
|
||||
# See, edit, create, and delete all of your Google Drive files
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -2702,98 +2702,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Exports the contents of the Realtime API data model associated with this file
|
||||
# as JSON.
|
||||
# @param [String] file_id
|
||||
# The ID of the file that the Realtime API data model is associated with.
|
||||
# @param [Fixnum] revision
|
||||
# The revision of the Realtime API data model to export. Revisions start at 1 (
|
||||
# the initial empty data model) and are incremented with each change. If this
|
||||
# parameter is excluded, the most recent data model will be returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [IO, String] download_dest
|
||||
# IO stream or filename to receive content download
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @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_realtime(file_id, revision: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
||||
if download_dest.nil?
|
||||
command = make_simple_command(:get, 'files/{fileId}/realtime', options)
|
||||
else
|
||||
command = make_download_command(:get, 'files/{fileId}/realtime', options)
|
||||
command.download_dest = download_dest
|
||||
end
|
||||
command.params['fileId'] = file_id unless file_id.nil?
|
||||
command.query['revision'] = revision unless revision.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Overwrites the Realtime API data model associated with this file with the
|
||||
# provided JSON data model.
|
||||
# @param [String] file_id
|
||||
# The ID of the file that the Realtime API data model is associated with.
|
||||
# @param [String] base_revision
|
||||
# The revision of the model to diff the uploaded model against. If set, the
|
||||
# uploaded model is diffed against the provided revision and those differences
|
||||
# are merged with any changes made to the model after the provided revision. If
|
||||
# not set, the uploaded model replaces the current model on the server.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [IO, String] upload_source
|
||||
# IO stream or filename containing content to upload
|
||||
# @param [String] content_type
|
||||
# Content type of the uploaded content.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @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_realtime(file_id, base_revision: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
||||
if upload_source.nil?
|
||||
command = make_simple_command(:put, 'files/{fileId}/realtime', options)
|
||||
else
|
||||
command = make_upload_command(:put, 'files/{fileId}/realtime', options)
|
||||
command.upload_source = upload_source
|
||||
command.upload_content_type = content_type
|
||||
end
|
||||
command.params['fileId'] = file_id unless file_id.nil?
|
||||
command.query['baseRevision'] = base_revision unless base_revision.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a reply.
|
||||
# @param [String] file_id
|
||||
# The ID of the file.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/gmail/api/
|
||||
module GmailV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191113'
|
||||
REVISION = '20200110'
|
||||
|
||||
# Read, compose, send, and permanently delete all your email from Gmail
|
||||
AUTH_SCOPE = 'https://mail.google.com/'
|
||||
|
|
|
@ -1594,7 +1594,7 @@ module Google
|
|||
# Adds a delegate with its verification status set directly to accepted, without
|
||||
# sending any verification email. The delegate user must be a member of the same
|
||||
# G Suite organization as the delegator user.
|
||||
# Gmail imposes limtations on the number of delegates and delegators each user
|
||||
# Gmail imposes limitations on the number of delegates and delegators each user
|
||||
# in a G Suite organization can have. These limits depend on your organization,
|
||||
# but in general each user can have up to 25 delegates and up to 10 delegators.
|
||||
# Note that a delegate user must be referred to by their primary email address,
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/storage/docs/json_api/
|
||||
module StorageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191011'
|
||||
REVISION = '20191127'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -158,9 +158,10 @@ module Google
|
|||
# The bucket's default storage class, used whenever no storageClass is specified
|
||||
# for a newly-created object. This defines how objects in the bucket are stored
|
||||
# and determines the SLA and the cost of storage. Values include MULTI_REGIONAL,
|
||||
# REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If
|
||||
# this value is not specified when the bucket is created, it will default to
|
||||
# STANDARD. For more information, see storage classes.
|
||||
# REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and
|
||||
# DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket
|
||||
# is created, it will default to STANDARD. For more information, see storage
|
||||
# classes.
|
||||
# Corresponds to the JSON property `storageClass`
|
||||
# @return [String]
|
||||
attr_accessor :storage_class
|
||||
|
@ -307,7 +308,11 @@ module Google
|
|||
class IamConfiguration
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The bucket's Bucket Policy Only configuration.
|
||||
# The bucket's uniform bucket-level access configuration. The feature was
|
||||
# formerly known as Bucket Policy Only. For backward compatibility, this field
|
||||
# will be populated with identical information as the uniformBucketLevelAccess
|
||||
# field. We recommend using the uniformBucketLevelAccess field to enable and
|
||||
# disable the feature.
|
||||
# Corresponds to the JSON property `bucketPolicyOnly`
|
||||
# @return [Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly]
|
||||
attr_accessor :bucket_policy_only
|
||||
|
@ -327,7 +332,11 @@ module Google
|
|||
@uniform_bucket_level_access = args[:uniform_bucket_level_access] if args.key?(:uniform_bucket_level_access)
|
||||
end
|
||||
|
||||
# The bucket's Bucket Policy Only configuration.
|
||||
# The bucket's uniform bucket-level access configuration. The feature was
|
||||
# formerly known as Bucket Policy Only. For backward compatibility, this field
|
||||
# will be populated with identical information as the uniformBucketLevelAccess
|
||||
# field. We recommend using the uniformBucketLevelAccess field to enable and
|
||||
# disable the feature.
|
||||
class BucketPolicyOnly
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -489,8 +498,8 @@ module Google
|
|||
attr_accessor :matches_pattern
|
||||
|
||||
# Objects having any of the storage classes specified by this condition will be
|
||||
# matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD,
|
||||
# and DURABLE_REDUCED_AVAILABILITY.
|
||||
# matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE,
|
||||
# STANDARD, and DURABLE_REDUCED_AVAILABILITY.
|
||||
# Corresponds to the JSON property `matchesStorageClass`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :matches_storage_class
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/youtube/v3
|
||||
module YoutubeV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20190827'
|
||||
REVISION = '20200109'
|
||||
|
||||
# Manage your YouTube account
|
||||
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
|
||||
|
|
|
@ -1827,11 +1827,23 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :long_uploads_status
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `madeForKids`
|
||||
# @return [Boolean]
|
||||
attr_accessor :made_for_kids
|
||||
alias_method :made_for_kids?, :made_for_kids
|
||||
|
||||
# Privacy status of the channel.
|
||||
# Corresponds to the JSON property `privacyStatus`
|
||||
# @return [String]
|
||||
attr_accessor :privacy_status
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `selfDeclaredMadeForKids`
|
||||
# @return [Boolean]
|
||||
attr_accessor :self_declared_made_for_kids
|
||||
alias_method :self_declared_made_for_kids?, :self_declared_made_for_kids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -1840,7 +1852,9 @@ module Google
|
|||
def update!(**args)
|
||||
@is_linked = args[:is_linked] if args.key?(:is_linked)
|
||||
@long_uploads_status = args[:long_uploads_status] if args.key?(:long_uploads_status)
|
||||
@made_for_kids = args[:made_for_kids] if args.key?(:made_for_kids)
|
||||
@privacy_status = args[:privacy_status] if args.key?(:privacy_status)
|
||||
@self_declared_made_for_kids = args[:self_declared_made_for_kids] if args.key?(:self_declared_made_for_kids)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -3942,6 +3956,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :live_broadcast_priority
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `madeForKids`
|
||||
# @return [Boolean]
|
||||
attr_accessor :made_for_kids
|
||||
alias_method :made_for_kids?, :made_for_kids
|
||||
|
||||
# The broadcast's privacy status. Note that the broadcast represents exactly one
|
||||
# YouTube video, so the privacy settings are identical to those supported for
|
||||
# videos. In addition, you can set this field by modifying the broadcast
|
||||
|
@ -3956,6 +3976,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :recording_status
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `selfDeclaredMadeForKids`
|
||||
# @return [Boolean]
|
||||
attr_accessor :self_declared_made_for_kids
|
||||
alias_method :self_declared_made_for_kids?, :self_declared_made_for_kids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -3964,8 +3990,10 @@ module Google
|
|||
def update!(**args)
|
||||
@life_cycle_status = args[:life_cycle_status] if args.key?(:life_cycle_status)
|
||||
@live_broadcast_priority = args[:live_broadcast_priority] if args.key?(:live_broadcast_priority)
|
||||
@made_for_kids = args[:made_for_kids] if args.key?(:made_for_kids)
|
||||
@privacy_status = args[:privacy_status] if args.key?(:privacy_status)
|
||||
@recording_status = args[:recording_status] if args.key?(:recording_status)
|
||||
@self_declared_made_for_kids = args[:self_declared_made_for_kids] if args.key?(:self_declared_made_for_kids)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -5213,11 +5241,6 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# The ID that YouTube assigns to uniquely identify the member.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "youtube#
|
||||
# member".
|
||||
# Corresponds to the JSON property `kind`
|
||||
|
@ -5236,7 +5259,6 @@ module Google
|
|||
# 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
|
||||
|
@ -5341,12 +5363,22 @@ module Google
|
|||
class MembershipsDetails
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# All levels that the user has access to. This includes the purchased level and
|
||||
# all other levels that are included because of a higher purchase.
|
||||
# All levels that the user has access to. This includes the currently active
|
||||
# level and all other levels that are included because of a higher purchase.
|
||||
# Corresponds to the JSON property `accessibleLevels`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :accessible_levels
|
||||
|
||||
# The highest level that the user has access to at the moment.
|
||||
# Corresponds to the JSON property `highestAccessibleLevel`
|
||||
# @return [String]
|
||||
attr_accessor :highest_accessible_level
|
||||
|
||||
# Display name for the highest level that the user has access to at the moment.
|
||||
# Corresponds to the JSON property `highestAccessibleLevelDisplayName`
|
||||
# @return [String]
|
||||
attr_accessor :highest_accessible_level_display_name
|
||||
|
||||
# The date and time when the user became a continuous member across all levels.
|
||||
# Corresponds to the JSON property `memberSince`
|
||||
# @return [String]
|
||||
|
@ -5370,7 +5402,9 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :member_total_duration_current_level
|
||||
|
||||
# The highest level the user has access to at the moment.
|
||||
# The highest level that the user has access to at the moment. DEPRECATED -
|
||||
# highest_accessible_level should be used instead. This will be removed after we
|
||||
# make sure there are no 3rd parties relying on it.
|
||||
# Corresponds to the JSON property `purchasedLevel`
|
||||
# @return [String]
|
||||
attr_accessor :purchased_level
|
||||
|
@ -5382,6 +5416,8 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@accessible_levels = args[:accessible_levels] if args.key?(:accessible_levels)
|
||||
@highest_accessible_level = args[:highest_accessible_level] if args.key?(:highest_accessible_level)
|
||||
@highest_accessible_level_display_name = args[:highest_accessible_level_display_name] if args.key?(:highest_accessible_level_display_name)
|
||||
@member_since = args[:member_since] if args.key?(:member_since)
|
||||
@member_since_current_level = args[:member_since_current_level] if args.key?(:member_since_current_level)
|
||||
@member_total_duration = args[:member_total_duration] if args.key?(:member_total_duration)
|
||||
|
@ -8670,6 +8706,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :license
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `madeForKids`
|
||||
# @return [Boolean]
|
||||
attr_accessor :made_for_kids
|
||||
alias_method :made_for_kids?, :made_for_kids
|
||||
|
||||
# The video's privacy status.
|
||||
# Corresponds to the JSON property `privacyStatus`
|
||||
# @return [String]
|
||||
|
@ -8697,6 +8739,14 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :rejection_reason
|
||||
|
||||
# Allows clients to set the Crosswalk self_declared state for a Video. This maps
|
||||
# to VAPI.Video.creator_flags.is_crosswalk_self_declared() and VAPI.Video.
|
||||
# creator_flags.is_not_crosswalk_self_declared().
|
||||
# Corresponds to the JSON property `selfDeclaredMadeForKids`
|
||||
# @return [Boolean]
|
||||
attr_accessor :self_declared_made_for_kids
|
||||
alias_method :self_declared_made_for_kids?, :self_declared_made_for_kids
|
||||
|
||||
# The status of the uploaded video.
|
||||
# Corresponds to the JSON property `uploadStatus`
|
||||
# @return [String]
|
||||
|
@ -8711,10 +8761,12 @@ module Google
|
|||
@embeddable = args[:embeddable] if args.key?(:embeddable)
|
||||
@failure_reason = args[:failure_reason] if args.key?(:failure_reason)
|
||||
@license = args[:license] if args.key?(:license)
|
||||
@made_for_kids = args[:made_for_kids] if args.key?(:made_for_kids)
|
||||
@privacy_status = args[:privacy_status] if args.key?(:privacy_status)
|
||||
@public_stats_viewable = args[:public_stats_viewable] if args.key?(:public_stats_viewable)
|
||||
@publish_at = args[:publish_at] if args.key?(:publish_at)
|
||||
@rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
|
||||
@self_declared_made_for_kids = args[:self_declared_made_for_kids] if args.key?(:self_declared_made_for_kids)
|
||||
@upload_status = args[:upload_status] if args.key?(:upload_status)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1631,7 +1631,9 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :is_linked, as: 'isLinked'
|
||||
property :long_uploads_status, as: 'longUploadsStatus'
|
||||
property :made_for_kids, as: 'madeForKids'
|
||||
property :privacy_status, as: 'privacyStatus'
|
||||
property :self_declared_made_for_kids, as: 'selfDeclaredMadeForKids'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2125,8 +2127,10 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :life_cycle_status, as: 'lifeCycleStatus'
|
||||
property :live_broadcast_priority, as: 'liveBroadcastPriority'
|
||||
property :made_for_kids, as: 'madeForKids'
|
||||
property :privacy_status, as: 'privacyStatus'
|
||||
property :recording_status, as: 'recordingStatus'
|
||||
property :self_declared_made_for_kids, as: 'selfDeclaredMadeForKids'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2486,7 +2490,6 @@ module Google
|
|||
# @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::MemberSnippet, decorator: Google::Apis::YoutubeV3::MemberSnippet::Representation
|
||||
|
||||
|
@ -2525,6 +2528,8 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :accessible_levels, as: 'accessibleLevels'
|
||||
property :highest_accessible_level, as: 'highestAccessibleLevel'
|
||||
property :highest_accessible_level_display_name, as: 'highestAccessibleLevelDisplayName'
|
||||
property :member_since, as: 'memberSince'
|
||||
property :member_since_current_level, as: 'memberSinceCurrentLevel'
|
||||
property :member_total_duration, as: 'memberTotalDuration'
|
||||
|
@ -3412,11 +3417,13 @@ module Google
|
|||
property :embeddable, as: 'embeddable'
|
||||
property :failure_reason, as: 'failureReason'
|
||||
property :license, as: 'license'
|
||||
property :made_for_kids, as: 'madeForKids'
|
||||
property :privacy_status, as: 'privacyStatus'
|
||||
property :public_stats_viewable, as: 'publicStatsViewable'
|
||||
property :publish_at, as: 'publishAt', type: DateTime
|
||||
|
||||
property :rejection_reason, as: 'rejectionReason'
|
||||
property :self_declared_made_for_kids, as: 'selfDeclaredMadeForKids'
|
||||
property :upload_status, as: 'uploadStatus'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2638,7 +2638,12 @@ module Google
|
|||
# Lists members for a channel.
|
||||
# @param [String] part
|
||||
# The part parameter specifies the member resource parts that the API response
|
||||
# will include. Supported values are id and snippet.
|
||||
# will include. Set the parameter value to snippet.
|
||||
# @param [String] filter_by_member_channel_id
|
||||
# The filterByMemberChannelId parameter represents a comma separated list of
|
||||
# channel IDs. Only data about members that are part of this list will be
|
||||
# included in the response. It can be used to efficiently check whether specific
|
||||
# users are entitled to perks offered via third parties.
|
||||
# @param [String] has_access_to_level
|
||||
# The hasAccessToLevel parameter specifies, when set, the ID of a pricing level
|
||||
# that members from the results set should have access to. When not set, all
|
||||
|
@ -2671,10 +2676,11 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_members(part, has_access_to_level: nil, max_results: nil, mode: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def list_members(part, filter_by_member_channel_id: nil, has_access_to_level: nil, max_results: nil, mode: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'members', options)
|
||||
command.response_representation = Google::Apis::YoutubeV3::MemberListResponse::Representation
|
||||
command.response_class = Google::Apis::YoutubeV3::MemberListResponse
|
||||
command.query['filterByMemberChannelId'] = filter_by_member_channel_id unless filter_by_member_channel_id.nil?
|
||||
command.query['hasAccessToLevel'] = has_access_to_level unless has_access_to_level.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['mode'] = mode unless mode.nil?
|
||||
|
|
Loading…
Reference in New Issue