diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index c653e40c1..bf96324a4 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -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' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 7130023e1..f6f4ec338 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -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) diff --git a/generated/google/apis/admin_directory_v1/representations.rb b/generated/google/apis/admin_directory_v1/representations.rb index 8fdbdf5e6..b53daf3ab 100644 --- a/generated/google/apis/admin_directory_v1/representations.rb +++ b/generated/google/apis/admin_directory_v1/representations.rb @@ -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' diff --git a/generated/google/apis/admin_directory_v1/service.rb b/generated/google/apis/admin_directory_v1/service.rb index 6d1d73b86..f32dcb6a7 100644 --- a/generated/google/apis/admin_directory_v1/service.rb +++ b/generated/google/apis/admin_directory_v1/service.rb @@ -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 diff --git a/generated/google/apis/containeranalysis_v1alpha1.rb b/generated/google/apis/containeranalysis_v1alpha1.rb index f5654b56a..d1d7a6f61 100644 --- a/generated/google/apis/containeranalysis_v1alpha1.rb +++ b/generated/google/apis/containeranalysis_v1alpha1.rb @@ -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' diff --git a/generated/google/apis/containeranalysis_v1alpha1/classes.rb b/generated/google/apis/containeranalysis_v1alpha1/classes.rb index 506119cdc..b66867a59 100644 --- a/generated/google/apis/containeranalysis_v1alpha1/classes.rb +++ b/generated/google/apis/containeranalysis_v1alpha1/classes.rb @@ -256,14 +256,6 @@ module Google # @return [Array] 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 diff --git a/generated/google/apis/containeranalysis_v1alpha1/representations.rb b/generated/google/apis/containeranalysis_v1alpha1/representations.rb index 8a3609ddd..3444c1513 100644 --- a/generated/google/apis/containeranalysis_v1alpha1/representations.rb +++ b/generated/google/apis/containeranalysis_v1alpha1/representations.rb @@ -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 diff --git a/generated/google/apis/containeranalysis_v1beta1.rb b/generated/google/apis/containeranalysis_v1beta1.rb index 9bde51d9e..0d1b0a5c8 100644 --- a/generated/google/apis/containeranalysis_v1beta1.rb +++ b/generated/google/apis/containeranalysis_v1beta1.rb @@ -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' diff --git a/generated/google/apis/containeranalysis_v1beta1/classes.rb b/generated/google/apis/containeranalysis_v1beta1/classes.rb index 4d9c3f94a..0d2fee492 100644 --- a/generated/google/apis/containeranalysis_v1beta1/classes.rb +++ b/generated/google/apis/containeranalysis_v1beta1/classes.rb @@ -221,14 +221,6 @@ module Google # @return [Array] 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 diff --git a/generated/google/apis/containeranalysis_v1beta1/representations.rb b/generated/google/apis/containeranalysis_v1beta1/representations.rb index 9ffb3db84..cd995e2a8 100644 --- a/generated/google/apis/containeranalysis_v1beta1/representations.rb +++ b/generated/google/apis/containeranalysis_v1beta1/representations.rb @@ -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 diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index 8be34a488..e158a7206 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -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' diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index 1fb303a5d..e51d13c06 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -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' diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index 6fa4235a4..e79176536 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -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 diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index e8b926ed2..db785b77f 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -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' diff --git a/generated/google/apis/pubsub_v1beta2/service.rb b/generated/google/apis/pubsub_v1beta2/service.rb index f11537400..bf6f61277 100644 --- a/generated/google/apis/pubsub_v1beta2/service.rb +++ b/generated/google/apis/pubsub_v1beta2/service.rb @@ -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 diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index b4093c4a8..0d7f0b6ea 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -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' diff --git a/generated/google/apis/run_v1alpha1/service.rb b/generated/google/apis/run_v1alpha1/service.rb index 4f7cfc125..e0fe75b8d 100644 --- a/generated/google/apis/run_v1alpha1/service.rb +++ b/generated/google/apis/run_v1alpha1/service.rb @@ -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 diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index ae235bf2c..7231fc625 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -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' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index c24af53de..b7466f9ea 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -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] + 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] + 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] + 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 diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index 61fb6a758..be05d7abf 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -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 diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index bbcdf2477..5b842096d 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -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