Autogenerated update (2019-08-16)

Update:
- admin_directory_v1
- containeranalysis_v1alpha1
- containeranalysis_v1beta1
- iam_v1
- pubsub_v1
- pubsub_v1beta2
- run_v1alpha1
- youtube_v3
This commit is contained in:
Google APIs 2019-08-16 00:37:59 +00:00
parent 229a369104
commit eea7d16b5e
21 changed files with 572 additions and 38 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20190708'
REVISION = '20190806'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'

View File

@ -3338,6 +3338,17 @@ module Google
# @return [String]
attr_accessor :primary_email
# Recovery email of the user.
# Corresponds to the JSON property `recoveryEmail`
# @return [String]
attr_accessor :recovery_email
# Recovery phone of the user. The phone number must be in the E.164 format,
# starting with the plus sign (+). Example: +16506661212.
# Corresponds to the JSON property `recoveryPhone`
# @return [String]
attr_accessor :recovery_phone
#
# Corresponds to the JSON property `relations`
# @return [Object]
@ -3417,6 +3428,8 @@ module Google
@phones = args[:phones] if args.key?(:phones)
@posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts)
@primary_email = args[:primary_email] if args.key?(:primary_email)
@recovery_email = args[:recovery_email] if args.key?(:recovery_email)
@recovery_phone = args[:recovery_phone] if args.key?(:recovery_phone)
@relations = args[:relations] if args.key?(:relations)
@ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys)
@suspended = args[:suspended] if args.key?(:suspended)

View File

@ -1375,6 +1375,8 @@ module Google
property :phones, as: 'phones'
property :posix_accounts, as: 'posixAccounts'
property :primary_email, as: 'primaryEmail'
property :recovery_email, as: 'recoveryEmail'
property :recovery_phone, as: 'recoveryPhone'
property :relations, as: 'relations'
property :ssh_public_keys, as: 'sshPublicKeys'
property :suspended, as: 'suspended'

View File

@ -269,7 +269,7 @@ module Google
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [Fixnum] max_results
# Maximum number of results to return.
# Maximum number of results to return. Max allowed value is 200.
# @param [String] order_by
# Column to use for sorting results
# @param [String] org_unit_path
@ -933,7 +933,7 @@ module Google
# Name of the domain. Fill this field to get groups from only this domain. To
# return all groups in a multi-domain fill customer field instead.
# @param [Fixnum] max_results
# Maximum number of results to return.
# Maximum number of results to return. Max allowed value is 200.
# @param [String] order_by
# Column to use for sorting results
# @param [String] page_token
@ -1313,7 +1313,7 @@ module Google
# @param [Boolean] include_derived_membership
# Whether to list indirect memberships. Default: false.
# @param [Fixnum] max_results
# Maximum number of results to return.
# Maximum number of results to return. Max allowed value is 200.
# @param [String] page_token
# Token to specify next page in the list
# @param [String] roles
@ -1549,7 +1549,7 @@ module Google
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [Fixnum] max_results
# Maximum number of results to return.
# Maximum number of results to return. Max allowed value is 100.
# @param [String] order_by
# Column to use for sorting results
# @param [String] page_token

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-analysis/api/reference/rest/
module ContaineranalysisV1alpha1
VERSION = 'V1alpha1'
REVISION = '20190805'
REVISION = '20190809'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -256,14 +256,6 @@ module Google
# @return [Array<String>]
attr_accessor :exempted_members
# Specifies whether principals can be exempted for the same LogType in
# lower-level resource policies. If true, any lower-level exemptions will
# be ignored.
# Corresponds to the JSON property `ignoreChildExemptions`
# @return [Boolean]
attr_accessor :ignore_child_exemptions
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
@ -276,7 +268,6 @@ module Google
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
@log_type = args[:log_type] if args.key?(:log_type)
end
end

View File

@ -488,7 +488,6 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
property :log_type, as: 'logType'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-analysis/api/reference/rest/
module ContaineranalysisV1beta1
VERSION = 'V1beta1'
REVISION = '20190805'
REVISION = '20190809'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -221,14 +221,6 @@ module Google
# @return [Array<String>]
attr_accessor :exempted_members
# Specifies whether principals can be exempted for the same LogType in
# lower-level resource policies. If true, any lower-level exemptions will
# be ignored.
# Corresponds to the JSON property `ignoreChildExemptions`
# @return [Boolean]
attr_accessor :ignore_child_exemptions
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
@ -241,7 +233,6 @@ module Google
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
@log_type = args[:log_type] if args.key?(:log_type)
end
end

View File

@ -518,7 +518,6 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
property :log_type, as: 'logType'
end
end

View File

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

View File

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

View File

@ -186,7 +186,7 @@ module Google
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0 and 1.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# @param [String] fields
@ -535,7 +535,7 @@ module Google
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0 and 1.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# @param [String] fields
@ -984,7 +984,7 @@ module Google
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0 and 1.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs
module PubsubV1beta2
VERSION = 'V1beta2'
REVISION = '20190723'
REVISION = '20190808'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -200,7 +200,7 @@ module Google
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0 and 1.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# @param [String] fields
@ -563,7 +563,7 @@ module Google
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0 and 1.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# @param [String] fields

View File

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

View File

@ -1841,7 +1841,7 @@ module Google
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0 and 1.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# @param [String] fields

View File

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

View File

@ -3493,6 +3493,25 @@ module Google
end
end
#
class LevelDetails
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
end
end
# A liveBroadcast resource represents an event that will be streamed, via live
# video, on YouTube.
class LiveBroadcast
@ -5178,6 +5197,303 @@ module Google
end
end
# A member resource represents a member for a YouTube channel. A member provides
# recurring monetary support to a creator and receives special benefits.
class Member
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @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`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the member.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::MemberSnippet]
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 MemberListResponse
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 members that match the request criteria.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubeV3::Member>]
attr_accessor :items
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# memberListResponse".
# 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
# 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)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
@visitor_id = args[:visitor_id] if args.key?(:visitor_id)
end
end
#
class MemberSnippet
include Google::Apis::Core::Hashable
# The id of the channel that's offering memberships.
# Corresponds to the JSON property `creatorChannelId`
# @return [String]
attr_accessor :creator_channel_id
# Details about the member.
# Corresponds to the JSON property `memberDetails`
# @return [Google::Apis::YoutubeV3::ChannelProfileDetails]
attr_accessor :member_details
# Details about the user's membership.
# Corresponds to the JSON property `membershipsDetails`
# @return [Google::Apis::YoutubeV3::MembershipsDetails]
attr_accessor :memberships_details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creator_channel_id = args[:creator_channel_id] if args.key?(:creator_channel_id)
@member_details = args[:member_details] if args.key?(:member_details)
@memberships_details = args[:memberships_details] if args.key?(:memberships_details)
end
end
#
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.
# Corresponds to the JSON property `accessibleLevels`
# @return [Array<String>]
attr_accessor :accessible_levels
# The date and time when the user became a continuous member across all levels.
# Corresponds to the JSON property `memberSince`
# @return [String]
attr_accessor :member_since
# The date and time when the user started to continuously have access to the
# currently highest level.
# Corresponds to the JSON property `memberSinceCurrentLevel`
# @return [String]
attr_accessor :member_since_current_level
# The cumulative time the user has been a member across all levels in complete
# months (the time is rounded down to the nearest integer).
# Corresponds to the JSON property `memberTotalDuration`
# @return [Fixnum]
attr_accessor :member_total_duration
# The cumulative time the user has had access to the currently highest level in
# complete months (the time is rounded down to the nearest integer).
# Corresponds to the JSON property `memberTotalDurationCurrentLevel`
# @return [Fixnum]
attr_accessor :member_total_duration_current_level
# The highest level the user has access to at the moment.
# Corresponds to the JSON property `purchasedLevel`
# @return [String]
attr_accessor :purchased_level
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@accessible_levels = args[:accessible_levels] if args.key?(:accessible_levels)
@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)
@member_total_duration_current_level = args[:member_total_duration_current_level] if args.key?(:member_total_duration_current_level)
@purchased_level = args[:purchased_level] if args.key?(:purchased_level)
end
end
# A membershipsLevel resource represents an offer made by YouTube creators for
# their fans. Users can become members of the channel by joining one of the
# available levels. They will provide recurring monetary support and receives
# special benefits.
class MembershipsLevel
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The ID that YouTube assigns to uniquely identify the memberships level.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# membershipsLevel".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the level.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::MembershipsLevelSnippet]
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 MembershipsLevelListResponse
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 pricing levels offered by a creator to the fans.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubeV3::MembershipsLevel>]
attr_accessor :items
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# membershipsLevelListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# 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)
@visitor_id = args[:visitor_id] if args.key?(:visitor_id)
end
end
#
class MembershipsLevelSnippet
include Google::Apis::Core::Hashable
# The id of the channel that's offering channel memberships.
# Corresponds to the JSON property `creatorChannelId`
# @return [String]
attr_accessor :creator_channel_id
#
# Corresponds to the JSON property `levelDetails`
# @return [Google::Apis::YoutubeV3::LevelDetails]
attr_accessor :level_details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creator_channel_id = args[:creator_channel_id] if args.key?(:creator_channel_id)
@level_details = args[:level_details] if args.key?(:level_details)
end
end
# Settings and Info of the monitor stream
class MonitorStreamInfo
include Google::Apis::Core::Hashable

View File

@ -430,6 +430,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LevelDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LiveBroadcast
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -646,6 +652,48 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Member
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MemberListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MemberSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MembershipsDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MembershipsLevel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MembershipsLevelListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MembershipsLevelSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitorStreamInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1973,6 +2021,13 @@ module Google
end
end
class LevelDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
end
end
class LiveBroadcast
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2426,6 +2481,89 @@ module Google
end
end
class Member
# @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
end
end
class MemberListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :event_id, as: 'eventId'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::Member, decorator: Google::Apis::YoutubeV3::Member::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 :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation
property :visitor_id, as: 'visitorId'
end
end
class MemberSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creator_channel_id, as: 'creatorChannelId'
property :member_details, as: 'memberDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
property :memberships_details, as: 'membershipsDetails', class: Google::Apis::YoutubeV3::MembershipsDetails, decorator: Google::Apis::YoutubeV3::MembershipsDetails::Representation
end
end
class MembershipsDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accessible_levels, as: 'accessibleLevels'
property :member_since, as: 'memberSince'
property :member_since_current_level, as: 'memberSinceCurrentLevel'
property :member_total_duration, as: 'memberTotalDuration'
property :member_total_duration_current_level, as: 'memberTotalDurationCurrentLevel'
property :purchased_level, as: 'purchasedLevel'
end
end
class MembershipsLevel
# @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::MembershipsLevelSnippet, decorator: Google::Apis::YoutubeV3::MembershipsLevelSnippet::Representation
end
end
class MembershipsLevelListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :event_id, as: 'eventId'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::MembershipsLevel, decorator: Google::Apis::YoutubeV3::MembershipsLevel::Representation
property :kind, as: 'kind'
property :visitor_id, as: 'visitorId'
end
end
class MembershipsLevelSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creator_channel_id, as: 'creatorChannelId'
property :level_details, as: 'levelDetails', class: Google::Apis::YoutubeV3::LevelDetails, decorator: Google::Apis::YoutubeV3::LevelDetails::Representation
end
end
class MonitorStreamInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -2635,6 +2635,91 @@ module Google
execute_or_queue_command(command, &block)
end
# 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.
# @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
# members will be considered, regardless of their active pricing level.
# @param [Fixnum] max_results
# The maxResults parameter specifies the maximum number of items that should be
# returned in the result set.
# @param [String] mode
# The mode parameter specifies which channel members to return.
# @param [String] page_token
# The pageToken parameter identifies a specific page in the result set that
# should be returned. In an API response, the nextPageToken and prevPageToken
# properties identify other pages that could be retrieved.
# @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::YoutubeV3::MemberListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::MemberListResponse]
#
# @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)
command = make_simple_command(:get, 'members', options)
command.response_representation = Google::Apis::YoutubeV3::MemberListResponse::Representation
command.response_class = Google::Apis::YoutubeV3::MemberListResponse
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?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['part'] = part unless part.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
# Lists pricing levels for a channel.
# @param [String] part
# The part parameter specifies the membershipsLevel resource parts that the API
# response will include. Supported values are id and snippet.
# @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::YoutubeV3::MembershipsLevelListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::MembershipsLevelListResponse]
#
# @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_memberships_levels(part, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'membershipsLevels', options)
command.response_representation = Google::Apis::YoutubeV3::MembershipsLevelListResponse::Representation
command.response_class = Google::Apis::YoutubeV3::MembershipsLevelListResponse
command.query['part'] = part unless part.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 playlist item.
# @param [String] id
# The id parameter specifies the YouTube playlist item ID for the playlist item