Update APIs

This commit is contained in:
Steve Bazyl 2016-01-07 16:23:51 -08:00
parent 8dcab2ace0
commit c530a350fc
39 changed files with 1914 additions and 947 deletions

View File

@ -142,6 +142,7 @@
"/analytics:v3/analytics.management.profiles.update": update_profile
"/analytics:v3/analytics.management.segments.list": list_segments
"/analytics:v3/analytics.management.unsampledReports.get": get_unsampled_report
"/analytics:v3/analytics.management.unsampledReports.delete": delete_unsampled_report
"/analytics:v3/analytics.management.unsampledReports.insert": insert_unsampled_report
"/analytics:v3/analytics.management.unsampledReports.list": list_unsampled_reports
"/analytics:v3/analytics.management.uploads.deleteUploadData": delete_upload_data

View File

@ -142,6 +142,7 @@
"/analytics:v3/analytics.management.profiles.update": update_profile
"/analytics:v3/analytics.management.segments.list": list_segments
"/analytics:v3/analytics.management.unsampledReports.get": get_unsampled_report
"/analytics:v3/analytics.management.unsampledReports.delete": delete_unsampled_report
"/analytics:v3/analytics.management.unsampledReports.insert": insert_unsampled_report
"/analytics:v3/analytics.management.unsampledReports.list": list_unsampled_reports
"/analytics:v3/analytics.management.uploads.deleteUploadData": delete_upload_data
@ -5026,6 +5027,10 @@
"/analytics:v3/analytics.management.profiles.update/webPropertyId": web_property_id
"/analytics:v3/analytics.management.segments.list/max-results": max_results
"/analytics:v3/analytics.management.segments.list/start-index": start_index
"/analytics:v3/analytics.management.unsampledReports.delete/accountId": account_id
"/analytics:v3/analytics.management.unsampledReports.delete/profileId": profile_id
"/analytics:v3/analytics.management.unsampledReports.delete/unsampledReportId": unsampled_report_id
"/analytics:v3/analytics.management.unsampledReports.delete/webPropertyId": web_property_id
"/analytics:v3/analytics.management.unsampledReports.get/accountId": account_id
"/analytics:v3/analytics.management.unsampledReports.get/profileId": profile_id
"/analytics:v3/analytics.management.unsampledReports.get/unsampledReportId": unsampled_report_id
@ -5555,6 +5560,7 @@
"/analytics:v3/McfData/totalsForAllResults/totals_for_all_result": totals_for_all_result
"/analytics:v3/Profile": profile
"/analytics:v3/Profile/accountId": account_id
"/analytics:v3/Profile/botFilteringEnabled": bot_filtering_enabled
"/analytics:v3/Profile/childLink": child_link
"/analytics:v3/Profile/childLink/href": href
"/analytics:v3/Profile/childLink/type": type
@ -6885,7 +6891,6 @@
"/bigquery:v2/JobConfiguration/copy": copy
"/bigquery:v2/JobConfiguration/dryRun": dry_run
"/bigquery:v2/JobConfiguration/extract": extract
"/bigquery:v2/JobConfiguration/link": link
"/bigquery:v2/JobConfiguration/load": load
"/bigquery:v2/JobConfiguration/query": query
"/bigquery:v2/JobConfigurationExtract": job_configuration_extract
@ -6897,12 +6902,6 @@
"/bigquery:v2/JobConfigurationExtract/fieldDelimiter": field_delimiter
"/bigquery:v2/JobConfigurationExtract/printHeader": print_header
"/bigquery:v2/JobConfigurationExtract/sourceTable": source_table
"/bigquery:v2/JobConfigurationLink": job_configuration_link
"/bigquery:v2/JobConfigurationLink/createDisposition": create_disposition
"/bigquery:v2/JobConfigurationLink/destinationTable": destination_table
"/bigquery:v2/JobConfigurationLink/sourceUri": source_uri
"/bigquery:v2/JobConfigurationLink/sourceUri/source_uri": source_uri
"/bigquery:v2/JobConfigurationLink/writeDisposition": write_disposition
"/bigquery:v2/JobConfigurationLoad": job_configuration_load
"/bigquery:v2/JobConfigurationLoad/allowJaggedRows": allow_jagged_rows
"/bigquery:v2/JobConfigurationLoad/allowQuotedNewlines": allow_quoted_newlines
@ -6929,6 +6928,7 @@
"/bigquery:v2/JobConfigurationQuery/defaultDataset": default_dataset
"/bigquery:v2/JobConfigurationQuery/destinationTable": destination_table
"/bigquery:v2/JobConfigurationQuery/flattenResults": flatten_results
"/bigquery:v2/JobConfigurationQuery/maximumBillingTier": maximum_billing_tier
"/bigquery:v2/JobConfigurationQuery/preserveNulls": preserve_nulls
"/bigquery:v2/JobConfigurationQuery/priority": priority
"/bigquery:v2/JobConfigurationQuery/query": query
@ -21571,17 +21571,6 @@
"/plus:v1/plus.comments.list/maxResults": max_results
"/plus:v1/plus.comments.list/pageToken": page_token
"/plus:v1/plus.comments.list/sortOrder": sort_order
"/plus:v1/plus.moments.insert": insert_moment
"/plus:v1/plus.moments.insert/collection": collection
"/plus:v1/plus.moments.insert/debug": debug
"/plus:v1/plus.moments.insert/userId": user_id
"/plus:v1/plus.moments.list": list_moments
"/plus:v1/plus.moments.list/collection": collection
"/plus:v1/plus.moments.list/maxResults": max_results
"/plus:v1/plus.moments.list/pageToken": page_token
"/plus:v1/plus.moments.list/targetUrl": target_url
"/plus:v1/plus.moments.list/type": type
"/plus:v1/plus.moments.list/userId": user_id
"/plus:v1/plus.people.get": get_person
"/plus:v1/plus.people.get/userId": user_id
"/plus:v1/plus.people.list": list_people
@ -21743,86 +21732,6 @@
"/plus:v1/CommentFeed/nextPageToken": next_page_token
"/plus:v1/CommentFeed/title": title
"/plus:v1/CommentFeed/updated": updated
"/plus:v1/ItemScope": item_scope
"/plus:v1/ItemScope/about": about
"/plus:v1/ItemScope/additionalName": additional_name
"/plus:v1/ItemScope/additionalName/additional_name": additional_name
"/plus:v1/ItemScope/address": address
"/plus:v1/ItemScope/addressCountry": address_country
"/plus:v1/ItemScope/addressLocality": address_locality
"/plus:v1/ItemScope/addressRegion": address_region
"/plus:v1/ItemScope/associated_media": associated_media
"/plus:v1/ItemScope/associated_media/associated_medium": associated_medium
"/plus:v1/ItemScope/attendeeCount": attendee_count
"/plus:v1/ItemScope/attendees": attendees
"/plus:v1/ItemScope/attendees/attendee": attendee
"/plus:v1/ItemScope/audio": audio
"/plus:v1/ItemScope/author": author
"/plus:v1/ItemScope/author/author": author
"/plus:v1/ItemScope/bestRating": best_rating
"/plus:v1/ItemScope/birthDate": birth_date
"/plus:v1/ItemScope/byArtist": by_artist
"/plus:v1/ItemScope/caption": caption
"/plus:v1/ItemScope/contentSize": content_size
"/plus:v1/ItemScope/contentUrl": content_url
"/plus:v1/ItemScope/contributor": contributor
"/plus:v1/ItemScope/contributor/contributor": contributor
"/plus:v1/ItemScope/dateCreated": date_created
"/plus:v1/ItemScope/dateModified": date_modified
"/plus:v1/ItemScope/datePublished": date_published
"/plus:v1/ItemScope/description": description
"/plus:v1/ItemScope/duration": duration
"/plus:v1/ItemScope/embedUrl": embed_url
"/plus:v1/ItemScope/endDate": end_date
"/plus:v1/ItemScope/familyName": family_name
"/plus:v1/ItemScope/gender": gender
"/plus:v1/ItemScope/geo": geo
"/plus:v1/ItemScope/givenName": given_name
"/plus:v1/ItemScope/height": height
"/plus:v1/ItemScope/id": id
"/plus:v1/ItemScope/image": image
"/plus:v1/ItemScope/inAlbum": in_album
"/plus:v1/ItemScope/kind": kind
"/plus:v1/ItemScope/latitude": latitude
"/plus:v1/ItemScope/location": location
"/plus:v1/ItemScope/longitude": longitude
"/plus:v1/ItemScope/name": name
"/plus:v1/ItemScope/partOfTVSeries": part_of_tv_series
"/plus:v1/ItemScope/performers": performers
"/plus:v1/ItemScope/performers/performer": performer
"/plus:v1/ItemScope/playerType": player_type
"/plus:v1/ItemScope/postOfficeBoxNumber": post_office_box_number
"/plus:v1/ItemScope/postalCode": postal_code
"/plus:v1/ItemScope/ratingValue": rating_value
"/plus:v1/ItemScope/reviewRating": review_rating
"/plus:v1/ItemScope/startDate": start_date
"/plus:v1/ItemScope/streetAddress": street_address
"/plus:v1/ItemScope/text": text
"/plus:v1/ItemScope/thumbnail": thumbnail
"/plus:v1/ItemScope/thumbnailUrl": thumbnail_url
"/plus:v1/ItemScope/tickerSymbol": ticker_symbol
"/plus:v1/ItemScope/type": type
"/plus:v1/ItemScope/url": url
"/plus:v1/ItemScope/width": width
"/plus:v1/ItemScope/worstRating": worst_rating
"/plus:v1/Moment": moment
"/plus:v1/Moment/id": id
"/plus:v1/Moment/kind": kind
"/plus:v1/Moment/object": object
"/plus:v1/Moment/result": result
"/plus:v1/Moment/startDate": start_date
"/plus:v1/Moment/target": target
"/plus:v1/Moment/type": type
"/plus:v1/MomentsFeed": moments_feed
"/plus:v1/MomentsFeed/etag": etag
"/plus:v1/MomentsFeed/items": items
"/plus:v1/MomentsFeed/items/item": item
"/plus:v1/MomentsFeed/kind": kind
"/plus:v1/MomentsFeed/nextLink": next_link
"/plus:v1/MomentsFeed/nextPageToken": next_page_token
"/plus:v1/MomentsFeed/selfLink": self_link
"/plus:v1/MomentsFeed/title": title
"/plus:v1/MomentsFeed/updated": updated
"/plus:v1/PeopleFeed": people_feed
"/plus:v1/PeopleFeed/etag": etag
"/plus:v1/PeopleFeed/items": items
@ -24684,6 +24593,11 @@
"/youtube:v3/youtube.comments.setModerationStatus/moderationStatus": moderation_status
"/youtube:v3/youtube.comments.update": update_comment
"/youtube:v3/youtube.comments.update/part": part
"/youtube:v3/youtube.fanFundingEvents.list": list_fan_funding_events
"/youtube:v3/youtube.fanFundingEvents.list/hl": hl
"/youtube:v3/youtube.fanFundingEvents.list/maxResults": max_results
"/youtube:v3/youtube.fanFundingEvents.list/pageToken": page_token
"/youtube:v3/youtube.fanFundingEvents.list/part": part
"/youtube:v3/youtube.guideCategories.list": list_guide_categories
"/youtube:v3/youtube.guideCategories.list/hl": hl
"/youtube:v3/youtube.guideCategories.list/id": id
@ -24719,6 +24633,7 @@
"/youtube:v3/youtube.liveBroadcasts.insert/part": part
"/youtube:v3/youtube.liveBroadcasts.list": list_live_broadcasts
"/youtube:v3/youtube.liveBroadcasts.list/broadcastStatus": broadcast_status
"/youtube:v3/youtube.liveBroadcasts.list/broadcastType": broadcast_type
"/youtube:v3/youtube.liveBroadcasts.list/id": id
"/youtube:v3/youtube.liveBroadcasts.list/maxResults": max_results
"/youtube:v3/youtube.liveBroadcasts.list/mine": mine
@ -24736,6 +24651,30 @@
"/youtube:v3/youtube.liveBroadcasts.update/onBehalfOfContentOwner": on_behalf_of_content_owner
"/youtube:v3/youtube.liveBroadcasts.update/onBehalfOfContentOwnerChannel": on_behalf_of_content_owner_channel
"/youtube:v3/youtube.liveBroadcasts.update/part": part
"/youtube:v3/youtube.liveChatBans.delete": delete_live_chat_ban
"/youtube:v3/youtube.liveChatBans.delete/id": id
"/youtube:v3/youtube.liveChatBans.insert": insert_live_chat_ban
"/youtube:v3/youtube.liveChatBans.insert/part": part
"/youtube:v3/youtube.liveChatMessages.delete": delete_live_chat_message
"/youtube:v3/youtube.liveChatMessages.delete/id": id
"/youtube:v3/youtube.liveChatMessages.insert": insert_live_chat_message
"/youtube:v3/youtube.liveChatMessages.insert/part": part
"/youtube:v3/youtube.liveChatMessages.list": list_live_chat_messages
"/youtube:v3/youtube.liveChatMessages.list/hl": hl
"/youtube:v3/youtube.liveChatMessages.list/liveChatId": live_chat_id
"/youtube:v3/youtube.liveChatMessages.list/maxResults": max_results
"/youtube:v3/youtube.liveChatMessages.list/pageToken": page_token
"/youtube:v3/youtube.liveChatMessages.list/part": part
"/youtube:v3/youtube.liveChatMessages.list/profileImageSize": profile_image_size
"/youtube:v3/youtube.liveChatModerators.delete": delete_live_chat_moderator
"/youtube:v3/youtube.liveChatModerators.delete/id": id
"/youtube:v3/youtube.liveChatModerators.insert": insert_live_chat_moderator
"/youtube:v3/youtube.liveChatModerators.insert/part": part
"/youtube:v3/youtube.liveChatModerators.list": list_live_chat_moderators
"/youtube:v3/youtube.liveChatModerators.list/liveChatId": live_chat_id
"/youtube:v3/youtube.liveChatModerators.list/maxResults": max_results
"/youtube:v3/youtube.liveChatModerators.list/pageToken": page_token
"/youtube:v3/youtube.liveChatModerators.list/part": part
"/youtube:v3/youtube.liveStreams.delete": delete_live_stream
"/youtube:v3/youtube.liveStreams.delete/id": id
"/youtube:v3/youtube.liveStreams.delete/onBehalfOfContentOwner": on_behalf_of_content_owner
@ -24823,6 +24762,11 @@
"/youtube:v3/youtube.search.list/videoLicense": video_license
"/youtube:v3/youtube.search.list/videoSyndicated": video_syndicated
"/youtube:v3/youtube.search.list/videoType": video_type
"/youtube:v3/youtube.sponsors.list": list_sponsors
"/youtube:v3/youtube.sponsors.list/filter": filter
"/youtube:v3/youtube.sponsors.list/maxResults": max_results
"/youtube:v3/youtube.sponsors.list/pageToken": page_token
"/youtube:v3/youtube.sponsors.list/part": part
"/youtube:v3/youtube.subscriptions.delete": delete_subscription
"/youtube:v3/youtube.subscriptions.delete/id": id
"/youtube:v3/youtube.subscriptions.insert": insert_subscription
@ -25063,6 +25007,11 @@
"/youtube:v3/ChannelLocalization": channel_localization
"/youtube:v3/ChannelLocalization/description": description
"/youtube:v3/ChannelLocalization/title": title
"/youtube:v3/ChannelProfileDetails": channel_profile_details
"/youtube:v3/ChannelProfileDetails/channelId": channel_id
"/youtube:v3/ChannelProfileDetails/channelUrl": channel_url
"/youtube:v3/ChannelProfileDetails/displayName": display_name
"/youtube:v3/ChannelProfileDetails/profileImageUrl": profile_image_url
"/youtube:v3/ChannelSection": channel_section
"/youtube:v3/ChannelSection/contentDetails": content_details
"/youtube:v3/ChannelSection/etag": etag
@ -25260,6 +25209,29 @@
"/youtube:v3/ContentRating/smsaRating": smsa_rating
"/youtube:v3/ContentRating/tvpgRating": tvpg_rating
"/youtube:v3/ContentRating/ytRating": yt_rating
"/youtube:v3/FanFundingEvent": fan_funding_event
"/youtube:v3/FanFundingEvent/etag": etag
"/youtube:v3/FanFundingEvent/id": id
"/youtube:v3/FanFundingEvent/kind": kind
"/youtube:v3/FanFundingEvent/snippet": snippet
"/youtube:v3/FanFundingEventListResponse": fan_funding_event_list_response
"/youtube:v3/FanFundingEventListResponse/etag": etag
"/youtube:v3/FanFundingEventListResponse/eventId": event_id
"/youtube:v3/FanFundingEventListResponse/items": items
"/youtube:v3/FanFundingEventListResponse/items/item": item
"/youtube:v3/FanFundingEventListResponse/kind": kind
"/youtube:v3/FanFundingEventListResponse/nextPageToken": next_page_token
"/youtube:v3/FanFundingEventListResponse/pageInfo": page_info
"/youtube:v3/FanFundingEventListResponse/tokenPagination": token_pagination
"/youtube:v3/FanFundingEventListResponse/visitorId": visitor_id
"/youtube:v3/FanFundingEventSnippet": fan_funding_event_snippet
"/youtube:v3/FanFundingEventSnippet/amountMicros": amount_micros
"/youtube:v3/FanFundingEventSnippet/channelId": channel_id
"/youtube:v3/FanFundingEventSnippet/commentText": comment_text
"/youtube:v3/FanFundingEventSnippet/createdAt": created_at
"/youtube:v3/FanFundingEventSnippet/currency": currency
"/youtube:v3/FanFundingEventSnippet/displayString": display_string
"/youtube:v3/FanFundingEventSnippet/supporterDetails": supporter_details
"/youtube:v3/GeoPoint": geo_point
"/youtube:v3/GeoPoint/altitude": altitude
"/youtube:v3/GeoPoint/latitude": latitude
@ -25369,6 +25341,7 @@
"/youtube:v3/LiveBroadcast/topicDetails": topic_details
"/youtube:v3/LiveBroadcastContentDetails": live_broadcast_content_details
"/youtube:v3/LiveBroadcastContentDetails/boundStreamId": bound_stream_id
"/youtube:v3/LiveBroadcastContentDetails/closedCaptionsType": closed_captions_type
"/youtube:v3/LiveBroadcastContentDetails/enableClosedCaptions": enable_closed_captions
"/youtube:v3/LiveBroadcastContentDetails/enableContentEncryption": enable_content_encryption
"/youtube:v3/LiveBroadcastContentDetails/enableDvr": enable_dvr
@ -25417,6 +25390,78 @@
"/youtube:v3/LiveBroadcastTopicSnippet": live_broadcast_topic_snippet
"/youtube:v3/LiveBroadcastTopicSnippet/name": name
"/youtube:v3/LiveBroadcastTopicSnippet/releaseDate": release_date
"/youtube:v3/LiveChatBan": live_chat_ban
"/youtube:v3/LiveChatBan/etag": etag
"/youtube:v3/LiveChatBan/id": id
"/youtube:v3/LiveChatBan/kind": kind
"/youtube:v3/LiveChatBan/snippet": snippet
"/youtube:v3/LiveChatBanSnippet": live_chat_ban_snippet
"/youtube:v3/LiveChatBanSnippet/banDurationSeconds": ban_duration_seconds
"/youtube:v3/LiveChatBanSnippet/bannedUserDetails": banned_user_details
"/youtube:v3/LiveChatBanSnippet/liveChatId": live_chat_id
"/youtube:v3/LiveChatBanSnippet/type": type
"/youtube:v3/LiveChatFanFundingEventDetails": live_chat_fan_funding_event_details
"/youtube:v3/LiveChatFanFundingEventDetails/amountDisplayString": amount_display_string
"/youtube:v3/LiveChatFanFundingEventDetails/amountMicros": amount_micros
"/youtube:v3/LiveChatFanFundingEventDetails/currency": currency
"/youtube:v3/LiveChatFanFundingEventDetails/userComment": user_comment
"/youtube:v3/LiveChatMessage": live_chat_message
"/youtube:v3/LiveChatMessage/authorDetails": author_details
"/youtube:v3/LiveChatMessage/etag": etag
"/youtube:v3/LiveChatMessage/id": id
"/youtube:v3/LiveChatMessage/kind": kind
"/youtube:v3/LiveChatMessage/snippet": snippet
"/youtube:v3/LiveChatMessageAuthorDetails": live_chat_message_author_details
"/youtube:v3/LiveChatMessageAuthorDetails/channelId": channel_id
"/youtube:v3/LiveChatMessageAuthorDetails/channelUrl": channel_url
"/youtube:v3/LiveChatMessageAuthorDetails/displayName": display_name
"/youtube:v3/LiveChatMessageAuthorDetails/isChatModerator": is_chat_moderator
"/youtube:v3/LiveChatMessageAuthorDetails/isChatOwner": is_chat_owner
"/youtube:v3/LiveChatMessageAuthorDetails/isChatSponsor": is_chat_sponsor
"/youtube:v3/LiveChatMessageAuthorDetails/isVerified": is_verified
"/youtube:v3/LiveChatMessageAuthorDetails/profileImageUrl": profile_image_url
"/youtube:v3/LiveChatMessageListResponse": live_chat_message_list_response
"/youtube:v3/LiveChatMessageListResponse/etag": etag
"/youtube:v3/LiveChatMessageListResponse/eventId": event_id
"/youtube:v3/LiveChatMessageListResponse/items": items
"/youtube:v3/LiveChatMessageListResponse/items/item": item
"/youtube:v3/LiveChatMessageListResponse/kind": kind
"/youtube:v3/LiveChatMessageListResponse/nextPageToken": next_page_token
"/youtube:v3/LiveChatMessageListResponse/offlineAt": offline_at
"/youtube:v3/LiveChatMessageListResponse/pageInfo": page_info
"/youtube:v3/LiveChatMessageListResponse/pollingIntervalMillis": polling_interval_millis
"/youtube:v3/LiveChatMessageListResponse/tokenPagination": token_pagination
"/youtube:v3/LiveChatMessageListResponse/visitorId": visitor_id
"/youtube:v3/LiveChatMessageSnippet": live_chat_message_snippet
"/youtube:v3/LiveChatMessageSnippet/authorChannelId": author_channel_id
"/youtube:v3/LiveChatMessageSnippet/displayMessage": display_message
"/youtube:v3/LiveChatMessageSnippet/fanFundingEventDetails": fan_funding_event_details
"/youtube:v3/LiveChatMessageSnippet/hasDisplayContent": has_display_content
"/youtube:v3/LiveChatMessageSnippet/liveChatId": live_chat_id
"/youtube:v3/LiveChatMessageSnippet/publishedAt": published_at
"/youtube:v3/LiveChatMessageSnippet/textMessageDetails": text_message_details
"/youtube:v3/LiveChatMessageSnippet/type": type
"/youtube:v3/LiveChatModerator": live_chat_moderator
"/youtube:v3/LiveChatModerator/etag": etag
"/youtube:v3/LiveChatModerator/id": id
"/youtube:v3/LiveChatModerator/kind": kind
"/youtube:v3/LiveChatModerator/snippet": snippet
"/youtube:v3/LiveChatModeratorListResponse": live_chat_moderator_list_response
"/youtube:v3/LiveChatModeratorListResponse/etag": etag
"/youtube:v3/LiveChatModeratorListResponse/eventId": event_id
"/youtube:v3/LiveChatModeratorListResponse/items": items
"/youtube:v3/LiveChatModeratorListResponse/items/item": item
"/youtube:v3/LiveChatModeratorListResponse/kind": kind
"/youtube:v3/LiveChatModeratorListResponse/nextPageToken": next_page_token
"/youtube:v3/LiveChatModeratorListResponse/pageInfo": page_info
"/youtube:v3/LiveChatModeratorListResponse/prevPageToken": prev_page_token
"/youtube:v3/LiveChatModeratorListResponse/tokenPagination": token_pagination
"/youtube:v3/LiveChatModeratorListResponse/visitorId": visitor_id
"/youtube:v3/LiveChatModeratorSnippet": live_chat_moderator_snippet
"/youtube:v3/LiveChatModeratorSnippet/liveChatId": live_chat_id
"/youtube:v3/LiveChatModeratorSnippet/moderatorDetails": moderator_details
"/youtube:v3/LiveChatTextMessageDetails": live_chat_text_message_details
"/youtube:v3/LiveChatTextMessageDetails/messageText": message_text
"/youtube:v3/LiveStream": live_stream
"/youtube:v3/LiveStream/cdn": cdn
"/youtube:v3/LiveStream/contentDetails": content_details
@ -25587,6 +25632,25 @@
"/youtube:v3/SearchResultSnippet/publishedAt": published_at
"/youtube:v3/SearchResultSnippet/thumbnails": thumbnails
"/youtube:v3/SearchResultSnippet/title": title
"/youtube:v3/Sponsor": sponsor
"/youtube:v3/Sponsor/etag": etag
"/youtube:v3/Sponsor/id": id
"/youtube:v3/Sponsor/kind": kind
"/youtube:v3/Sponsor/snippet": snippet
"/youtube:v3/SponsorListResponse": sponsor_list_response
"/youtube:v3/SponsorListResponse/etag": etag
"/youtube:v3/SponsorListResponse/eventId": event_id
"/youtube:v3/SponsorListResponse/items": items
"/youtube:v3/SponsorListResponse/items/item": item
"/youtube:v3/SponsorListResponse/kind": kind
"/youtube:v3/SponsorListResponse/nextPageToken": next_page_token
"/youtube:v3/SponsorListResponse/pageInfo": page_info
"/youtube:v3/SponsorListResponse/tokenPagination": token_pagination
"/youtube:v3/SponsorListResponse/visitorId": visitor_id
"/youtube:v3/SponsorSnippet": sponsor_snippet
"/youtube:v3/SponsorSnippet/channelId": channel_id
"/youtube:v3/SponsorSnippet/sponsorDetails": sponsor_details
"/youtube:v3/SponsorSnippet/sponsorSince": sponsor_since
"/youtube:v3/Subscription": subscription
"/youtube:v3/Subscription/contentDetails": content_details
"/youtube:v3/Subscription/etag": etag
@ -25770,6 +25834,7 @@
"/youtube:v3/VideoListResponse/tokenPagination": token_pagination
"/youtube:v3/VideoListResponse/visitorId": visitor_id
"/youtube:v3/VideoLiveStreamingDetails": video_live_streaming_details
"/youtube:v3/VideoLiveStreamingDetails/activeLiveChatId": active_live_chat_id
"/youtube:v3/VideoLiveStreamingDetails/actualEndTime": actual_end_time
"/youtube:v3/VideoLiveStreamingDetails/actualStartTime": actual_start_time
"/youtube:v3/VideoLiveStreamingDetails/concurrentViewers": concurrent_viewers

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/admin-sdk/data-transfer/
module AdminDatatransferV1
VERSION = 'DatatransferV1'
REVISION = '20150917'
REVISION = '20151124'
# View and manage data transfers between users in your organization
AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/analytics/
module AnalyticsV3
VERSION = 'V3'
REVISION = '20151124'
REVISION = '20151215'
# View and manage your Google Analytics data
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'

View File

@ -3506,6 +3506,12 @@ module Google
# @return [String]
attr_accessor :account_id
# Indicates whether bot filtering is enabled for this view (profile).
# Corresponds to the JSON property `botFilteringEnabled`
# @return [Boolean]
attr_accessor :bot_filtering_enabled
alias_method :bot_filtering_enabled?, :bot_filtering_enabled
# Child link for this view (profile). Points to the list of goals for this view (
# profile).
# Corresponds to the JSON property `childLink`
@ -3641,6 +3647,7 @@ module Google
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] unless args[:account_id].nil?
@bot_filtering_enabled = args[:bot_filtering_enabled] unless args[:bot_filtering_enabled].nil?
@child_link = args[:child_link] unless args[:child_link].nil?
@created = args[:created] unless args[:created].nil?
@currency = args[:currency] unless args[:currency].nil?

View File

@ -1264,6 +1264,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :bot_filtering_enabled, as: 'botFilteringEnabled'
property :child_link, as: 'childLink', class: Google::Apis::AnalyticsV3::Profile::ChildLink, decorator: Google::Apis::AnalyticsV3::Profile::ChildLink::Representation
property :created, as: 'created', type: DateTime

View File

@ -2489,6 +2489,48 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes an unsampled report.
# @param [String] account_id
# Account ID to delete the unsampled report for.
# @param [String] web_property_id
# Web property ID to delete the unsampled reports for.
# @param [String] profile_id
# View (Profile) ID to delete the unsampled report for.
# @param [String] unsampled_report_id
# ID of the unsampled report to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @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 delete_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', options)
command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
command.params['profileId'] = profile_id unless profile_id.nil?
command.params['unsampledReportId'] = unsampled_report_id unless unsampled_report_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 single unsampled report.
# @param [String] account_id
# Account ID to retrieve unsampled report for.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/web/api/states
module AppstateV1
VERSION = 'V1'
REVISION = '20151209'
REVISION = '20151214'
# View and manage your data for this application
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20151211'
REVISION = '20160104'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -809,11 +809,6 @@ module Google
# @return [Google::Apis::BigqueryV2::JobConfigurationExtract]
attr_accessor :extract
# [Pick one] Configures a link job.
# Corresponds to the JSON property `link`
# @return [Google::Apis::BigqueryV2::JobConfigurationLink]
attr_accessor :link
# [Pick one] Configures a load job.
# Corresponds to the JSON property `load`
# @return [Google::Apis::BigqueryV2::JobConfigurationLoad]
@ -833,7 +828,6 @@ module Google
@copy = args[:copy] unless args[:copy].nil?
@dry_run = args[:dry_run] unless args[:dry_run].nil?
@extract = args[:extract] unless args[:extract].nil?
@link = args[:link] unless args[:link].nil?
@load = args[:load] unless args[:load].nil?
@query = args[:query] unless args[:query].nil?
end
@ -901,55 +895,6 @@ module Google
end
end
#
class JobConfigurationLink
include Google::Apis::Core::Hashable
# [Optional] Specifies whether the job is allowed to create new tables. The
# following values are supported: CREATE_IF_NEEDED: If the table does not exist,
# BigQuery creates the table. CREATE_NEVER: The table must already exist. If it
# does not, a 'notFound' error is returned in the job result. The default value
# is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one
# atomic update upon job completion.
# Corresponds to the JSON property `createDisposition`
# @return [String]
attr_accessor :create_disposition
# [Required] The destination table of the link job.
# Corresponds to the JSON property `destinationTable`
# @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :destination_table
# [Required] URI of source table to link.
# Corresponds to the JSON property `sourceUri`
# @return [Array<String>]
attr_accessor :source_uri
# [Optional] Specifies the action that occurs if the destination table already
# exists. The following values are supported: WRITE_TRUNCATE: If the table
# already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table
# already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the
# table already exists and contains data, a 'duplicate' error is returned in the
# job result. The default value is WRITE_EMPTY. Each action is atomic and only
# occurs if BigQuery is able to complete the job successfully. Creation,
# truncation and append actions occur as one atomic update upon job completion.
# Corresponds to the JSON property `writeDisposition`
# @return [String]
attr_accessor :write_disposition
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_disposition = args[:create_disposition] unless args[:create_disposition].nil?
@destination_table = args[:destination_table] unless args[:destination_table].nil?
@source_uri = args[:source_uri] unless args[:source_uri].nil?
@write_disposition = args[:write_disposition] unless args[:write_disposition].nil?
end
end
#
class JobConfigurationLoad
include Google::Apis::Core::Hashable
@ -994,11 +939,12 @@ module Google
# @return [String]
attr_accessor :encoding
# [Optional] The separator for fields in a CSV file. BigQuery converts the
# string to ISO-8859-1 encoding, and then uses the first byte of the encoded
# string to split the data in its raw, binary state. BigQuery also supports the
# escape sequence "\t" to specify a tab separator. The default value is a comma (
# ',').
# [Optional] The separator for fields in a CSV file. The separator can be any
# ISO-8859-1 single-byte character. To use a character in the range 128-255, you
# must encode the character as UTF8. BigQuery converts the string to ISO-8859-1
# encoding, and then uses the first byte of the encoded string to split the data
# in its raw, binary state. BigQuery also supports the escape sequence "\t" to
# specify a tab separator. The default value is a comma (',').
# Corresponds to the JSON property `fieldDelimiter`
# @return [String]
attr_accessor :field_delimiter
@ -1045,8 +991,8 @@ module Google
attr_accessor :quote
# [Optional] The schema for the destination table. The schema can be omitted if
# the destination table already exists or if the schema can be inferred from the
# loaded data.
# the destination table already exists, or if you're loading data from Google
# Cloud Datastore.
# Corresponds to the JSON property `schema`
# @return [Google::Apis::BigqueryV2::TableSchema]
attr_accessor :schema
@ -1161,6 +1107,13 @@ module Google
attr_accessor :flatten_results
alias_method :flatten_results?, :flatten_results
# [Optional] Limits the billing tier for this job. Queries that have resource
# usage beyond this tier will fail (without incurring a charge). If unspecified,
# this will be set to your project default.
# Corresponds to the JSON property `maximumBillingTier`
# @return [Fixnum]
attr_accessor :maximum_billing_tier
# [Deprecated] This property is deprecated.
# Corresponds to the JSON property `preserveNulls`
# @return [Boolean]
@ -1223,6 +1176,7 @@ module Google
@default_dataset = args[:default_dataset] unless args[:default_dataset].nil?
@destination_table = args[:destination_table] unless args[:destination_table].nil?
@flatten_results = args[:flatten_results] unless args[:flatten_results].nil?
@maximum_billing_tier = args[:maximum_billing_tier] unless args[:maximum_billing_tier].nil?
@preserve_nulls = args[:preserve_nulls] unless args[:preserve_nulls].nil?
@priority = args[:priority] unless args[:priority].nil?
@query = args[:query] unless args[:query].nil?
@ -2024,7 +1978,8 @@ module Google
# [Output-only] Describes the table type. The following values are supported:
# TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query.
# The default value is TABLE.
# EXTERNAL: A table that references data stored in an external storage system,
# such as Google Cloud Storage. The default value is TABLE.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -2110,9 +2065,11 @@ module Google
attr_accessor :skip_invalid_rows
alias_method :skip_invalid_rows?, :skip_invalid_rows
# [Experimental] If specified, treats the destination table as a base template,
# and inserts the rows into an instance table named "". BigQuery will manage
# creation of the instance table, using the schema of the base template table.
# [Optional] If specified, treats the destination table as a base template, and
# inserts the rows into an instance table named "`destination``templateSuffix`".
# BigQuery will manage creation of the instance table, using the schema of the
# base template table. See https://cloud.google.com/bigquery/streaming-data-into-
# bigquery#template-tables for considerations when working with templates tables.
# Corresponds to the JSON property `templateSuffix`
# @return [String]
attr_accessor :template_suffix

View File

@ -82,10 +82,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class JobConfigurationLink
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class JobConfigurationLoad
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -399,8 +395,6 @@ module Google
property :dry_run, as: 'dryRun'
property :extract, as: 'extract', class: Google::Apis::BigqueryV2::JobConfigurationExtract, decorator: Google::Apis::BigqueryV2::JobConfigurationExtract::Representation
property :link, as: 'link', class: Google::Apis::BigqueryV2::JobConfigurationLink, decorator: Google::Apis::BigqueryV2::JobConfigurationLink::Representation
property :load, as: 'load', class: Google::Apis::BigqueryV2::JobConfigurationLoad, decorator: Google::Apis::BigqueryV2::JobConfigurationLoad::Representation
property :query, as: 'query', class: Google::Apis::BigqueryV2::JobConfigurationQuery, decorator: Google::Apis::BigqueryV2::JobConfigurationQuery::Representation
@ -422,17 +416,6 @@ module Google
end
end
class JobConfigurationLink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_disposition, as: 'createDisposition'
property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
collection :source_uri, as: 'sourceUri'
property :write_disposition, as: 'writeDisposition'
end
end
class JobConfigurationLoad
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -468,6 +451,7 @@ module Google
property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
property :flatten_results, as: 'flattenResults'
property :maximum_billing_tier, as: 'maximumBillingTier'
property :preserve_nulls, as: 'preserveNulls'
property :priority, as: 'priority'
property :query, as: 'query'

View File

@ -307,9 +307,9 @@ module Google
# client will need to poll for the job status to see if the cancel completed
# successfully. Cancelled jobs may still incur costs.
# @param [String] project_id
# Project ID of the job to cancel
# [Required] Project ID of the job to cancel
# @param [String] job_id
# Job ID of the job to cancel
# [Required] Job ID of the job to cancel
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -347,9 +347,9 @@ module Google
# six month period after creation. Requires that you're the person who ran the
# job, or have the Is Owner project role.
# @param [String] project_id
# Project ID of the requested job
# [Required] Project ID of the requested job
# @param [String] job_id
# Job ID of the requested job
# [Required] Job ID of the requested job
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -385,9 +385,9 @@ module Google
# Retrieves the results of a query job.
# @param [String] project_id
# Project ID of the query job
# [Required] Project ID of the query job
# @param [String] job_id
# Job ID of the query job
# [Required] Job ID of the query job
# @param [Fixnum] max_results
# Maximum number of results to read
# @param [String] page_token

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/billing/
module CloudbillingV1
VERSION = 'V1'
REVISION = '20150903'
REVISION = '20151222'
# 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/monitoring/v2beta2/
module CloudmonitoringV2beta2
VERSION = 'V2beta2'
REVISION = '20151213'
REVISION = '20160105'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerV2
VERSION = 'V2'
REVISION = '20151207'
REVISION = '20151213'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -409,14 +409,14 @@ module Google
# [Output Only] An optional progress indicator that ranges from 0 to 100. There
# is no requirement that this be linear or support any granularity of operations.
# This should not be used to guess at when the operation will be complete. This
# This should not be used to guess when the operation will be complete. This
# number should monotonically increase as the operation progresses.
# Corresponds to the JSON property `progress`
# @return [Fixnum]
attr_accessor :progress
# [Output Only] URL of the region where the operation resides. Only applicable
# for regional resources.
# [Output Only] URL of the region where the operation resides. Only available
# when performing regional operations.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
@ -466,7 +466,8 @@ module Google
# @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning>]
attr_accessor :warnings
# [Output Only] URL of the zone where the operation resides.
# [Output Only] URL of the zone where the operation resides. Only available when
# performing per-zone operations.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/doubleclick-search/
module DoubleclicksearchV2
VERSION = 'V2'
REVISION = '20151202'
REVISION = '20151230'
# View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV2
VERSION = 'V2'
REVISION = '20151209'
REVISION = '20151230'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -1972,7 +1972,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds a property to a file.
# Adds a property to a file, or updates it if it already exists.
# @param [String] file_id
# The ID of the file.
# @param [Google::Apis::DriveV2::Property] property_object
@ -2045,7 +2045,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a property. This method supports patch semantics.
# Updates a property, or adds it if it doesn't exist. This method supports patch
# semantics.
# @param [String] file_id
# The ID of the file.
# @param [String] property_key
@ -2089,7 +2090,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a property.
# Updates a property, or adds it if it doesn't exist.
# @param [String] file_id
# The ID of the file.
# @param [String] property_key

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV3
VERSION = 'V3'
REVISION = '20151209'
REVISION = '20151230'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesConfigurationV1configuration
VERSION = 'V1configuration'
REVISION = '20151209'
REVISION = '20151215'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesManagementV1management
VERSION = 'V1management'
REVISION = '20151209'
REVISION = '20151215'
# Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/
module GamesV1
VERSION = 'V1'
REVISION = '20151209'
REVISION = '20151215'
# View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

View File

@ -28,7 +28,7 @@ module Google
# @see
module GenomicsV1
VERSION = 'V1'
REVISION = '20151215'
REVISION = '20151219'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/gmail/api/
module GmailV1
VERSION = 'V1'
REVISION = '20151001'
REVISION = '20151214'
# View and manage your mail
AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -744,8 +744,8 @@ module Google
# A fully qualified Google Cloud Pub/Sub API topic name to publish the events to.
# This topic name **must** already exist in Cloud Pub/Sub and you **must** have
# already granted gmail "publish" permission on it. For example, "projects/my-
# project-identifier/topics/my-topic-name" (using the new Cloud Pub/Sub "v1beta2"
# topic naming format).
# project-identifier/topics/my-topic-name" (using the Cloud Pub/Sub "v1" topic
# naming format).
# Note that the "my-project-identifier" portion must exactly match your Google
# developer project id (the one executing this watch request).
# Corresponds to the JSON property `topicName`

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/domains/
module PlusDomainsV1
VERSION = 'V1'
REVISION = '20151214'
REVISION = '20160104'
# View your circles and the people and pages in them
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/api/
module PlusV1
VERSION = 'V1'
REVISION = '20151214'
REVISION = '20160104'
# Know your basic profile info and list of people in your circles.
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -1317,503 +1317,6 @@ module Google
end
end
#
class ItemScope
include Google::Apis::Core::Hashable
# The subject matter of the content.
# Corresponds to the JSON property `about`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :about
# An additional name for a Person, can be used for a middle name.
# Corresponds to the JSON property `additionalName`
# @return [Array<String>]
attr_accessor :additional_name
# Postal address.
# Corresponds to the JSON property `address`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :address
# Address country.
# Corresponds to the JSON property `addressCountry`
# @return [String]
attr_accessor :address_country
# Address locality.
# Corresponds to the JSON property `addressLocality`
# @return [String]
attr_accessor :address_locality
# Address region.
# Corresponds to the JSON property `addressRegion`
# @return [String]
attr_accessor :address_region
# The encoding.
# Corresponds to the JSON property `associated_media`
# @return [Array<Google::Apis::PlusV1::ItemScope>]
attr_accessor :associated_media
# Number of attendees.
# Corresponds to the JSON property `attendeeCount`
# @return [Fixnum]
attr_accessor :attendee_count
# A person attending the event.
# Corresponds to the JSON property `attendees`
# @return [Array<Google::Apis::PlusV1::ItemScope>]
attr_accessor :attendees
# From http://schema.org/MusicRecording, the audio file.
# Corresponds to the JSON property `audio`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :audio
# The person or persons who created this result. In the example of restaurant
# reviews, this might be the reviewer's name.
# Corresponds to the JSON property `author`
# @return [Array<Google::Apis::PlusV1::ItemScope>]
attr_accessor :author
# Best possible rating value that a result might obtain. This property defines
# the upper bound for the ratingValue. For example, you might have a 5 star
# rating scale, you would provide 5 as the value for this property.
# Corresponds to the JSON property `bestRating`
# @return [String]
attr_accessor :best_rating
# Date of birth.
# Corresponds to the JSON property `birthDate`
# @return [String]
attr_accessor :birth_date
# From http://schema.org/MusicRecording, the artist that performed this
# recording.
# Corresponds to the JSON property `byArtist`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :by_artist
# The caption for this object.
# Corresponds to the JSON property `caption`
# @return [String]
attr_accessor :caption
# File size in (mega/kilo) bytes.
# Corresponds to the JSON property `contentSize`
# @return [String]
attr_accessor :content_size
# Actual bytes of the media object, for example the image file or video file.
# Corresponds to the JSON property `contentUrl`
# @return [String]
attr_accessor :content_url
# A list of contributors to this result.
# Corresponds to the JSON property `contributor`
# @return [Array<Google::Apis::PlusV1::ItemScope>]
attr_accessor :contributor
# The date the result was created such as the date that a review was first
# created.
# Corresponds to the JSON property `dateCreated`
# @return [String]
attr_accessor :date_created
# The date the result was last modified such as the date that a review was last
# edited.
# Corresponds to the JSON property `dateModified`
# @return [String]
attr_accessor :date_modified
# The initial date that the result was published. For example, a user writes a
# comment on a blog, which has a result.dateCreated of when they submit it. If
# the blog users comment moderation, the result.datePublished value would match
# the date when the owner approved the message.
# Corresponds to the JSON property `datePublished`
# @return [String]
attr_accessor :date_published
# The string that describes the content of the result.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The duration of the item (movie, audio recording, event, etc.) in ISO 8601
# date format.
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# A URL pointing to a player for a specific video. In general, this is the
# information in the src element of an embed tag and should not be the same as
# the content of the loc tag.
# Corresponds to the JSON property `embedUrl`
# @return [String]
attr_accessor :embed_url
# The end date and time of the event (in ISO 8601 date format).
# Corresponds to the JSON property `endDate`
# @return [String]
attr_accessor :end_date
# Family name. This property can be used with givenName instead of the name
# property.
# Corresponds to the JSON property `familyName`
# @return [String]
attr_accessor :family_name
# Gender of the person.
# Corresponds to the JSON property `gender`
# @return [String]
attr_accessor :gender
# Geo coordinates.
# Corresponds to the JSON property `geo`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :geo
# Given name. This property can be used with familyName instead of the name
# property.
# Corresponds to the JSON property `givenName`
# @return [String]
attr_accessor :given_name
# The height of the media object.
# Corresponds to the JSON property `height`
# @return [String]
attr_accessor :height
# An identifier for the object. Your app can choose how to identify objects. The
# object.id is required if you are writing an action that does not have a
# corresponding web page or object.url property.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A URL to the image that represents this result. For example, if a user writes
# a review of a restaurant and attaches a photo of their meal, you might use
# that photo as the result.image.
# Corresponds to the JSON property `image`
# @return [String]
attr_accessor :image
# From http://schema.org/MusicRecording, which album a song is in.
# Corresponds to the JSON property `inAlbum`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :in_album
# Identifies this resource as an itemScope.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Latitude.
# Corresponds to the JSON property `latitude`
# @return [Float]
attr_accessor :latitude
# The location of the event or organization.
# Corresponds to the JSON property `location`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :location
# Longitude.
# Corresponds to the JSON property `longitude`
# @return [Float]
attr_accessor :longitude
# The name of the result. In the example of a restaurant review, this might be
# the summary the user gave their review such as "Great ambiance, but overpriced.
# "
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Property of http://schema.org/TVEpisode indicating which series the episode
# belongs to.
# Corresponds to the JSON property `partOfTVSeries`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :part_of_tv_series
# The main performer or performers of the event-for example, a presenter,
# musician, or actor.
# Corresponds to the JSON property `performers`
# @return [Array<Google::Apis::PlusV1::ItemScope>]
attr_accessor :performers
# Player type that is required. For example: Flash or Silverlight.
# Corresponds to the JSON property `playerType`
# @return [String]
attr_accessor :player_type
# Post office box number.
# Corresponds to the JSON property `postOfficeBoxNumber`
# @return [String]
attr_accessor :post_office_box_number
# Postal code.
# Corresponds to the JSON property `postalCode`
# @return [String]
attr_accessor :postal_code
# Rating value.
# Corresponds to the JSON property `ratingValue`
# @return [String]
attr_accessor :rating_value
# Review rating.
# Corresponds to the JSON property `reviewRating`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :review_rating
# The start date and time of the event (in ISO 8601 date format).
# Corresponds to the JSON property `startDate`
# @return [String]
attr_accessor :start_date
# Street address.
# Corresponds to the JSON property `streetAddress`
# @return [String]
attr_accessor :street_address
# The text that is the result of the app activity. For example, if a user leaves
# a review of a restaurant, this might be the text of the review.
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text
# Thumbnail image for an image or video.
# Corresponds to the JSON property `thumbnail`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :thumbnail
# A URL to a thumbnail image that represents this result.
# Corresponds to the JSON property `thumbnailUrl`
# @return [String]
attr_accessor :thumbnail_url
# The exchange traded instrument associated with a Corporation object. The
# tickerSymbol is expressed as an exchange and an instrument name separated by a
# space character. For the exchange component of the tickerSymbol attribute, we
# recommend using the controlled vocabulary of Market Identifier Codes (MIC)
# specified in ISO15022.
# Corresponds to the JSON property `tickerSymbol`
# @return [String]
attr_accessor :ticker_symbol
# The schema.org URL that best describes the referenced object and matches the
# type of moment.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# The URL that points to the result object. For example, a permalink directly to
# a restaurant reviewer's comment.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
# The width of the media object.
# Corresponds to the JSON property `width`
# @return [String]
attr_accessor :width
# Worst possible rating value that a result might obtain. This property defines
# the lower bound for the ratingValue.
# Corresponds to the JSON property `worstRating`
# @return [String]
attr_accessor :worst_rating
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@about = args[:about] unless args[:about].nil?
@additional_name = args[:additional_name] unless args[:additional_name].nil?
@address = args[:address] unless args[:address].nil?
@address_country = args[:address_country] unless args[:address_country].nil?
@address_locality = args[:address_locality] unless args[:address_locality].nil?
@address_region = args[:address_region] unless args[:address_region].nil?
@associated_media = args[:associated_media] unless args[:associated_media].nil?
@attendee_count = args[:attendee_count] unless args[:attendee_count].nil?
@attendees = args[:attendees] unless args[:attendees].nil?
@audio = args[:audio] unless args[:audio].nil?
@author = args[:author] unless args[:author].nil?
@best_rating = args[:best_rating] unless args[:best_rating].nil?
@birth_date = args[:birth_date] unless args[:birth_date].nil?
@by_artist = args[:by_artist] unless args[:by_artist].nil?
@caption = args[:caption] unless args[:caption].nil?
@content_size = args[:content_size] unless args[:content_size].nil?
@content_url = args[:content_url] unless args[:content_url].nil?
@contributor = args[:contributor] unless args[:contributor].nil?
@date_created = args[:date_created] unless args[:date_created].nil?
@date_modified = args[:date_modified] unless args[:date_modified].nil?
@date_published = args[:date_published] unless args[:date_published].nil?
@description = args[:description] unless args[:description].nil?
@duration = args[:duration] unless args[:duration].nil?
@embed_url = args[:embed_url] unless args[:embed_url].nil?
@end_date = args[:end_date] unless args[:end_date].nil?
@family_name = args[:family_name] unless args[:family_name].nil?
@gender = args[:gender] unless args[:gender].nil?
@geo = args[:geo] unless args[:geo].nil?
@given_name = args[:given_name] unless args[:given_name].nil?
@height = args[:height] unless args[:height].nil?
@id = args[:id] unless args[:id].nil?
@image = args[:image] unless args[:image].nil?
@in_album = args[:in_album] unless args[:in_album].nil?
@kind = args[:kind] unless args[:kind].nil?
@latitude = args[:latitude] unless args[:latitude].nil?
@location = args[:location] unless args[:location].nil?
@longitude = args[:longitude] unless args[:longitude].nil?
@name = args[:name] unless args[:name].nil?
@part_of_tv_series = args[:part_of_tv_series] unless args[:part_of_tv_series].nil?
@performers = args[:performers] unless args[:performers].nil?
@player_type = args[:player_type] unless args[:player_type].nil?
@post_office_box_number = args[:post_office_box_number] unless args[:post_office_box_number].nil?
@postal_code = args[:postal_code] unless args[:postal_code].nil?
@rating_value = args[:rating_value] unless args[:rating_value].nil?
@review_rating = args[:review_rating] unless args[:review_rating].nil?
@start_date = args[:start_date] unless args[:start_date].nil?
@street_address = args[:street_address] unless args[:street_address].nil?
@text = args[:text] unless args[:text].nil?
@thumbnail = args[:thumbnail] unless args[:thumbnail].nil?
@thumbnail_url = args[:thumbnail_url] unless args[:thumbnail_url].nil?
@ticker_symbol = args[:ticker_symbol] unless args[:ticker_symbol].nil?
@type = args[:type] unless args[:type].nil?
@url = args[:url] unless args[:url].nil?
@width = args[:width] unless args[:width].nil?
@worst_rating = args[:worst_rating] unless args[:worst_rating].nil?
end
end
#
class Moment
include Google::Apis::Core::Hashable
# The moment ID.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies this resource as a moment.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The object on which the action was performed. Specifying this is equivalent
# with specifying "target". Note that responses from the server will use the "
# target" field instead for backward-compatibility with older clients.
# Corresponds to the JSON property `object`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :object
# The object generated by performing the action on the object. For example, a
# user writes a review of a restaurant, the object is the restaurant and the
# result is the review.
# Corresponds to the JSON property `result`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :result
# Time stamp of when the action occurred in RFC3339 format.
# Corresponds to the JSON property `startDate`
# @return [DateTime]
attr_accessor :start_date
# The object on which the action was performed.
# Corresponds to the JSON property `target`
# @return [Google::Apis::PlusV1::ItemScope]
attr_accessor :target
# The schema.org type for the type of moment to write. For example, http://
# schema.org/AddAction. Note that responses from the server will use the Google
# schema type instead for backward-compatibility with older clients. For example,
# http://schemas.google.com/AddActivity.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@object = args[:object] unless args[:object].nil?
@result = args[:result] unless args[:result].nil?
@start_date = args[:start_date] unless args[:start_date].nil?
@target = args[:target] unless args[:target].nil?
@type = args[:type] unless args[:type].nil?
end
end
#
class MomentsFeed
include Google::Apis::Core::Hashable
# ETag of this response for caching purposes.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The moments in this page of results.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::PlusV1::Moment>]
attr_accessor :items
# Identifies this resource as a collection of moments. Value: "plus#momentsFeed".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Link to the next page of moments.
# Corresponds to the JSON property `nextLink`
# @return [String]
attr_accessor :next_link
# The continuation token, which is used to page through large result sets.
# Provide this value in a subsequent request to return the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Link to this page of moments.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# The title of this collection of moments.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# The RFC 339 timestamp for when this collection of moments was last updated.
# Corresponds to the JSON property `updated`
# @return [DateTime]
attr_accessor :updated
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_link = args[:next_link] unless args[:next_link].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@title = args[:title] unless args[:title].nil?
@updated = args[:updated] unless args[:updated].nil?
end
end
#
class PeopleFeed
include Google::Apis::Core::Hashable

View File

@ -162,18 +162,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ItemScope
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Moment
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class MomentsFeed
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class PeopleFeed
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -622,115 +610,6 @@ module Google
end
end
class ItemScope
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :about, as: 'about', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
collection :additional_name, as: 'additionalName'
property :address, as: 'address', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :address_country, as: 'addressCountry'
property :address_locality, as: 'addressLocality'
property :address_region, as: 'addressRegion'
collection :associated_media, as: 'associated_media', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :attendee_count, as: 'attendeeCount'
collection :attendees, as: 'attendees', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :audio, as: 'audio', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
collection :author, as: 'author', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :best_rating, as: 'bestRating'
property :birth_date, as: 'birthDate'
property :by_artist, as: 'byArtist', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :caption, as: 'caption'
property :content_size, as: 'contentSize'
property :content_url, as: 'contentUrl'
collection :contributor, as: 'contributor', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :date_created, as: 'dateCreated'
property :date_modified, as: 'dateModified'
property :date_published, as: 'datePublished'
property :description, as: 'description'
property :duration, as: 'duration'
property :embed_url, as: 'embedUrl'
property :end_date, as: 'endDate'
property :family_name, as: 'familyName'
property :gender, as: 'gender'
property :geo, as: 'geo', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :given_name, as: 'givenName'
property :height, as: 'height'
property :id, as: 'id'
property :image, as: 'image'
property :in_album, as: 'inAlbum', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :kind, as: 'kind'
property :latitude, as: 'latitude'
property :location, as: 'location', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :longitude, as: 'longitude'
property :name, as: 'name'
property :part_of_tv_series, as: 'partOfTVSeries', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
collection :performers, as: 'performers', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :player_type, as: 'playerType'
property :post_office_box_number, as: 'postOfficeBoxNumber'
property :postal_code, as: 'postalCode'
property :rating_value, as: 'ratingValue'
property :review_rating, as: 'reviewRating', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :start_date, as: 'startDate'
property :street_address, as: 'streetAddress'
property :text, as: 'text'
property :thumbnail, as: 'thumbnail', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :thumbnail_url, as: 'thumbnailUrl'
property :ticker_symbol, as: 'tickerSymbol'
property :type, as: 'type'
property :url, as: 'url'
property :width, as: 'width'
property :worst_rating, as: 'worstRating'
end
end
class Moment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :object, as: 'object', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :result, as: 'result', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :start_date, as: 'startDate', type: DateTime
property :target, as: 'target', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
property :type, as: 'type'
end
end
class MomentsFeed
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
collection :items, as: 'items', class: Google::Apis::PlusV1::Moment, decorator: Google::Apis::PlusV1::Moment::Representation
property :kind, as: 'kind'
property :next_link, as: 'nextLink'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :title, as: 'title'
property :updated, as: 'updated', type: DateTime
end
end
class PeopleFeed
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -271,107 +271,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Record a moment representing a user's action such as making a purchase or
# commenting on a blog.
# @param [String] user_id
# The ID of the user to record actions for. The only valid values are "me" and
# the ID of the authenticated user.
# @param [String] collection
# The collection to which to write moments.
# @param [Google::Apis::PlusV1::Moment] moment_object
# @param [Boolean] debug
# Return the moment as written. Should be used only for debugging.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusV1::Moment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusV1::Moment]
#
# @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 insert_moment(user_id, collection, moment_object = nil, debug: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'people/{userId}/moments/{collection}', options)
command.request_representation = Google::Apis::PlusV1::Moment::Representation
command.request_object = moment_object
command.response_representation = Google::Apis::PlusV1::Moment::Representation
command.response_class = Google::Apis::PlusV1::Moment
command.params['userId'] = user_id unless user_id.nil?
command.params['collection'] = collection unless collection.nil?
command.query['debug'] = debug unless debug.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
# List all of the moments for a particular user.
# @param [String] user_id
# The ID of the user to get moments for. The special value "me" can be used to
# indicate the authenticated user.
# @param [String] collection
# The collection of moments to list.
# @param [Fixnum] max_results
# The maximum number of moments to include in the response, which is used for
# paging. For any response, the actual number returned might be less than the
# specified maxResults.
# @param [String] page_token
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of "
# nextPageToken" from the previous response.
# @param [String] target_url
# Only moments containing this targetUrl will be returned.
# @param [String] type
# Only moments of this type will be returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlusV1::MomentsFeed] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlusV1::MomentsFeed]
#
# @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_moments(user_id, collection, max_results: nil, page_token: nil, target_url: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'people/{userId}/moments/{collection}', options)
command.response_representation = Google::Apis::PlusV1::MomentsFeed::Representation
command.response_class = Google::Apis::PlusV1::MomentsFeed
command.params['userId'] = user_id unless user_id.nil?
command.params['collection'] = collection unless collection.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['targetUrl'] = target_url unless target_url.nil?
command.query['type'] = type unless type.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
# Get a person's profile. If your app uses scope https://www.googleapis.com/auth/
# plus.login, this method is guaranteed to return ageRange and language.
# @param [String] user_id

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service
module ReplicapoolupdaterV1beta1
VERSION = 'V1beta1'
REVISION = '20150904'
REVISION = '20160107'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -223,7 +223,7 @@ module Google
# @return [String]
attr_accessor :region
# [Output Only] Server defined URL for the resource.
# [Output Only] The fully qualified URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
@ -425,8 +425,8 @@ module Google
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::Operation>]
attr_accessor :items
# [Output Only] Type of resource. Always replicapoolupdater#operations for
# Operations resource.
# [Output Only] Type of resource. Always replicapoolupdater#operationList for
# OperationList resources.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -436,7 +436,7 @@ module Google
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# [Output Only] The fully qualified URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link

View File

@ -18,14 +18,14 @@ require 'google/apis/webmasters_v3/representations.rb'
module Google
module Apis
# Webmaster Tools API
# Search Console API
#
# Lets you view Google Webmaster Tools data for your verified sites.
# Lets you view Google Search Console data for your verified sites.
#
# @see https://developers.google.com/webmaster-tools/
module WebmastersV3
VERSION = 'V3'
REVISION = '20151102'
REVISION = '20151229'
# View and manage Search Console data for your verified sites
AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters'

View File

@ -20,9 +20,9 @@ require 'google/apis/errors'
module Google
module Apis
module WebmastersV3
# Webmaster Tools API
# Search Console API
#
# Lets you view Google Webmaster Tools data for your verified sites.
# Lets you view Google Search Console data for your verified sites.
#
# @example
# require 'google/apis/webmasters_v3'

View File

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

View File

@ -1358,6 +1358,43 @@ module Google
end
end
#
class ChannelProfileDetails
include Google::Apis::Core::Hashable
# The YouTube channel ID.
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# The channel's URL.
# Corresponds to the JSON property `channelUrl`
# @return [String]
attr_accessor :channel_url
# The channel's display name.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The channels's avatar URL.
# Corresponds to the JSON property `profileImageUrl`
# @return [String]
attr_accessor :profile_image_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_id = args[:channel_id] unless args[:channel_id].nil?
@channel_url = args[:channel_url] unless args[:channel_url].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@profile_image_url = args[:profile_image_url] unless args[:profile_image_url].nil?
end
end
#
class ChannelSection
include Google::Apis::Core::Hashable
@ -2691,6 +2728,168 @@ module Google
end
end
# A fanFundingEvent resource represents a fan funding event on a YouTube channel.
# Fan funding events occur when a user gives one-time monetary support to the
# channel owner.
class FanFundingEvent
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 fan funding event.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# fanFundingEvent".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the fan funding event.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::FanFundingEventSnippet]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@snippet = args[:snippet] unless args[:snippet].nil?
end
end
#
class FanFundingEventListResponse
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 fan funding events that match the request criteria.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubeV3::FanFundingEvent>]
attr_accessor :items
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# fanFundingEventListResponse".
# 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] unless args[:etag].nil?
@event_id = args[:event_id] unless args[:event_id].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@page_info = args[:page_info] unless args[:page_info].nil?
@token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
@visitor_id = args[:visitor_id] unless args[:visitor_id].nil?
end
end
#
class FanFundingEventSnippet
include Google::Apis::Core::Hashable
# The amount of funding in micros of fund_currency. e.g., 1 is represented
# Corresponds to the JSON property `amountMicros`
# @return [String]
attr_accessor :amount_micros
# Channel id where the funding event occurred.
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# The text contents of the comment left by the user.
# Corresponds to the JSON property `commentText`
# @return [String]
attr_accessor :comment_text
# The date and time when the funding occurred. The value is specified in ISO
# 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
# Corresponds to the JSON property `createdAt`
# @return [DateTime]
attr_accessor :created_at
# The currency in which the fund was made. ISO 4217.
# Corresponds to the JSON property `currency`
# @return [String]
attr_accessor :currency
# A rendered string that displays the fund amount and currency (e.g., "$1.00").
# The string is rendered for the given language.
# Corresponds to the JSON property `displayString`
# @return [String]
attr_accessor :display_string
# Details about the supporter. Only filled if the event was made public by the
# user.
# Corresponds to the JSON property `supporterDetails`
# @return [Google::Apis::YoutubeV3::ChannelProfileDetails]
attr_accessor :supporter_details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_micros = args[:amount_micros] unless args[:amount_micros].nil?
@channel_id = args[:channel_id] unless args[:channel_id].nil?
@comment_text = args[:comment_text] unless args[:comment_text].nil?
@created_at = args[:created_at] unless args[:created_at].nil?
@currency = args[:currency] unless args[:currency].nil?
@display_string = args[:display_string] unless args[:display_string].nil?
@supporter_details = args[:supporter_details] unless args[:supporter_details].nil?
end
end
# Geographical coordinates of a point, in WGS84.
class GeoPoint
include Google::Apis::Core::Hashable
@ -3516,9 +3715,16 @@ module Google
# @return [String]
attr_accessor :bound_stream_id
# This setting indicates whether closed captioning is enabled for this broadcast.
# The ingestion URL of the closed captions is returned through the liveStreams
# API.
#
# Corresponds to the JSON property `closedCaptionsType`
# @return [String]
attr_accessor :closed_captions_type
# This setting indicates whether HTTP POST closed captioning is enabled for this
# broadcast. The ingestion URL of the closed captions is returned through the
# liveStreams API. This is mutually exclusive with using the
# closed_captions_type property, and is equivalent to setting
# closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
# Corresponds to the JSON property `enableClosedCaptions`
# @return [Boolean]
attr_accessor :enable_closed_captions
@ -3591,6 +3797,7 @@ module Google
# Update properties of this object
def update!(**args)
@bound_stream_id = args[:bound_stream_id] unless args[:bound_stream_id].nil?
@closed_captions_type = args[:closed_captions_type] unless args[:closed_captions_type].nil?
@enable_closed_captions = args[:enable_closed_captions] unless args[:enable_closed_captions].nil?
@enable_content_encryption = args[:enable_content_encryption] unless args[:enable_content_encryption].nil?
@enable_dvr = args[:enable_dvr] unless args[:enable_dvr].nil?
@ -3920,6 +4127,531 @@ module Google
end
end
# A liveChatBan resource represents a ban for a YouTube live chat.
class LiveChatBan
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 ban.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# liveChatBan".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the ban.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::LiveChatBanSnippet]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@snippet = args[:snippet] unless args[:snippet].nil?
end
end
#
class LiveChatBanSnippet
include Google::Apis::Core::Hashable
# The duration of a ban, only filled if the ban has type TEMPORARY.
# Corresponds to the JSON property `banDurationSeconds`
# @return [String]
attr_accessor :ban_duration_seconds
#
# Corresponds to the JSON property `bannedUserDetails`
# @return [Google::Apis::YoutubeV3::ChannelProfileDetails]
attr_accessor :banned_user_details
# The chat this ban is pertinent to.
# Corresponds to the JSON property `liveChatId`
# @return [String]
attr_accessor :live_chat_id
# The type of ban.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ban_duration_seconds = args[:ban_duration_seconds] unless args[:ban_duration_seconds].nil?
@banned_user_details = args[:banned_user_details] unless args[:banned_user_details].nil?
@live_chat_id = args[:live_chat_id] unless args[:live_chat_id].nil?
@type = args[:type] unless args[:type].nil?
end
end
#
class LiveChatFanFundingEventDetails
include Google::Apis::Core::Hashable
# A rendered string that displays the fund amount and currency to the user.
# Corresponds to the JSON property `amountDisplayString`
# @return [String]
attr_accessor :amount_display_string
# The amount of the fund.
# Corresponds to the JSON property `amountMicros`
# @return [String]
attr_accessor :amount_micros
# The currency in which the fund was made.
# Corresponds to the JSON property `currency`
# @return [String]
attr_accessor :currency
# The comment added by the user to this fan funding event.
# Corresponds to the JSON property `userComment`
# @return [String]
attr_accessor :user_comment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_display_string = args[:amount_display_string] unless args[:amount_display_string].nil?
@amount_micros = args[:amount_micros] unless args[:amount_micros].nil?
@currency = args[:currency] unless args[:currency].nil?
@user_comment = args[:user_comment] unless args[:user_comment].nil?
end
end
# A liveChatMessage resource represents a chat message in a YouTube Live Chat.
class LiveChatMessage
include Google::Apis::Core::Hashable
# The authorDetails object contains basic details about the user that posted
# this message.
# Corresponds to the JSON property `authorDetails`
# @return [Google::Apis::YoutubeV3::LiveChatMessageAuthorDetails]
attr_accessor :author_details
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The ID that YouTube assigns to uniquely identify the message.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# liveChatMessage".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the message.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::LiveChatMessageSnippet]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@author_details = args[:author_details] unless args[:author_details].nil?
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@snippet = args[:snippet] unless args[:snippet].nil?
end
end
#
class LiveChatMessageAuthorDetails
include Google::Apis::Core::Hashable
# The YouTube channel ID.
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# The channel's URL.
# Corresponds to the JSON property `channelUrl`
# @return [String]
attr_accessor :channel_url
# The channel's display name.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Whether the author is a moderator of the live chat.
# Corresponds to the JSON property `isChatModerator`
# @return [Boolean]
attr_accessor :is_chat_moderator
alias_method :is_chat_moderator?, :is_chat_moderator
# Whether the author is the owner of the live chat.
# Corresponds to the JSON property `isChatOwner`
# @return [Boolean]
attr_accessor :is_chat_owner
alias_method :is_chat_owner?, :is_chat_owner
# Whether the author is a sponsor of the live chat.
# Corresponds to the JSON property `isChatSponsor`
# @return [Boolean]
attr_accessor :is_chat_sponsor
alias_method :is_chat_sponsor?, :is_chat_sponsor
# Whether the author's identity has been verified by YouTube.
# Corresponds to the JSON property `isVerified`
# @return [Boolean]
attr_accessor :is_verified
alias_method :is_verified?, :is_verified
# The channels's avatar URL.
# Corresponds to the JSON property `profileImageUrl`
# @return [String]
attr_accessor :profile_image_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_id = args[:channel_id] unless args[:channel_id].nil?
@channel_url = args[:channel_url] unless args[:channel_url].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@is_chat_moderator = args[:is_chat_moderator] unless args[:is_chat_moderator].nil?
@is_chat_owner = args[:is_chat_owner] unless args[:is_chat_owner].nil?
@is_chat_sponsor = args[:is_chat_sponsor] unless args[:is_chat_sponsor].nil?
@is_verified = args[:is_verified] unless args[:is_verified].nil?
@profile_image_url = args[:profile_image_url] unless args[:profile_image_url].nil?
end
end
#
class LiveChatMessageListResponse
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 live chat messages.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubeV3::LiveChatMessage>]
attr_accessor :items
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# liveChatMessageListResponse".
# 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
# The date and time when the underlying stream went offline. The value is
# specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
# Corresponds to the JSON property `offlineAt`
# @return [DateTime]
attr_accessor :offline_at
# Paging details for lists of resources, including total number of items
# available and number of resources returned in a single page.
# Corresponds to the JSON property `pageInfo`
# @return [Google::Apis::YoutubeV3::PageInfo]
attr_accessor :page_info
# The amount of time the client should wait before polling again.
# Corresponds to the JSON property `pollingIntervalMillis`
# @return [Fixnum]
attr_accessor :polling_interval_millis
# 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] unless args[:etag].nil?
@event_id = args[:event_id] unless args[:event_id].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@offline_at = args[:offline_at] unless args[:offline_at].nil?
@page_info = args[:page_info] unless args[:page_info].nil?
@polling_interval_millis = args[:polling_interval_millis] unless args[:polling_interval_millis].nil?
@token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
@visitor_id = args[:visitor_id] unless args[:visitor_id].nil?
end
end
#
class LiveChatMessageSnippet
include Google::Apis::Core::Hashable
# The ID of the user that authored this message, this field is not always filled.
# textMessageEvent - the user that wrote the message fanFundingEvent - the user
# that funded the broadcast newSponsorEvent - the user that just became a
# sponsor
# Corresponds to the JSON property `authorChannelId`
# @return [String]
attr_accessor :author_channel_id
# Contains a string that can be displayed to the user. If this field is not
# present the message is silent, at the moment only messages of type TOMBSTONE
# and CHAT_ENDED_EVENT are silent.
# Corresponds to the JSON property `displayMessage`
# @return [String]
attr_accessor :display_message
# Details about the funding event, this is only set if the type is '
# fanFundingEvent'.
# Corresponds to the JSON property `fanFundingEventDetails`
# @return [Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails]
attr_accessor :fan_funding_event_details
# Whether the message has display content that should be displayed to users.
# Corresponds to the JSON property `hasDisplayContent`
# @return [Boolean]
attr_accessor :has_display_content
alias_method :has_display_content?, :has_display_content
#
# Corresponds to the JSON property `liveChatId`
# @return [String]
attr_accessor :live_chat_id
# The date and time when the message was orignally published. The value is
# specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
# Corresponds to the JSON property `publishedAt`
# @return [DateTime]
attr_accessor :published_at
# Details about the text message, this is only set if the type is '
# textMessageEvent'.
# Corresponds to the JSON property `textMessageDetails`
# @return [Google::Apis::YoutubeV3::LiveChatTextMessageDetails]
attr_accessor :text_message_details
# The type of message, this will always be present, it determines the contents
# of the message as well as which fields will be present.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@author_channel_id = args[:author_channel_id] unless args[:author_channel_id].nil?
@display_message = args[:display_message] unless args[:display_message].nil?
@fan_funding_event_details = args[:fan_funding_event_details] unless args[:fan_funding_event_details].nil?
@has_display_content = args[:has_display_content] unless args[:has_display_content].nil?
@live_chat_id = args[:live_chat_id] unless args[:live_chat_id].nil?
@published_at = args[:published_at] unless args[:published_at].nil?
@text_message_details = args[:text_message_details] unless args[:text_message_details].nil?
@type = args[:type] unless args[:type].nil?
end
end
# A liveChatModerator resource represents a moderator for a YouTube live chat. A
# chat moderator has the ability to ban/unban users from a chat, remove message,
# etc.
class LiveChatModerator
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 moderator.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# liveChatModerator".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the moderator.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::LiveChatModeratorSnippet]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@snippet = args[:snippet] unless args[:snippet].nil?
end
end
#
class LiveChatModeratorListResponse
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 moderators that match the request criteria.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubeV3::LiveChatModerator>]
attr_accessor :items
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# liveChatModeratorListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token that can be used as the value of the pageToken parameter to retrieve
# the next page in the result set.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Paging details for lists of resources, including total number of items
# available and number of resources returned in a single page.
# Corresponds to the JSON property `pageInfo`
# @return [Google::Apis::YoutubeV3::PageInfo]
attr_accessor :page_info
# The token that can be used as the value of the pageToken parameter to retrieve
# the previous page in the result set.
# Corresponds to the JSON property `prevPageToken`
# @return [String]
attr_accessor :prev_page_token
# Stub token pagination template to suppress results.
# Corresponds to the JSON property `tokenPagination`
# @return [Google::Apis::YoutubeV3::TokenPagination]
attr_accessor :token_pagination
# The visitorId identifies the visitor.
# Corresponds to the JSON property `visitorId`
# @return [String]
attr_accessor :visitor_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@event_id = args[:event_id] unless args[:event_id].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@page_info = args[:page_info] unless args[:page_info].nil?
@prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil?
@token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
@visitor_id = args[:visitor_id] unless args[:visitor_id].nil?
end
end
#
class LiveChatModeratorSnippet
include Google::Apis::Core::Hashable
# The ID of the live chat this moderator can act on.
# Corresponds to the JSON property `liveChatId`
# @return [String]
attr_accessor :live_chat_id
# Details about the moderator.
# Corresponds to the JSON property `moderatorDetails`
# @return [Google::Apis::YoutubeV3::ChannelProfileDetails]
attr_accessor :moderator_details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@live_chat_id = args[:live_chat_id] unless args[:live_chat_id].nil?
@moderator_details = args[:moderator_details] unless args[:moderator_details].nil?
end
end
#
class LiveChatTextMessageDetails
include Google::Apis::Core::Hashable
# The user's message.
# Corresponds to the JSON property `messageText`
# @return [String]
attr_accessor :message_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@message_text = args[:message_text] unless args[:message_text].nil?
end
end
# A live stream describes a live ingestion point.
class LiveStream
include Google::Apis::Core::Hashable
@ -5251,6 +5983,141 @@ module Google
end
end
# A sponsor resource represents a sponsor for a YouTube channel. A sponsor
# provides recurring monetary support to a creator and receives special benefits.
class Sponsor
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 sponsor.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# sponsor".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the sponsor.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::SponsorSnippet]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@snippet = args[:snippet] unless args[:snippet].nil?
end
end
#
class SponsorListResponse
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 sponsors that match the request criteria.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubeV3::Sponsor>]
attr_accessor :items
# Identifies what kind of resource this is. Value: the fixed string "youtube#
# sponsorListResponse".
# 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] unless args[:etag].nil?
@event_id = args[:event_id] unless args[:event_id].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@page_info = args[:page_info] unless args[:page_info].nil?
@token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
@visitor_id = args[:visitor_id] unless args[:visitor_id].nil?
end
end
#
class SponsorSnippet
include Google::Apis::Core::Hashable
# The id of the channel being sponsored.
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# Details about the sponsor.
# Corresponds to the JSON property `sponsorDetails`
# @return [Google::Apis::YoutubeV3::ChannelProfileDetails]
attr_accessor :sponsor_details
# The date and time when the user became a sponsor. The value is specified in
# ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
# Corresponds to the JSON property `sponsorSince`
# @return [DateTime]
attr_accessor :sponsor_since
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_id = args[:channel_id] unless args[:channel_id].nil?
@sponsor_details = args[:sponsor_details] unless args[:sponsor_details].nil?
@sponsor_since = args[:sponsor_since] unless args[:sponsor_since].nil?
end
end
# A subscription resource contains information about a YouTube user subscription.
# A subscription notifies a user when new videos are added to a channel or when
# another user takes one of several actions on YouTube, such as uploading a
@ -6594,6 +7461,16 @@ module Google
class VideoLiveStreamingDetails
include Google::Apis::Core::Hashable
# The ID of the currently active live chat attached to this video. This field is
# filled only if the video is a currently live broadcast that has live chat.
# Once the broadcast transitions to complete this field will be removed and the
# live chat closed down. For persistent broadcasts that live chat id will no
# longer be tied to this video but rather to the new video being displayed at
# the persistent page.
# Corresponds to the JSON property `activeLiveChatId`
# @return [String]
attr_accessor :active_live_chat_id
# The time that the broadcast actually ended. The value is specified in ISO 8601
# (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be available until the
# broadcast is over.
@ -6637,6 +7514,7 @@ module Google
# Update properties of this object
def update!(**args)
@active_live_chat_id = args[:active_live_chat_id] unless args[:active_live_chat_id].nil?
@actual_end_time = args[:actual_end_time] unless args[:actual_end_time].nil?
@actual_start_time = args[:actual_start_time] unless args[:actual_start_time].nil?
@concurrent_viewers = args[:concurrent_viewers] unless args[:concurrent_viewers].nil?

View File

@ -150,6 +150,10 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ChannelProfileDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ChannelSection
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -226,6 +230,18 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class FanFundingEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class FanFundingEventListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class FanFundingEventSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class GeoPoint
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -330,6 +346,50 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatBan
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatBanSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatFanFundingEventDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatMessageAuthorDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatMessageListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatMessageSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatModerator
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatModeratorListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatModeratorSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveChatTextMessageDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LiveStream
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -450,6 +510,18 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Sponsor
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class SponsorListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class SponsorSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Subscription
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -1008,6 +1080,16 @@ module Google
end
end
class ChannelProfileDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_id, as: 'channelId'
property :channel_url, as: 'channelUrl'
property :display_name, as: 'displayName'
property :profile_image_url, as: 'profileImageUrl'
end
end
class ChannelSection
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1313,6 +1395,49 @@ module Google
end
end
class FanFundingEvent
# @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::FanFundingEventSnippet, decorator: Google::Apis::YoutubeV3::FanFundingEventSnippet::Representation
end
end
class FanFundingEventListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :event_id, as: 'eventId'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::FanFundingEvent, decorator: Google::Apis::YoutubeV3::FanFundingEvent::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 FanFundingEventSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_micros, as: 'amountMicros'
property :channel_id, as: 'channelId'
property :comment_text, as: 'commentText'
property :created_at, as: 'createdAt', type: DateTime
property :currency, as: 'currency'
property :display_string, as: 'displayString'
property :supporter_details, as: 'supporterDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
end
end
class GeoPoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1536,6 +1661,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bound_stream_id, as: 'boundStreamId'
property :closed_captions_type, as: 'closedCaptionsType'
property :enable_closed_captions, as: 'enableClosedCaptions'
property :enable_content_encryption, as: 'enableContentEncryption'
property :enable_dvr, as: 'enableDvr'
@ -1633,6 +1759,147 @@ module Google
end
end
class LiveChatBan
# @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::LiveChatBanSnippet, decorator: Google::Apis::YoutubeV3::LiveChatBanSnippet::Representation
end
end
class LiveChatBanSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ban_duration_seconds, as: 'banDurationSeconds'
property :banned_user_details, as: 'bannedUserDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
property :live_chat_id, as: 'liveChatId'
property :type, as: 'type'
end
end
class LiveChatFanFundingEventDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_display_string, as: 'amountDisplayString'
property :amount_micros, as: 'amountMicros'
property :currency, as: 'currency'
property :user_comment, as: 'userComment'
end
end
class LiveChatMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :author_details, as: 'authorDetails', class: Google::Apis::YoutubeV3::LiveChatMessageAuthorDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageAuthorDetails::Representation
property :etag, as: 'etag'
property :id, as: 'id'
property :kind, as: 'kind'
property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::LiveChatMessageSnippet, decorator: Google::Apis::YoutubeV3::LiveChatMessageSnippet::Representation
end
end
class LiveChatMessageAuthorDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_id, as: 'channelId'
property :channel_url, as: 'channelUrl'
property :display_name, as: 'displayName'
property :is_chat_moderator, as: 'isChatModerator'
property :is_chat_owner, as: 'isChatOwner'
property :is_chat_sponsor, as: 'isChatSponsor'
property :is_verified, as: 'isVerified'
property :profile_image_url, as: 'profileImageUrl'
end
end
class LiveChatMessageListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :event_id, as: 'eventId'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatMessage, decorator: Google::Apis::YoutubeV3::LiveChatMessage::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :offline_at, as: 'offlineAt', type: DateTime
property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
property :polling_interval_millis, as: 'pollingIntervalMillis'
property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation
property :visitor_id, as: 'visitorId'
end
end
class LiveChatMessageSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :author_channel_id, as: 'authorChannelId'
property :display_message, as: 'displayMessage'
property :fan_funding_event_details, as: 'fanFundingEventDetails', class: Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails, decorator: Google::Apis::YoutubeV3::LiveChatFanFundingEventDetails::Representation
property :has_display_content, as: 'hasDisplayContent'
property :live_chat_id, as: 'liveChatId'
property :published_at, as: 'publishedAt', type: DateTime
property :text_message_details, as: 'textMessageDetails', class: Google::Apis::YoutubeV3::LiveChatTextMessageDetails, decorator: Google::Apis::YoutubeV3::LiveChatTextMessageDetails::Representation
property :type, as: 'type'
end
end
class LiveChatModerator
# @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::LiveChatModeratorSnippet, decorator: Google::Apis::YoutubeV3::LiveChatModeratorSnippet::Representation
end
end
class LiveChatModeratorListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :event_id, as: 'eventId'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatModerator, decorator: Google::Apis::YoutubeV3::LiveChatModerator::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
property :prev_page_token, as: 'prevPageToken'
property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation
property :visitor_id, as: 'visitorId'
end
end
class LiveChatModeratorSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :live_chat_id, as: 'liveChatId'
property :moderator_details, as: 'moderatorDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
end
end
class LiveChatTextMessageDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message_text, as: 'messageText'
end
end
class LiveStream
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1990,6 +2257,45 @@ module Google
end
end
class Sponsor
# @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::SponsorSnippet, decorator: Google::Apis::YoutubeV3::SponsorSnippet::Representation
end
end
class SponsorListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :event_id, as: 'eventId'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::Sponsor, decorator: Google::Apis::YoutubeV3::Sponsor::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 SponsorSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_id, as: 'channelId'
property :sponsor_details, as: 'sponsorDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
property :sponsor_since, as: 'sponsorSince', type: DateTime
end
end
class Subscription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2358,6 +2664,7 @@ module Google
class VideoLiveStreamingDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :active_live_chat_id, as: 'activeLiveChatId'
property :actual_end_time, as: 'actualEndTime', type: DateTime
property :actual_start_time, as: 'actualStartTime', type: DateTime

View File

@ -1403,6 +1403,61 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists fan funding events for a channel.
# @param [String] part
# The part parameter specifies the fanFundingEvent resource parts that the API
# response will include. Supported values are id and snippet.
# @param [String] hl
# The hl parameter instructs the API to retrieve localized resource metadata for
# a specific application language that the YouTube website supports. The
# parameter value must be a language code included in the list returned by the
# i18nLanguages.list method.
# If localized resource details are available in that language, the resource's
# snippet.localized object will contain the localized values. However, if
# localized details are not available, the snippet.localized object will contain
# resource details in the resource's default language.
# @param [Fixnum] max_results
# The maxResults parameter specifies the maximum number of items that should be
# returned in the result set.
# @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
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::YoutubeV3::FanFundingEventListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::FanFundingEventListResponse]
#
# @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_fan_funding_events(part, hl: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'fanFundingEvents', options)
command.response_representation = Google::Apis::YoutubeV3::FanFundingEventListResponse::Representation
command.response_class = Google::Apis::YoutubeV3::FanFundingEventListResponse
command.query['hl'] = hl unless hl.nil?
command.query['maxResults'] = max_results unless max_results.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
# Returns a list of categories that can be associated with YouTube channels.
# @param [String] part
# The part parameter specifies the guideCategory resource properties that the
@ -1844,6 +1899,10 @@ module Google
# @param [String] broadcast_status
# The broadcastStatus parameter filters the API response to only include
# broadcasts with the specified status.
# @param [String] broadcast_type
# The broadcastType parameter filters the API response to only include
# broadcasts with the specified type. This is only compatible with the mine
# filter for now.
# @param [String] id
# The id parameter specifies a comma-separated list of YouTube broadcast IDs
# that identify the broadcasts being retrieved. In a liveBroadcast resource, the
@ -1906,11 +1965,12 @@ 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_live_broadcasts(part, broadcast_status: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_live_broadcasts(part, broadcast_status: nil, broadcast_type: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'liveBroadcasts', options)
command.response_representation = Google::Apis::YoutubeV3::ListLiveBroadcastsResponse::Representation
command.response_class = Google::Apis::YoutubeV3::ListLiveBroadcastsResponse
command.query['broadcastStatus'] = broadcast_status unless broadcast_status.nil?
command.query['broadcastType'] = broadcast_type unless broadcast_type.nil?
command.query['id'] = id unless id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['mine'] = mine unless mine.nil?
@ -2084,6 +2144,340 @@ module Google
execute_or_queue_command(command, &block)
end
# Removes a chat ban.
# @param [String] id
# The id parameter identifies the chat ban to remove. The value uniquely
# identifies both the ban and the chat.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @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 delete_live_chat_ban(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'liveChat/bans', options)
command.query['id'] = id unless 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
# Adds a new ban to the chat.
# @param [String] part
# The part parameter serves two purposes in this operation. It identifies the
# properties that the write operation will set as well as the properties that
# the API response returns. Set the parameter value to snippet.
# @param [Google::Apis::YoutubeV3::LiveChatBan] live_chat_ban_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::YoutubeV3::LiveChatBan] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::LiveChatBan]
#
# @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 insert_live_chat_ban(part, live_chat_ban_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'liveChat/bans', options)
command.request_representation = Google::Apis::YoutubeV3::LiveChatBan::Representation
command.request_object = live_chat_ban_object
command.response_representation = Google::Apis::YoutubeV3::LiveChatBan::Representation
command.response_class = Google::Apis::YoutubeV3::LiveChatBan
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 chat message.
# @param [String] id
# The id parameter specifies the YouTube chat message ID of the resource that is
# being deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @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 delete_live_chat_message(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'liveChat/messages', options)
command.query['id'] = id unless 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
# Adds a message to a live chat.
# @param [String] part
# The part parameter serves two purposes. It identifies the properties that the
# write operation will set as well as the properties that the API response will
# include. Set the parameter value to snippet.
# @param [Google::Apis::YoutubeV3::LiveChatMessage] live_chat_message_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::YoutubeV3::LiveChatMessage] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::LiveChatMessage]
#
# @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 insert_live_chat_message(part, live_chat_message_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'liveChat/messages', options)
command.request_representation = Google::Apis::YoutubeV3::LiveChatMessage::Representation
command.request_object = live_chat_message_object
command.response_representation = Google::Apis::YoutubeV3::LiveChatMessage::Representation
command.response_class = Google::Apis::YoutubeV3::LiveChatMessage
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 live chat messages for a specific chat.
# @param [String] live_chat_id
# The liveChatId parameter specifies the ID of the chat whose messages will be
# returned.
# @param [String] part
# The part parameter specifies the liveChatComment resource parts that the API
# response will include. Supported values are id and snippet.
# @param [String] hl
# The hl parameter instructs the API to retrieve localized resource metadata for
# a specific application language that the YouTube website supports. The
# parameter value must be a language code included in the list returned by the
# i18nLanguages.list method.
# If localized resource details are available in that language, the resource's
# snippet.localized object will contain the localized values. However, if
# localized details are not available, the snippet.localized object will contain
# resource details in the resource's default language.
# @param [Fixnum] max_results
# The maxResults parameter specifies the maximum number of messages that should
# be returned in the result set.
# @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 property identify
# other pages that could be retrieved.
# @param [Fixnum] profile_image_size
# The profileImageSize parameter specifies the size of the user profile pictures
# that should be returned in the result set. Default: 88.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::YoutubeV3::LiveChatMessageListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::LiveChatMessageListResponse]
#
# @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_live_chat_messages(live_chat_id, part, hl: nil, max_results: nil, page_token: nil, profile_image_size: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'liveChat/messages', options)
command.response_representation = Google::Apis::YoutubeV3::LiveChatMessageListResponse::Representation
command.response_class = Google::Apis::YoutubeV3::LiveChatMessageListResponse
command.query['hl'] = hl unless hl.nil?
command.query['liveChatId'] = live_chat_id unless live_chat_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['part'] = part unless part.nil?
command.query['profileImageSize'] = profile_image_size unless profile_image_size.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
# Removes a chat moderator.
# @param [String] id
# The id parameter identifies the chat moderator to remove. The value uniquely
# identifies both the moderator and the chat.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @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 delete_live_chat_moderator(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'liveChat/moderators', options)
command.query['id'] = id unless 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
# Adds a new moderator for the chat.
# @param [String] part
# The part parameter serves two purposes in this operation. It identifies the
# properties that the write operation will set as well as the properties that
# the API response returns. Set the parameter value to snippet.
# @param [Google::Apis::YoutubeV3::LiveChatModerator] live_chat_moderator_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::YoutubeV3::LiveChatModerator] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::LiveChatModerator]
#
# @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 insert_live_chat_moderator(part, live_chat_moderator_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'liveChat/moderators', options)
command.request_representation = Google::Apis::YoutubeV3::LiveChatModerator::Representation
command.request_object = live_chat_moderator_object
command.response_representation = Google::Apis::YoutubeV3::LiveChatModerator::Representation
command.response_class = Google::Apis::YoutubeV3::LiveChatModerator
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 moderators for a live chat.
# @param [String] live_chat_id
# The liveChatId parameter specifies the YouTube live chat for which the API
# should return moderators.
# @param [String] part
# The part parameter specifies the liveChatModerator resource parts that the API
# response will include. Supported values are id and snippet.
# @param [Fixnum] max_results
# The maxResults parameter specifies the maximum number of items that should be
# returned in the result set.
# @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
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::YoutubeV3::LiveChatModeratorListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::LiveChatModeratorListResponse]
#
# @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_live_chat_moderators(live_chat_id, part, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'liveChat/moderators', options)
command.response_representation = Google::Apis::YoutubeV3::LiveChatModeratorListResponse::Representation
command.response_class = Google::Apis::YoutubeV3::LiveChatModeratorListResponse
command.query['liveChatId'] = live_chat_id unless live_chat_id.nil?
command.query['maxResults'] = max_results unless max_results.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
# Deletes a video stream.
# @param [String] id
# The id parameter specifies the YouTube live stream ID for the resource that is
@ -3079,6 +3473,54 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists sponsors for a channel.
# @param [String] part
# The part parameter specifies the sponsor resource parts that the API response
# will include. Supported values are id and snippet.
# @param [String] filter
# The filter parameter specifies which channel sponsors to return.
# @param [Fixnum] max_results
# The maxResults parameter specifies the maximum number of items that should be
# returned in the result set.
# @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
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::YoutubeV3::SponsorListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::SponsorListResponse]
#
# @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_sponsors(part, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'sponsors', options)
command.response_representation = Google::Apis::YoutubeV3::SponsorListResponse::Representation
command.response_class = Google::Apis::YoutubeV3::SponsorListResponse
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.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
# Deletes a subscription.
# @param [String] id
# The id parameter specifies the YouTube subscription ID for the resource that