Bump version, regen APIs

Revert api_names.yaml to pick up the manual overrides lost in v0.12.0
This commit is contained in:
Sai Cheemalapati 2017-06-14 10:02:03 -07:00
parent ebd954a53c
commit 749539e46a
314 changed files with 85448 additions and 117739 deletions

View File

@ -1,3 +1,10 @@
# 0.13.0
* Regenerate APIs
* Revert api\_names.yaml to an earlier revision to restore some manual name
overrides that were lost in 0.12.0
* For example, in `compute:v1`, `aggregated_address_list` has been reverted
to `list_aggregated_instances`.
# 0.12.0
* *Breaking change* - Change behavior of `fetch_all` to collect Hash responses
into a single collection.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -58,11 +58,6 @@ module Google
class AmpUrlError
include Google::Apis::Core::Hashable
# An optional descriptive error message.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message
# The error code of an API call.
# Corresponds to the JSON property `errorCode`
# @return [String]
@ -73,15 +68,20 @@ module Google
# @return [String]
attr_accessor :original_url
# An optional descriptive error message.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_message = args[:error_message] if args.key?(:error_message)
@error_code = args[:error_code] if args.key?(:error_code)
@original_url = args[:original_url] if args.key?(:original_url)
@error_message = args[:error_message] if args.key?(:error_message)
end
end
@ -89,6 +89,11 @@ module Google
class BatchGetAmpUrlsRequest
include Google::Apis::Core::Hashable
# The lookup_strategy being requested.
# Corresponds to the JSON property `lookupStrategy`
# @return [String]
attr_accessor :lookup_strategy
# List of URLs to look up for the paired AMP URLs.
# The URLs are case-sensitive. Up to 50 URLs per lookup
# (see [Usage Limits](/amp/cache/reference/limits)).
@ -96,19 +101,14 @@ module Google
# @return [Array<String>]
attr_accessor :urls
# The lookup_strategy being requested.
# Corresponds to the JSON property `lookupStrategy`
# @return [String]
attr_accessor :lookup_strategy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@urls = args[:urls] if args.key?(:urls)
@lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
@urls = args[:urls] if args.key?(:urls)
end
end

View File

@ -58,17 +58,17 @@ module Google
class AmpUrlError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message, as: 'errorMessage'
property :error_code, as: 'errorCode'
property :original_url, as: 'originalUrl'
property :error_message, as: 'errorMessage'
end
end
class BatchGetAmpUrlsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :urls, as: 'urls'
property :lookup_strategy, as: 'lookupStrategy'
collection :urls, as: 'urls'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20170531'
REVISION = '20170608'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

File diff suppressed because it is too large Load Diff

View File

@ -22,19 +22,103 @@ module Google
module Apis
module Adexchangebuyer2V2beta1
class SecurityContext
class AuctionContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HtmlContent
class ListImpressionMetricsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCreativesResponse
class ImpressionStatusRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BidMetricsRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBidResponseErrorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreativeStatusRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RealtimeTimeRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FilteredBidDetailRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AbsoluteDateRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddDealAssociationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WatchCreativeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeInterval
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FilteredBidCreativeRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RelativeDateRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListClientsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NativeContent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBidResponsesWithoutBidsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -52,13 +136,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Reason
class ListFilterSetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VideoContent
class BidResponseWithoutBidsStatusRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -70,12 +154,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AuctionContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListClientUserInvitationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListCreativeStatusBreakdownByDetailResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocationContext
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -100,6 +184,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class MetricValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClientUser
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -130,6 +220,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListFilteredImpressionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCreativeStatusBreakdownByCreativeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Client
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -142,7 +244,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AddDealAssociationRequest
class FilterSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CalloutStatusRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -154,13 +262,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Disapproval
class StopWatchingCreativeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StopWatchingCreativeRequest
class Disapproval
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -178,13 +286,19 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RowDimensions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WatchCreativeRequest
class ListCreativeStatusAndCreativeBreakdownByDetailResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -196,38 +310,236 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NativeContent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListClientsResponse
class ListFilteredBidsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :securities, as: 'securities'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HtmlContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :width, as: 'width'
property :snippet, as: 'snippet'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCreativesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFilteredBidRequestsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBidMetricsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Reason
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLosingBidsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VideoContent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImpressionMetricsRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuctionContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :creatives, as: 'creatives', class: Google::Apis::Adexchangebuyer2V2beta1::Creative, decorator: Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
collection :auction_types, as: 'auctionTypes'
end
end
class ListImpressionMetricsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :impression_metrics_rows, as: 'impressionMetricsRows', class: Google::Apis::Adexchangebuyer2V2beta1::ImpressionMetricsRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::ImpressionMetricsRow::Representation
end
end
class ImpressionStatusRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :impression_count, as: 'impressionCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :status, as: 'status'
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
end
end
class BidMetricsRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :billed_impressions, as: 'billedImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :bids_in_auction, as: 'bidsInAuction', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :impressions_won, as: 'impressionsWon', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :viewable_impressions, as: 'viewableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :bids, as: 'bids', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
end
end
class ListBidResponseErrorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :callout_status_rows, as: 'calloutStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::CalloutStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::CalloutStatusRow::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class CreativeStatusRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :creative_status_id, as: 'creativeStatusId'
end
end
class RealtimeTimeRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :start_timestamp, as: 'startTimestamp'
end
end
class FilteredBidDetailRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :detail_id, as: 'detailId'
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
end
end
class AbsoluteDateRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_date, as: 'endDate', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
property :start_date, as: 'startDate', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
end
end
class AddDealAssociationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
end
end
class WatchCreativeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :topic, as: 'topic'
end
end
class TimeInterval
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
end
end
class FilteredBidCreativeRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creative_id, as: 'creativeId'
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
end
end
class RelativeDateRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :offset_days, as: 'offsetDays'
property :duration_days, as: 'durationDays'
end
end
class ListClientsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
end
end
class NativeContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :body, as: 'body'
property :star_rating, as: 'starRating'
property :video_url, as: 'videoUrl'
property :click_link_url, as: 'clickLinkUrl'
property :logo, as: 'logo', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :price_display_text, as: 'priceDisplayText'
property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :click_tracking_url, as: 'clickTrackingUrl'
property :advertiser_name, as: 'advertiserName'
property :store_url, as: 'storeUrl'
property :headline, as: 'headline'
property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :call_to_action, as: 'callToAction'
end
end
class ListBidResponsesWithoutBidsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bid_response_without_bids_status_rows, as: 'bidResponseWithoutBidsStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::BidResponseWithoutBidsStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::BidResponseWithoutBidsStatusRow::Representation
property :next_page_token, as: 'nextPageToken'
end
@ -236,8 +548,6 @@ module Google
class ServingContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation
property :location, as: 'location', class: Google::Apis::Adexchangebuyer2V2beta1::LocationContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::LocationContext::Representation
property :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation
@ -247,46 +557,46 @@ module Google
property :security_type, as: 'securityType', class: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext::Representation
property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation
end
end
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :width, as: 'width'
property :url, as: 'url'
property :height, as: 'height'
property :width, as: 'width'
end
end
class Reason
class ListFilterSetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
collection :filter_sets, as: 'filterSets', class: Google::Apis::Adexchangebuyer2V2beta1::FilterSet, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class BidResponseWithoutBidsStatusRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :impression_count, as: 'impressionCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :status, as: 'status'
end
end
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
class VideoContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :video_url, as: 'videoUrl'
end
end
class ClientUserInvitation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invitation_id, :numeric_string => true, as: 'invitationId'
property :email, as: 'email'
property :client_account_id, :numeric_string => true, as: 'clientAccountId'
end
end
class AuctionContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :auction_types, as: 'auctionTypes'
property :invitation_id, :numeric_string => true, as: 'invitationId'
end
end
@ -308,6 +618,16 @@ module Google
end
end
class ListCreativeStatusBreakdownByDetailResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :detail_type, as: 'detailType'
collection :filtered_bid_detail_rows, as: 'filteredBidDetailRows', class: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class LocationContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -322,6 +642,14 @@ module Google
end
end
class MetricValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :variance, :numeric_string => true, as: 'variance'
property :value, :numeric_string => true, as: 'value'
end
end
class ClientUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -335,17 +663,15 @@ module Google
class CreativeDealAssociation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creative_id, as: 'creativeId'
property :deals_id, as: 'dealsId'
property :account_id, as: 'accountId'
property :creative_id, as: 'creativeId'
end
end
class Creative
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
collection :detected_domains, as: 'detectedDomains'
property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation
collection :attributes, as: 'attributes'
@ -371,20 +697,22 @@ module Google
collection :impression_tracking_urls, as: 'impressionTrackingUrls'
property :html, as: 'html', class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent::Representation
collection :detected_product_categories, as: 'detectedProductCategories'
property :deals_status, as: 'dealsStatus'
collection :detected_product_categories, as: 'detectedProductCategories'
property :open_auction_status, as: 'openAuctionStatus'
property :advertiser_name, as: 'advertiserName'
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
collection :detected_domains, as: 'detectedDomains'
end
end
class FilteringStats
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date, as: 'date', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation
property :date, as: 'date', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
end
end
@ -396,6 +724,24 @@ module Google
end
end
class ListFilteredImpressionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :impressions_status_rows, as: 'impressionsStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::ImpressionStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::ImpressionStatusRow::Representation
end
end
class ListCreativeStatusBreakdownByCreativeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :filtered_bid_creative_rows, as: 'filteredBidCreativeRows', class: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidCreativeRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidCreativeRow::Representation
end
end
class Client
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -420,10 +766,35 @@ module Google
end
end
class AddDealAssociationRequest
class FilterSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
collection :seller_network_ids, as: 'sellerNetworkIds'
property :owner_account_id, :numeric_string => true, as: 'ownerAccountId'
property :absolute_date_range, as: 'absoluteDateRange', class: Google::Apis::Adexchangebuyer2V2beta1::AbsoluteDateRange, decorator: Google::Apis::Adexchangebuyer2V2beta1::AbsoluteDateRange::Representation
property :buyer_account_id, :numeric_string => true, as: 'buyerAccountId'
property :environment, as: 'environment'
property :format, as: 'format'
property :deal_id, :numeric_string => true, as: 'dealId'
property :time_series_granularity, as: 'timeSeriesGranularity'
property :filter_set_id, :numeric_string => true, as: 'filterSetId'
property :realtime_time_range, as: 'realtimeTimeRange', class: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange, decorator: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange::Representation
property :creative_id, as: 'creativeId'
collection :platforms, as: 'platforms'
property :relative_date_range, as: 'relativeDateRange', class: Google::Apis::Adexchangebuyer2V2beta1::RelativeDateRange, decorator: Google::Apis::Adexchangebuyer2V2beta1::RelativeDateRange::Representation
end
end
class CalloutStatusRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :callout_status_id, as: 'calloutStatusId'
property :impression_count, as: 'impressionCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
end
end
@ -431,9 +802,15 @@ module Google
class ListDealAssociationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class StopWatchingCreativeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
@ -445,20 +822,14 @@ module Google
end
end
class StopWatchingCreativeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ServingRestriction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
property :status, as: 'status'
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
end
end
@ -471,16 +842,27 @@ module Google
end
end
class RowDimensions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :time_interval, as: 'timeInterval', class: Google::Apis::Adexchangebuyer2V2beta1::TimeInterval, decorator: Google::Apis::Adexchangebuyer2V2beta1::TimeInterval::Representation
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class WatchCreativeRequest
class ListCreativeStatusAndCreativeBreakdownByDetailResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :topic, as: 'topic'
collection :filtered_bid_detail_rows, as: 'filteredBidDetailRows', class: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow::Representation
property :next_page_token, as: 'nextPageToken'
property :detail_type, as: 'detailType'
end
end
@ -491,36 +873,99 @@ module Google
end
end
class NativeContent
class ListFilteredBidsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :star_rating, as: 'starRating'
property :video_url, as: 'videoUrl'
property :click_link_url, as: 'clickLinkUrl'
property :logo, as: 'logo', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
collection :creative_status_rows, as: 'creativeStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow::Representation
property :price_display_text, as: 'priceDisplayText'
property :click_tracking_url, as: 'clickTrackingUrl'
property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :advertiser_name, as: 'advertiserName'
property :store_url, as: 'storeUrl'
property :headline, as: 'headline'
property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :call_to_action, as: 'callToAction'
property :body, as: 'body'
property :next_page_token, as: 'nextPageToken'
end
end
class ListClientsResponse
class SecurityContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
collection :securities, as: 'securities'
end
end
class HtmlContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :width, as: 'width'
property :snippet, as: 'snippet'
end
end
class ListCreativesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :creatives, as: 'creatives', class: Google::Apis::Adexchangebuyer2V2beta1::Creative, decorator: Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
end
end
class ListFilteredBidRequestsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :callout_status_rows, as: 'calloutStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::CalloutStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::CalloutStatusRow::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListBidMetricsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bid_metrics_rows, as: 'bidMetricsRows', class: Google::Apis::Adexchangebuyer2V2beta1::BidMetricsRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::BidMetricsRow::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Reason
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status'
property :count, :numeric_string => true, as: 'count'
end
end
class ListLosingBidsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :creative_status_rows, as: 'creativeStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class VideoContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :video_url, as: 'videoUrl'
end
end
class ImpressionMetricsRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :available_impressions, as: 'availableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :inventory_matches, as: 'inventoryMatches', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :bid_requests, as: 'bidRequests', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :responses_with_bids, as: 'responsesWithBids', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :successful_responses, as: 'successfulResponses', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
end
end
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -2223,19 +2223,19 @@ module Google
# for the duration period covered by the report.
# Corresponds to the JSON property `latency50thPercentile`
# @return [Float]
attr_accessor :latency50th_percentile
attr_accessor :latency_50th_percentile
# The 85th percentile round trip latency(ms) as perceived from Google servers
# for the duration period covered by the report.
# Corresponds to the JSON property `latency85thPercentile`
# @return [Float]
attr_accessor :latency85th_percentile
attr_accessor :latency_85th_percentile
# The 95th percentile round trip latency(ms) as perceived from Google servers
# for the duration period covered by the report.
# Corresponds to the JSON property `latency95thPercentile`
# @return [Float]
attr_accessor :latency95th_percentile
attr_accessor :latency_95th_percentile
# Rate of various quota account statuses per quota check.
# Corresponds to the JSON property `noQuotaInRegion`
@ -2304,9 +2304,9 @@ module Google
@hosted_match_status_rate = args[:hosted_match_status_rate] if args.key?(:hosted_match_status_rate)
@inventory_match_rate = args[:inventory_match_rate] if args.key?(:inventory_match_rate)
@kind = args[:kind] if args.key?(:kind)
@latency50th_percentile = args[:latency50th_percentile] if args.key?(:latency50th_percentile)
@latency85th_percentile = args[:latency85th_percentile] if args.key?(:latency85th_percentile)
@latency95th_percentile = args[:latency95th_percentile] if args.key?(:latency95th_percentile)
@latency_50th_percentile = args[:latency_50th_percentile] if args.key?(:latency_50th_percentile)
@latency_85th_percentile = args[:latency_85th_percentile] if args.key?(:latency_85th_percentile)
@latency_95th_percentile = args[:latency_95th_percentile] if args.key?(:latency_95th_percentile)
@no_quota_in_region = args[:no_quota_in_region] if args.key?(:no_quota_in_region)
@out_of_quota = args[:out_of_quota] if args.key?(:out_of_quota)
@pixel_match_requests = args[:pixel_match_requests] if args.key?(:pixel_match_requests)

View File

@ -1091,9 +1091,9 @@ module Google
collection :hosted_match_status_rate, as: 'hostedMatchStatusRate'
property :inventory_match_rate, as: 'inventoryMatchRate'
property :kind, as: 'kind'
property :latency50th_percentile, as: 'latency50thPercentile'
property :latency85th_percentile, as: 'latency85thPercentile'
property :latency95th_percentile, as: 'latency95thPercentile'
property :latency_50th_percentile, as: 'latency50thPercentile'
property :latency_85th_percentile, as: 'latency85thPercentile'
property :latency_95th_percentile, as: 'latency95thPercentile'
property :no_quota_in_region, as: 'noQuotaInRegion'
property :out_of_quota, as: 'outOfQuota'
property :pixel_match_requests, as: 'pixelMatchRequests'

View File

@ -897,7 +897,7 @@ 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 updateproposal_marketplaceprivateauction(private_auction_id, update_private_auction_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_marketplace_private_auction_proposal(private_auction_id, update_private_auction_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'privateauction/{privateAuctionId}/updateproposal', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_4::UpdatePrivateAuctionProposalRequest::Representation
command.request_object = update_private_auction_proposal_request_object
@ -1434,7 +1434,7 @@ 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 setupcomplete_proposal(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def proposal_setup_complete(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'proposals/{proposalId}/setupcomplete', options)
command.params['proposalId'] = proposal_id unless proposal_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -1515,7 +1515,7 @@ 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_pubprofiles(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_pub_profiles(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'publisher/{accountId}/profiles', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetPublisherProfilesByAccountIdResponse::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_4::GetPublisherProfilesByAccountIdResponse

View File

@ -157,7 +157,7 @@ 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_account_adclients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::AdClients::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::AdClients
@ -238,7 +238,7 @@ 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 get_account_customchannel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannel
@ -285,7 +285,7 @@ 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_account_customchannels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannels::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannels
@ -323,7 +323,7 @@ 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_account_metadatum_dimensions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_metadata_dimensions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/metadata/dimensions', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
@ -358,7 +358,7 @@ 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_account_metadatum_metrics(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_metadata_metrics(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/metadata/metrics', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
@ -395,7 +395,7 @@ 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 get_account_preferreddeal(account_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_preferred_deal(account_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals/{dealId}', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeal
@ -431,7 +431,7 @@ 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_account_preferreddeals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_preferred_deals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeals::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeals
@ -550,7 +550,7 @@ 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 generate_account_report_saved(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::Report
@ -596,7 +596,7 @@ 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_account_report_saveds(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::SavedReports::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::SavedReports
@ -641,7 +641,7 @@ 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_account_urlchannels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::UrlChannels::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::UrlChannels

View File

@ -266,7 +266,7 @@ 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 get_chromeosdevice(customer_id, device_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_chrome_os_device(customer_id, device_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos/{deviceId}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevice
@ -317,7 +317,7 @@ 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_chromeosdevices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_chrome_os_devices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos', options)
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation
command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevices
@ -363,7 +363,7 @@ 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 patch_chromeosdevice(customer_id, device_id, chrome_os_device_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_chrome_os_device(customer_id, device_id, chrome_os_device_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'customer/{customerId}/devices/chromeos/{deviceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
command.request_object = chrome_os_device_object
@ -407,7 +407,7 @@ 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 update_chromeosdevice(customer_id, device_id, chrome_os_device_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_chrome_os_device(customer_id, device_id, chrome_os_device_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'customer/{customerId}/devices/chromeos/{deviceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
command.request_object = chrome_os_device_object
@ -1064,7 +1064,7 @@ module Google
# Remove a alias for the group
# @param [String] group_key
# Email or immutable Id of the group
# @param [String] alias_
# @param [String] group_alias
# The alias to be removed
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1087,10 +1087,10 @@ 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 delete_group_alias(group_key, alias_, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_group_alias(group_key, group_alias, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'groups/{groupKey}/aliases/{alias}', options)
command.params['groupKey'] = group_key unless group_key.nil?
command.params['alias'] = alias_ unless alias_.nil?
command.params['alias'] = group_alias unless group_alias.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?
@ -1440,7 +1440,7 @@ 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 action_mobiledevice(customer_id, resource_id, mobile_device_action_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def action_mobile_device(customer_id, resource_id, mobile_device_action_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'customer/{customerId}/devices/mobile/{resourceId}/action', options)
command.request_representation = Google::Apis::AdminDirectoryV1::MobileDeviceAction::Representation
command.request_object = mobile_device_action_object
@ -1478,7 +1478,7 @@ 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 delete_mobiledevice(customer_id, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_mobile_device(customer_id, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'customer/{customerId}/devices/mobile/{resourceId}', options)
command.params['customerId'] = customer_id unless customer_id.nil?
command.params['resourceId'] = resource_id unless resource_id.nil?
@ -1516,7 +1516,7 @@ 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 get_mobiledevice(customer_id, resource_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_mobile_device(customer_id, resource_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customerId}/devices/mobile/{resourceId}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevice::Representation
command.response_class = Google::Apis::AdminDirectoryV1::MobileDevice
@ -1567,7 +1567,7 @@ 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_mobiledevices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_mobile_devices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customerId}/devices/mobile', options)
command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevices::Representation
command.response_class = Google::Apis::AdminDirectoryV1::MobileDevices
@ -1813,7 +1813,7 @@ 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 delete_orgunit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
command.params['customerId'] = customer_id unless customer_id.nil?
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
@ -1849,7 +1849,7 @@ 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 get_orgunit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit
@ -1886,7 +1886,7 @@ 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 insert_orgunit(customer_id, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_org_unit(customer_id, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'customer/{customerId}/orgunits', options)
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
command.request_object = org_unit_object
@ -1927,7 +1927,7 @@ 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_orgunits(customer_id, org_unit_path: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_org_units(customer_id, org_unit_path: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customerId}/orgunits', options)
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnits::Representation
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnits
@ -1967,7 +1967,7 @@ 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 patch_orgunit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
command.request_object = org_unit_object
@ -2008,7 +2008,7 @@ 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 update_orgunit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
command.request_object = org_unit_object
@ -2084,7 +2084,7 @@ 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 delete_resource_calendar(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_calendar_resource(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.params['customer'] = customer unless customer.nil?
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.nil?
@ -2121,7 +2121,7 @@ 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 get_resource_calendar(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_calendar_resource(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource
@ -2159,7 +2159,7 @@ 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 insert_resource_calendar(customer, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def calendar_resource(customer, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'customer/{customer}/resources/calendars', options)
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.request_object = calendar_resource_object
@ -2201,7 +2201,7 @@ 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_resource_calendars(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_calendar_resources(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customer}/resources/calendars', options)
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResources::Representation
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResources
@ -2242,7 +2242,7 @@ 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 patch_resource_calendar(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_calendar_resource(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.request_object = calendar_resource_object
@ -2284,7 +2284,7 @@ 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 update_resource_calendar(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_calendar_resource(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.request_object = calendar_resource_object
@ -3448,7 +3448,7 @@ module Google
# Remove a alias for the user
# @param [String] user_key
# Email or immutable Id of the user
# @param [String] alias_
# @param [String] user_alias
# The alias to be removed
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3471,10 +3471,10 @@ 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 delete_user_alias(user_key, alias_, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_user_alias(user_key, user_alias, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'users/{userKey}/aliases/{alias}', options)
command.params['userKey'] = user_key unless user_key.nil?
command.params['alias'] = alias_ unless alias_.nil?
command.params['alias'] = user_alias unless user_alias.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?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20170531'
REVISION = '20170607'
# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -591,7 +591,7 @@ module Google
end
#
class AdsenseReportsGenerateResponse
class GenerateReportResponse
include Google::Apis::Core::Hashable
# The averages of the report. This is the same length as any other row in the
@ -609,7 +609,7 @@ module Google
# of headers; one for each dimension in the request, followed by one for each
# metric in the request.
# Corresponds to the JSON property `headers`
# @return [Array<Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Header>]
# @return [Array<Google::Apis::AdsenseV1_4::GenerateReportResponse::Header>]
attr_accessor :headers
# Kind this is, in this case adsense#report.

View File

@ -106,7 +106,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AdsenseReportsGenerateResponse
class GenerateReportResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
class Header
@ -364,12 +364,12 @@ module Google
end
end
class AdsenseReportsGenerateResponse
class GenerateReportResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :averages, as: 'averages'
property :end_date, as: 'endDate'
collection :headers, as: 'headers', class: Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Header, decorator: Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Header::Representation
collection :headers, as: 'headers', class: Google::Apis::AdsenseV1_4::GenerateReportResponse::Header, decorator: Google::Apis::AdsenseV1_4::GenerateReportResponse::Header::Representation
property :kind, as: 'kind'
collection :rows, as: 'rows', :class => Array do

View File

@ -160,7 +160,7 @@ 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_account_adclients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdClients
@ -202,7 +202,7 @@ 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 get_account_adunit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnit
@ -243,7 +243,7 @@ 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 get_account_adunit_ad_code(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdCode
@ -289,7 +289,7 @@ 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_account_adunits(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
@ -339,7 +339,7 @@ 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_account_adunit_customchannels(account_id, ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_ad_unit_custom_channels(account_id, ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
@ -460,7 +460,7 @@ 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 get_account_customchannel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
@ -506,7 +506,7 @@ 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_account_customchannels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
@ -555,7 +555,7 @@ 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_account_customchannel_adunits(account_id, ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_custom_channel_ad_units(account_id, ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
@ -653,10 +653,10 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse] parsed result object
# @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse]
# @return [Google::Apis::AdsenseV1_4::GenerateReportResponse]
#
# @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
@ -668,8 +668,8 @@ module Google
command = make_download_command(:get, 'accounts/{accountId}/reports', options)
command.download_dest = download_dest
end
command.response_representation = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
command.params['accountId'] = account_id unless account_id.nil?
command.query['currency'] = currency unless currency.nil?
command.query['dimension'] = dimension unless dimension.nil?
@ -714,18 +714,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse] parsed result object
# @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse]
# @return [Google::Apis::AdsenseV1_4::GenerateReportResponse]
#
# @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 generate_account_report_saved(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
command.params['accountId'] = account_id unless account_id.nil?
command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
command.query['locale'] = locale unless locale.nil?
@ -768,7 +768,7 @@ 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_account_report_saveds(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedReports
@ -807,7 +807,7 @@ 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 get_account_savedadstyle(account_id, saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_saved_ad_style(account_id, saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
@ -850,7 +850,7 @@ 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_account_savedadstyles(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_saved_ad_styles(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
@ -895,7 +895,7 @@ 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_account_urlchannels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::UrlChannels
@ -937,7 +937,7 @@ 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_adclients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdClients
@ -975,7 +975,7 @@ 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 get_adunit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnit
@ -1013,7 +1013,7 @@ 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 get_adunit_ad_code(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_ad_code_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdCode
@ -1056,7 +1056,7 @@ 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_adunits(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_ad_units(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
@ -1103,7 +1103,7 @@ 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_adunit_customchannels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_ad_unit_custom_channels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
@ -1213,7 +1213,7 @@ 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 get_customchannel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
@ -1256,7 +1256,7 @@ 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_customchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
@ -1302,7 +1302,7 @@ 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_customchannel_adunits(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_custom_channel_ad_units(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
@ -1339,7 +1339,7 @@ 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_metadatum_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_metadata_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'metadata/dimensions', options)
command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
command.response_class = Google::Apis::AdsenseV1_4::Metadata
@ -1371,7 +1371,7 @@ 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_metadatum_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_metadata_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'metadata/metrics', options)
command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
command.response_class = Google::Apis::AdsenseV1_4::Metadata
@ -1460,10 +1460,10 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse] parsed result object
# @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse]
# @return [Google::Apis::AdsenseV1_4::GenerateReportResponse]
#
# @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
@ -1475,8 +1475,8 @@ module Google
command = make_download_command(:get, 'reports', options)
command.download_dest = download_dest
end
command.response_representation = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
command.query['accountId'] = account_id unless account_id.nil?
command.query['currency'] = currency unless currency.nil?
command.query['dimension'] = dimension unless dimension.nil?
@ -1519,18 +1519,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse] parsed result object
# @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse]
# @return [Google::Apis::AdsenseV1_4::GenerateReportResponse]
#
# @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 generate_report_saved(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def generate_saved_report(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'reports/{savedReportId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
command.query['locale'] = locale unless locale.nil?
command.query['maxResults'] = max_results unless max_results.nil?
@ -1570,7 +1570,7 @@ 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_report_saveds(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_saved_reports(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'reports/saved', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedReports
@ -1606,7 +1606,7 @@ 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 get_savedadstyle(saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_saved_ad_style(saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'savedadstyles/{savedAdStyleId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
@ -1646,7 +1646,7 @@ 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_savedadstyles(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_saved_ad_styles(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'savedadstyles', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
@ -1688,7 +1688,7 @@ 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_urlchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::UrlChannels

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
REVISION = '20170531'
REVISION = '20170607'
# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'

View File

@ -151,7 +151,7 @@ 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 get_account_adclient(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_ad_client(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdClient
@ -193,7 +193,7 @@ 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_account_adclients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdClients
@ -234,7 +234,7 @@ 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 delete_account_adunit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdUnit
@ -275,7 +275,7 @@ 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 get_account_adunit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdUnit
@ -319,7 +319,7 @@ 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 get_account_adunit_ad_code(account_id, ad_client_id, ad_unit_id, host_custom_channel_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, host_custom_channel_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdCode::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdCode
@ -360,7 +360,7 @@ 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 insert_account_adunit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_account_ad_unit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.request_object = ad_unit_object
@ -407,7 +407,7 @@ 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_account_adunits(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnits::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdUnits
@ -452,7 +452,7 @@ 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 patch_account_adunit(account_id, ad_client_id, ad_unit_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_account_ad_unit(account_id, ad_client_id, ad_unit_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.request_object = ad_unit_object
@ -494,7 +494,7 @@ 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 update_account_adunit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_account_ad_unit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.request_object = ad_unit_object
@ -599,7 +599,7 @@ 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 get_adclient(ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_ad_client(ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdClient
@ -638,7 +638,7 @@ 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_adclients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdClients
@ -681,7 +681,7 @@ 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 start_associationsession(product_code, website_url, user_locale: nil, website_locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def start_association_session(product_code, website_url, user_locale: nil, website_locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'associationsessions/start', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession
@ -720,7 +720,7 @@ 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 verify_associationsession(token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def verify_association_session(token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'associationsessions/verify', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession
@ -757,7 +757,7 @@ 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 delete_customchannel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel
@ -795,7 +795,7 @@ 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 get_customchannel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel
@ -832,7 +832,7 @@ 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 insert_customchannel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'adclients/{adClientId}/customchannels', options)
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.request_object = custom_channel_object
@ -876,7 +876,7 @@ 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_customchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options)
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannels::Representation
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannels
@ -917,7 +917,7 @@ 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 patch_customchannel(ad_client_id, custom_channel_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_custom_channel(ad_client_id, custom_channel_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'adclients/{adClientId}/customchannels', options)
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.request_object = custom_channel_object
@ -956,7 +956,7 @@ 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 update_customchannel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'adclients/{adClientId}/customchannels', options)
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.request_object = custom_channel_object
@ -1059,7 +1059,7 @@ 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 delete_urlchannel(ad_client_id, url_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_url_channel(ad_client_id, url_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'adclients/{adClientId}/urlchannels/{urlChannelId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
command.response_class = Google::Apis::AdsensehostV4_1::UrlChannel
@ -1096,7 +1096,7 @@ 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 insert_urlchannel(ad_client_id, url_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_url_channel(ad_client_id, url_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'adclients/{adClientId}/urlchannels', options)
command.request_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
command.request_object = url_channel_object
@ -1139,7 +1139,7 @@ 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_urlchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options)
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannels::Representation
command.response_class = Google::Apis::AdsensehostV4_1::UrlChannels

View File

@ -441,7 +441,7 @@ module Google
end
# Request template for the delete upload data request.
class AnalyticsDataimportDeleteUploadDataRequest
class DeleteUploadDataRequest
include Google::Apis::Core::Hashable
# A list of upload UIDs.
@ -4917,7 +4917,7 @@ module Google
# Id of the file object containing the report data.
# Corresponds to the JSON property `objectId`
# @return [String]
attr_accessor :object_id_prop
attr_accessor :obj_id
def initialize(**args)
update!(**args)
@ -4926,7 +4926,7 @@ module Google
# Update properties of this object
def update!(**args)
@bucket_id = args[:bucket_id] if args.key?(:bucket_id)
@object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
@obj_id = args[:obj_id] if args.key?(:obj_id)
end
end

View File

@ -76,7 +76,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AnalyticsDataimportDeleteUploadDataRequest
class DeleteUploadDataRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -738,7 +738,7 @@ module Google
end
end
class AnalyticsDataimportDeleteUploadDataRequest
class DeleteUploadDataRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :custom_data_import_uids, as: 'customDataImportUids'
@ -1833,7 +1833,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket_id, as: 'bucketId'
property :object_id_prop, as: 'objectId'
property :obj_id, as: 'objectId'
end
end

View File

@ -111,7 +111,7 @@ 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 get_datum_ga(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, include_empty_rows: nil, max_results: nil, output: nil, sampling_level: nil, segment: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_ga_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, include_empty_rows: nil, max_results: nil, output: nil, sampling_level: nil, segment: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'data/ga', options)
command.response_representation = Google::Apis::AnalyticsV3::GaData::Representation
command.response_class = Google::Apis::AnalyticsV3::GaData
@ -187,7 +187,7 @@ 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 get_datum_mcf(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, max_results: nil, sampling_level: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_mcf_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, max_results: nil, sampling_level: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'data/mcf', options)
command.response_representation = Google::Apis::AnalyticsV3::McfData::Representation
command.response_class = Google::Apis::AnalyticsV3::McfData
@ -245,7 +245,7 @@ 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 get_datum_realtime(ids, metrics, dimensions: nil, filters: nil, max_results: nil, sort: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_realtime_data(ids, metrics, dimensions: nil, filters: nil, max_results: nil, sort: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'data/realtime', options)
command.response_representation = Google::Apis::AnalyticsV3::RealtimeData::Representation
command.response_class = Google::Apis::AnalyticsV3::RealtimeData
@ -290,7 +290,7 @@ 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_management_account_summaries(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_summaries(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accountSummaries', options)
command.response_representation = Google::Apis::AnalyticsV3::AccountSummaries::Representation
command.response_class = Google::Apis::AnalyticsV3::AccountSummaries
@ -328,7 +328,7 @@ 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 delete_management_account_user_link(account_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_account_user_link(account_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options)
command.params['accountId'] = account_id unless account_id.nil?
command.params['linkId'] = link_id unless link_id.nil?
@ -363,7 +363,7 @@ 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 insert_management_account_user_link(account_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_account_user_link(account_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/entityUserLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object
@ -405,7 +405,7 @@ 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_management_account_user_links(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_user_links(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/entityUserLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
@ -445,7 +445,7 @@ 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 update_management_account_user_link(account_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_account_user_link(account_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object
@ -486,7 +486,7 @@ 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_management_accounts(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_accounts(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts', options)
command.response_representation = Google::Apis::AnalyticsV3::Accounts::Representation
command.response_class = Google::Apis::AnalyticsV3::Accounts
@ -529,7 +529,7 @@ 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_management_custom_data_sources(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_custom_data_sources(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomDataSources::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomDataSources
@ -571,7 +571,7 @@ 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 get_management_custom_dimension(account_id, web_property_id, custom_dimension_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_custom_dimension(account_id, web_property_id, custom_dimension_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomDimension
@ -611,7 +611,7 @@ 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 insert_management_custom_dimension(account_id, web_property_id, custom_dimension_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_custom_dimension(account_id, web_property_id, custom_dimension_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
command.request_object = custom_dimension_object
@ -656,7 +656,7 @@ 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_management_custom_dimensions(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_custom_dimensions(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomDimensions::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomDimensions
@ -702,7 +702,7 @@ 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 patch_management_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
command.request_object = custom_dimension_object
@ -750,7 +750,7 @@ 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 update_management_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
command.request_object = custom_dimension_object
@ -794,7 +794,7 @@ 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 get_management_custom_metric(account_id, web_property_id, custom_metric_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_custom_metric(account_id, web_property_id, custom_metric_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomMetric
@ -834,7 +834,7 @@ 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 insert_management_custom_metric(account_id, web_property_id, custom_metric_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_custom_metric(account_id, web_property_id, custom_metric_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
command.request_object = custom_metric_object
@ -879,7 +879,7 @@ 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_management_custom_metrics(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_custom_metrics(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomMetrics::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomMetrics
@ -925,7 +925,7 @@ 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 patch_management_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
command.request_object = custom_metric_object
@ -973,7 +973,7 @@ 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 update_management_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
command.request_object = custom_metric_object
@ -1019,7 +1019,7 @@ 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 delete_management_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
@ -1061,7 +1061,7 @@ 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 get_management_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
command.response_class = Google::Apis::AnalyticsV3::Experiment
@ -1104,7 +1104,7 @@ 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 insert_management_experiment(account_id, web_property_id, profile_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_experiment(account_id, web_property_id, profile_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options)
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
command.request_object = experiment_object
@ -1152,7 +1152,7 @@ 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_management_experiments(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_experiments(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options)
command.response_representation = Google::Apis::AnalyticsV3::Experiments::Representation
command.response_class = Google::Apis::AnalyticsV3::Experiments
@ -1198,7 +1198,7 @@ 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 patch_management_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
command.request_object = experiment_object
@ -1245,7 +1245,7 @@ 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 update_management_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
command.request_object = experiment_object
@ -1287,7 +1287,7 @@ 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 delete_management_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'management/accounts/{accountId}/filters/{filterId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.response_class = Google::Apis::AnalyticsV3::Filter
@ -1325,7 +1325,7 @@ 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 get_management_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/filters/{filterId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.response_class = Google::Apis::AnalyticsV3::Filter
@ -1362,7 +1362,7 @@ 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 insert_management_filter(account_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_filter(account_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/filters', options)
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.request_object = filter_object
@ -1404,7 +1404,7 @@ 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_management_filters(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_filters(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/filters', options)
command.response_representation = Google::Apis::AnalyticsV3::Filters::Representation
command.response_class = Google::Apis::AnalyticsV3::Filters
@ -1444,7 +1444,7 @@ 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 patch_management_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'management/accounts/{accountId}/filters/{filterId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.request_object = filter_object
@ -1485,7 +1485,7 @@ 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 update_management_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/filters/{filterId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.request_object = filter_object
@ -1529,7 +1529,7 @@ 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 get_management_goal(account_id, web_property_id, profile_id, goal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_goal(account_id, web_property_id, profile_id, goal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
command.response_class = Google::Apis::AnalyticsV3::Goal
@ -1572,7 +1572,7 @@ 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 insert_management_goal(account_id, web_property_id, profile_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_goal(account_id, web_property_id, profile_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options)
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
command.request_object = goal_object
@ -1624,7 +1624,7 @@ 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_management_goals(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_goals(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options)
command.response_representation = Google::Apis::AnalyticsV3::Goals::Representation
command.response_class = Google::Apis::AnalyticsV3::Goals
@ -1670,7 +1670,7 @@ 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 patch_management_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
command.request_object = goal_object
@ -1717,7 +1717,7 @@ 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 update_management_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
command.request_object = goal_object
@ -1763,7 +1763,7 @@ 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 delete_management_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
@ -1805,7 +1805,7 @@ 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 get_management_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLink
@ -1848,7 +1848,7 @@ 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 insert_management_profile_filter_link(account_id, web_property_id, profile_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_profile_filter_link(account_id, web_property_id, profile_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
command.request_object = profile_filter_link_object
@ -1899,7 +1899,7 @@ 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_management_profile_filter_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_profile_filter_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLinks
@ -1945,7 +1945,7 @@ 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 patch_management_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
command.request_object = profile_filter_link_object
@ -1992,7 +1992,7 @@ 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 update_management_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
command.request_object = profile_filter_link_object
@ -2038,7 +2038,7 @@ 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 delete_management_profile_user_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_profile_user_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options)
command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
@ -2079,7 +2079,7 @@ 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 insert_management_profile_user_link(account_id, web_property_id, profile_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_profile_user_link(account_id, web_property_id, profile_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object
@ -2131,7 +2131,7 @@ 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_management_profile_user_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_profile_user_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
@ -2177,7 +2177,7 @@ 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 update_management_profile_user_link(account_id, web_property_id, profile_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_profile_user_link(account_id, web_property_id, profile_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object
@ -2221,7 +2221,7 @@ 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 delete_management_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
@ -2260,7 +2260,7 @@ 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 get_management_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
command.response_class = Google::Apis::AnalyticsV3::Profile
@ -2300,7 +2300,7 @@ 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 insert_management_profile(account_id, web_property_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_profile(account_id, web_property_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options)
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
command.request_object = profile_object
@ -2349,7 +2349,7 @@ 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_management_profiles(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_profiles(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options)
command.response_representation = Google::Apis::AnalyticsV3::Profiles::Representation
command.response_class = Google::Apis::AnalyticsV3::Profiles
@ -2392,7 +2392,7 @@ 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 patch_management_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
command.request_object = profile_object
@ -2436,7 +2436,7 @@ 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 update_management_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
command.request_object = profile_object
@ -2734,7 +2734,7 @@ 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_management_segments(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_segments(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/segments', options)
command.response_representation = Google::Apis::AnalyticsV3::Segments::Representation
command.response_class = Google::Apis::AnalyticsV3::Segments
@ -2776,7 +2776,7 @@ 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 delete_management_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
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?
@ -2818,7 +2818,7 @@ 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 get_management_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_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(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', options)
command.response_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
command.response_class = Google::Apis::AnalyticsV3::UnsampledReport
@ -2861,7 +2861,7 @@ 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 insert_management_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options)
command.request_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
command.request_object = unsampled_report_object
@ -2912,7 +2912,7 @@ 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_management_unsampled_reports(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_unsampled_reports(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options)
command.response_representation = Google::Apis::AnalyticsV3::UnsampledReports::Representation
command.response_class = Google::Apis::AnalyticsV3::UnsampledReports
@ -2934,7 +2934,7 @@ module Google
# Web property Id for the uploads to be deleted.
# @param [String] custom_data_source_id
# Custom data source Id for the uploads to be deleted.
# @param [Google::Apis::AnalyticsV3::AnalyticsDataimportDeleteUploadDataRequest] analytics_dataimport_delete_upload_data_request_object
# @param [Google::Apis::AnalyticsV3::DeleteUploadDataRequest] delete_upload_data_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2956,10 +2956,10 @@ 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 delete_management_upload_upload_data(account_id, web_property_id, custom_data_source_id, analytics_dataimport_delete_upload_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_upload_data(account_id, web_property_id, custom_data_source_id, delete_upload_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', options)
command.request_representation = Google::Apis::AnalyticsV3::AnalyticsDataimportDeleteUploadDataRequest::Representation
command.request_object = analytics_dataimport_delete_upload_data_request_object
command.request_representation = Google::Apis::AnalyticsV3::DeleteUploadDataRequest::Representation
command.request_object = delete_upload_data_request_object
command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
command.params['customDataSourceId'] = custom_data_source_id unless custom_data_source_id.nil?
@ -2999,7 +2999,7 @@ 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 get_management_upload(account_id, web_property_id, custom_data_source_id, upload_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_upload(account_id, web_property_id, custom_data_source_id, upload_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Upload::Representation
command.response_class = Google::Apis::AnalyticsV3::Upload
@ -3046,7 +3046,7 @@ 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_management_uploads(account_id, web_property_id, custom_data_source_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_uploads(account_id, web_property_id, custom_data_source_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
command.response_representation = Google::Apis::AnalyticsV3::Uploads::Representation
command.response_class = Google::Apis::AnalyticsV3::Uploads
@ -3093,7 +3093,7 @@ 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 upload_management_upload_data(account_id, web_property_id, custom_data_source_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
def upload_data(account_id, web_property_id, custom_data_source_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
else
@ -3140,7 +3140,7 @@ 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 delete_management_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
@ -3179,7 +3179,7 @@ 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 get_management_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLink
@ -3219,7 +3219,7 @@ 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 insert_management_web_property_ad_words_link(account_id, web_property_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_web_property_ad_words_link(account_id, web_property_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
command.request_object = entity_ad_words_link_object
@ -3264,7 +3264,7 @@ 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_management_web_property_ad_words_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_web_property_ad_words_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLinks
@ -3308,7 +3308,7 @@ 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 patch_management_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
command.request_object = entity_ad_words_link_object
@ -3352,7 +3352,7 @@ 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 update_management_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
command.request_object = entity_ad_words_link_object
@ -3393,7 +3393,7 @@ 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 get_management_webproperty(account_id, web_property_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_web_property(account_id, web_property_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
command.response_class = Google::Apis::AnalyticsV3::Webproperty
@ -3432,7 +3432,7 @@ 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 insert_management_webproperty(account_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_web_property(account_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties', options)
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
command.request_object = webproperty_object
@ -3475,7 +3475,7 @@ 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_management_webproperties(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_web_properties(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties', options)
command.response_representation = Google::Apis::AnalyticsV3::Webproperties::Representation
command.response_class = Google::Apis::AnalyticsV3::Webproperties
@ -3515,7 +3515,7 @@ 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 patch_management_webproperty(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
command.request_object = webproperty_object
@ -3556,7 +3556,7 @@ 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 update_management_webproperty(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
command.request_object = webproperty_object
@ -3598,7 +3598,7 @@ 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 delete_management_webproperty_user_link(account_id, web_property_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_web_property_user_link(account_id, web_property_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options)
command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
@ -3636,7 +3636,7 @@ 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 insert_management_webproperty_user_link(account_id, web_property_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_web_property_user_link(account_id, web_property_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object
@ -3683,7 +3683,7 @@ 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_management_webproperty_user_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_web_property_user_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
@ -3726,7 +3726,7 @@ 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 update_management_webproperty_user_link(account_id, web_property_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_web_property_user_link(account_id, web_property_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object
@ -3766,7 +3766,7 @@ 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_metadatum_columns(report_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_metadata_columns(report_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'metadata/{reportType}/columns', options)
command.response_representation = Google::Apis::AnalyticsV3::Columns::Representation
command.response_class = Google::Apis::AnalyticsV3::Columns
@ -3800,7 +3800,7 @@ 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 create_provisioning_account_ticket(account_ticket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def create_account_ticket(account_ticket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'provisioning/createAccountTicket', options)
command.request_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation
command.request_object = account_ticket_object

File diff suppressed because it is too large Load Diff

View File

@ -22,60 +22,6 @@ module Google
module Apis
module AnalyticsreportingV4
class ReportData
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DimensionFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SegmentDimensionFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderBy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Segment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SegmentSequenceStep
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Metric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PivotValueRegion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Report
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PivotHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -233,99 +179,57 @@ module Google
end
class ReportData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_data_golden, as: 'isDataGolden'
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :row_count, as: 'rowCount'
property :data_last_refreshed, as: 'dataLastRefreshed'
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
collection :samples_read_counts, as: 'samplesReadCounts'
end
include Google::Apis::Core::JsonObjectSupport
end
class DimensionFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dimension_name, as: 'dimensionName'
property :operator, as: 'operator'
property :not, as: 'not'
collection :expressions, as: 'expressions'
property :case_sensitive, as: 'caseSensitive'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SegmentDimensionFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :case_sensitive, as: 'caseSensitive'
property :min_comparison_value, as: 'minComparisonValue'
property :max_comparison_value, as: 'maxComparisonValue'
property :dimension_name, as: 'dimensionName'
property :operator, as: 'operator'
collection :expressions, as: 'expressions'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderBy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :sort_order, as: 'sortOrder'
property :field_name, as: 'fieldName'
property :order_type, as: 'orderType'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Segment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :segment_id, as: 'segmentId'
end
include Google::Apis::Core::JsonObjectSupport
end
class SegmentSequenceStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :match_type, as: 'matchType'
end
include Google::Apis::Core::JsonObjectSupport
end
class Metric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :formatting_type, as: 'formattingType'
property :alias, as: 'alias'
property :expression, as: 'expression'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PivotValueRegion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Report
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :next_page_token, as: 'nextPageToken'
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
end
include Google::Apis::Core::JsonObjectSupport
end
class PivotHeader
@ -363,9 +267,9 @@ module Google
property :page_size, as: 'pageSize'
property :hide_totals, as: 'hideTotals'
property :hide_value_ranges, as: 'hideValueRanges'
property :filters_expression, as: 'filtersExpression'
property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation
property :filters_expression, as: 'filtersExpression'
property :view_id, as: 'viewId'
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
@ -378,9 +282,9 @@ module Google
property :sampling_level, as: 'samplingLevel'
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
property :page_token, as: 'pageToken'
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
property :page_token, as: 'pageToken'
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
property :include_empty_rows, as: 'includeEmptyRows'
@ -426,11 +330,11 @@ module Google
class SegmentFilterClause
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation
property :not, as: 'not'
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation
end
end
@ -500,9 +404,9 @@ module Google
class SequenceSegment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :first_step_should_match_first_hit, as: 'firstStepShouldMatchFirstHit'
collection :segment_sequence_steps, as: 'segmentSequenceSteps', class: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep, decorator: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep::Representation
property :first_step_should_match_first_hit, as: 'firstStepShouldMatchFirstHit'
end
end
@ -546,24 +450,24 @@ module Google
class Pivot
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :start_group, as: 'startGroup'
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
property :max_group_count, as: 'maxGroupCount'
property :start_group, as: 'startGroup'
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
end
end
class PivotHeaderEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dimension_values, as: 'dimensionValues'
collection :dimension_names, as: 'dimensionNames'
property :metric, as: 'metric', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
collection :dimension_values, as: 'dimensionValues'
end
end
@ -593,6 +497,102 @@ module Google
property :type, as: 'type'
end
end
class ReportData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
collection :samples_read_counts, as: 'samplesReadCounts'
property :row_count, as: 'rowCount'
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
property :is_data_golden, as: 'isDataGolden'
property :data_last_refreshed, as: 'dataLastRefreshed'
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
end
end
class DimensionFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dimension_name, as: 'dimensionName'
property :operator, as: 'operator'
property :not, as: 'not'
collection :expressions, as: 'expressions'
property :case_sensitive, as: 'caseSensitive'
end
end
class SegmentDimensionFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dimension_name, as: 'dimensionName'
property :operator, as: 'operator'
collection :expressions, as: 'expressions'
property :case_sensitive, as: 'caseSensitive'
property :min_comparison_value, as: 'minComparisonValue'
property :max_comparison_value, as: 'maxComparisonValue'
end
end
class OrderBy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :sort_order, as: 'sortOrder'
property :field_name, as: 'fieldName'
property :order_type, as: 'orderType'
end
end
class Segment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
property :segment_id, as: 'segmentId'
end
end
class SegmentSequenceStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
property :match_type, as: 'matchType'
end
end
class Metric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alias, as: 'alias'
property :expression, as: 'expression'
property :formatting_type, as: 'formattingType'
end
end
class PivotValueRegion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values'
end
end
class Report
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
property :next_page_token, as: 'nextPageToken'
end
end
end
end
end

View File

@ -66,7 +66,7 @@ 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 batch_report_get(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
def batch_get_reports(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/reports:batchGet', options)
command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation
command.request_object = get_reports_request_object

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20170526'
REVISION = '20170607'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -452,7 +452,7 @@ module Google
end
# The device resources for the user.
class DevicesListResponse
class ListDevicesResponse
include Google::Apis::Core::Hashable
# A managed device.
@ -561,7 +561,7 @@ module Google
end
# The matching enterprise resources.
class EnterprisesListResponse
class ListEnterprisesResponse
include Google::Apis::Core::Hashable
# An enterprise.
@ -587,7 +587,7 @@ module Google
end
#
class EnterprisesSendTestPushNotificationResponse
class SendTestPushNotificationResponse
include Google::Apis::Core::Hashable
# The message ID of the test push notification that was sent.
@ -667,7 +667,7 @@ module Google
end
# The entitlement resources for the user.
class EntitlementsListResponse
class ListEntitlementsResponse
include Google::Apis::Core::Hashable
# An entitlement of a user to a product (e.g. an app). For example, a free app
@ -786,7 +786,7 @@ module Google
end
# The user resources for the group license.
class GroupLicenseUsersListResponse
class ListGroupLicenseUsersResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
@ -812,7 +812,7 @@ module Google
end
# The grouplicense resources for the enterprise.
class GroupLicensesListResponse
class ListGroupLicensesResponse
include Google::Apis::Core::Hashable
# A group license for a product approved for use in the enterprise.
@ -943,7 +943,7 @@ module Google
end
# The install resources for the device.
class InstallsListResponse
class ListInstallsResponse
include Google::Apis::Core::Hashable
# An installation of an app for a user on a specific device. The existence of an
@ -1685,7 +1685,7 @@ module Google
end
#
class ProductsApproveRequest
class ApproveProductRequest
include Google::Apis::Core::Hashable
# Information on an approval URL.
@ -1715,7 +1715,7 @@ module Google
end
#
class ProductsGenerateApprovalUrlResponse
class GenerateProductApprovalUrlResponse
include Google::Apis::Core::Hashable
# A URL that can be rendered in an iframe to display the permissions (if any) of
@ -2242,7 +2242,7 @@ module Google
end
# The matching user resources.
class UsersListResponse
class ListUsersResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "

View File

@ -100,7 +100,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DevicesListResponse
class ListDevicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -118,13 +118,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class EnterprisesListResponse
class ListEnterprisesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EnterprisesSendTestPushNotificationResponse
class SendTestPushNotificationResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -136,7 +136,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class EntitlementsListResponse
class ListEntitlementsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -148,13 +148,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GroupLicenseUsersListResponse
class ListGroupLicenseUsersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupLicensesListResponse
class ListGroupLicensesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -172,7 +172,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstallsListResponse
class ListInstallsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -286,13 +286,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ProductsApproveRequest
class ApproveProductRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductsGenerateApprovalUrlResponse
class GenerateProductApprovalUrlResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -376,7 +376,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UsersListResponse
class ListUsersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -497,7 +497,7 @@ module Google
end
end
class DevicesListResponse
class ListDevicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :device, as: 'device', class: Google::Apis::AndroidenterpriseV1::Device, decorator: Google::Apis::AndroidenterpriseV1::Device::Representation
@ -526,7 +526,7 @@ module Google
end
end
class EnterprisesListResponse
class ListEnterprisesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :enterprise, as: 'enterprise', class: Google::Apis::AndroidenterpriseV1::Enterprise, decorator: Google::Apis::AndroidenterpriseV1::Enterprise::Representation
@ -535,7 +535,7 @@ module Google
end
end
class EnterprisesSendTestPushNotificationResponse
class SendTestPushNotificationResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message_id, as: 'messageId'
@ -552,7 +552,7 @@ module Google
end
end
class EntitlementsListResponse
class ListEntitlementsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entitlement, as: 'entitlement', class: Google::Apis::AndroidenterpriseV1::Entitlement, decorator: Google::Apis::AndroidenterpriseV1::Entitlement::Representation
@ -574,7 +574,7 @@ module Google
end
end
class GroupLicenseUsersListResponse
class ListGroupLicenseUsersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -583,7 +583,7 @@ module Google
end
end
class GroupLicensesListResponse
class ListGroupLicensesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :group_license, as: 'groupLicense', class: Google::Apis::AndroidenterpriseV1::GroupLicense, decorator: Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
@ -613,7 +613,7 @@ module Google
end
end
class InstallsListResponse
class ListInstallsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :install, as: 'install', class: Google::Apis::AndroidenterpriseV1::Install, decorator: Google::Apis::AndroidenterpriseV1::Install::Representation
@ -813,7 +813,7 @@ module Google
end
end
class ProductsApproveRequest
class ApproveProductRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :approval_url_info, as: 'approvalUrlInfo', class: Google::Apis::AndroidenterpriseV1::ApprovalUrlInfo, decorator: Google::Apis::AndroidenterpriseV1::ApprovalUrlInfo::Representation
@ -822,7 +822,7 @@ module Google
end
end
class ProductsGenerateApprovalUrlResponse
class GenerateProductApprovalUrlResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
@ -960,7 +960,7 @@ module Google
end
end
class UsersListResponse
class ListUsersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'

View File

@ -157,18 +157,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::DevicesListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListDevicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::DevicesListResponse]
# @return [Google::Apis::AndroidenterpriseV1::ListDevicesResponse]
#
# @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_devices(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::DevicesListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::DevicesListResponse
command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -634,18 +634,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EnterprisesListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::EnterprisesListResponse]
# @return [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse]
#
# @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_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::EnterprisesListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::EnterprisesListResponse
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse
command.query['domain'] = domain unless domain.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -725,18 +725,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EnterprisesSendTestPushNotificationResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::EnterprisesSendTestPushNotificationResponse]
# @return [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse]
#
# @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 send_enterprise_test_push_notification(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/{enterpriseId}/sendTestPushNotification', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::EnterprisesSendTestPushNotificationResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::EnterprisesSendTestPushNotificationResponse
command.response_representation = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -958,18 +958,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EntitlementsListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::EntitlementsListResponse]
# @return [Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse]
#
# @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_entitlements(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::EntitlementsListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::EntitlementsListResponse
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -1106,7 +1106,7 @@ 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 get_grouplicense(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense
@ -1134,18 +1134,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::GroupLicensesListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::GroupLicensesListResponse]
# @return [Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse]
#
# @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_grouplicenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicensesListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicensesListResponse
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -1173,18 +1173,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::GroupLicenseUsersListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::GroupLicenseUsersListResponse]
# @return [Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse]
#
# @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_grouplicenseusers(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicenseUsersListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicenseUsersListResponse
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['groupLicenseId'] = group_license_id unless group_license_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -1302,18 +1302,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::InstallsListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListInstallsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::InstallsListResponse]
# @return [Google::Apis::AndroidenterpriseV1::ListInstallsResponse]
#
# @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_installs(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::InstallsListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::InstallsListResponse
command.response_representation = Google::Apis::AndroidenterpriseV1::ListInstallsResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListInstallsResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil?
@ -1912,7 +1912,7 @@ module Google
# The ID of the enterprise.
# @param [String] product_id
# The ID of the product.
# @param [Google::Apis::AndroidenterpriseV1::ProductsApproveRequest] products_approve_request_object
# @param [Google::Apis::AndroidenterpriseV1::ApproveProductRequest] approve_product_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1934,10 +1934,10 @@ 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 approve_product(enterprise_id, product_id, products_approve_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::ProductsApproveRequest::Representation
command.request_object = products_approve_request_object
command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation
command.request_object = approve_product_request_object
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -1974,18 +1974,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductsGenerateApprovalUrlResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ProductsGenerateApprovalUrlResponse]
# @return [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse]
#
# @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 generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductsGenerateApprovalUrlResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ProductsGenerateApprovalUrlResponse
command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_id.nil?
command.query['languageCode'] = language_code unless language_code.nil?
@ -3069,18 +3069,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::UsersListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListUsersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::UsersListResponse]
# @return [Google::Apis::AndroidenterpriseV1::ListUsersResponse]
#
# @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_users(enterprise_id, email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::UsersListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::UsersListResponse
command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListUsersResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['email'] = email unless email.nil?
command.query['fields'] = fields unless fields.nil?

View File

@ -93,7 +93,7 @@ module Google
end
#
class ApkListingsListResponse
class ListApkListingsResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
@ -163,7 +163,7 @@ module Google
end
#
class ApksListResponse
class ListApksResponse
include Google::Apis::Core::Hashable
#
@ -460,7 +460,7 @@ module Google
end
#
class EntitlementsListResponse
class ListEntitlementsResponse
include Google::Apis::Core::Hashable
#
@ -519,7 +519,7 @@ module Google
end
#
class ExpansionFilesUploadResponse
class UploadExpansionFilesResponse
include Google::Apis::Core::Hashable
#
@ -701,7 +701,7 @@ module Google
end
#
class ImagesDeleteAllResponse
class DeleteAllImagesResponse
include Google::Apis::Core::Hashable
#
@ -720,7 +720,7 @@ module Google
end
#
class ImagesListResponse
class ListImagesResponse
include Google::Apis::Core::Hashable
#
@ -739,7 +739,7 @@ module Google
end
#
class ImagesUploadResponse
class UploadImagesResponse
include Google::Apis::Core::Hashable
#
@ -870,12 +870,12 @@ module Google
end
#
class InappproductsBatchRequest
class InAppProductsBatchRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `entrys`
# @return [Array<Google::Apis::AndroidpublisherV2::InappproductsBatchRequestEntry>]
# @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry>]
attr_accessor :entrys
def initialize(**args)
@ -889,7 +889,7 @@ module Google
end
#
class InappproductsBatchRequestEntry
class InAppProductsBatchRequestEntry
include Google::Apis::Core::Hashable
#
@ -899,12 +899,12 @@ module Google
#
# Corresponds to the JSON property `inappproductsinsertrequest`
# @return [Google::Apis::AndroidpublisherV2::InappproductsInsertRequest]
# @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest]
attr_accessor :inappproductsinsertrequest
#
# Corresponds to the JSON property `inappproductsupdaterequest`
# @return [Google::Apis::AndroidpublisherV2::InappproductsUpdateRequest]
# @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest]
attr_accessor :inappproductsupdaterequest
#
@ -926,12 +926,12 @@ module Google
end
#
class InappproductsBatchResponse
class InAppProductsBatchResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `entrys`
# @return [Array<Google::Apis::AndroidpublisherV2::InappproductsBatchResponseEntry>]
# @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry>]
attr_accessor :entrys
# Identifies what kind of resource this is. Value: the fixed string "
@ -952,7 +952,7 @@ module Google
end
#
class InappproductsBatchResponseEntry
class InAppProductsBatchResponseEntry
include Google::Apis::Core::Hashable
#
@ -962,12 +962,12 @@ module Google
#
# Corresponds to the JSON property `inappproductsinsertresponse`
# @return [Google::Apis::AndroidpublisherV2::InappproductsInsertResponse]
# @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse]
attr_accessor :inappproductsinsertresponse
#
# Corresponds to the JSON property `inappproductsupdateresponse`
# @return [Google::Apis::AndroidpublisherV2::InappproductsUpdateResponse]
# @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse]
attr_accessor :inappproductsupdateresponse
def initialize(**args)
@ -983,7 +983,7 @@ module Google
end
#
class InappproductsInsertRequest
class InsertInAppProductsRequest
include Google::Apis::Core::Hashable
#
@ -1002,7 +1002,7 @@ module Google
end
#
class InappproductsInsertResponse
class InsertInAppProductsResponse
include Google::Apis::Core::Hashable
#
@ -1021,7 +1021,7 @@ module Google
end
#
class InappproductsListResponse
class ListInAppProductsResponse
include Google::Apis::Core::Hashable
#
@ -1059,7 +1059,7 @@ module Google
end
#
class InappproductsUpdateRequest
class UpdateInAppProductsRequest
include Google::Apis::Core::Hashable
#
@ -1078,7 +1078,7 @@ module Google
end
#
class InappproductsUpdateResponse
class UpdateInAppProductsResponse
include Google::Apis::Core::Hashable
#
@ -1141,7 +1141,7 @@ module Google
end
#
class ListingsListResponse
class ListListingsResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
@ -1610,7 +1610,7 @@ module Google
end
#
class SubscriptionPurchasesDeferRequest
class DeferSubscriptionPurchasesRequest
include Google::Apis::Core::Hashable
# A SubscriptionDeferralInfo contains the data needed to defer a subscription
@ -1630,7 +1630,7 @@ module Google
end
#
class SubscriptionPurchasesDeferResponse
class DeferSubscriptionPurchasesResponse
include Google::Apis::Core::Hashable
# The new expiry time for the subscription in milliseconds since the Epoch.
@ -1755,7 +1755,7 @@ module Google
end
#
class TracksListResponse
class ListTracksResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "

View File

@ -40,7 +40,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ApkListingsListResponse
class ListApkListingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -58,7 +58,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ApksListResponse
class ListApksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -112,7 +112,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class EntitlementsListResponse
class ListEntitlementsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -124,7 +124,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ExpansionFilesUploadResponse
class UploadExpansionFilesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -148,19 +148,19 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ImagesDeleteAllResponse
class DeleteAllImagesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImagesListResponse
class ListImagesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImagesUploadResponse
class UploadImagesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -178,55 +178,55 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsBatchRequest
class InAppProductsBatchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsBatchRequestEntry
class InAppProductsBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsBatchResponse
class InAppProductsBatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsBatchResponseEntry
class InAppProductsBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsInsertRequest
class InsertInAppProductsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsInsertResponse
class InsertInAppProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsListResponse
class ListInAppProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsUpdateRequest
class UpdateInAppProductsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsUpdateResponse
class UpdateInAppProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -238,7 +238,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListingsListResponse
class ListListingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -322,13 +322,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SubscriptionPurchasesDeferRequest
class DeferSubscriptionPurchasesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubscriptionPurchasesDeferResponse
class DeferSubscriptionPurchasesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -358,7 +358,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TracksListResponse
class ListTracksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -406,7 +406,7 @@ module Google
end
end
class ApkListingsListResponse
class ListApkListingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -431,7 +431,7 @@ module Google
end
end
class ApksListResponse
class ListApksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :apks, as: 'apks', class: Google::Apis::AndroidpublisherV2::Apk, decorator: Google::Apis::AndroidpublisherV2::Apk::Representation
@ -519,7 +519,7 @@ module Google
end
end
class EntitlementsListResponse
class ListEntitlementsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV2::PageInfo, decorator: Google::Apis::AndroidpublisherV2::PageInfo::Representation
@ -539,7 +539,7 @@ module Google
end
end
class ExpansionFilesUploadResponse
class UploadExpansionFilesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expansion_file, as: 'expansionFile', class: Google::Apis::AndroidpublisherV2::ExpansionFile, decorator: Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
@ -586,7 +586,7 @@ module Google
end
end
class ImagesDeleteAllResponse
class DeleteAllImagesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :deleted, as: 'deleted', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
@ -594,7 +594,7 @@ module Google
end
end
class ImagesListResponse
class ListImagesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :images, as: 'images', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
@ -602,7 +602,7 @@ module Google
end
end
class ImagesUploadResponse
class UploadImagesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image, as: 'image', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
@ -639,47 +639,47 @@ module Google
end
end
class InappproductsBatchRequest
class InAppProductsBatchRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entrys, as: 'entrys', class: Google::Apis::AndroidpublisherV2::InappproductsBatchRequestEntry, decorator: Google::Apis::AndroidpublisherV2::InappproductsBatchRequestEntry::Representation
collection :entrys, as: 'entrys', class: Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry, decorator: Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry::Representation
end
end
class InappproductsBatchRequestEntry
class InAppProductsBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :inappproductsinsertrequest, as: 'inappproductsinsertrequest', class: Google::Apis::AndroidpublisherV2::InappproductsInsertRequest, decorator: Google::Apis::AndroidpublisherV2::InappproductsInsertRequest::Representation
property :inappproductsinsertrequest, as: 'inappproductsinsertrequest', class: Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest, decorator: Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest::Representation
property :inappproductsupdaterequest, as: 'inappproductsupdaterequest', class: Google::Apis::AndroidpublisherV2::InappproductsUpdateRequest, decorator: Google::Apis::AndroidpublisherV2::InappproductsUpdateRequest::Representation
property :inappproductsupdaterequest, as: 'inappproductsupdaterequest', class: Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest, decorator: Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest::Representation
property :method_name, as: 'methodName'
end
end
class InappproductsBatchResponse
class InAppProductsBatchResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entrys, as: 'entrys', class: Google::Apis::AndroidpublisherV2::InappproductsBatchResponseEntry, decorator: Google::Apis::AndroidpublisherV2::InappproductsBatchResponseEntry::Representation
collection :entrys, as: 'entrys', class: Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry, decorator: Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class InappproductsBatchResponseEntry
class InAppProductsBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :inappproductsinsertresponse, as: 'inappproductsinsertresponse', class: Google::Apis::AndroidpublisherV2::InappproductsInsertResponse, decorator: Google::Apis::AndroidpublisherV2::InappproductsInsertResponse::Representation
property :inappproductsinsertresponse, as: 'inappproductsinsertresponse', class: Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse, decorator: Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse::Representation
property :inappproductsupdateresponse, as: 'inappproductsupdateresponse', class: Google::Apis::AndroidpublisherV2::InappproductsUpdateResponse, decorator: Google::Apis::AndroidpublisherV2::InappproductsUpdateResponse::Representation
property :inappproductsupdateresponse, as: 'inappproductsupdateresponse', class: Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse, decorator: Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse::Representation
end
end
class InappproductsInsertRequest
class InsertInAppProductsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -687,7 +687,7 @@ module Google
end
end
class InappproductsInsertResponse
class InsertInAppProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -695,7 +695,7 @@ module Google
end
end
class InappproductsListResponse
class ListInAppProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -708,7 +708,7 @@ module Google
end
end
class InappproductsUpdateRequest
class UpdateInAppProductsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -716,7 +716,7 @@ module Google
end
end
class InappproductsUpdateResponse
class UpdateInAppProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -735,7 +735,7 @@ module Google
end
end
class ListingsListResponse
class ListListingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -873,7 +873,7 @@ module Google
end
end
class SubscriptionPurchasesDeferRequest
class DeferSubscriptionPurchasesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deferral_info, as: 'deferralInfo', class: Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo, decorator: Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo::Representation
@ -881,7 +881,7 @@ module Google
end
end
class SubscriptionPurchasesDeferResponse
class DeferSubscriptionPurchasesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_expiry_time_millis, :numeric_string => true, as: 'newExpiryTimeMillis'
@ -921,7 +921,7 @@ module Google
end
end
class TracksListResponse
class ListTracksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'

View File

@ -284,7 +284,7 @@ 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 delete_edit_apklisting(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
@ -325,7 +325,7 @@ 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 deleteall_edit_apklisting(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_all_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options)
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
@ -370,7 +370,7 @@ 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 get_edit_apklisting(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ApkListing
@ -405,18 +405,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ApkListingsListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListApkListingsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::ApkListingsListResponse]
# @return [Google::Apis::AndroidpublisherV2::ListApkListingsResponse]
#
# @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_edit_apklistings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ApkListingsListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ApkListingsListResponse
command.response_representation = Google::Apis::AndroidpublisherV2::ListApkListingsResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListApkListingsResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
@ -461,7 +461,7 @@ 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 patch_edit_apklisting(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
command.request_object = apk_listing_object
@ -512,7 +512,7 @@ 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 update_edit_apklisting(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
command.request_object = apk_listing_object
@ -559,7 +559,7 @@ 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 addexternallyhosted_edit_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def add_externally_hosted_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/externallyHosted', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedRequest::Representation
command.request_object = apks_add_externally_hosted_request_object
@ -592,18 +592,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ApksListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListApksResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::ApksListResponse]
# @return [Google::Apis::AndroidpublisherV2::ListApksResponse]
#
# @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_edit_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/apks', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ApksListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ApksListResponse
command.response_representation = Google::Apis::AndroidpublisherV2::ListApksResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListApksResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -643,7 +643,7 @@ 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 upload_edit_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
def upload_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks', options)
else
@ -744,7 +744,7 @@ 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 get_edit_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/details', options)
command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
command.response_class = Google::Apis::AndroidpublisherV2::AppDetails
@ -784,7 +784,7 @@ 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 patch_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{packageName}/edits/{editId}/details', options)
command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
command.request_object = app_details_object
@ -826,7 +826,7 @@ 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 update_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{packageName}/edits/{editId}/details', options)
command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
command.request_object = app_details_object
@ -871,7 +871,7 @@ 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 get_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile
@ -919,7 +919,7 @@ 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 patch_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
command.request_object = expansion_file_object
@ -968,7 +968,7 @@ 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 update_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
command.request_object = expansion_file_object
@ -1011,15 +1011,15 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ExpansionFilesUploadResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::ExpansionFilesUploadResponse]
# @return [Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse]
#
# @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 upload_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
def upload_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
else
@ -1027,8 +1027,8 @@ module Google
command.upload_source = upload_source
command.upload_content_type = content_type
end
command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFilesUploadResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFilesUploadResponse
command.response_representation = Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
@ -1073,7 +1073,7 @@ 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 delete_edit_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options)
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
@ -1110,18 +1110,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse]
# @return [Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse]
#
# @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 deleteall_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_all_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse
command.response_representation = Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.params['language'] = language unless language.nil?
@ -1156,18 +1156,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ImagesListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListImagesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::ImagesListResponse]
# @return [Google::Apis::AndroidpublisherV2::ListImagesResponse]
#
# @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_edit_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ImagesListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ImagesListResponse
command.response_representation = Google::Apis::AndroidpublisherV2::ListImagesResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListImagesResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.params['language'] = language unless language.nil?
@ -1207,15 +1207,15 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ImagesUploadResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::UploadImagesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::ImagesUploadResponse]
# @return [Google::Apis::AndroidpublisherV2::UploadImagesResponse]
#
# @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 upload_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
def upload_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
else
@ -1223,8 +1223,8 @@ module Google
command.upload_source = upload_source
command.upload_content_type = content_type
end
command.response_representation = Google::Apis::AndroidpublisherV2::ImagesUploadResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ImagesUploadResponse
command.response_representation = Google::Apis::AndroidpublisherV2::UploadImagesResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::UploadImagesResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.params['language'] = language unless language.nil?
@ -1265,7 +1265,7 @@ 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 delete_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}', options)
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
@ -1303,7 +1303,7 @@ 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 deleteall_edit_listing(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_all_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings', options)
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
@ -1343,7 +1343,7 @@ 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 get_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
command.response_class = Google::Apis::AndroidpublisherV2::Listing
@ -1375,18 +1375,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListingsListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListListingsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::ListingsListResponse]
# @return [Google::Apis::AndroidpublisherV2::ListListingsResponse]
#
# @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_edit_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/listings', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ListingsListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListingsListResponse
command.response_representation = Google::Apis::AndroidpublisherV2::ListListingsResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListListingsResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -1427,7 +1427,7 @@ 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 patch_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{packageName}/edits/{editId}/listings/{language}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
command.request_object = listing_object
@ -1473,7 +1473,7 @@ 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 update_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{packageName}/edits/{editId}/listings/{language}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
command.request_object = listing_object
@ -1516,7 +1516,7 @@ 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 get_edit_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/testers/{track}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
command.response_class = Google::Apis::AndroidpublisherV2::Testers
@ -1558,7 +1558,7 @@ 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 patch_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{packageName}/edits/{editId}/testers/{track}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
command.request_object = testers_object
@ -1602,7 +1602,7 @@ 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 update_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{packageName}/edits/{editId}/testers/{track}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
command.request_object = testers_object
@ -1647,7 +1647,7 @@ 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 get_edit_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks/{track}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
command.response_class = Google::Apis::AndroidpublisherV2::Track
@ -1679,18 +1679,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::TracksListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListTracksResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::TracksListResponse]
# @return [Google::Apis::AndroidpublisherV2::ListTracksResponse]
#
# @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_edit_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks', options)
command.response_representation = Google::Apis::AndroidpublisherV2::TracksListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::TracksListResponse
command.response_representation = Google::Apis::AndroidpublisherV2::ListTracksResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListTracksResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -1731,7 +1731,7 @@ 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 patch_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{packageName}/edits/{editId}/tracks/{track}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
command.request_object = track_object
@ -1778,7 +1778,7 @@ 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 update_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{packageName}/edits/{editId}/tracks/{track}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
command.request_object = track_object
@ -1816,18 +1816,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::EntitlementsListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::EntitlementsListResponse]
# @return [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse]
#
# @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_entitlements(package_name, max_results: nil, product_id: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/entitlements', options)
command.response_representation = Google::Apis::AndroidpublisherV2::EntitlementsListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::EntitlementsListResponse
command.response_representation = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse
command.params['packageName'] = package_name unless package_name.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['productId'] = product_id unless product_id.nil?
@ -1840,7 +1840,7 @@ module Google
end
#
# @param [Google::Apis::AndroidpublisherV2::InappproductsBatchRequest] inappproducts_batch_request_object
# @param [Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest] in_app_products_batch_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1854,20 +1854,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::InappproductsBatchResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::InappproductsBatchResponse]
# @return [Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse]
#
# @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 batch_inappproduct(inappproducts_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_update_in_app_products(in_app_products_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'inappproducts/batch', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InappproductsBatchRequest::Representation
command.request_object = inappproducts_batch_request_object
command.response_representation = Google::Apis::AndroidpublisherV2::InappproductsBatchResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::InappproductsBatchResponse
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest::Representation
command.request_object = in_app_products_batch_request_object
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse
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?
@ -1901,7 +1901,7 @@ 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 delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options)
command.params['packageName'] = package_name unless package_name.nil?
command.params['sku'] = sku unless sku.nil?
@ -1936,7 +1936,7 @@ 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 get_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
@ -1977,7 +1977,7 @@ 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 insert_inappproduct(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_in_app_product(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{packageName}/inappproducts', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
command.request_object = in_app_product_object
@ -2012,18 +2012,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::InappproductsListResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListInAppProductsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::InappproductsListResponse]
# @return [Google::Apis::AndroidpublisherV2::ListInAppProductsResponse]
#
# @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_inappproducts(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_in_app_products(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/inappproducts', options)
command.response_representation = Google::Apis::AndroidpublisherV2::InappproductsListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::InappproductsListResponse
command.response_representation = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse
command.params['packageName'] = package_name unless package_name.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['startIndex'] = start_index unless start_index.nil?
@ -2066,7 +2066,7 @@ 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 patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
command.request_object = in_app_product_object
@ -2113,7 +2113,7 @@ 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 update_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
command.request_object = in_app_product_object
@ -2219,7 +2219,7 @@ module Google
# The purchased subscription ID (for example, 'monthly001').
# @param [String] token
# The token provided to the user's device when the subscription was purchased.
# @param [Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferRequest] subscription_purchases_defer_request_object
# @param [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest] defer_subscription_purchases_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2233,20 +2233,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferResponse] parsed result object
# @yieldparam result [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferResponse]
# @return [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse]
#
# @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 defer_purchase_subscription(package_name, subscription_id, token, subscription_purchases_defer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def defer_purchase_subscription(package_name, subscription_id, token, defer_subscription_purchases_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options)
command.request_representation = Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferRequest::Representation
command.request_object = subscription_purchases_defer_request_object
command.response_representation = Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferResponse
command.request_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest::Representation
command.request_object = defer_subscription_purchases_request_object
command.response_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
command.params['token'] = token unless token.nil?

View File

@ -26,16 +26,16 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1
VERSION = 'V1'
REVISION = '20170525'
REVISION = '20170601'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,126 @@ module Google
module Apis
module AppengineV1
class OperationMetadataV1Alpha
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlDispatchRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApiEndpointHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutomaticScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ZipInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Library
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RequestUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndpointsApiService
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlMap
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApiConfigHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StaticFilesHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DiskUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BasicScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CpuUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class IdentityAwareProxy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManualScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -64,13 +184,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Application
class Network
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Network
class Application
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -196,118 +316,210 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UrlDispatchRule
class Representation < Google::Apis::Core::JsonRepresentation; end
class OperationMetadataV1Alpha
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
collection :warning, as: 'warning'
property :insert_time, as: 'insertTime'
property :user, as: 'user'
property :target, as: 'target'
property :ephemeral_message, as: 'ephemeralMessage'
property :method_prop, as: 'method'
end
end
include Google::Apis::Core::JsonObjectSupport
class UrlDispatchRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain, as: 'domain'
property :service, as: 'service'
property :path, as: 'path'
end
end
class ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :versions, as: 'versions', class: Google::Apis::AppengineV1::Version, decorator: Google::Apis::AppengineV1::Version::Representation
include Google::Apis::Core::JsonObjectSupport
property :next_page_token, as: 'nextPageToken'
end
end
class ApiEndpointHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ZipInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :script_path, as: 'scriptPath'
end
end
class AutomaticScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation
include Google::Apis::Core::JsonObjectSupport
property :max_idle_instances, as: 'maxIdleInstances'
property :min_idle_instances, as: 'minIdleInstances'
property :max_total_instances, as: 'maxTotalInstances'
property :min_total_instances, as: 'minTotalInstances'
property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1::NetworkUtilization, decorator: Google::Apis::AppengineV1::NetworkUtilization::Representation
property :max_concurrent_requests, as: 'maxConcurrentRequests'
property :cool_down_period, as: 'coolDownPeriod'
property :max_pending_latency, as: 'maxPendingLatency'
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1::CpuUtilization, decorator: Google::Apis::AppengineV1::CpuUtilization::Representation
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1::DiskUtilization, decorator: Google::Apis::AppengineV1::DiskUtilization::Representation
property :min_pending_latency, as: 'minPendingLatency'
end
end
class ZipInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :files_count, as: 'filesCount'
property :source_url, as: 'sourceUrl'
end
end
class Library
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
property :name, as: 'name'
end
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :locations, as: 'locations', class: Google::Apis::AppengineV1::Location, decorator: Google::Apis::AppengineV1::Location::Representation
include Google::Apis::Core::JsonObjectSupport
end
end
class ContainerInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image, as: 'image'
end
end
class RequestUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlMap
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_request_count_per_second, as: 'targetRequestCountPerSecond'
property :target_concurrent_requests, as: 'targetConcurrentRequests'
end
end
class EndpointsApiService
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :config_id, as: 'configId'
end
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
class UrlMap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :security_level, as: 'securityLevel'
property :auth_fail_action, as: 'authFailAction'
property :script, as: 'script', class: Google::Apis::AppengineV1::ScriptHandler, decorator: Google::Apis::AppengineV1::ScriptHandler::Representation
include Google::Apis::Core::JsonObjectSupport
property :url_regex, as: 'urlRegex'
property :login, as: 'login'
property :api_endpoint, as: 'apiEndpoint', class: Google::Apis::AppengineV1::ApiEndpointHandler, decorator: Google::Apis::AppengineV1::ApiEndpointHandler::Representation
property :static_files, as: 'staticFiles', class: Google::Apis::AppengineV1::StaticFilesHandler, decorator: Google::Apis::AppengineV1::StaticFilesHandler::Representation
property :redirect_http_response_code, as: 'redirectHttpResponseCode'
end
end
class ApiConfigHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :login, as: 'login'
property :url, as: 'url'
property :security_level, as: 'securityLevel'
property :auth_fail_action, as: 'authFailAction'
property :script, as: 'script'
end
end
include Google::Apis::Core::JsonObjectSupport
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::AppengineV1::Status, decorator: Google::Apis::AppengineV1::Status::Representation
hash :metadata, as: 'metadata'
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name'
end
end
class StaticFilesHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BasicScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :http_headers, as: 'httpHeaders'
property :application_readable, as: 'applicationReadable'
property :upload_path_regex, as: 'uploadPathRegex'
property :path, as: 'path'
property :mime_type, as: 'mimeType'
property :require_matching_file, as: 'requireMatchingFile'
property :expiration, as: 'expiration'
end
end
class DiskUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_write_ops_per_second, as: 'targetWriteOpsPerSecond'
property :target_write_bytes_per_second, as: 'targetWriteBytesPerSecond'
property :target_read_bytes_per_second, as: 'targetReadBytesPerSecond'
property :target_read_ops_per_second, as: 'targetReadOpsPerSecond'
end
end
include Google::Apis::Core::JsonObjectSupport
class BasicScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :idle_timeout, as: 'idleTimeout'
property :max_instances, as: 'maxInstances'
end
end
class CpuUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :aggregation_window_length, as: 'aggregationWindowLength'
property :target_utilization, as: 'targetUtilization'
end
end
class IdentityAwareProxy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :oauth2_client_secret, as: 'oauth2ClientSecret'
property :oauth2_client_id, as: 'oauth2ClientId'
property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256'
end
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :code, as: 'code'
property :message, as: 'message'
end
end
class ManualScaling
@ -320,52 +532,52 @@ module Google
class LocationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
property :standard_environment_available, as: 'standardEnvironmentAvailable'
property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
end
end
class Service
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :split, as: 'split', class: Google::Apis::AppengineV1::TrafficSplit, decorator: Google::Apis::AppengineV1::TrafficSplit::Representation
property :id, as: 'id'
property :name, as: 'name'
property :split, as: 'split', class: Google::Apis::AppengineV1::TrafficSplit, decorator: Google::Apis::AppengineV1::TrafficSplit::Representation
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::AppengineV1::Operation, decorator: Google::Apis::AppengineV1::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :insert_time, as: 'insertTime'
property :user, as: 'user'
property :target, as: 'target'
property :method_prop, as: 'method'
property :end_time, as: 'endTime'
property :operation_type, as: 'operationType'
property :insert_time, as: 'insertTime'
property :target, as: 'target'
property :user, as: 'user'
end
end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :insert_time, as: 'insertTime'
collection :warning, as: 'warning'
property :user, as: 'user'
property :target, as: 'target'
property :ephemeral_message, as: 'ephemeralMessage'
property :method_prop, as: 'method'
property :end_time, as: 'endTime'
collection :warning, as: 'warning'
property :insert_time, as: 'insertTime'
property :user, as: 'user'
property :target, as: 'target'
end
end
@ -378,26 +590,6 @@ module Google
end
end
class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_hostname, as: 'defaultHostname'
property :iap, as: 'iap', class: Google::Apis::AppengineV1::IdentityAwareProxy, decorator: Google::Apis::AppengineV1::IdentityAwareProxy::Representation
property :auth_domain, as: 'authDomain'
property :code_bucket, as: 'codeBucket'
property :default_bucket, as: 'defaultBucket'
collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1::UrlDispatchRule, decorator: Google::Apis::AppengineV1::UrlDispatchRule::Representation
property :gcr_domain, as: 'gcrDomain'
property :name, as: 'name'
property :id, as: 'id'
property :default_cookie_expiration, as: 'defaultCookieExpiration'
property :location_id, as: 'locationId'
property :serving_status, as: 'servingStatus'
end
end
class Network
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -408,18 +600,37 @@ module Google
end
end
class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
property :default_cookie_expiration, as: 'defaultCookieExpiration'
property :location_id, as: 'locationId'
property :serving_status, as: 'servingStatus'
property :default_hostname, as: 'defaultHostname'
property :iap, as: 'iap', class: Google::Apis::AppengineV1::IdentityAwareProxy, decorator: Google::Apis::AppengineV1::IdentityAwareProxy::Representation
property :auth_domain, as: 'authDomain'
property :code_bucket, as: 'codeBucket'
property :default_bucket, as: 'defaultBucket'
collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1::UrlDispatchRule, decorator: Google::Apis::AppengineV1::UrlDispatchRule::Representation
property :gcr_domain, as: 'gcrDomain'
end
end
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :vm_name, as: 'vmName'
property :vm_id, as: 'vmId'
property :qps, as: 'qps'
property :name, as: 'name'
property :vm_zone_name, as: 'vmZoneName'
property :name, as: 'name'
property :average_latency, as: 'averageLatency'
property :id, as: 'id'
property :vm_ip, as: 'vmIp'
property :memory_usage, :numeric_string => true, as: 'memoryUsage'
property :id, as: 'id'
property :errors, as: 'errors'
property :availability, as: 'availability'
property :vm_status, as: 'vmStatus'
@ -427,6 +638,7 @@ module Google
property :vm_debug_enabled, as: 'vmDebugEnabled'
property :requests, as: 'requests'
property :app_engine_release, as: 'appEngineRelease'
property :vm_name, as: 'vmName'
end
end
@ -434,22 +646,22 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :check_interval, as: 'checkInterval'
property :failure_threshold, as: 'failureThreshold'
property :timeout, as: 'timeout'
property :failure_threshold, as: 'failureThreshold'
property :initial_delay, as: 'initialDelay'
property :path, as: 'path'
property :host, as: 'host'
property :success_threshold, as: 'successThreshold'
property :host, as: 'host'
end
end
class NetworkUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_sent_bytes_per_second, as: 'targetSentBytesPerSecond'
property :target_sent_packets_per_second, as: 'targetSentPacketsPerSecond'
property :target_received_bytes_per_second, as: 'targetReceivedBytesPerSecond'
property :target_received_packets_per_second, as: 'targetReceivedPacketsPerSecond'
property :target_sent_bytes_per_second, as: 'targetSentBytesPerSecond'
end
end
@ -466,25 +678,25 @@ module Google
class HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :unhealthy_threshold, as: 'unhealthyThreshold'
property :disable_health_check, as: 'disableHealthCheck'
property :host, as: 'host'
property :restart_threshold, as: 'restartThreshold'
property :healthy_threshold, as: 'healthyThreshold'
property :check_interval, as: 'checkInterval'
property :timeout, as: 'timeout'
property :unhealthy_threshold, as: 'unhealthyThreshold'
property :disable_health_check, as: 'disableHealthCheck'
end
end
class ReadinessCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :check_interval, as: 'checkInterval'
property :timeout, as: 'timeout'
property :failure_threshold, as: 'failureThreshold'
property :path, as: 'path'
property :success_threshold, as: 'successThreshold'
property :host, as: 'host'
property :success_threshold, as: 'successThreshold'
property :check_interval, as: 'checkInterval'
property :failure_threshold, as: 'failureThreshold'
property :timeout, as: 'timeout'
end
end
@ -498,31 +710,17 @@ module Google
class OperationMetadataV1Beta5
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :method_prop, as: 'method'
property :insert_time, as: 'insertTime'
property :end_time, as: 'endTime'
property :user, as: 'user'
property :target, as: 'target'
property :method_prop, as: 'method'
end
end
class Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :network, as: 'network', class: Google::Apis::AppengineV1::Network, decorator: Google::Apis::AppengineV1::Network::Representation
hash :beta_settings, as: 'betaSettings'
property :env, as: 'env'
collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1::UrlMap, decorator: Google::Apis::AppengineV1::UrlMap::Representation
property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::AppengineV1::AutomaticScaling, decorator: Google::Apis::AppengineV1::AutomaticScaling::Representation
property :disk_usage_bytes, :numeric_string => true, as: 'diskUsageBytes'
property :health_check, as: 'healthCheck', class: Google::Apis::AppengineV1::HealthCheck, decorator: Google::Apis::AppengineV1::HealthCheck::Representation
property :threadsafe, as: 'threadsafe'
property :readiness_check, as: 'readinessCheck', class: Google::Apis::AppengineV1::ReadinessCheck, decorator: Google::Apis::AppengineV1::ReadinessCheck::Representation
property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1::ManualScaling, decorator: Google::Apis::AppengineV1::ManualScaling::Representation
property :name, as: 'name'
@ -550,11 +748,25 @@ module Google
property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1::BasicScaling, decorator: Google::Apis::AppengineV1::BasicScaling::Representation
property :runtime, as: 'runtime'
property :id, as: 'id'
property :created_by, as: 'createdBy'
property :id, as: 'id'
hash :env_variables, as: 'envVariables'
property :liveness_check, as: 'livenessCheck', class: Google::Apis::AppengineV1::LivenessCheck, decorator: Google::Apis::AppengineV1::LivenessCheck::Representation
property :network, as: 'network', class: Google::Apis::AppengineV1::Network, decorator: Google::Apis::AppengineV1::Network::Representation
hash :beta_settings, as: 'betaSettings'
property :env, as: 'env'
collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1::UrlMap, decorator: Google::Apis::AppengineV1::UrlMap::Representation
property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::AppengineV1::AutomaticScaling, decorator: Google::Apis::AppengineV1::AutomaticScaling::Representation
property :disk_usage_bytes, :numeric_string => true, as: 'diskUsageBytes'
property :health_check, as: 'healthCheck', class: Google::Apis::AppengineV1::HealthCheck, decorator: Google::Apis::AppengineV1::HealthCheck::Representation
property :threadsafe, as: 'threadsafe'
property :readiness_check, as: 'readinessCheck', class: Google::Apis::AppengineV1::ReadinessCheck, decorator: Google::Apis::AppengineV1::ReadinessCheck::Representation
end
end
@ -602,13 +814,13 @@ module Google
class OperationMetadataV1Beta
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :method_prop, as: 'method'
property :end_time, as: 'endTime'
collection :warning, as: 'warning'
property :insert_time, as: 'insertTime'
property :user, as: 'user'
property :target, as: 'target'
property :ephemeral_message, as: 'ephemeralMessage'
property :method_prop, as: 'method'
property :end_time, as: 'endTime'
end
end
@ -624,12 +836,12 @@ module Google
class Deployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :files, as: 'files', class: Google::Apis::AppengineV1::FileInfo, decorator: Google::Apis::AppengineV1::FileInfo::Representation
property :zip, as: 'zip', class: Google::Apis::AppengineV1::ZipInfo, decorator: Google::Apis::AppengineV1::ZipInfo::Representation
property :container, as: 'container', class: Google::Apis::AppengineV1::ContainerInfo, decorator: Google::Apis::AppengineV1::ContainerInfo::Representation
hash :files, as: 'files', class: Google::Apis::AppengineV1::FileInfo, decorator: Google::Apis::AppengineV1::FileInfo::Representation
end
end
@ -647,213 +859,20 @@ module Google
class Volume
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :volume_type, as: 'volumeType'
property :size_gb, as: 'sizeGb'
property :name, as: 'name'
end
end
class ListInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :instances, as: 'instances', class: Google::Apis::AppengineV1::Instance, decorator: Google::Apis::AppengineV1::Instance::Representation
end
end
class UrlDispatchRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain, as: 'domain'
property :service, as: 'service'
property :path, as: 'path'
end
end
class ListVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :versions, as: 'versions', class: Google::Apis::AppengineV1::Version, decorator: Google::Apis::AppengineV1::Version::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ApiEndpointHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :script_path, as: 'scriptPath'
end
end
class ZipInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source_url, as: 'sourceUrl'
property :files_count, as: 'filesCount'
end
end
class AutomaticScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation
property :max_idle_instances, as: 'maxIdleInstances'
property :min_idle_instances, as: 'minIdleInstances'
property :max_total_instances, as: 'maxTotalInstances'
property :min_total_instances, as: 'minTotalInstances'
property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1::NetworkUtilization, decorator: Google::Apis::AppengineV1::NetworkUtilization::Representation
property :max_concurrent_requests, as: 'maxConcurrentRequests'
property :cool_down_period, as: 'coolDownPeriod'
property :max_pending_latency, as: 'maxPendingLatency'
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1::CpuUtilization, decorator: Google::Apis::AppengineV1::CpuUtilization::Representation
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1::DiskUtilization, decorator: Google::Apis::AppengineV1::DiskUtilization::Representation
property :min_pending_latency, as: 'minPendingLatency'
end
end
class Library
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :version, as: 'version'
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :locations, as: 'locations', class: Google::Apis::AppengineV1::Location, decorator: Google::Apis::AppengineV1::Location::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ContainerInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image, as: 'image'
end
end
class RequestUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_request_count_per_second, as: 'targetRequestCountPerSecond'
property :target_concurrent_requests, as: 'targetConcurrentRequests'
end
end
class UrlMap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :static_files, as: 'staticFiles', class: Google::Apis::AppengineV1::StaticFilesHandler, decorator: Google::Apis::AppengineV1::StaticFilesHandler::Representation
property :redirect_http_response_code, as: 'redirectHttpResponseCode'
property :security_level, as: 'securityLevel'
property :auth_fail_action, as: 'authFailAction'
property :script, as: 'script', class: Google::Apis::AppengineV1::ScriptHandler, decorator: Google::Apis::AppengineV1::ScriptHandler::Representation
property :url_regex, as: 'urlRegex'
property :login, as: 'login'
property :api_endpoint, as: 'apiEndpoint', class: Google::Apis::AppengineV1::ApiEndpointHandler, decorator: Google::Apis::AppengineV1::ApiEndpointHandler::Representation
end
end
class EndpointsApiService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :config_id, as: 'configId'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::AppengineV1::Status, decorator: Google::Apis::AppengineV1::Status::Representation
hash :metadata, as: 'metadata'
property :done, as: 'done'
hash :response, as: 'response'
end
end
class ApiConfigHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
property :security_level, as: 'securityLevel'
property :auth_fail_action, as: 'authFailAction'
property :script, as: 'script'
property :login, as: 'login'
end
end
class StaticFilesHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :require_matching_file, as: 'requireMatchingFile'
property :expiration, as: 'expiration'
property :application_readable, as: 'applicationReadable'
hash :http_headers, as: 'httpHeaders'
property :upload_path_regex, as: 'uploadPathRegex'
property :path, as: 'path'
property :mime_type, as: 'mimeType'
end
end
class BasicScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_instances, as: 'maxInstances'
property :idle_timeout, as: 'idleTimeout'
end
end
class DiskUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_write_bytes_per_second, as: 'targetWriteBytesPerSecond'
property :target_read_bytes_per_second, as: 'targetReadBytesPerSecond'
property :target_read_ops_per_second, as: 'targetReadOpsPerSecond'
property :target_write_ops_per_second, as: 'targetWriteOpsPerSecond'
end
end
class CpuUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_utilization, as: 'targetUtilization'
property :aggregation_window_length, as: 'aggregationWindowLength'
end
end
class IdentityAwareProxy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :oauth2_client_secret, as: 'oauth2ClientSecret'
property :oauth2_client_id, as: 'oauth2ClientId'
property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256'
property :enabled, as: 'enabled'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message'
collection :details, as: 'details'
property :code, as: 'code'
end
end
end
end
end

View File

@ -48,6 +48,77 @@ module Google
@batch_path = 'batch'
end
# Gets information about an application.
# @param [String] apps_id
# Part of `name`. Name of the Application resource to get. Example: apps/myapp.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::Application] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Application]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app(apps_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}', options)
command.response_representation = Google::Apis::AppengineV1::Application::Representation
command.response_class = Google::Apis::AppengineV1::Application
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the specified Application resource. You can update the following
# fields:
# auth_domain - Google authentication domain for controlling user access to the
# application.
# default_cookie_expiration - Cookie expiration policy for the application.
# @param [String] apps_id
# Part of `name`. Name of the Application resource to update. Example: apps/
# myapp.
# @param [Google::Apis::AppengineV1::Application] application_object
# @param [String] update_mask
# Standard field mask for the set of fields to be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_app(apps_id, application_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/apps/{appsId}', options)
command.request_representation = Google::Apis::AppengineV1::Application::Representation
command.request_object = application_object
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an App Engine application for a Google Cloud Platform project.
# Required fields:
# id - The ID of the target Cloud Platform project.
@ -120,9 +191,22 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets information about an application.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
# allows API services to override the binding to use different resource name
# schemes, such as users/*/operations. To override the binding, API services can
# add a binding such as "/v1/`name=users/*`/operations" to their service
# configuration. For backwards compatibility, the default name includes the
# operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] apps_id
# Part of `name`. Name of the Application resource to get. Example: apps/myapp.
# Part of `name`. The name of the operation's parent resource.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] filter
# The standard list filter.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -132,35 +216,33 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::Application] parsed result object
# @yieldparam result [Google::Apis::AppengineV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Application]
# @return [Google::Apis::AppengineV1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app(apps_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}', options)
command.response_representation = Google::Apis::AppengineV1::Application::Representation
command.response_class = Google::Apis::AppengineV1::Application
def list_app_operations(apps_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options)
command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the specified Application resource. You can update the following
# fields:
# auth_domain - Google authentication domain for controlling user access to the
# application.
# default_cookie_expiration - Cookie expiration policy for the application.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] apps_id
# Part of `name`. Name of the Application resource to update. Example: apps/
# myapp.
# @param [Google::Apis::AppengineV1::Application] application_object
# @param [String] update_mask
# Standard field mask for the set of fields to be updated.
# Part of `name`. The name of the operation resource.
# @param [String] operations_id
# Part of `name`. See documentation of `appsId`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -178,14 +260,84 @@ 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 patch_app(apps_id, application_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/apps/{appsId}', options)
command.request_representation = Google::Apis::AppengineV1::Application::Representation
command.request_object = application_object
def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/operations/{operationsId}', options)
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.params['operationsId'] = operations_id unless operations_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists information about the supported locations for this service.
# @param [String] apps_id
# Part of `name`. The resource that owns the locations collection, if applicable.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] filter
# The standard list filter.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::ListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListLocationsResponse]
#
# @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_app_locations(apps_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/locations', options)
command.response_representation = Google::Apis::AppengineV1::ListLocationsResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListLocationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get information about a location.
# @param [String] apps_id
# Part of `name`. Resource name for the location.
# @param [String] locations_id
# Part of `name`. See documentation of `appsId`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::Location] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Location]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/locations/{locationsId}', options)
command.response_representation = Google::Apis::AppengineV1::Location::Representation
command.response_class = Google::Apis::AppengineV1::Location
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['locationsId'] = locations_id unless locations_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -228,10 +380,10 @@ module Google
# Lists all the services in the application.
# @param [String] apps_id
# Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -249,13 +401,13 @@ 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_app_services(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_app_services(apps_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services', options)
command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListServicesResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -302,6 +454,8 @@ module Google
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1::Service] service_object
# @param [String] update_mask
# Standard field mask for the set of fields to be updated.
# @param [Boolean] migrate_traffic
# Set to true to gradually shift traffic to one or more versions that you
# specify. By default, traffic is shifted immediately. For gradual traffic
@ -315,8 +469,6 @@ module Google
# not supported in the App Engine flexible environment. For examples, see
# Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-
# api/migrating-splitting-traffic).
# @param [String] update_mask
# Standard field mask for the set of fields to be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -334,7 +486,7 @@ 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 patch_app_service(apps_id, services_id, service_object = nil, migrate_traffic: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
def patch_app_service(apps_id, services_id, service_object = nil, update_mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/apps/{appsId}/services/{servicesId}', options)
command.request_representation = Google::Apis::AppengineV1::Service::Representation
command.request_object = service_object
@ -342,45 +494,8 @@ module Google
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deploys code and resource files to a new version.
# @param [String] apps_id
# Part of `parent`. Name of the parent resource to create this version under.
# Example: apps/myapp/services/default.
# @param [String] services_id
# Part of `parent`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1::Version] version_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
command.request_representation = Google::Apis::AppengineV1::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -567,6 +682,43 @@ module Google
execute_or_queue_command(command, &block)
end
# Deploys code and resource files to a new version.
# @param [String] apps_id
# Part of `parent`. Name of the parent resource to create this version under.
# Example: apps/myapp/services/default.
# @param [String] services_id
# Part of `parent`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1::Version] version_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
command.request_representation = Google::Apis::AppengineV1::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Stops a running instance.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
@ -739,158 +891,6 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
# allows API services to override the binding to use different resource name
# schemes, such as users/*/operations. To override the binding, API services can
# add a binding such as "/v1/`name=users/*`/operations" to their service
# configuration. For backwards compatibility, the default name includes the
# operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] apps_id
# Part of `name`. The name of the operation's parent resource.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] filter
# The standard list filter.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListOperationsResponse]
#
# @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_app_operations(apps_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options)
command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] apps_id
# Part of `name`. The name of the operation resource.
# @param [String] operations_id
# Part of `name`. See documentation of `appsId`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/operations/{operationsId}', options)
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['operationsId'] = operations_id unless operations_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists information about the supported locations for this service.
# @param [String] apps_id
# Part of `name`. The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::ListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListLocationsResponse]
#
# @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_app_locations(apps_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/locations', options)
command.response_representation = Google::Apis::AppengineV1::ListLocationsResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListLocationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get information about a location.
# @param [String] apps_id
# Part of `name`. Resource name for the location.
# @param [String] locations_id
# Part of `name`. See documentation of `appsId`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::Location] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Location]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/locations/{locationsId}', options)
command.response_representation = Google::Apis::AppengineV1::Location::Representation
command.response_class = Google::Apis::AppengineV1::Location
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['locationsId'] = locations_id unless locations_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/web/api/states
module AppstateV1
VERSION = 'V1'
REVISION = '20170526'
REVISION = '20170601'
# 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 = '20170527'
REVISION = '20170604'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -1020,7 +1020,7 @@ module Google
end
#
class JobCancelResponse
class CancelJobResponse
include Google::Apis::Core::Hashable
# The final state of the job.
@ -2607,7 +2607,7 @@ module Google
end
#
class TableDataInsertAllRequest
class InsertAllTableDataRequest
include Google::Apis::Core::Hashable
# [Optional] Accept rows that contain values that do not match the schema. The
@ -2625,7 +2625,7 @@ module Google
# The rows to insert.
# Corresponds to the JSON property `rows`
# @return [Array<Google::Apis::BigqueryV2::TableDataInsertAllRequest::Row>]
# @return [Array<Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row>]
attr_accessor :rows
# [Optional] Insert all valid rows of a request, even if invalid rows exist. The
@ -2687,12 +2687,12 @@ module Google
end
#
class TableDataInsertAllResponse
class InsertAllTableDataResponse
include Google::Apis::Core::Hashable
# An array of errors for rows that were not inserted.
# Corresponds to the JSON property `insertErrors`
# @return [Array<Google::Apis::BigqueryV2::TableDataInsertAllResponse::InsertError>]
# @return [Array<Google::Apis::BigqueryV2::InsertAllTableDataResponse::InsertError>]
attr_accessor :insert_errors
# The resource type of the response.

View File

@ -118,7 +118,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class JobCancelResponse
class CancelJobResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -274,7 +274,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TableDataInsertAllRequest
class InsertAllTableDataRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
class Row
@ -286,7 +286,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TableDataInsertAllResponse
class InsertAllTableDataResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
class InsertError
@ -582,7 +582,7 @@ module Google
end
end
class JobCancelResponse
class CancelJobResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :job, as: 'job', class: Google::Apis::BigqueryV2::Job, decorator: Google::Apis::BigqueryV2::Job::Representation
@ -958,12 +958,12 @@ module Google
end
end
class TableDataInsertAllRequest
class InsertAllTableDataRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ignore_unknown_values, as: 'ignoreUnknownValues'
property :kind, as: 'kind'
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableDataInsertAllRequest::Row, decorator: Google::Apis::BigqueryV2::TableDataInsertAllRequest::Row::Representation
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row, decorator: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row::Representation
property :skip_invalid_rows, as: 'skipInvalidRows'
property :template_suffix, as: 'templateSuffix'
@ -978,10 +978,10 @@ module Google
end
end
class TableDataInsertAllResponse
class InsertAllTableDataResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :insert_errors, as: 'insertErrors', class: Google::Apis::BigqueryV2::TableDataInsertAllResponse::InsertError, decorator: Google::Apis::BigqueryV2::TableDataInsertAllResponse::InsertError::Representation
collection :insert_errors, as: 'insertErrors', class: Google::Apis::BigqueryV2::InsertAllTableDataResponse::InsertError, decorator: Google::Apis::BigqueryV2::InsertAllTableDataResponse::InsertError::Representation
property :kind, as: 'kind'
end

View File

@ -330,18 +330,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryV2::JobCancelResponse] parsed result object
# @yieldparam result [Google::Apis::BigqueryV2::CancelJobResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryV2::JobCancelResponse]
# @return [Google::Apis::BigqueryV2::CancelJobResponse]
#
# @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 cancel_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'projects/{projectId}/jobs/{jobId}/cancel', options)
command.response_representation = Google::Apis::BigqueryV2::JobCancelResponse::Representation
command.response_class = Google::Apis::BigqueryV2::JobCancelResponse
command.response_representation = Google::Apis::BigqueryV2::CancelJobResponse::Representation
command.response_class = Google::Apis::BigqueryV2::CancelJobResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -628,7 +628,7 @@ module Google
# Dataset ID of the destination table.
# @param [String] table_id
# Table ID of the destination table.
# @param [Google::Apis::BigqueryV2::TableDataInsertAllRequest] table_data_insert_all_request_object
# @param [Google::Apis::BigqueryV2::InsertAllTableDataRequest] insert_all_table_data_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -642,20 +642,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryV2::TableDataInsertAllResponse] parsed result object
# @yieldparam result [Google::Apis::BigqueryV2::InsertAllTableDataResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryV2::TableDataInsertAllResponse]
# @return [Google::Apis::BigqueryV2::InsertAllTableDataResponse]
#
# @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_tabledatum_all(project_id, dataset_id, table_id, table_data_insert_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_all_table_data(project_id, dataset_id, table_id, insert_all_table_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll', options)
command.request_representation = Google::Apis::BigqueryV2::TableDataInsertAllRequest::Representation
command.request_object = table_data_insert_all_request_object
command.response_representation = Google::Apis::BigqueryV2::TableDataInsertAllResponse::Representation
command.response_class = Google::Apis::BigqueryV2::TableDataInsertAllResponse
command.request_representation = Google::Apis::BigqueryV2::InsertAllTableDataRequest::Representation
command.request_object = insert_all_table_data_request_object
command.response_representation = Google::Apis::BigqueryV2::InsertAllTableDataResponse::Representation
command.response_class = Google::Apis::BigqueryV2::InsertAllTableDataResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['datasetId'] = dataset_id unless dataset_id.nil?
command.params['tableId'] = table_id unless table_id.nil?
@ -703,7 +703,7 @@ 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_tabledata(project_id, dataset_id, table_id, max_results: nil, page_token: nil, selected_fields: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_table_data(project_id, dataset_id, table_id, max_results: nil, page_token: nil, selected_fields: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data', options)
command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation
command.response_class = Google::Apis::BigqueryV2::TableDataList

View File

@ -214,7 +214,7 @@ 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_blog_by_user(user_id, fetch_user_info: nil, role: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_blogs_by_user(user_id, fetch_user_info: nil, role: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'users/{userId}/blogs', options)
command.response_representation = Google::Apis::BloggerV3::BlogList::Representation
command.response_class = Google::Apis::BloggerV3::BlogList
@ -450,7 +450,7 @@ 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_comment_by_blog(blog_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_comments_by_blog(blog_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'blogs/{blogId}/comments', options)
command.response_representation = Google::Apis::BloggerV3::CommentList::Representation
command.response_class = Google::Apis::BloggerV3::CommentList
@ -1021,7 +1021,7 @@ 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_post_user_infos(user_id, blog_id, end_date: nil, fetch_bodies: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_post_user_info(user_id, blog_id, end_date: nil, fetch_bodies: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}/posts', options)
command.response_representation = Google::Apis::BloggerV3::PostUserInfosList::Representation
command.response_class = Google::Apis::BloggerV3::PostUserInfosList

View File

@ -145,7 +145,7 @@ module Google
# Range in CFI format for this annotation sent by client.
# Corresponds to the JSON property `cfiRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :cfi_range
# Content version the client sent in.
@ -155,17 +155,17 @@ module Google
# Range in GB image format for this annotation sent by client.
# Corresponds to the JSON property `gbImageRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :gb_image_range
# Range in GB text format for this annotation sent by client.
# Corresponds to the JSON property `gbTextRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :gb_text_range
# Range in image CFI format for this annotation sent by client.
# Corresponds to the JSON property `imageCfiRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :image_cfi_range
def initialize(**args)
@ -188,7 +188,7 @@ module Google
# Range in CFI format for this annotation for version above.
# Corresponds to the JSON property `cfiRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :cfi_range
# Content version applicable to ranges below.
@ -198,17 +198,17 @@ module Google
# Range in GB image format for this annotation for version above.
# Corresponds to the JSON property `gbImageRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :gb_image_range
# Range in GB text format for this annotation for version above.
# Corresponds to the JSON property `gbTextRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :gb_text_range
# Range in image CFI format for this annotation for version above.
# Corresponds to the JSON property `imageCfiRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :image_cfi_range
def initialize(**args)
@ -259,7 +259,7 @@ module Google
end
#
class Annotationdata
class AnnotationData
include Google::Apis::Core::Hashable
# The type of annotation this data is for.
@ -435,12 +435,12 @@ module Google
end
#
class Annotationsdata
class AnnotationsData
include Google::Apis::Core::Hashable
# A list of Annotation Data.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BooksV1::Annotationdata>]
# @return [Array<Google::Apis::BooksV1::AnnotationData>]
attr_accessor :items
# Resource type
@ -473,7 +473,7 @@ module Google
end
#
class BooksAnnotationsRange
class AnnotatinsRange
include Google::Apis::Core::Hashable
# The offset from the ending position.
@ -510,7 +510,7 @@ module Google
end
#
class BooksCloudloadingResource
class LoadingResource
include Google::Apis::Core::Hashable
#
@ -547,7 +547,7 @@ module Google
end
#
class BooksVolumesRecommendedRateResponse
class RateRecommendedVolumeResponse
include Google::Apis::Core::Hashable
#
@ -805,17 +805,17 @@ module Google
end
#
class Dictlayerdata
class DictLayerData
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `common`
# @return [Google::Apis::BooksV1::Dictlayerdata::Common]
# @return [Google::Apis::BooksV1::DictLayerData::Common]
attr_accessor :common
#
# Corresponds to the JSON property `dict`
# @return [Google::Apis::BooksV1::Dictlayerdata::Dict]
# @return [Google::Apis::BooksV1::DictLayerData::Dict]
attr_accessor :dict
#
@ -860,12 +860,12 @@ module Google
# The source, url and attribution for this dictionary data.
# Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::Dictlayerdata::Dict::Source]
# @return [Google::Apis::BooksV1::DictLayerData::Dict::Source]
attr_accessor :source
#
# Corresponds to the JSON property `words`
# @return [Array<Google::Apis::BooksV1::Dictlayerdata::Dict::Word>]
# @return [Array<Google::Apis::BooksV1::DictLayerData::Dict::Word>]
attr_accessor :words
def initialize(**args)
@ -909,23 +909,23 @@ module Google
#
# Corresponds to the JSON property `derivatives`
# @return [Array<Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Derivative>]
# @return [Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative>]
attr_accessor :derivatives
#
# Corresponds to the JSON property `examples`
# @return [Array<Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Example>]
# @return [Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Example>]
attr_accessor :examples
#
# Corresponds to the JSON property `senses`
# @return [Array<Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense>]
# @return [Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense>]
attr_accessor :senses
# The words with different meanings but not related words, e.g. "go" (game) and "
# go" (verb).
# Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Source]
# @return [Google::Apis::BooksV1::DictLayerData::Dict::Word::Source]
attr_accessor :source
def initialize(**args)
@ -946,7 +946,7 @@ module Google
#
# Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Derivative::Source]
# @return [Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative::Source]
attr_accessor :source
#
@ -996,7 +996,7 @@ module Google
#
# Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Example::Source]
# @return [Google::Apis::BooksV1::DictLayerData::Dict::Word::Example::Source]
attr_accessor :source
#
@ -1046,12 +1046,12 @@ module Google
#
# Corresponds to the JSON property `conjugations`
# @return [Array<Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Conjugation>]
# @return [Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Conjugation>]
attr_accessor :conjugations
#
# Corresponds to the JSON property `definitions`
# @return [Array<Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Definition>]
# @return [Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition>]
attr_accessor :definitions
#
@ -1071,7 +1071,7 @@ module Google
#
# Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Source]
# @return [Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Source]
attr_accessor :source
#
@ -1081,7 +1081,7 @@ module Google
#
# Corresponds to the JSON property `synonyms`
# @return [Array<Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Synonym>]
# @return [Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym>]
attr_accessor :synonyms
def initialize(**args)
@ -1136,7 +1136,7 @@ module Google
#
# Corresponds to the JSON property `examples`
# @return [Array<Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Definition::Example>]
# @return [Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example>]
attr_accessor :examples
def initialize(**args)
@ -1155,7 +1155,7 @@ module Google
#
# Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Definition::Example::Source]
# @return [Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example::Source]
attr_accessor :source
#
@ -1231,7 +1231,7 @@ module Google
#
# Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Synonym::Source]
# @return [Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym::Source]
attr_accessor :source
#
@ -1552,17 +1552,17 @@ module Google
end
#
class Geolayerdata
class GeoLayerData
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `common`
# @return [Google::Apis::BooksV1::Geolayerdata::Common]
# @return [Google::Apis::BooksV1::GeoLayerData::Common]
attr_accessor :common
#
# Corresponds to the JSON property `geo`
# @return [Google::Apis::BooksV1::Geolayerdata::Geo]
# @return [Google::Apis::BooksV1::GeoLayerData::Geo]
attr_accessor :geo
#
@ -1632,7 +1632,7 @@ module Google
# The boundary of the location as a set of loops containing pairs of latitude,
# longitude coordinates.
# Corresponds to the JSON property `boundary`
# @return [Array<Array<Google::Apis::BooksV1::Geolayerdata::Geo::Boundary>>]
# @return [Array<Array<Google::Apis::BooksV1::GeoLayerData::Geo::Boundary>>]
attr_accessor :boundary
# The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER
@ -1664,7 +1664,7 @@ module Google
# The viewport for showing this location. This is a latitude, longitude
# rectangle.
# Corresponds to the JSON property `viewport`
# @return [Google::Apis::BooksV1::Geolayerdata::Geo::Viewport]
# @return [Google::Apis::BooksV1::GeoLayerData::Geo::Viewport]
attr_accessor :viewport
# The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom
@ -1723,12 +1723,12 @@ module Google
#
# Corresponds to the JSON property `hi`
# @return [Google::Apis::BooksV1::Geolayerdata::Geo::Viewport::Hi]
# @return [Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Hi]
attr_accessor :hi
#
# Corresponds to the JSON property `lo`
# @return [Google::Apis::BooksV1::Geolayerdata::Geo::Viewport::Lo]
# @return [Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Lo]
attr_accessor :lo
def initialize(**args)
@ -1795,12 +1795,12 @@ module Google
end
#
class Layersummaries
class LayerSummaries
include Google::Apis::Core::Hashable
# A list of layer summary items.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BooksV1::Layersummary>]
# @return [Array<Google::Apis::BooksV1::LayerSummary>]
attr_accessor :items
# Resource type.
@ -1826,7 +1826,7 @@ module Google
end
#
class Layersummary
class LayerSummary
include Google::Apis::Core::Hashable
# The number of annotations for this layer.
@ -2480,7 +2480,7 @@ module Google
end
#
class Seriesmembership
class SeriesMembership
include Google::Apis::Core::Hashable
# Resorce type.
@ -2511,7 +2511,7 @@ module Google
end
#
class Usersettings
class UserSettings
include Google::Apis::Core::Hashable
# Resource type.
@ -2521,12 +2521,12 @@ module Google
# User settings in sub-objects, each for different purposes.
# Corresponds to the JSON property `notesExport`
# @return [Google::Apis::BooksV1::Usersettings::NotesExport]
# @return [Google::Apis::BooksV1::UserSettings::NotesExport]
attr_accessor :notes_export
#
# Corresponds to the JSON property `notification`
# @return [Google::Apis::BooksV1::Usersettings::Notification]
# @return [Google::Apis::BooksV1::UserSettings::Notification]
attr_accessor :notification
def initialize(**args)
@ -2572,17 +2572,17 @@ module Google
#
# Corresponds to the JSON property `moreFromAuthors`
# @return [Google::Apis::BooksV1::Usersettings::Notification::MoreFromAuthors]
# @return [Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors]
attr_accessor :more_from_authors
#
# Corresponds to the JSON property `moreFromSeries`
# @return [Google::Apis::BooksV1::Usersettings::Notification::MoreFromSeries]
# @return [Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries]
attr_accessor :more_from_series
#
# Corresponds to the JSON property `rewardExpirations`
# @return [Google::Apis::BooksV1::Usersettings::Notification::RewardExpirations]
# @return [Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations]
attr_accessor :reward_expirations
def initialize(**args)
@ -3867,7 +3867,7 @@ module Google
end
#
class Volumeannotation
class VolumeAnnotation
include Google::Apis::Core::Hashable
# The annotation data id for this volume annotation.
@ -3887,7 +3887,7 @@ module Google
# The content ranges to identify the selected text.
# Corresponds to the JSON property `contentRanges`
# @return [Google::Apis::BooksV1::Volumeannotation::ContentRanges]
# @return [Google::Apis::BooksV1::VolumeAnnotation::ContentRanges]
attr_accessor :content_ranges
# Data for this annotation.
@ -3970,7 +3970,7 @@ module Google
# Range in CFI format for this annotation for version above.
# Corresponds to the JSON property `cfiRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :cfi_range
# Content version applicable to ranges below.
@ -3980,12 +3980,12 @@ module Google
# Range in GB image format for this annotation for version above.
# Corresponds to the JSON property `gbImageRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :gb_image_range
# Range in GB text format for this annotation for version above.
# Corresponds to the JSON property `gbTextRange`
# @return [Google::Apis::BooksV1::BooksAnnotationsRange]
# @return [Google::Apis::BooksV1::AnnotatinsRange]
attr_accessor :gb_text_range
def initialize(**args)
@ -4008,7 +4008,7 @@ module Google
# A list of volume annotations.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BooksV1::Volumeannotation>]
# @return [Array<Google::Apis::BooksV1::VolumeAnnotation>]
attr_accessor :items
# Resource type

View File

@ -46,7 +46,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Annotationdata
class AnnotationData
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -70,25 +70,25 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Annotationsdata
class AnnotationsData
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BooksAnnotationsRange
class AnnotatinsRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BooksCloudloadingResource
class LoadingResource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BooksVolumesRecommendedRateResponse
class RateRecommendedVolumeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -124,7 +124,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Dictlayerdata
class DictLayerData
class Representation < Google::Apis::Core::JsonRepresentation; end
class Common
@ -262,7 +262,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Geolayerdata
class GeoLayerData
class Representation < Google::Apis::Core::JsonRepresentation; end
class Common
@ -304,13 +304,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Layersummaries
class LayerSummaries
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Layersummary
class LayerSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -394,13 +394,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Seriesmembership
class SeriesMembership
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Usersettings
class UserSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
class NotesExport
@ -592,7 +592,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Volumeannotation
class VolumeAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
class ContentRanges
@ -664,14 +664,14 @@ module Google
class ClientVersionRanges
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
property :content_version, as: 'contentVersion'
property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
property :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
property :image_cfi_range, as: 'imageCfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :image_cfi_range, as: 'imageCfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
end
end
@ -679,14 +679,14 @@ module Google
class CurrentVersionRanges
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
property :content_version, as: 'contentVersion'
property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
property :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
property :image_cfi_range, as: 'imageCfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :image_cfi_range, as: 'imageCfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
end
end
@ -701,7 +701,7 @@ module Google
end
end
class Annotationdata
class AnnotationData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_type, as: 'annotationType'
@ -749,10 +749,10 @@ module Google
end
end
class Annotationsdata
class AnnotationsData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::BooksV1::Annotationdata, decorator: Google::Apis::BooksV1::Annotationdata::Representation
collection :items, as: 'items', class: Google::Apis::BooksV1::AnnotationData, decorator: Google::Apis::BooksV1::AnnotationData::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
@ -760,7 +760,7 @@ module Google
end
end
class BooksAnnotationsRange
class AnnotatinsRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_offset, as: 'endOffset'
@ -770,7 +770,7 @@ module Google
end
end
class BooksCloudloadingResource
class LoadingResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :author, as: 'author'
@ -780,7 +780,7 @@ module Google
end
end
class BooksVolumesRecommendedRateResponse
class RateRecommendedVolumeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consistency_token, as: 'consistency_token'
@ -850,12 +850,12 @@ module Google
end
end
class Dictlayerdata
class DictLayerData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :common, as: 'common', class: Google::Apis::BooksV1::Dictlayerdata::Common, decorator: Google::Apis::BooksV1::Dictlayerdata::Common::Representation
property :common, as: 'common', class: Google::Apis::BooksV1::DictLayerData::Common, decorator: Google::Apis::BooksV1::DictLayerData::Common::Representation
property :dict, as: 'dict', class: Google::Apis::BooksV1::Dictlayerdata::Dict, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Representation
property :dict, as: 'dict', class: Google::Apis::BooksV1::DictLayerData::Dict, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Representation
property :kind, as: 'kind'
end
@ -870,9 +870,9 @@ module Google
class Dict
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source, as: 'source', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Source, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Source::Representation
property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Source::Representation
collection :words, as: 'words', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Representation
collection :words, as: 'words', class: Google::Apis::BooksV1::DictLayerData::Dict::Word, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Representation
end
@ -887,20 +887,20 @@ module Google
class Word
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :derivatives, as: 'derivatives', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Derivative, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Derivative::Representation
collection :derivatives, as: 'derivatives', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative::Representation
collection :examples, as: 'examples', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Example, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Example::Representation
collection :examples, as: 'examples', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Example, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Example::Representation
collection :senses, as: 'senses', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Representation
collection :senses, as: 'senses', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Representation
property :source, as: 'source', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Source, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Source::Representation
property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Source::Representation
end
class Derivative
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source, as: 'source', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Derivative::Source, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Derivative::Source::Representation
property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative::Source::Representation
property :text, as: 'text'
end
@ -917,7 +917,7 @@ module Google
class Example
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source, as: 'source', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Example::Source, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Example::Source::Representation
property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Example::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Example::Source::Representation
property :text, as: 'text'
end
@ -934,17 +934,17 @@ module Google
class Sense
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :conjugations, as: 'conjugations', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Conjugation, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Conjugation::Representation
collection :conjugations, as: 'conjugations', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Conjugation, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Conjugation::Representation
collection :definitions, as: 'definitions', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Definition, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Definition::Representation
collection :definitions, as: 'definitions', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Representation
property :part_of_speech, as: 'partOfSpeech'
property :pronunciation, as: 'pronunciation'
property :pronunciation_url, as: 'pronunciationUrl'
property :source, as: 'source', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Source, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Source::Representation
property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Source::Representation
property :syllabification, as: 'syllabification'
collection :synonyms, as: 'synonyms', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Synonym, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Synonym::Representation
collection :synonyms, as: 'synonyms', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym::Representation
end
@ -960,14 +960,14 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :definition, as: 'definition'
collection :examples, as: 'examples', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Definition::Example, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Definition::Example::Representation
collection :examples, as: 'examples', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example::Representation
end
class Example
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source, as: 'source', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Definition::Example::Source, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Definition::Example::Source::Representation
property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Definition::Example::Source::Representation
property :text, as: 'text'
end
@ -993,7 +993,7 @@ module Google
class Synonym
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source, as: 'source', class: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Synonym::Source, decorator: Google::Apis::BooksV1::Dictlayerdata::Dict::Word::Sense::Synonym::Source::Representation
property :source, as: 'source', class: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym::Source, decorator: Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym::Source::Representation
property :text, as: 'text'
end
@ -1082,12 +1082,12 @@ module Google
end
end
class Geolayerdata
class GeoLayerData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :common, as: 'common', class: Google::Apis::BooksV1::Geolayerdata::Common, decorator: Google::Apis::BooksV1::Geolayerdata::Common::Representation
property :common, as: 'common', class: Google::Apis::BooksV1::GeoLayerData::Common, decorator: Google::Apis::BooksV1::GeoLayerData::Common::Representation
property :geo, as: 'geo', class: Google::Apis::BooksV1::Geolayerdata::Geo, decorator: Google::Apis::BooksV1::Geolayerdata::Geo::Representation
property :geo, as: 'geo', class: Google::Apis::BooksV1::GeoLayerData::Geo, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Representation
property :kind, as: 'kind'
end
@ -1108,7 +1108,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :boundary, as: 'boundary', :class => Array do
include Representable::JSON::Collection
items class: Google::Apis::BooksV1::Geolayerdata::Geo::Boundary, decorator: Google::Apis::BooksV1::Geolayerdata::Geo::Boundary::Representation
items class: Google::Apis::BooksV1::GeoLayerData::Geo::Boundary, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Boundary::Representation
end
@ -1117,7 +1117,7 @@ module Google
property :latitude, as: 'latitude'
property :longitude, as: 'longitude'
property :map_type, as: 'mapType'
property :viewport, as: 'viewport', class: Google::Apis::BooksV1::Geolayerdata::Geo::Viewport, decorator: Google::Apis::BooksV1::Geolayerdata::Geo::Viewport::Representation
property :viewport, as: 'viewport', class: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Representation
property :zoom, as: 'zoom'
end
@ -1133,9 +1133,9 @@ module Google
class Viewport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hi, as: 'hi', class: Google::Apis::BooksV1::Geolayerdata::Geo::Viewport::Hi, decorator: Google::Apis::BooksV1::Geolayerdata::Geo::Viewport::Hi::Representation
property :hi, as: 'hi', class: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Hi, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Hi::Representation
property :lo, as: 'lo', class: Google::Apis::BooksV1::Geolayerdata::Geo::Viewport::Lo, decorator: Google::Apis::BooksV1::Geolayerdata::Geo::Viewport::Lo::Representation
property :lo, as: 'lo', class: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Lo, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Viewport::Lo::Representation
end
@ -1158,17 +1158,17 @@ module Google
end
end
class Layersummaries
class LayerSummaries
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::BooksV1::Layersummary, decorator: Google::Apis::BooksV1::Layersummary::Representation
collection :items, as: 'items', class: Google::Apis::BooksV1::LayerSummary, decorator: Google::Apis::BooksV1::LayerSummary::Representation
property :kind, as: 'kind'
property :total_items, as: 'totalItems'
end
end
class Layersummary
class LayerSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_count, as: 'annotationCount'
@ -1339,7 +1339,7 @@ module Google
end
end
class Seriesmembership
class SeriesMembership
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -1349,13 +1349,13 @@ module Google
end
end
class Usersettings
class UserSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :notes_export, as: 'notesExport', class: Google::Apis::BooksV1::Usersettings::NotesExport, decorator: Google::Apis::BooksV1::Usersettings::NotesExport::Representation
property :notes_export, as: 'notesExport', class: Google::Apis::BooksV1::UserSettings::NotesExport, decorator: Google::Apis::BooksV1::UserSettings::NotesExport::Representation
property :notification, as: 'notification', class: Google::Apis::BooksV1::Usersettings::Notification, decorator: Google::Apis::BooksV1::Usersettings::Notification::Representation
property :notification, as: 'notification', class: Google::Apis::BooksV1::UserSettings::Notification, decorator: Google::Apis::BooksV1::UserSettings::Notification::Representation
end
@ -1370,11 +1370,11 @@ module Google
class Notification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :more_from_authors, as: 'moreFromAuthors', class: Google::Apis::BooksV1::Usersettings::Notification::MoreFromAuthors, decorator: Google::Apis::BooksV1::Usersettings::Notification::MoreFromAuthors::Representation
property :more_from_authors, as: 'moreFromAuthors', class: Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors, decorator: Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors::Representation
property :more_from_series, as: 'moreFromSeries', class: Google::Apis::BooksV1::Usersettings::Notification::MoreFromSeries, decorator: Google::Apis::BooksV1::Usersettings::Notification::MoreFromSeries::Representation
property :more_from_series, as: 'moreFromSeries', class: Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries, decorator: Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries::Representation
property :reward_expirations, as: 'rewardExpirations', class: Google::Apis::BooksV1::Usersettings::Notification::RewardExpirations, decorator: Google::Apis::BooksV1::Usersettings::Notification::RewardExpirations::Representation
property :reward_expirations, as: 'rewardExpirations', class: Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations, decorator: Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations::Representation
end
@ -1723,13 +1723,13 @@ module Google
end
end
class Volumeannotation
class VolumeAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_data_id, as: 'annotationDataId'
property :annotation_data_link, as: 'annotationDataLink'
property :annotation_type, as: 'annotationType'
property :content_ranges, as: 'contentRanges', class: Google::Apis::BooksV1::Volumeannotation::ContentRanges, decorator: Google::Apis::BooksV1::Volumeannotation::ContentRanges::Representation
property :content_ranges, as: 'contentRanges', class: Google::Apis::BooksV1::VolumeAnnotation::ContentRanges, decorator: Google::Apis::BooksV1::VolumeAnnotation::ContentRanges::Representation
property :data, as: 'data'
property :deleted, as: 'deleted'
@ -1747,12 +1747,12 @@ module Google
class ContentRanges
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
property :content_version, as: 'contentVersion'
property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
property :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation
end
end
@ -1761,7 +1761,7 @@ module Google
class Volumeannotations
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::BooksV1::Volumeannotation, decorator: Google::Apis::BooksV1::Volumeannotation::Representation
collection :items, as: 'items', class: Google::Apis::BooksV1::VolumeAnnotation, decorator: Google::Apis::BooksV1::VolumeAnnotation::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'

View File

@ -203,18 +203,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::BooksCloudloadingResource] parsed result object
# @yieldparam result [Google::Apis::BooksV1::LoadingResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::BooksCloudloadingResource]
# @return [Google::Apis::BooksV1::LoadingResource]
#
# @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 add_cloudloading_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def add_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'cloudloading/addBook', options)
command.response_representation = Google::Apis::BooksV1::BooksCloudloadingResource::Representation
command.response_class = Google::Apis::BooksV1::BooksCloudloadingResource
command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
command.response_class = Google::Apis::BooksV1::LoadingResource
command.query['drive_document_id'] = drive_document_id unless drive_document_id.nil?
command.query['mime_type'] = mime_type unless mime_type.nil?
command.query['name'] = name unless name.nil?
@ -249,7 +249,7 @@ 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 delete_cloudloading_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'cloudloading/deleteBook', options)
command.query['volumeId'] = volume_id unless volume_id.nil?
command.query['fields'] = fields unless fields.nil?
@ -259,7 +259,7 @@ module Google
end
#
# @param [Google::Apis::BooksV1::BooksCloudloadingResource] books_cloudloading_resource_object
# @param [Google::Apis::BooksV1::LoadingResource] loading_resource_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -273,20 +273,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::BooksCloudloadingResource] parsed result object
# @yieldparam result [Google::Apis::BooksV1::LoadingResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::BooksCloudloadingResource]
# @return [Google::Apis::BooksV1::LoadingResource]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_cloudloading_book(books_cloudloading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_book(loading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'cloudloading/updateBook', options)
command.request_representation = Google::Apis::BooksV1::BooksCloudloadingResource::Representation
command.request_object = books_cloudloading_resource_object
command.response_representation = Google::Apis::BooksV1::BooksCloudloadingResource::Representation
command.response_class = Google::Apis::BooksV1::BooksCloudloadingResource
command.request_representation = Google::Apis::BooksV1::LoadingResource::Representation
command.request_object = loading_resource_object
command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
command.response_class = Google::Apis::BooksV1::LoadingResource
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?
@ -317,7 +317,7 @@ 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_dictionary_offline_metadata(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_offline_metadata_dictionary(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'dictionary/listOfflineMetadata', options)
command.response_representation = Google::Apis::BooksV1::Metadata::Representation
command.response_class = Google::Apis::BooksV1::Metadata
@ -350,18 +350,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::Layersummary] parsed result object
# @yieldparam result [Google::Apis::BooksV1::LayerSummary] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::Layersummary]
# @return [Google::Apis::BooksV1::LayerSummary]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_layer(volume_id, summary_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/{volumeId}/layersummary/{summaryId}', options)
command.response_representation = Google::Apis::BooksV1::Layersummary::Representation
command.response_class = Google::Apis::BooksV1::Layersummary
command.response_representation = Google::Apis::BooksV1::LayerSummary::Representation
command.response_class = Google::Apis::BooksV1::LayerSummary
command.params['volumeId'] = volume_id unless volume_id.nil?
command.params['summaryId'] = summary_id unless summary_id.nil?
command.query['contentVersion'] = content_version unless content_version.nil?
@ -396,18 +396,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::Layersummaries] parsed result object
# @yieldparam result [Google::Apis::BooksV1::LayerSummaries] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::Layersummaries]
# @return [Google::Apis::BooksV1::LayerSummaries]
#
# @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_layers(volume_id, content_version: nil, max_results: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/{volumeId}/layersummary', options)
command.response_representation = Google::Apis::BooksV1::Layersummaries::Representation
command.response_class = Google::Apis::BooksV1::Layersummaries
command.response_representation = Google::Apis::BooksV1::LayerSummaries::Representation
command.response_class = Google::Apis::BooksV1::LayerSummaries
command.params['volumeId'] = volume_id unless volume_id.nil?
command.query['contentVersion'] = content_version unless content_version.nil?
command.query['maxResults'] = max_results unless max_results.nil?
@ -456,18 +456,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::Annotationdata] parsed result object
# @yieldparam result [Google::Apis::BooksV1::AnnotationData] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::Annotationdata]
# @return [Google::Apis::BooksV1::AnnotationData]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_layer_annotation_datum(volume_id, layer_id, annotation_data_id, content_version, allow_web_definitions: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_layer_annotation_data(volume_id, layer_id, annotation_data_id, content_version, allow_web_definitions: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options)
command.response_representation = Google::Apis::BooksV1::Annotationdata::Representation
command.response_class = Google::Apis::BooksV1::Annotationdata
command.response_representation = Google::Apis::BooksV1::AnnotationData::Representation
command.response_class = Google::Apis::BooksV1::AnnotationData
command.params['volumeId'] = volume_id unless volume_id.nil?
command.params['layerId'] = layer_id unless layer_id.nil?
command.params['annotationDataId'] = annotation_data_id unless annotation_data_id.nil?
@ -530,18 +530,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::Annotationsdata] parsed result object
# @yieldparam result [Google::Apis::BooksV1::AnnotationsData] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::Annotationsdata]
# @return [Google::Apis::BooksV1::AnnotationsData]
#
# @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_layer_annotation_data(volume_id, layer_id, content_version, annotation_data_id: nil, h: nil, locale: nil, max_results: nil, page_token: nil, scale: nil, source: nil, updated_max: nil, updated_min: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data', options)
command.response_representation = Google::Apis::BooksV1::Annotationsdata::Representation
command.response_class = Google::Apis::BooksV1::Annotationsdata
command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation
command.response_class = Google::Apis::BooksV1::AnnotationsData
command.params['volumeId'] = volume_id unless volume_id.nil?
command.params['layerId'] = layer_id unless layer_id.nil?
command.query['annotationDataId'] = annotation_data_id unless annotation_data_id.nil?
@ -586,18 +586,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::Volumeannotation] parsed result object
# @yieldparam result [Google::Apis::BooksV1::VolumeAnnotation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::Volumeannotation]
# @return [Google::Apis::BooksV1::VolumeAnnotation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_layer_volume_annotation(volume_id, layer_id, annotation_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', options)
command.response_representation = Google::Apis::BooksV1::Volumeannotation::Representation
command.response_class = Google::Apis::BooksV1::Volumeannotation
command.response_representation = Google::Apis::BooksV1::VolumeAnnotation::Representation
command.response_class = Google::Apis::BooksV1::VolumeAnnotation
command.params['volumeId'] = volume_id unless volume_id.nil?
command.params['layerId'] = layer_id unless layer_id.nil?
command.params['annotationId'] = annotation_id unless annotation_id.nil?
@ -704,18 +704,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::Usersettings] parsed result object
# @yieldparam result [Google::Apis::BooksV1::UserSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::Usersettings]
# @return [Google::Apis::BooksV1::UserSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_myconfig_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'myconfig/getUserSettings', options)
command.response_representation = Google::Apis::BooksV1::Usersettings::Representation
command.response_class = Google::Apis::BooksV1::Usersettings
command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
command.response_class = Google::Apis::BooksV1::UserSettings
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?
@ -752,7 +752,7 @@ 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 release_myconfig_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def release_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'myconfig/releaseDownloadAccess', options)
command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation
command.response_class = Google::Apis::BooksV1::DownloadAccesses
@ -800,7 +800,7 @@ 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 request_myconfig_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def request_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'myconfig/requestAccess', options)
command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation
command.response_class = Google::Apis::BooksV1::RequestAccess
@ -854,7 +854,7 @@ 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 sync_myconfig_volume_licenses(source, nonce, cpksver, features: nil, include_non_comics_series: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def sync_volume_licenses(source, nonce, cpksver, features: nil, include_non_comics_series: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'myconfig/syncVolumeLicenses', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes
@ -875,7 +875,7 @@ module Google
# Sets the settings for the user. If a sub-object is specified, it will
# overwrite the existing sub-object stored in the server. Unspecified sub-
# objects will retain the existing value.
# @param [Google::Apis::BooksV1::Usersettings] usersettings_object
# @param [Google::Apis::BooksV1::UserSettings] user_settings_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -889,20 +889,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::Usersettings] parsed result object
# @yieldparam result [Google::Apis::BooksV1::UserSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::Usersettings]
# @return [Google::Apis::BooksV1::UserSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_myconfig_user_settings(usersettings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_user_settings(user_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'myconfig/updateUserSettings', options)
command.request_representation = Google::Apis::BooksV1::Usersettings::Representation
command.request_object = usersettings_object
command.response_representation = Google::Apis::BooksV1::Usersettings::Representation
command.response_class = Google::Apis::BooksV1::Usersettings
command.request_representation = Google::Apis::BooksV1::UserSettings::Representation
command.request_object = user_settings_object
command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
command.response_class = Google::Apis::BooksV1::UserSettings
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?
@ -935,7 +935,7 @@ 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 delete_mylibrary_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'mylibrary/annotations/{annotationId}', options)
command.params['annotationId'] = annotation_id unless annotation_id.nil?
command.query['source'] = source unless source.nil?
@ -977,7 +977,7 @@ 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 insert_mylibrary_annotation(annotation_object = nil, annotation_id: nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_my_library_annotation(annotation_object = nil, annotation_id: nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'mylibrary/annotations', options)
command.request_representation = Google::Apis::BooksV1::Annotation::Representation
command.request_object = annotation_object
@ -1038,7 +1038,7 @@ 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_mylibrary_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_my_library_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'mylibrary/annotations', options)
command.response_representation = Google::Apis::BooksV1::Annotations::Representation
command.response_class = Google::Apis::BooksV1::Annotations
@ -1084,7 +1084,7 @@ 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 summary_mylibrary_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'mylibrary/annotations/summary', options)
command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation
command.response_class = Google::Apis::BooksV1::AnnotationsSummary
@ -1123,7 +1123,7 @@ 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 update_mylibrary_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'mylibrary/annotations/{annotationId}', options)
command.request_representation = Google::Apis::BooksV1::Annotation::Representation
command.request_object = annotation_object
@ -1167,7 +1167,7 @@ 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 add_mylibrary_bookshelf_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/addVolume', options)
command.params['shelf'] = shelf unless shelf.nil?
command.query['reason'] = reason unless reason.nil?
@ -1205,7 +1205,7 @@ 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 clear_mylibrary_bookshelf_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/clearVolumes', options)
command.params['shelf'] = shelf unless shelf.nil?
command.query['source'] = source unless source.nil?
@ -1242,7 +1242,7 @@ 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 get_mylibrary_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}', options)
command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
command.response_class = Google::Apis::BooksV1::Bookshelf
@ -1278,7 +1278,7 @@ 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_mylibrary_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'mylibrary/bookshelves', options)
command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
command.response_class = Google::Apis::BooksV1::Bookshelves
@ -1320,7 +1320,7 @@ 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 move_mylibrary_bookshelf_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/moveVolume', options)
command.params['shelf'] = shelf unless shelf.nil?
command.query['source'] = source unless source.nil?
@ -1362,7 +1362,7 @@ 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 remove_mylibrary_bookshelf_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/removeVolume', options)
command.params['shelf'] = shelf unless shelf.nil?
command.query['reason'] = reason unless reason.nil?
@ -1412,7 +1412,7 @@ 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_mylibrary_bookshelf_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_my_library_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}/volumes', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes
@ -1458,7 +1458,7 @@ 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 get_mylibrary_readingposition(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'mylibrary/readingpositions/{volumeId}', options)
command.response_representation = Google::Apis::BooksV1::ReadingPosition::Representation
command.response_class = Google::Apis::BooksV1::ReadingPosition
@ -1507,7 +1507,7 @@ 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 set_mylibrary_readingposition_position(volume_id, timestamp, position, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def set_my_library_reading_position(volume_id, timestamp, position, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'mylibrary/readingpositions/{volumeId}/setPosition', options)
command.params['volumeId'] = volume_id unless volume_id.nil?
command.query['action'] = action unless action.nil?
@ -1727,7 +1727,7 @@ 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 accept_promooffer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def accept_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'promooffer/accept', options)
command.query['androidId'] = android_id unless android_id.nil?
command.query['device'] = device unless device.nil?
@ -1779,7 +1779,7 @@ 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 dismiss_promooffer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def dismiss_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'promooffer/dismiss', options)
command.query['androidId'] = android_id unless android_id.nil?
command.query['device'] = device unless device.nil?
@ -1828,7 +1828,7 @@ 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 get_promooffer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'promooffer/get', options)
command.response_representation = Google::Apis::BooksV1::Offers::Representation
command.response_class = Google::Apis::BooksV1::Offers
@ -1899,18 +1899,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::Seriesmembership] parsed result object
# @yieldparam result [Google::Apis::BooksV1::SeriesMembership] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::Seriesmembership]
# @return [Google::Apis::BooksV1::SeriesMembership]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_series_membership(series_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'series/membership/get', options)
command.response_representation = Google::Apis::BooksV1::Seriesmembership::Representation
command.response_class = Google::Apis::BooksV1::Seriesmembership
command.response_representation = Google::Apis::BooksV1::SeriesMembership::Representation
command.response_class = Google::Apis::BooksV1::SeriesMembership
command.query['page_size'] = page_size unless page_size.nil?
command.query['page_token'] = page_token unless page_token.nil?
command.query['series_id'] = series_id unless series_id.nil?
@ -2081,7 +2081,7 @@ 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_volume_associateds(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_associated_volumes(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/{volumeId}/associated', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes
@ -2134,7 +2134,7 @@ 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_volume_mybooks(acquire_method: nil, country: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_my_books(acquire_method: nil, country: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/mybooks', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes
@ -2181,7 +2181,7 @@ 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_volume_recommendeds(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/recommended', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes
@ -2217,18 +2217,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::BooksVolumesRecommendedRateResponse] parsed result object
# @yieldparam result [Google::Apis::BooksV1::RateRecommendedVolumeResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BooksV1::BooksVolumesRecommendedRateResponse]
# @return [Google::Apis::BooksV1::RateRecommendedVolumeResponse]
#
# @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 rate_volume_recommended(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def rate_recommended_volume(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'volumes/recommended/rate', options)
command.response_representation = Google::Apis::BooksV1::BooksVolumesRecommendedRateResponse::Representation
command.response_class = Google::Apis::BooksV1::BooksVolumesRecommendedRateResponse
command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation
command.response_class = Google::Apis::BooksV1::RateRecommendedVolumeResponse
command.query['locale'] = locale unless locale.nil?
command.query['rating'] = rating unless rating.nil?
command.query['source'] = source unless source.nil?
@ -2275,7 +2275,7 @@ 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_volume_useruploadeds(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_user_uploaded_volumes(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/useruploaded', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20170523'
REVISION = '20170528'
# Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -430,7 +430,7 @@ module Google
# on inserts and updates. SMS reminders are only available for G Suite customers.
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
attr_accessor :delivery_method
# The type of notification. Possible values are:
# - "eventCreation" - Notification sent when a new event is put on the calendar.
@ -448,7 +448,7 @@ module Google
# Update properties of this object
def update!(**args)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@delivery_method = args[:delivery_method] if args.key?(:delivery_method)
@type = args[:type] if args.key?(:type)
end
end
@ -1082,7 +1082,7 @@ module Google
# - "chip" - The gadget displays when the event is clicked.
# Corresponds to the JSON property `display`
# @return [String]
attr_accessor :display_prop
attr_accessor :display_mode
# The gadget's height in pixels. The height must be an integer greater than 0.
# Optional.
@ -1127,7 +1127,7 @@ module Google
# Update properties of this object
def update!(**args)
@display_prop = args[:display_prop] if args.key?(:display_prop)
@display_mode = args[:display_mode] if args.key?(:display_mode)
@height = args[:height] if args.key?(:height)
@icon_link = args[:icon_link] if args.key?(:icon_link)
@link = args[:link] if args.key?(:link)
@ -1443,7 +1443,7 @@ module Google
# - "popup" - Reminders are sent via a UI popup.
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
attr_accessor :reminder_method
# Number of minutes before the start of the event when the reminder should
# trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
@ -1457,7 +1457,7 @@ module Google
# Update properties of this object
def update!(**args)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@reminder_method = args[:reminder_method] if args.key?(:reminder_method)
@minutes = args[:minutes] if args.key?(:minutes)
end
end

View File

@ -344,7 +344,7 @@ module Google
class CalendarNotification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :method_prop, as: 'method'
property :delivery_method, as: 'method'
property :type, as: 'type'
end
end
@ -490,7 +490,7 @@ module Google
class Gadget
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_prop, as: 'display'
property :display_mode, as: 'display'
property :height, as: 'height'
property :icon_link, as: 'iconLink'
property :link, as: 'link'
@ -579,7 +579,7 @@ module Google
class EventReminder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :method_prop, as: 'method'
property :reminder_method, as: 'method'
property :minutes, as: 'minutes'
end
end

View File

@ -1268,7 +1268,7 @@ 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 instances_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, max_results: nil, original_start: nil, page_token: nil, show_deleted: nil, time_max: nil, time_min: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_event_instances(calendar_id, event_id, always_include_email: nil, max_attendees: nil, max_results: nil, original_start: nil, page_token: nil, show_deleted: nil, time_max: nil, time_min: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'calendars/{calendarId}/events/{eventId}/instances', options)
command.response_representation = Google::Apis::CalendarV3::Events::Representation
command.response_class = Google::Apis::CalendarV3::Events
@ -1570,7 +1570,7 @@ 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 quick_event_add(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def quick_add_event(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'calendars/{calendarId}/events/quickAdd', options)
command.response_representation = Google::Apis::CalendarV3::Event::Representation
command.response_class = Google::Apis::CalendarV3::Event

View File

@ -501,7 +501,7 @@ module Google
end
# The result of a division search query.
class DivisionSearchResponse
class SearchDivisionResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "civicinfo#
@ -664,7 +664,7 @@ module Google
end
# The list of elections available for this version of the API.
class ElectionsQueryResponse
class QueryElectionsResponse
include Google::Apis::Core::Hashable
# A list of available elections

View File

@ -70,7 +70,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DivisionSearchResponse
class SearchDivisionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -100,7 +100,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ElectionsQueryResponse
class QueryElectionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -306,7 +306,7 @@ module Google
end
end
class DivisionSearchResponse
class SearchDivisionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -353,7 +353,7 @@ module Google
end
end
class ElectionsQueryResponse
class QueryElectionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :elections, as: 'elections', class: Google::Apis::CivicinfoV2::Election, decorator: Google::Apis::CivicinfoV2::Election::Representation

View File

@ -74,10 +74,10 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CivicinfoV2::DivisionSearchResponse] parsed result object
# @yieldparam result [Google::Apis::CivicinfoV2::SearchDivisionResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CivicinfoV2::DivisionSearchResponse]
# @return [Google::Apis::CivicinfoV2::SearchDivisionResponse]
#
# @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
@ -86,8 +86,8 @@ module Google
command = make_simple_command(:get, 'divisions', options)
command.request_representation = Google::Apis::CivicinfoV2::DivisionSearchRequest::Representation
command.request_object = division_search_request_object
command.response_representation = Google::Apis::CivicinfoV2::DivisionSearchResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::DivisionSearchResponse
command.response_representation = Google::Apis::CivicinfoV2::SearchDivisionResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::SearchDivisionResponse
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -110,20 +110,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CivicinfoV2::ElectionsQueryResponse] parsed result object
# @yieldparam result [Google::Apis::CivicinfoV2::QueryElectionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CivicinfoV2::ElectionsQueryResponse]
# @return [Google::Apis::CivicinfoV2::QueryElectionsResponse]
#
# @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 election_election_query(elections_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def query_election(elections_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'elections', options)
command.request_representation = Google::Apis::CivicinfoV2::ElectionsQueryRequest::Representation
command.request_object = elections_query_request_object
command.response_representation = Google::Apis::CivicinfoV2::ElectionsQueryResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::ElectionsQueryResponse
command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
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?
@ -165,7 +165,7 @@ 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 voter_election_info_query(address, voter_info_request_object = nil, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def query_voter_info(address, voter_info_request_object = nil, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'voterinfo', options)
command.request_representation = Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
command.request_object = voter_info_request_object
@ -219,7 +219,7 @@ 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 representative_representative_info_by_address(representative_info_request_object = nil, address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def representative_info_by_address(representative_info_request_object = nil, address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'representatives', options)
command.request_representation = Google::Apis::CivicinfoV2::RepresentativeInfoRequest::Representation
command.request_object = representative_info_request_object
@ -272,7 +272,7 @@ 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 representative_representative_info_by_division(ocd_id, division_representative_info_request_object = nil, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def representative_info_by_division(ocd_id, division_representative_info_request_object = nil, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'representatives/{ocdId}', options)
command.request_representation = Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest::Representation
command.request_object = division_representative_info_request_object

View File

@ -25,7 +25,10 @@ module Google
# @see https://developers.google.com/classroom/
module ClassroomV1
VERSION = 'V1'
REVISION = '20170601'
REVISION = '20170612'
# View the email addresses of people in your classes
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
# Manage your course work and view your grades in Google Classroom
AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me'
@ -57,20 +60,17 @@ module Google
# View your course work and grades in Google Classroom
AUTH_CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly'
# View your Google Classroom guardians
AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly'
# Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer
AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students'
# View your Google Classroom guardians
AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly'
# View course work and grades for students in the Google Classroom classes you teach or administer
AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly'
# View your course work and grades in Google Classroom
AUTH_CLASSROOM_COURSEWORK_ME_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.me.readonly'
# View the email addresses of people in your classes
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -22,6 +22,122 @@ module Google
module Apis
module CloudbuildV1
# Request to cancel an ongoing build.
class CancelBuildRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response including listed builds.
class ListBuildsResponse
include Google::Apis::Core::Hashable
# Token to receive the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Builds will be sorted by create_time, descending.
# Corresponds to the JSON property `builds`
# @return [Array<Google::Apis::CloudbuildV1::Build>]
attr_accessor :builds
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@builds = args[:builds] if args.key?(:builds)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
# A list of operations that matches the specified filter in the request.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::CloudbuildV1::Operation>]
attr_accessor :operations
# The standard List next-page token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@operations = args[:operations] if args.key?(:operations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Source describes the location of the source in a supported storage
# service.
class Source
include Google::Apis::Core::Hashable
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
# Corresponds to the JSON property `storageSource`
# @return [Google::Apis::CloudbuildV1::StorageSource]
attr_accessor :storage_source
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `repoSource`
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :repo_source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@storage_source = args[:storage_source] if args.key?(:storage_source)
@repo_source = args[:repo_source] if args.key?(:repo_source)
end
end
# Optional arguments to enable specific features of builds.
class BuildOptions
include Google::Apis::Core::Hashable
# Requested hash for SourceProvenance.
# Corresponds to the JSON property `sourceProvenanceHash`
# @return [Array<String>]
attr_accessor :source_provenance_hash
# Requested verifiability options.
# Corresponds to the JSON property `requestedVerifyOption`
# @return [String]
attr_accessor :requested_verify_option
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
end
end
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
class StorageSource
@ -64,24 +180,24 @@ module Google
class Results
include Google::Apis::Core::Hashable
# List of build step digests, in order corresponding to build step indices.
# Corresponds to the JSON property `buildStepImages`
# @return [Array<String>]
attr_accessor :build_step_images
# Images that were built as a part of the build.
# Corresponds to the JSON property `images`
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
attr_accessor :images
# List of build step digests, in order corresponding to build step indices.
# Corresponds to the JSON property `buildStepImages`
# @return [Array<String>]
attr_accessor :build_step_images
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
@images = args[:images] if args.key?(:images)
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
end
end
@ -121,18 +237,6 @@ module Google
class SourceProvenance
include Google::Apis::Core::Hashable
# Hash(es) of the build source, which can be used to verify that the original
# source integrity was maintained in the build. Note that FileHashes will
# only be populated if BuildOptions has requested a SourceProvenanceHash.
# The keys to this map are file paths used as build source and the values
# contain the hash values for those files.
# If the build source came in a single package such as a gzipped tarfile
# (.tar.gz), the FileHash will be for the single path to that file.
# @OutputOnly
# Corresponds to the JSON property `fileHashes`
# @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
attr_accessor :file_hashes
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `resolvedRepoSource`
@ -145,15 +249,27 @@ module Google
# @return [Google::Apis::CloudbuildV1::StorageSource]
attr_accessor :resolved_storage_source
# Hash(es) of the build source, which can be used to verify that the original
# source integrity was maintained in the build. Note that FileHashes will
# only be populated if BuildOptions has requested a SourceProvenanceHash.
# The keys to this map are file paths used as build source and the values
# contain the hash values for those files.
# If the build source came in a single package such as a gzipped tarfile
# (.tar.gz), the FileHash will be for the single path to that file.
# @OutputOnly
# Corresponds to the JSON property `fileHashes`
# @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
attr_accessor :file_hashes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
@resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
end
end
@ -175,6 +291,14 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If true, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
@ -245,25 +369,17 @@ module Google
# @return [Hash<String,Object>]
attr_accessor :metadata
# If the value is `false`, it means the operation is still in progress.
# If true, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@done = args[:done] if args.key?(:done)
@response = args[:response] if args.key?(:response)
@name = args[:name] if args.key?(:name)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
@done = args[:done] if args.key?(:done)
end
end
@ -312,20 +428,70 @@ module Google
end
end
# Container message for hash values.
class HashProp
# BuildStep describes a step to perform in the build pipeline.
class BuildStep
include Google::Apis::Core::Hashable
# The type of hash that was performed.
# Corresponds to the JSON property `type`
# Optional unique identifier for this build step, used in wait_for to
# reference this build step as a dependency.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :type
attr_accessor :id
# The hash value.
# Corresponds to the JSON property `value`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# Working directory (relative to project source root) to use when running
# this operation's container.
# Corresponds to the JSON property `dir`
# @return [String]
attr_accessor :value
attr_accessor :dir
# The ID(s) of the step(s) that this build step depends on.
# This build step will not start until all the build steps in wait_for
# have completed successfully. If wait_for is empty, this build step will
# start when all previous build steps in the Build.Steps list have completed
# successfully.
# Corresponds to the JSON property `waitFor`
# @return [Array<String>]
attr_accessor :wait_for
# A list of environment variable definitions to be used when running a step.
# The elements are of the form "KEY=VALUE" for the environment variable "KEY"
# being given the value "VALUE".
# Corresponds to the JSON property `env`
# @return [Array<String>]
attr_accessor :env
# A list of arguments that will be presented to the step when it is started.
# If the image used to run the step's container has an entrypoint, these args
# will be used as arguments to that entrypoint. If the image does not define
# an entrypoint, the first element in args will be used as the entrypoint,
# and the remainder will be used as arguments.
# Corresponds to the JSON property `args`
# @return [Array<String>]
attr_accessor :args
# The name of the container image that will run this particular build step.
# If the image is already available in the host's Docker daemon's cache, it
# will be run directly. If not, the host will attempt to pull the image
# first, using the builder service account's credentials if necessary.
# The Docker daemon's cache will already have the latest versions of all of
# the officially supported build steps
# ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/
# GoogleCloudPlatform/cloud-builders)).
# The Docker daemon will also have cached many of the layers for some popular
# images, like "ubuntu", "debian", but they will be refreshed at the time you
# attempt to use them.
# If you built an image in a previous build step, it will be stored in the
# host's Docker daemon's cache and is available to use as the name for a
# later build step.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Optional entrypoint to be used instead of the build step image's default
# If unset, the image's default will be used.
# Corresponds to the JSON property `entrypoint`
# @return [String]
attr_accessor :entrypoint
def initialize(**args)
update!(**args)
@ -333,8 +499,13 @@ module Google
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@value = args[:value] if args.key?(:value)
@id = args[:id] if args.key?(:id)
@dir = args[:dir] if args.key?(:dir)
@wait_for = args[:wait_for] if args.key?(:wait_for)
@env = args[:env] if args.key?(:env)
@args = args[:args] if args.key?(:args)
@name = args[:name] if args.key?(:name)
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
end
end
@ -383,70 +554,20 @@ module Google
end
end
# BuildStep describes a step to perform in the build pipeline.
class BuildStep
# Container message for hash values.
class HashProp
include Google::Apis::Core::Hashable
# The name of the container image that will run this particular build step.
# If the image is already available in the host's Docker daemon's cache, it
# will be run directly. If not, the host will attempt to pull the image
# first, using the builder service account's credentials if necessary.
# The Docker daemon's cache will already have the latest versions of all of
# the officially supported build steps
# ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/
# GoogleCloudPlatform/cloud-builders)).
# The Docker daemon will also have cached many of the layers for some popular
# images, like "ubuntu", "debian", but they will be refreshed at the time you
# attempt to use them.
# If you built an image in a previous build step, it will be stored in the
# host's Docker daemon's cache and is available to use as the name for a
# later build step.
# Corresponds to the JSON property `name`
# The hash value.
# Corresponds to the JSON property `value`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :name
attr_accessor :value
# Optional entrypoint to be used instead of the build step image's default
# If unset, the image's default will be used.
# Corresponds to the JSON property `entrypoint`
# The type of hash that was performed.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :entrypoint
# Optional unique identifier for this build step, used in wait_for to
# reference this build step as a dependency.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Working directory (relative to project source root) to use when running
# this operation's container.
# Corresponds to the JSON property `dir`
# @return [String]
attr_accessor :dir
# The ID(s) of the step(s) that this build step depends on.
# This build step will not start until all the build steps in wait_for
# have completed successfully. If wait_for is empty, this build step will
# start when all previous build steps in the Build.Steps list have completed
# successfully.
# Corresponds to the JSON property `waitFor`
# @return [Array<String>]
attr_accessor :wait_for
# A list of environment variable definitions to be used when running a step.
# The elements are of the form "KEY=VALUE" for the environment variable "KEY"
# being given the value "VALUE".
# Corresponds to the JSON property `env`
# @return [Array<String>]
attr_accessor :env
# A list of arguments that will be presented to the step when it is started.
# If the image used to run the step's container has an entrypoint, these args
# will be used as arguments to that entrypoint. If the image does not define
# an entrypoint, the first element in args will be used as the entrypoint,
# and the remainder will be used as arguments.
# Corresponds to the JSON property `args`
# @return [Array<String>]
attr_accessor :args
attr_accessor :type
def initialize(**args)
update!(**args)
@ -454,13 +575,8 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
@id = args[:id] if args.key?(:id)
@dir = args[:dir] if args.key?(:dir)
@wait_for = args[:wait_for] if args.key?(:wait_for)
@env = args[:env] if args.key?(:env)
@args = args[:args] if args.key?(:args)
@value = args[:value] if args.key?(:value)
@type = args[:type] if args.key?(:type)
end
end
@ -526,6 +642,11 @@ module Google
class Status
include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
@ -539,20 +660,15 @@ module Google
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@message = args[:message] if args.key?(:message)
@details = args[:details] if args.key?(:details)
@code = args[:code] if args.key?(:code)
end
end
@ -580,6 +696,18 @@ module Google
class BuildTrigger
include Google::Apis::Core::Hashable
# Time when the trigger was created.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# If true, the trigger will never result in a build.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
# Path, from the source root, to a file whose contents is used for the
# template.
# Corresponds to the JSON property `filename`
@ -625,32 +753,20 @@ module Google
# @return [String]
attr_accessor :description
# If true, the trigger will never result in a build.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
# Time when the trigger was created.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@disabled = args[:disabled] if args.key?(:disabled)
@filename = args[:filename] if args.key?(:filename)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@id = args[:id] if args.key?(:id)
@build = args[:build] if args.key?(:build)
@substitutions = args[:substitutions] if args.key?(:substitutions)
@description = args[:description] if args.key?(:description)
@disabled = args[:disabled] if args.key?(:disabled)
@create_time = args[:create_time] if args.key?(:create_time)
end
end
@ -670,6 +786,63 @@ module Google
class Build
include Google::Apis::Core::Hashable
# Customer-readable message about the current status.
# @OutputOnly
# Corresponds to the JSON property `statusDetail`
# @return [String]
attr_accessor :status_detail
# Status of the build.
# @OutputOnly
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Amount of time that this build should be allowed to run, to second
# granularity. If this amount of time elapses, work on the build will cease
# and the build status will be TIMEOUT.
# Default time is ten minutes.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout
# Google Cloud Storage bucket where logs should be written (see
# [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
# ).
# Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
# Corresponds to the JSON property `logsBucket`
# @return [String]
attr_accessor :logs_bucket
# Results describes the artifacts created by the build pipeline.
# Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1::Results]
attr_accessor :results
# Describes the operations to be performed on the workspace.
# Corresponds to the JSON property `steps`
# @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
attr_accessor :steps
# The ID of the BuildTrigger that triggered this build, if it was
# triggered automatically.
# @OutputOnly
# Corresponds to the JSON property `buildTriggerId`
# @return [String]
attr_accessor :build_trigger_id
# Tags for annotation of a Build. These are not docker tags.
# Corresponds to the JSON property `tags`
# @return [Array<String>]
attr_accessor :tags
# Unique identifier of the build.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Time at which execution of the build was started.
# @OutputOnly
# Corresponds to the JSON property `startTime`
@ -734,69 +907,21 @@ module Google
# @return [Google::Apis::CloudbuildV1::BuildOptions]
attr_accessor :options
# Customer-readable message about the current status.
# @OutputOnly
# Corresponds to the JSON property `statusDetail`
# @return [String]
attr_accessor :status_detail
# Status of the build.
# @OutputOnly
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Amount of time that this build should be allowed to run, to second
# granularity. If this amount of time elapses, work on the build will cease
# and the build status will be TIMEOUT.
# Default time is ten minutes.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout
# Google Cloud Storage bucket where logs should be written (see
# [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
# ).
# Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
# Corresponds to the JSON property `logsBucket`
# @return [String]
attr_accessor :logs_bucket
# Results describes the artifacts created by the build pipeline.
# Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1::Results]
attr_accessor :results
# Describes the operations to be performed on the workspace.
# Corresponds to the JSON property `steps`
# @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
attr_accessor :steps
# The ID of the BuildTrigger that triggered this build, if it was
# triggered automatically.
# @OutputOnly
# Corresponds to the JSON property `buildTriggerId`
# @return [String]
attr_accessor :build_trigger_id
# Tags for annotation of a Build. These are not docker tags.
# Corresponds to the JSON property `tags`
# @return [Array<String>]
attr_accessor :tags
# Unique identifier of the build.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@status_detail = args[:status_detail] if args.key?(:status_detail)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@results = args[:results] if args.key?(:results)
@steps = args[:steps] if args.key?(:steps)
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
@tags = args[:tags] if args.key?(:tags)
@id = args[:id] if args.key?(:id)
@start_time = args[:start_time] if args.key?(:start_time)
@substitutions = args[:substitutions] if args.key?(:substitutions)
@create_time = args[:create_time] if args.key?(:create_time)
@ -807,131 +932,6 @@ module Google
@log_url = args[:log_url] if args.key?(:log_url)
@source = args[:source] if args.key?(:source)
@options = args[:options] if args.key?(:options)
@status_detail = args[:status_detail] if args.key?(:status_detail)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@results = args[:results] if args.key?(:results)
@steps = args[:steps] if args.key?(:steps)
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
@tags = args[:tags] if args.key?(:tags)
@id = args[:id] if args.key?(:id)
end
end
# Request to cancel an ongoing build.
class CancelBuildRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response including listed builds.
class ListBuildsResponse
include Google::Apis::Core::Hashable
# Token to receive the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Builds will be sorted by create_time, descending.
# Corresponds to the JSON property `builds`
# @return [Array<Google::Apis::CloudbuildV1::Build>]
attr_accessor :builds
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@builds = args[:builds] if args.key?(:builds)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
# The standard List next-page token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of operations that matches the specified filter in the request.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::CloudbuildV1::Operation>]
attr_accessor :operations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@operations = args[:operations] if args.key?(:operations)
end
end
# Source describes the location of the source in a supported storage
# service.
class Source
include Google::Apis::Core::Hashable
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
# Corresponds to the JSON property `storageSource`
# @return [Google::Apis::CloudbuildV1::StorageSource]
attr_accessor :storage_source
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `repoSource`
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :repo_source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@storage_source = args[:storage_source] if args.key?(:storage_source)
@repo_source = args[:repo_source] if args.key?(:repo_source)
end
end
# Optional arguments to enable specific features of builds.
class BuildOptions
include Google::Apis::Core::Hashable
# Requested hash for SourceProvenance.
# Corresponds to the JSON property `sourceProvenanceHash`
# @return [Array<String>]
attr_accessor :source_provenance_hash
# Requested verifiability options.
# Corresponds to the JSON property `requestedVerifyOption`
# @return [String]
attr_accessor :requested_verify_option
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
end
end
end

View File

@ -22,102 +22,6 @@ module Google
module Apis
module CloudbuildV1
class StorageSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Results
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceProvenance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBuildTriggersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuiltImage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HashProp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RepoSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildStep
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FileHashes
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildTrigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Build
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelBuildRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -149,176 +53,99 @@ module Google
end
class StorageSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :generation, :numeric_string => true, as: 'generation'
property :bucket, as: 'bucket'
property :object, as: 'object'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Results
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :build_step_images, as: 'buildStepImages'
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class BuildOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class SourceProvenance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
hash :metadata, as: 'metadata'
property :done, as: 'done'
end
include Google::Apis::Core::JsonObjectSupport
end
class ListBuildTriggersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class BuiltImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :digest, as: 'digest'
end
end
class Representation < Google::Apis::Core::JsonRepresentation; end
class HashProp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :value, :base64 => true, as: 'value'
end
end
class RepoSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :tag_name, as: 'tagName'
property :commit_sha, as: 'commitSha'
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
property :branch_name, as: 'branchName'
end
include Google::Apis::Core::JsonObjectSupport
end
class BuildStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :entrypoint, as: 'entrypoint'
property :id, as: 'id'
property :dir, as: 'dir'
collection :wait_for, as: 'waitFor'
collection :env, as: 'env'
collection :args, as: 'args'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RepoSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HashProp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FileHashes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message'
collection :details, as: 'details'
property :code, as: 'code'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filename, as: 'filename'
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :id, as: 'id'
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
hash :substitutions, as: 'substitutions'
property :description, as: 'description'
property :disabled, as: 'disabled'
property :create_time, as: 'createTime'
end
include Google::Apis::Core::JsonObjectSupport
end
class Build
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :start_time, as: 'startTime'
hash :substitutions, as: 'substitutions'
property :create_time, as: 'createTime'
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
collection :images, as: 'images'
property :project_id, as: 'projectId'
property :finish_time, as: 'finishTime'
property :log_url, as: 'logUrl'
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
property :status_detail, as: 'statusDetail'
property :status, as: 'status'
property :timeout, as: 'timeout'
property :logs_bucket, as: 'logsBucket'
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
property :build_trigger_id, as: 'buildTriggerId'
collection :tags, as: 'tags'
property :id, as: 'id'
end
include Google::Apis::Core::JsonObjectSupport
end
class CancelBuildRequest
@ -339,9 +166,9 @@ module Google
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
@ -362,6 +189,179 @@ module Google
property :requested_verify_option, as: 'requestedVerifyOption'
end
end
class StorageSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :generation, :numeric_string => true, as: 'generation'
property :bucket, as: 'bucket'
property :object, as: 'object'
end
end
class Results
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
collection :build_step_images, as: 'buildStepImages'
end
end
class BuildOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
end
end
class SourceProvenance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
end
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
hash :metadata, as: 'metadata'
end
end
class ListBuildTriggersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
end
end
class BuiltImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :digest, as: 'digest'
end
end
class BuildStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :dir, as: 'dir'
collection :wait_for, as: 'waitFor'
collection :env, as: 'env'
collection :args, as: 'args'
property :name, as: 'name'
property :entrypoint, as: 'entrypoint'
end
end
class RepoSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :tag_name, as: 'tagName'
property :commit_sha, as: 'commitSha'
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
property :branch_name, as: 'branchName'
end
end
class HashProp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, :base64 => true, as: 'value'
property :type, as: 'type'
end
end
class FileHashes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class BuildTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :disabled, as: 'disabled'
property :filename, as: 'filename'
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
property :id, as: 'id'
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
hash :substitutions, as: 'substitutions'
property :description, as: 'description'
end
end
class Build
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :status_detail, as: 'statusDetail'
property :status, as: 'status'
property :timeout, as: 'timeout'
property :logs_bucket, as: 'logsBucket'
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
property :build_trigger_id, as: 'buildTriggerId'
collection :tags, as: 'tags'
property :id, as: 'id'
property :start_time, as: 'startTime'
hash :substitutions, as: 'substitutions'
property :create_time, as: 'createTime'
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
collection :images, as: 'images'
property :project_id, as: 'projectId'
property :finish_time, as: 'finishTime'
property :log_url, as: 'logUrl'
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
end
end
end
end
end

View File

@ -47,127 +47,6 @@ module Google
@batch_path = 'batch'
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Empty]
#
# @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 cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
command.response_class = Google::Apis::CloudbuildV1::Empty
command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] filter
# The standard list filter.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
#
# @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_operations(name, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
command.response_class = Google::Apis::CloudbuildV1::Operation
command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns information about a previously requested build.
# The Build that is returned includes its status (e.g., success or failure,
# or in-progress), and timing information.
@ -208,12 +87,12 @@ module Google
# successfully or unsuccessfully.
# @param [String] project_id
# ID of the project.
# @param [String] filter
# The raw filter text to constrain the results.
# @param [String] page_token
# Token to provide to skip to a particular spot in the list.
# @param [Fixnum] page_size
# Number of results to return in the list.
# @param [String] filter
# The raw filter text to constrain the results.
# @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.
@ -231,14 +110,14 @@ 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_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
@ -485,6 +364,127 @@ module Google
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
#
# @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_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
command.response_class = Google::Apis::CloudbuildV1::Operation
command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Empty]
#
# @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 cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
command.response_class = Google::Apis::CloudbuildV1::Empty
command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
protected

File diff suppressed because it is too large Load Diff

View File

@ -22,66 +22,6 @@ module Google
module Apis
module ClouddebuggerV2
class CloudWorkspaceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBreakpointsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Breakpoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateActiveBreakpointRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudRepoSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegisterDebuggeeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegisterDebuggeeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatusMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -154,13 +94,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListActiveBreakpointsResponse
class ProjectRepoId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProjectRepoId
class ListActiveBreakpointsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -172,127 +112,76 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GerritSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateActiveBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudWorkspaceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
class GerritSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
property :name, as: 'name'
end
include Google::Apis::Core::JsonObjectSupport
end
class CloudWorkspaceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBreakpointsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_wait_token, as: 'nextWaitToken'
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class Breakpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :expressions, as: 'expressions'
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :is_final_state, as: 'isFinalState'
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
property :condition, as: 'condition'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :user_email, as: 'userEmail'
property :action, as: 'action'
property :log_level, as: 'logLevel'
property :id, as: 'id'
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
property :final_time, as: 'finalTime'
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
hash :labels, as: 'labels'
property :log_message_format, as: 'logMessageFormat'
property :create_time, as: 'createTime'
end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateActiveBreakpointRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class SetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class SourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
end
include Google::Apis::Core::JsonObjectSupport
end
class CloudRepoSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName'
end
include Google::Apis::Core::JsonObjectSupport
end
class RegisterDebuggeeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class RegisterDebuggeeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class GetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class StatusMessage
@ -316,53 +205,53 @@ module Google
class Variable
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :name, as: 'name'
property :type, as: 'type'
property :var_table_index, as: 'varTableIndex'
property :value, as: 'value'
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :name, as: 'name'
property :type, as: 'type'
end
end
class StackFrame
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :function, as: 'function'
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
property :function, as: 'function'
end
end
class RepoId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uid, as: 'uid'
property :project_repo_id, as: 'projectRepoId', class: Google::Apis::ClouddebuggerV2::ProjectRepoId, decorator: Google::Apis::ClouddebuggerV2::ProjectRepoId::Representation
property :uid, as: 'uid'
end
end
class FormatMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :format, as: 'format'
collection :parameters, as: 'parameters'
property :format, as: 'format'
end
end
class ExtendedSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :context, as: 'context', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
hash :labels, as: 'labels'
end
end
@ -406,9 +295,9 @@ module Google
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :project, as: 'project'
property :is_disabled, as: 'isDisabled'
property :agent_version, as: 'agentVersion'
property :id, as: 'id'
property :agent_version, as: 'agentVersion'
property :is_disabled, as: 'isDisabled'
property :description, as: 'description'
property :uniquifier, as: 'uniquifier'
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
@ -416,6 +305,14 @@ module Google
end
end
class ProjectRepoId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
end
end
class ListActiveBreakpointsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -426,31 +323,11 @@ module Google
end
end
class ProjectRepoId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
end
end
class CloudWorkspaceSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation
property :snapshot_id, as: 'snapshotId'
end
end
class GerritSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host_uri, as: 'hostUri'
property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName'
property :gerrit_project, as: 'gerritProject'
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation
end
end
@ -460,6 +337,129 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GerritSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gerrit_project, as: 'gerritProject'
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
property :host_uri, as: 'hostUri'
property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName'
end
end
class CloudWorkspaceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
end
end
class ListBreakpointsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_wait_token, as: 'nextWaitToken'
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end
end
class Breakpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :user_email, as: 'userEmail'
property :action, as: 'action'
property :log_level, as: 'logLevel'
property :id, as: 'id'
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
property :final_time, as: 'finalTime'
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :create_time, as: 'createTime'
property :log_message_format, as: 'logMessageFormat'
hash :labels, as: 'labels'
collection :expressions, as: 'expressions'
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :is_final_state, as: 'isFinalState'
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
property :condition, as: 'condition'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
end
end
class UpdateActiveBreakpointRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end
end
class SetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end
end
class SourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
end
end
class CloudRepoSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName'
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
end
end
class RegisterDebuggeeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
end
end
class RegisterDebuggeeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
end
end
class GetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end
end
end
end
end

View File

@ -200,17 +200,12 @@ module Google
# Lists all breakpoints for the debuggee.
# @param [String] debuggee_id
# ID of the debuggee whose breakpoints to list.
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] action_value
# Only breakpoints with the specified action will pass the filter.
# @param [Boolean] include_inactive
# When set to `true`, the response includes active and inactive
# breakpoints. Otherwise, it includes only active breakpoints.
# @param [Boolean] include_all_users
# When set to `true`, the response includes the list of breakpoints set by
# any user. Otherwise, it includes only breakpoints set by the caller.
# @param [Boolean] include_inactive
# When set to `true`, the response includes active and inactive
# breakpoints. Otherwise, it includes only active breakpoints.
# @param [Boolean] strip_results
# This field is deprecated. The following fields are always stripped out of
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
@ -220,6 +215,11 @@ module Google
# should be set from the last response. The error code
# `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
# should be called again with the same `wait_token`.
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] action_value
# Only breakpoints with the specified action will pass the filter.
# @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.
@ -237,17 +237,17 @@ 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_debugger_debuggee_breakpoints(debuggee_id, client_version: nil, action_value: nil, include_inactive: nil, include_all_users: nil, strip_results: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block)
def list_debugger_debuggee_breakpoints(debuggee_id, include_all_users: nil, include_inactive: nil, strip_results: nil, wait_token: nil, client_version: nil, action_value: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['clientVersion'] = client_version unless client_version.nil?
command.query['action.value'] = action_value unless action_value.nil?
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['stripResults'] = strip_results unless strip_results.nil?
command.query['waitToken'] = wait_token unless wait_token.nil?
command.query['clientVersion'] = client_version unless client_version.nil?
command.query['action.value'] = action_value unless action_value.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
@ -290,6 +290,49 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the breakpoint state or mutable fields.
# The entire Breakpoint message must be sent back to the controller
# service.
# Updates to active breakpoint fields are only allowed if the new value
# does not change the breakpoint specification. Updates to the `location`,
# `condition` and `expression` fields should not alter the breakpoint
# semantics. These may only make changes such as canonicalizing a value
# or snapping the location to the correct line of code.
# @param [String] debuggee_id
# Identifies the debuggee being debugged.
# @param [String] id
# Breakpoint identifier, unique in the scope of the debuggee.
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
command.request_object = update_active_breakpoint_request_object
command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['id'] = id unless id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns the list of all active breakpoints for the debuggee.
# The breakpoint specification (location, condition, and expression
# fields) is semantically immutable, although the field values may
@ -341,49 +384,6 @@ module Google
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Updates the breakpoint state or mutable fields.
# The entire Breakpoint message must be sent back to the controller
# service.
# Updates to active breakpoint fields are only allowed if the new value
# does not change the breakpoint specification. Updates to the `location`,
# `condition` and `expression` fields should not alter the breakpoint
# semantics. These may only make changes such as canonicalizing a value
# or snapping the location to the correct line of code.
# @param [String] debuggee_id
# Identifies the debuggee being debugged.
# @param [String] id
# Breakpoint identifier, unique in the scope of the debuggee.
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
command.request_object = update_active_breakpoint_request_object
command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['id'] = id unless id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
protected

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/error-reporting/
module ClouderrorreportingV1beta1
VERSION = 'V1beta1'
REVISION = '20170524'
REVISION = '20170602'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,42 @@ module Google
module Apis
module ClouderrorreportingV1beta1
# Contains a set of requested error group stats.
class ListGroupStatsResponse
include Google::Apis::Core::Hashable
# The timestamp specifies the start time to which the request was restricted.
# The start time is set based on the requested time range. It may be adjusted
# to a later time if a project has exceeded the storage quota and older data
# has been deleted.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
# The error group stats which match the given request.
# Corresponds to the JSON property `errorGroupStats`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>]
attr_accessor :error_group_stats
# If non-empty, more results are available.
# Pass this token, along with the same query parameters as the first
# request, to view the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
@error_group_stats = args[:error_group_stats] if args.key?(:error_group_stats)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# A reference to a particular snapshot of the source tree used to build and
# deploy an application.
class SourceReference
@ -67,12 +103,6 @@ module Google
class ErrorEvent
include Google::Apis::Core::Hashable
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
# Corresponds to the JSON property `serviceContext`
# @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
attr_accessor :service_context
# Time when the event occurred as provided in the error report.
# If the report did not contain a timestamp, the time the error was received
# by the Error Reporting system is used.
@ -93,43 +123,28 @@ module Google
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service_context = args[:service_context] if args.key?(:service_context)
@event_time = args[:event_time] if args.key?(:event_time)
@context = args[:context] if args.key?(:context)
@message = args[:message] if args.key?(:message)
end
end
# An error event which is reported to the Error Reporting system.
class ReportedErrorEvent
include Google::Apis::Core::Hashable
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
# Corresponds to the JSON property `serviceContext`
# @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
attr_accessor :service_context
# [Optional] Time when the event occurred.
# If not provided, the time when the event was received by the
# Error Reporting system will be used.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
def initialize(**args)
update!(**args)
end
# A description of the context in which an error occurred.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# Corresponds to the JSON property `context`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext]
attr_accessor :context
# Update properties of this object
def update!(**args)
@event_time = args[:event_time] if args.key?(:event_time)
@context = args[:context] if args.key?(:context)
@message = args[:message] if args.key?(:message)
@service_context = args[:service_context] if args.key?(:service_context)
end
end
# An error event which is reported to the Error Reporting system.
class ReportedErrorEvent
include Google::Apis::Core::Hashable
# [Required] The error message.
# If no `context.reportLocation` is provided, the message must contain a
@ -159,16 +174,37 @@ module Google
# @return [String]
attr_accessor :message
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
# Corresponds to the JSON property `serviceContext`
# @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
attr_accessor :service_context
# [Optional] Time when the event occurred.
# If not provided, the time when the event was received by the
# Error Reporting system will be used.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# A description of the context in which an error occurred.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# Corresponds to the JSON property `context`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext]
attr_accessor :context
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@message = args[:message] if args.key?(:message)
@service_context = args[:service_context] if args.key?(:service_context)
@event_time = args[:event_time] if args.key?(:event_time)
@context = args[:context] if args.key?(:context)
@message = args[:message] if args.key?(:message)
end
end
@ -251,27 +287,6 @@ module Google
class ErrorGroupStats
include Google::Apis::Core::Hashable
# Approximate number of occurrences over time.
# Timed counts returned by ListGroups are guaranteed to be:
# - Inside the requested time interval
# - Non-overlapping, and
# - Ordered by ascending time.
# Corresponds to the JSON property `timedCounts`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TimedCount>]
attr_accessor :timed_counts
# Description of a group of similar error events.
# Corresponds to the JSON property `group`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
attr_accessor :group
# Approximate first occurrence that was ever seen for this group
# and which matches the given filter criteria, ignoring the
# time_range that was specified in the request.
# Corresponds to the JSON property `firstSeenTime`
# @return [String]
attr_accessor :first_seen_time
# Approximate total number of events in the given group that match
# the filter criteria.
# Corresponds to the JSON property `count`
@ -319,21 +334,42 @@ module Google
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent]
attr_accessor :representative
# Approximate number of occurrences over time.
# Timed counts returned by ListGroups are guaranteed to be:
# - Inside the requested time interval
# - Non-overlapping, and
# - Ordered by ascending time.
# Corresponds to the JSON property `timedCounts`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TimedCount>]
attr_accessor :timed_counts
# Description of a group of similar error events.
# Corresponds to the JSON property `group`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
attr_accessor :group
# Approximate first occurrence that was ever seen for this group
# and which matches the given filter criteria, ignoring the
# time_range that was specified in the request.
# Corresponds to the JSON property `firstSeenTime`
# @return [String]
attr_accessor :first_seen_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@timed_counts = args[:timed_counts] if args.key?(:timed_counts)
@group = args[:group] if args.key?(:group)
@first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time)
@count = args[:count] if args.key?(:count)
@affected_users_count = args[:affected_users_count] if args.key?(:affected_users_count)
@last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time)
@affected_services = args[:affected_services] if args.key?(:affected_services)
@num_affected_services = args[:num_affected_services] if args.key?(:num_affected_services)
@representative = args[:representative] if args.key?(:representative)
@timed_counts = args[:timed_counts] if args.key?(:timed_counts)
@group = args[:group] if args.key?(:group)
@first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time)
end
end
@ -341,11 +377,6 @@ module Google
class ListEventsResponse
include Google::Apis::Core::Hashable
# The timestamp specifies the start time to which the request was restricted.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
# The error events which match the given request.
# Corresponds to the JSON property `errorEvents`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorEvent>]
@ -358,15 +389,20 @@ module Google
# @return [String]
attr_accessor :next_page_token
# The timestamp specifies the start time to which the request was restricted.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
@error_events = args[:error_events] if args.key?(:error_events)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
end
end
@ -376,11 +412,6 @@ module Google
class TimedCount
include Google::Apis::Core::Hashable
# End of the time period to which `count` refers (excluded).
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Approximate number of occurrences in the given time period.
# Corresponds to the JSON property `count`
# @return [Fixnum]
@ -391,15 +422,20 @@ module Google
# @return [String]
attr_accessor :start_time
# End of the time period to which `count` refers (excluded).
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@count = args[:count] if args.key?(:count)
@start_time = args[:start_time] if args.key?(:start_time)
@end_time = args[:end_time] if args.key?(:end_time)
end
end
@ -443,13 +479,6 @@ module Google
class SourceLocation
include Google::Apis::Core::Hashable
# Human-readable name of a function or method.
# The value can include optional context like the class or package name.
# For example, `my.package.MyClass.method` in case of Java.
# Corresponds to the JSON property `functionName`
# @return [String]
attr_accessor :function_name
# The source code filename, which can include a truncated relative
# path, or a full path from a production machine.
# Corresponds to the JSON property `filePath`
@ -461,15 +490,22 @@ module Google
# @return [Fixnum]
attr_accessor :line_number
# Human-readable name of a function or method.
# The value can include optional context like the class or package name.
# For example, `my.package.MyClass.method` in case of Java.
# Corresponds to the JSON property `functionName`
# @return [String]
attr_accessor :function_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@function_name = args[:function_name] if args.key?(:function_name)
@file_path = args[:file_path] if args.key?(:file_path)
@line_number = args[:line_number] if args.key?(:line_number)
@function_name = args[:function_name] if args.key?(:function_name)
end
end
@ -537,16 +573,6 @@ module Google
class HttpRequestContext
include Google::Apis::Core::Hashable
# The URL of the request.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
# The HTTP response status code for the request.
# Corresponds to the JSON property `responseStatusCode`
# @return [Fixnum]
attr_accessor :response_status_code
# The type of HTTP request, such as `GET`, `POST`, etc.
# Corresponds to the JSON property `method`
# @return [String]
@ -570,54 +596,28 @@ module Google
# @return [String]
attr_accessor :user_agent
# The URL of the request.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
# The HTTP response status code for the request.
# Corresponds to the JSON property `responseStatusCode`
# @return [Fixnum]
attr_accessor :response_status_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@url = args[:url] if args.key?(:url)
@response_status_code = args[:response_status_code] if args.key?(:response_status_code)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
@referrer = args[:referrer] if args.key?(:referrer)
@user_agent = args[:user_agent] if args.key?(:user_agent)
end
end
# Contains a set of requested error group stats.
class ListGroupStatsResponse
include Google::Apis::Core::Hashable
# The timestamp specifies the start time to which the request was restricted.
# The start time is set based on the requested time range. It may be adjusted
# to a later time if a project has exceeded the storage quota and older data
# has been deleted.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
# The error group stats which match the given request.
# Corresponds to the JSON property `errorGroupStats`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>]
attr_accessor :error_group_stats
# If non-empty, more results are available.
# Pass this token, along with the same query parameters as the first
# request, to view the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
@error_group_stats = args[:error_group_stats] if args.key?(:error_group_stats)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@url = args[:url] if args.key?(:url)
@response_status_code = args[:response_status_code] if args.key?(:response_status_code)
end
end
end

View File

@ -22,6 +22,12 @@ module Google
module Apis
module ClouderrorreportingV1beta1
class ListGroupStatsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -107,9 +113,13 @@ module Google
end
class ListGroupStatsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :time_range_begin, as: 'timeRangeBegin'
collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation
include Google::Apis::Core::JsonObjectSupport
property :next_page_token, as: 'nextPageToken'
end
end
class SourceReference
@ -129,24 +139,24 @@ module Google
class ErrorEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
property :event_time, as: 'eventTime'
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
property :message, as: 'message'
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
end
end
class ReportedErrorEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message'
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
property :event_time, as: 'eventTime'
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
property :message, as: 'message'
end
end
@ -173,11 +183,6 @@ module Google
class ErrorGroupStats
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :timed_counts, as: 'timedCounts', class: Google::Apis::ClouderrorreportingV1beta1::TimedCount, decorator: Google::Apis::ClouderrorreportingV1beta1::TimedCount::Representation
property :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
property :first_seen_time, as: 'firstSeenTime'
property :count, :numeric_string => true, as: 'count'
property :affected_users_count, :numeric_string => true, as: 'affectedUsersCount'
property :last_seen_time, as: 'lastSeenTime'
@ -186,25 +191,30 @@ module Google
property :num_affected_services, as: 'numAffectedServices'
property :representative, as: 'representative', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
collection :timed_counts, as: 'timedCounts', class: Google::Apis::ClouderrorreportingV1beta1::TimedCount, decorator: Google::Apis::ClouderrorreportingV1beta1::TimedCount::Representation
property :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
property :first_seen_time, as: 'firstSeenTime'
end
end
class ListEventsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :time_range_begin, as: 'timeRangeBegin'
collection :error_events, as: 'errorEvents', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
property :next_page_token, as: 'nextPageToken'
property :time_range_begin, as: 'timeRangeBegin'
end
end
class TimedCount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :count, :numeric_string => true, as: 'count'
property :start_time, as: 'startTime'
property :end_time, as: 'endTime'
end
end
@ -221,9 +231,9 @@ module Google
class SourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :function_name, as: 'functionName'
property :file_path, as: 'filePath'
property :line_number, as: 'lineNumber'
property :function_name, as: 'functionName'
end
end
@ -245,22 +255,12 @@ module Google
class HttpRequestContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
property :response_status_code, as: 'responseStatusCode'
property :method_prop, as: 'method'
property :remote_ip, as: 'remoteIp'
property :referrer, as: 'referrer'
property :user_agent, as: 'userAgent'
end
end
class ListGroupStatsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :time_range_begin, as: 'timeRangeBegin'
collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation
property :next_page_token, as: 'nextPageToken'
property :url, as: 'url'
property :response_status_code, as: 'responseStatusCode'
end
end
end

View File

@ -55,11 +55,11 @@ module Google
# [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -72,13 +72,13 @@ 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 delete_project_events(project_name, fields: nil, quota_user: nil, options: nil, &block)
def delete_project_events(project_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+projectName}/events', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse
command.params['projectName'] = project_name unless project_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
@ -91,11 +91,11 @@ module Google
# <code>groupStats.list</code></a> to return a list of groups belonging to
# this project.
# Example: <code>projects/my-project-123/groups/my-group</code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -108,13 +108,13 @@ 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 get_project_group(group_name, fields: nil, quota_user: nil, options: nil, &block)
def get_project_group(group_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+groupName}', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup
command.params['groupName'] = group_name unless group_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
@ -124,11 +124,11 @@ module Google
# The group resource name.
# Example: <code>projects/my-project-123/groups/my-groupid</code>
# @param [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup] error_group_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -141,15 +141,15 @@ 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 update_project_group(name, error_group_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def update_project_group(name, error_group_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
command.request_object = error_group_object
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
@ -160,6 +160,13 @@ module Google
# <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
# Platform project ID</a>.
# Example: <code>projects/my-project-123</code>.
# @param [String] alignment_time
# [Optional] Time where the timed counts shall be aligned if rounded
# alignment is chosen. Default is 00:00 UTC.
# @param [String] service_filter_resource_type
# [Optional] The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.resource_type).
# @param [String] timed_count_duration
# [Optional] The preferred duration for a single returned `TimedCount`.
# If not set, no timed counts are returned.
@ -188,18 +195,11 @@ module Google
# [Optional] The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version).
# @param [String] service_filter_resource_type
# [Optional] The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.resource_type).
# @param [String] alignment_time
# [Optional] Time where the timed counts shall be aligned if rounded
# alignment is chosen. Default is 00:00 UTC.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -212,11 +212,13 @@ 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_project_group_stats(project_name, timed_count_duration: nil, page_token: nil, time_range_period: nil, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, service_filter_resource_type: nil, alignment_time: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_group_stats(project_name, alignment_time: nil, service_filter_resource_type: nil, timed_count_duration: nil, page_token: nil, time_range_period: nil, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse
command.params['projectName'] = project_name unless project_name.nil?
command.query['alignmentTime'] = alignment_time unless alignment_time.nil?
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
command.query['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
@ -226,10 +228,69 @@ module Google
command.query['pageSize'] = page_size unless page_size.nil?
command.query['order'] = order unless order.nil?
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
command.query['alignmentTime'] = alignment_time unless alignment_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists the specified events.
# @param [String] project_name
# [Required] The resource name of the Google Cloud Platform project. Written
# as `projects/` plus the
# [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`.
# @param [String] group_id
# [Required] The group for which events shall be returned.
# @param [String] page_token
# [Optional] A `next_page_token` provided by a previous response.
# @param [String] service_filter_service
# [Optional] The exact value to match against
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.service).
# @param [Fixnum] page_size
# [Optional] The maximum number of results to return per response.
# @param [String] service_filter_version
# [Optional] The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version).
# @param [String] service_filter_resource_type
# [Optional] The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.resource_type).
# @param [String] time_range_period
# Restricts the query to the specified time range.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse]
#
# @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_project_events(project_name, group_id: nil, page_token: nil, service_filter_service: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse
command.params['projectName'] = project_name unless project_name.nil?
command.query['groupId'] = group_id unless group_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
@ -248,11 +309,11 @@ module Google
# 6158840).
# Example: `projects/my-project-123`.
# @param [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -265,76 +326,15 @@ 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 report_project_event(project_name, reported_error_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def report_project_event(project_name, reported_error_event_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+projectName}/events:report', options)
command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent::Representation
command.request_object = reported_error_event_object
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse
command.params['projectName'] = project_name unless project_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the specified events.
# @param [String] project_name
# [Required] The resource name of the Google Cloud Platform project. Written
# as `projects/` plus the
# [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`.
# @param [String] group_id
# [Required] The group for which events shall be returned.
# @param [String] service_filter_service
# [Optional] The exact value to match against
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.service).
# @param [String] page_token
# [Optional] A `next_page_token` provided by a previous response.
# @param [Fixnum] page_size
# [Optional] The maximum number of results to return per response.
# @param [String] service_filter_version
# [Optional] The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version).
# @param [String] service_filter_resource_type
# [Optional] The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.resource_type).
# @param [String] time_range_period
# Restricts the query to the specified time range.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse]
#
# @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_project_events(project_name, group_id: nil, service_filter_service: nil, page_token: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse
command.params['projectName'] = project_name unless project_name.nil?
command.query['groupId'] = group_id unless group_id.nil?
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -22,78 +22,6 @@ module Google
module Apis
module CloudkmsV1
class DecryptResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class KeyRing
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EncryptResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestoreCryptoKeyVersionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateCryptoKeyPrimaryVersionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DataAccessOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListKeyRingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CryptoKeyVersion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudAuditOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -106,6 +34,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EncryptRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -130,13 +64,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Rule
class CryptoKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CryptoKey
class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -191,107 +125,75 @@ module Google
end
class DecryptResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :plaintext, :base64 => true, as: 'plaintext'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Representation < Google::Apis::Core::JsonRepresentation; end
class KeyRing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :name, as: 'name'
end
include Google::Apis::Core::JsonObjectSupport
end
class EncryptResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ciphertext, :base64 => true, as: 'ciphertext'
property :name, as: 'name'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
class KeyRing
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
include Google::Apis::Core::JsonObjectSupport
end
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class RestoreCryptoKeyVersionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateCryptoKeyPrimaryVersionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :crypto_key_version_id, as: 'cryptoKeyVersionId'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListKeyRingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1::KeyRing, decorator: Google::Apis::CloudkmsV1::KeyRing::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
include Google::Apis::Core::JsonObjectSupport
end
class CryptoKeyVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :state, as: 'state'
property :name, as: 'name'
property :destroy_event_time, as: 'destroyEventTime'
property :destroy_time, as: 'destroyTime'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudAuditOptions
@ -306,24 +208,36 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :title, as: 'title'
property :location, as: 'location'
property :description, as: 'description'
property :expression, as: 'expression'
end
end
class EncryptRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :plaintext, :base64 => true, as: 'plaintext'
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
property :plaintext, :base64 => true, as: 'plaintext'
end
end
class ListCryptoKeyVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
end
end
@ -340,9 +254,23 @@ module Google
end
end
class CryptoKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :purpose, as: 'purpose'
property :next_rotation_time, as: 'nextRotationTime'
property :create_time, as: 'createTime'
property :rotation_period, as: 'rotationPeriod'
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
property :name, as: 'name'
end
end
class Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :not_in, as: 'notIn'
property :description, as: 'description'
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
@ -351,20 +279,6 @@ module Google
collection :in, as: 'in'
collection :permissions, as: 'permissions'
property :action, as: 'action'
collection :not_in, as: 'notIn'
end
end
class CryptoKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :rotation_period, as: 'rotationPeriod'
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
property :name, as: 'name'
property :purpose, as: 'purpose'
property :next_rotation_time, as: 'nextRotationTime'
end
end
@ -400,10 +314,10 @@ module Google
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :name, as: 'name'
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
hash :labels, as: 'labels'
property :name, as: 'name'
end
end
@ -420,12 +334,12 @@ module Google
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values'
property :iam, as: 'iam'
property :op, as: 'op'
property :svc, as: 'svc'
property :value, as: 'value'
property :sys, as: 'sys'
property :value, as: 'value'
property :iam, as: 'iam'
collection :values, as: 'values'
end
end
@ -440,8 +354,112 @@ module Google
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_type, as: 'logType'
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class DecryptResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :plaintext, :base64 => true, as: 'plaintext'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class EncryptResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :ciphertext, :base64 => true, as: 'ciphertext'
end
end
class KeyRing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :name, as: 'name'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
end
end
class RestoreCryptoKeyVersionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class UpdateCryptoKeyPrimaryVersionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :crypto_key_version_id, as: 'cryptoKeyVersionId'
end
end
class DataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ListKeyRingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1::KeyRing, decorator: Google::Apis::CloudkmsV1::KeyRing::Representation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service, as: 'service'
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
end
end
class CryptoKeyVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
property :name, as: 'name'
property :destroy_event_time, as: 'destroyEventTime'
property :destroy_time, as: 'destroyTime'
property :create_time, as: 'createTime'
end
end
end

View File

@ -51,12 +51,12 @@ module Google
# Lists information about the supported locations for this service.
# @param [String] name
# The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] filter
# The standard list filter.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -74,14 +74,14 @@ 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_project_locations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_locations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/locations', options)
command.response_representation = Google::Apis::CloudkmsV1::ListLocationsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::ListLocationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -117,6 +117,39 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
command.response_class = Google::Apis::CloudkmsV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns metadata for a given KeyRing.
# @param [String] name
# The name of the KeyRing to get.
@ -190,14 +223,14 @@ module Google
# @param [String] parent
# Required. The resource name of the location associated with the
# KeyRings, in the format `projects/*/locations/*`.
# @param [String] page_token
# Optional pagination token, returned earlier via
# ListKeyRingsResponse.next_page_token.
# @param [Fixnum] page_size
# Optional limit on the number of KeyRings to include in the
# response. Further KeyRings can subsequently be obtained by
# including the ListKeyRingsResponse.next_page_token in a subsequent
# request. If unspecified, the server will pick an appropriate default.
# @param [String] page_token
# Optional pagination token, returned earlier via
# ListKeyRingsResponse.next_page_token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -215,13 +248,13 @@ 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_project_location_key_rings(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_location_key_rings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/keyRings', options)
command.response_representation = Google::Apis::CloudkmsV1::ListKeyRingsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::ListKeyRingsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -300,180 +333,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
command.response_class = Google::Apis::CloudkmsV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Update a CryptoKey.
# @param [String] name
# Output only. The resource name for this CryptoKey in the format
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
# @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
# @param [String] update_mask
# Required list of fields to be updated in this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
command.request_object = crypto_key_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns metadata for a given CryptoKey, as well as its
# primary CryptoKeyVersion.
# @param [String] name
# The name of the CryptoKey to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse]
#
# @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 test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Decrypt data that was protected by Encrypt.
# @param [String] name
# Required. The resource name of the CryptoKey to use for decryption.
# The server will choose the appropriate version.
# @param [Google::Apis::CloudkmsV1::DecryptRequest] decrypt_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::DecryptResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::DecryptResponse]
#
# @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 decrypt_crypto_key(name, decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:decrypt', options)
command.request_representation = Google::Apis::CloudkmsV1::DecryptRequest::Representation
command.request_object = decrypt_request_object
command.response_representation = Google::Apis::CloudkmsV1::DecryptResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::DecryptResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists CryptoKeys.
# @param [String] parent
# Required. The resource name of the KeyRing to list, in the format
@ -515,7 +374,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Encrypt data, so that it can only be recovered by a call to Decrypt.
# Encrypts data, so that it can only be recovered by a call to Decrypt.
# @param [String] name
# Required. The resource name of the CryptoKey or CryptoKeyVersion
# to use for encryption.
@ -551,41 +410,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::Policy]
#
# @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 set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
command.response_class = Google::Apis::CloudkmsV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Create a new CryptoKey within a KeyRing.
# CryptoKey.purpose is required.
# @param [String] parent
@ -625,6 +449,41 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::Policy]
#
# @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 set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
command.response_class = Google::Apis::CloudkmsV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Update the version of a CryptoKey that will be used in Encrypt
# @param [String] name
# The resource name of the CryptoKey to update.
@ -691,61 +550,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists CryptoKeyVersions.
# @param [String] parent
# Required. The resource name of the CryptoKey to list, in the format
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
# @param [String] page_token
# Optional pagination token, returned earlier via
# ListCryptoKeyVersionsResponse.next_page_token.
# @param [Fixnum] page_size
# Optional limit on the number of CryptoKeyVersions to
# include in the response. Further CryptoKeyVersions can
# subsequently be obtained by including the
# ListCryptoKeyVersionsResponse.next_page_token in a subsequent request.
# If unspecified, the server will pick an appropriate default.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse]
#
# @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_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options)
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Schedule a CryptoKeyVersion for destruction.
# Upon calling this method, CryptoKeyVersion.state will be set to
# DESTROY_SCHEDULED
# and destroy_time will be set to a time 24
# hours in the future, at which point the state
# will be changed to
# DESTROYED, and the key
# material will be irrevocably destroyed.
# Before the destroy_time is reached,
# RestoreCryptoKeyVersion may be called to reverse the process.
# Returns metadata for a given CryptoKey, as well as its
# primary CryptoKeyVersion.
# @param [String] name
# The resource name of the CryptoKeyVersion to destroy.
# @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object
# The name of the CryptoKey to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -755,125 +563,128 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
# @return [Google::Apis::CloudkmsV1::CryptoKey]
#
# @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 destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:destroy', options)
command.request_representation = Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest::Representation
command.request_object = destroy_crypto_key_version_request_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Create a new CryptoKeyVersion in a CryptoKey.
# The server will assign the next sequential id. If unset,
# state will be set to
# ENABLED.
# @param [String] parent
# Required. The name of the CryptoKey associated with
# the CryptoKeyVersions.
# @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options)
command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.request_object = crypto_key_version_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Restore a CryptoKeyVersion in the
# DESTROY_SCHEDULED,
# state.
# Upon restoration of the CryptoKeyVersion, state
# will be set to DISABLED,
# and destroy_time will be cleared.
# @param [String] name
# The resource name of the CryptoKeyVersion to restore.
# @param [Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
#
# @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 restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:restore', options)
command.request_representation = Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest::Representation
command.request_object = restore_crypto_key_version_request_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns metadata for a given CryptoKeyVersion.
# @param [String] name
# The name of the CryptoKeyVersion to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_key_ring_crypto_key_crypto_key_version(name, fields: nil, quota_user: nil, options: nil, &block)
def get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Update a CryptoKey.
# @param [String] name
# Output only. The resource name for this CryptoKey in the format
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
# @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
# @param [String] update_mask
# Required list of fields to be updated in this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
command.request_object = crypto_key_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse]
#
# @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 test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Decrypts data that was protected by Encrypt.
# @param [String] name
# Required. The resource name of the CryptoKey to use for decryption.
# The server will choose the appropriate version.
# @param [Google::Apis::CloudkmsV1::DecryptRequest] decrypt_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::DecryptResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::DecryptResponse]
#
# @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 decrypt_crypto_key(name, decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:decrypt', options)
command.request_representation = Google::Apis::CloudkmsV1::DecryptRequest::Representation
command.request_object = decrypt_request_object
command.response_representation = Google::Apis::CloudkmsV1::DecryptResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::DecryptResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -921,6 +732,195 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns metadata for a given CryptoKeyVersion.
# @param [String] name
# The name of the CryptoKeyVersion to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_key_ring_crypto_key_crypto_key_version(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists CryptoKeyVersions.
# @param [String] parent
# Required. The resource name of the CryptoKey to list, in the format
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
# @param [Fixnum] page_size
# Optional limit on the number of CryptoKeyVersions to
# include in the response. Further CryptoKeyVersions can
# subsequently be obtained by including the
# ListCryptoKeyVersionsResponse.next_page_token in a subsequent request.
# If unspecified, the server will pick an appropriate default.
# @param [String] page_token
# Optional pagination token, returned earlier via
# ListCryptoKeyVersionsResponse.next_page_token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse]
#
# @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_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options)
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Create a new CryptoKeyVersion in a CryptoKey.
# The server will assign the next sequential id. If unset,
# state will be set to
# ENABLED.
# @param [String] parent
# Required. The name of the CryptoKey associated with
# the CryptoKeyVersions.
# @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options)
command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.request_object = crypto_key_version_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Schedule a CryptoKeyVersion for destruction.
# Upon calling this method, CryptoKeyVersion.state will be set to
# DESTROY_SCHEDULED
# and destroy_time will be set to a time 24
# hours in the future, at which point the state
# will be changed to
# DESTROYED, and the key
# material will be irrevocably destroyed.
# Before the destroy_time is reached,
# RestoreCryptoKeyVersion may be called to reverse the process.
# @param [String] name
# The resource name of the CryptoKeyVersion to destroy.
# @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
#
# @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 destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:destroy', options)
command.request_representation = Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest::Representation
command.request_object = destroy_crypto_key_version_request_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Restore a CryptoKeyVersion in the
# DESTROY_SCHEDULED,
# state.
# Upon restoration of the CryptoKeyVersion, state
# will be set to DISABLED,
# and destroy_time will be cleared.
# @param [String] name
# The resource name of the CryptoKeyVersion to restore.
# @param [Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
#
# @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 restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:restore', options)
command.request_representation = Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest::Representation
command.request_object = restore_crypto_key_version_request_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected

View File

@ -26,13 +26,13 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1
VERSION = 'V1'
REVISION = '20170524'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
REVISION = '20170607'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,138 @@ module Google
module Apis
module CloudresourcemanagerV1
class GetEffectiveOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOrgPoliciesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLiensResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Constraint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestoreDefault
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClearOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UndeleteProjectRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProjectCreationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BooleanConstraint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrganizationOwner
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListProjectsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOrgPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrgPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -143,141 +275,195 @@ module Google
end
class GetEffectiveOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :constraint, as: 'constraint'
end
end
class ListOrgPoliciesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_token, as: 'pageToken'
property :page_size, as: 'pageSize'
end
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
include Google::Apis::Core::JsonObjectSupport
property :service, as: 'service'
end
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
include Google::Apis::Core::JsonObjectSupport
hash :metadata, as: 'metadata'
end
end
class ListLiensResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation
include Google::Apis::Core::JsonObjectSupport
end
end
class Constraint
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
include Google::Apis::Core::JsonObjectSupport
property :display_name, as: 'displayName'
property :description, as: 'description'
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
property :constraint_default, as: 'constraintDefault'
property :name, as: 'name'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :code, as: 'code'
property :message, as: 'message'
end
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class GetOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :constraint, as: 'constraint'
end
end
class RestoreDefault
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ClearOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :constraint, as: 'constraint'
end
end
class UndeleteProjectRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ProjectCreationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ready, as: 'ready'
property :create_time, as: 'createTime'
property :gettable, as: 'gettable'
end
end
class BooleanConstraint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
include Google::Apis::Core::JsonObjectSupport
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class OrganizationOwner
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :directory_customer_id, as: 'directoryCustomerId'
end
end
class ListProjectsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
include Google::Apis::Core::JsonObjectSupport
property :next_page_token, as: 'nextPageToken'
end
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_number, :numeric_string => true, as: 'projectNumber'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
include Google::Apis::Core::JsonObjectSupport
end
class ListOrgPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
property :create_time, as: 'createTime'
hash :labels, as: 'labels'
property :name, as: 'name'
property :project_id, as: 'projectId'
property :lifecycle_state, as: 'lifecycleState'
end
end
class SearchOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
include Google::Apis::Core::JsonObjectSupport
end
end
class ListOrgPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId'
end
end
class OrgPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update_time, as: 'updateTime'
property :version, as: 'version'
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
@ -287,6 +473,7 @@ module Google
property :constraint, as: 'constraint'
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
property :update_time, as: 'updateTime'
end
end
@ -300,12 +487,12 @@ module Google
class Lien
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :reason, as: 'reason'
property :origin, as: 'origin'
collection :restrictions, as: 'restrictions'
property :parent, as: 'parent'
property :create_time, as: 'createTime'
property :origin, as: 'origin'
property :name, as: 'name'
property :reason, as: 'reason'
collection :restrictions, as: 'restrictions'
end
end
@ -335,9 +522,9 @@ module Google
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update_mask, as: 'updateMask'
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
@ -371,11 +558,11 @@ module Google
class ListPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :all_values, as: 'allValues'
collection :allowed_values, as: 'allowedValues'
property :suggested_value, as: 'suggestedValue'
property :inherit_from_parent, as: 'inheritFromParent'
collection :denied_values, as: 'deniedValues'
property :all_values, as: 'allValues'
end
end
@ -450,195 +637,8 @@ module Google
class ResourceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :type, as: 'type'
end
end
class GetEffectiveOrgPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :constraint, as: 'constraint'
end
end
class ListOrgPoliciesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_token, as: 'pageToken'
property :page_size, as: 'pageSize'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
hash :metadata, as: 'metadata'
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service, as: 'service'
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :code, as: 'code'
property :message, as: 'message'
end
end
class ListLiensResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation
end
end
class Constraint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :description, as: 'description'
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
property :constraint_default, as: 'constraintDefault'
property :name, as: 'name'
property :version, as: 'version'
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class GetOrgPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :constraint, as: 'constraint'
end
end
class RestoreDefault
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ClearOrgPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :constraint, as: 'constraint'
end
end
class UndeleteProjectRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ProjectCreationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ready, as: 'ready'
property :create_time, as: 'createTime'
property :gettable, as: 'gettable'
end
end
class BooleanConstraint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class OrganizationOwner
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :directory_customer_id, as: 'directoryCustomerId'
end
end
class ListProjectsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :project_id, as: 'projectId'
property :lifecycle_state, as: 'lifecycleState'
property :project_number, :numeric_string => true, as: 'projectNumber'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
hash :labels, as: 'labels'
property :create_time, as: 'createTime'
end
end
class ListOrgPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
end
end
class SearchOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
end
end
class FolderOperationError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId'
property :id, as: 'id'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1
VERSION = 'V1beta1'
REVISION = '20170524'
REVISION = '20170607'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'

View File

@ -22,6 +22,286 @@ module Google
module Apis
module CloudresourcemanagerV1beta1
# The request sent to the
# GetAncestry
# method.
class GetAncestryRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A Project is a high-level Google Cloud Platform entity. It is a
# container for ACLs, APIs, App Engine Apps, VMs, and other
# Google Cloud Platform resources.
class Project
include Google::Apis::Core::Hashable
# The number uniquely identifying the project.
# Example: <code>415104041262</code>
# Read-only.
# Corresponds to the JSON property `projectNumber`
# @return [Fixnum]
attr_accessor :project_number
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an App Engine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
# Corresponds to the JSON property `parent`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :parent
# Creation time.
# Read-only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The labels associated with this Project.
# Label keys must be between 1 and 63 characters long and must conform
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
# Label values must be between 0 and 63 characters long and must conform
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
# No more than 256 labels can be associated with a given resource.
# Clients should store labels in a representation such as JSON that does not
# depend on specific characters being disallowed.
# Example: <code>"environment" : "dev"</code>
# Read-write.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The user-assigned display name of the Project.
# It must be 4 to 30 characters.
# Allowed characters are: lowercase and uppercase letters, numbers,
# hyphen, single-quote, double-quote, space, and exclamation point.
# Example: <code>My Project</code>
# Read-write.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The unique, user-assigned ID of the Project.
# It must be 6 to 30 lowercase letters, digits, or hyphens.
# It must start with a letter.
# Trailing hyphens are prohibited.
# Example: <code>tokyo-rain-123</code>
# Read-only after creation.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The Project lifecycle state.
# Read-only.
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@project_number = args[:project_number] if args.key?(:project_number)
@parent = args[:parent] if args.key?(:parent)
@create_time = args[:create_time] if args.key?(:create_time)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@project_id = args[:project_id] if args.key?(:project_id)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
end
end
# Request message for `TestIamPermissions` method.
class TestIamPermissionsRequest
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with
# wildcards (such as '*' or 'storage.*') are not allowed. For more
# information see
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# Metadata describing a long running folder operation
class FolderOperation
include Google::Apis::Core::Hashable
# The type of this operation.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
# The display name of the folder.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The resource name of the folder's parent.
# Only applicable when the operation_type is MOVE.
# Corresponds to the JSON property `sourceParent`
# @return [String]
attr_accessor :source_parent
# The resource name of the folder or organization we are either creating
# the folder under or moving the folder to.
# Corresponds to the JSON property `destinationParent`
# @return [String]
attr_accessor :destination_parent
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@display_name = args[:display_name] if args.key?(:display_name)
@source_parent = args[:source_parent] if args.key?(:source_parent)
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam).
class Policy
include Google::Apis::Core::Hashable
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a policy from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform policy updates in order to avoid race
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
attr_accessor :bindings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings)
end
end
# A classification of the Folder Operation error.
class FolderOperationError
include Google::Apis::Core::Hashable
# The type of operation error experienced.
# Corresponds to the JSON property `errorMessageId`
# @return [String]
attr_accessor :error_message_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
end
end
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an App Engine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
class ResourceId
include Google::Apis::Core::Hashable
# Required field representing the resource type this id is for.
# At present, the valid types are "project" and "organization".
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Required field for the type-specific id. This should correspond to the id
# used in the type-specific API's.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@id = args[:id] if args.key?(:id)
end
end
# Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging.
@ -72,12 +352,6 @@ module Google
class AuditConfig
include Google::Apis::Core::Hashable
# The configuration for logging of each type of permission.
# Next ID: 4
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig>]
attr_accessor :audit_log_configs
# Specifies a service that will be enabled for audit logging.
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
# `allServices` is a special value that covers all services.
@ -85,14 +359,20 @@ module Google
# @return [String]
attr_accessor :service
# The configuration for logging of each type of permission.
# Next ID: 4
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig>]
attr_accessor :audit_log_configs
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
@service = args[:service] if args.key?(:service)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
end
end
@ -118,35 +398,6 @@ module Google
end
end
# The response returned from the `ListOrganizations` method.
class ListOrganizationsResponse
include Google::Apis::Core::Hashable
# A pagination token to be used to retrieve the next page of results. If the
# result is too large to fit within the page size specified in the request,
# this field will be set with a token that can be used to fetch the next page
# of results. If this field is empty, it indicates that this response
# contains the last page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The list of Organizations that matched the list query, possibly paginated.
# Corresponds to the JSON property `organizations`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
attr_accessor :organizations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@organizations = args[:organizations] if args.key?(:organizations)
end
end
# Request message for `SetIamPolicy` method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
@ -201,6 +452,35 @@ module Google
end
end
# The response returned from the `ListOrganizations` method.
class ListOrganizationsResponse
include Google::Apis::Core::Hashable
# A pagination token to be used to retrieve the next page of results. If the
# result is too large to fit within the page size specified in the request,
# this field will be set with a token that can be used to fetch the next page
# of results. If this field is empty, it indicates that this response
# contains the last page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The list of Organizations that matched the list query, possibly paginated.
# Corresponds to the JSON property `organizations`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
attr_accessor :organizations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@organizations = args[:organizations] if args.key?(:organizations)
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
@ -260,17 +540,25 @@ module Google
end
end
# The request sent to the UndeleteProject
# method.
class UndeleteProjectRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The root node in the resource hierarchy to which a particular entity's
# (e.g., company) resources belong.
class Organization
include Google::Apis::Core::Hashable
# Timestamp when the Organization was created. Assigned by the server.
# @OutputOnly
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# The entity that owns an Organization. The lifetime of the Organization and
# all of its descendants are bound to the `OrganizationOwner`. If the
# `OrganizationOwner` is deleted, the Organization and all its descendants will
@ -308,32 +596,24 @@ module Google
# @return [String]
attr_accessor :display_name
# Timestamp when the Organization was created. Assigned by the server.
# @OutputOnly
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@owner = args[:owner] if args.key?(:owner)
@name = args[:name] if args.key?(:name)
@organization_id = args[:organization_id] if args.key?(:organization_id)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@display_name = args[:display_name] if args.key?(:display_name)
end
end
# The request sent to the UndeleteProject
# method.
class UndeleteProjectRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] if args.key?(:creation_time)
end
end
@ -343,12 +623,6 @@ module Google
class ProjectCreationStatus
include Google::Apis::Core::Hashable
# True if the project creation process is complete.
# Corresponds to the JSON property `ready`
# @return [Boolean]
attr_accessor :ready
alias_method :ready?, :ready
# Creation time of the project creation workflow.
# Corresponds to the JSON property `createTime`
# @return [String]
@ -362,15 +636,34 @@ module Google
attr_accessor :gettable
alias_method :gettable?, :gettable
# True if the project creation process is complete.
# Corresponds to the JSON property `ready`
# @return [Boolean]
attr_accessor :ready
alias_method :ready?, :ready
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ready = args[:ready] if args.key?(:ready)
@create_time = args[:create_time] if args.key?(:create_time)
@gettable = args[:gettable] if args.key?(:gettable)
@ready = args[:ready] if args.key?(:ready)
end
end
# Request message for `GetIamPolicy` method.
class GetIamPolicyRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
@ -394,19 +687,6 @@ module Google
end
end
# Request message for `GetIamPolicy` method.
class GetIamPolicyRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response from the GetAncestry method.
class GetAncestryResponse
include Google::Apis::Core::Hashable
@ -530,287 +810,6 @@ module Google
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The request sent to the
# GetAncestry
# method.
class GetAncestryRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A Project is a high-level Google Cloud Platform entity. It is a
# container for ACLs, APIs, App Engine Apps, VMs, and other
# Google Cloud Platform resources.
class Project
include Google::Apis::Core::Hashable
# The Project lifecycle state.
# Read-only.
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
# The number uniquely identifying the project.
# Example: <code>415104041262</code>
# Read-only.
# Corresponds to the JSON property `projectNumber`
# @return [Fixnum]
attr_accessor :project_number
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an App Engine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
# Corresponds to the JSON property `parent`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :parent
# Creation time.
# Read-only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The labels associated with this Project.
# Label keys must be between 1 and 63 characters long and must conform
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
# Label values must be between 0 and 63 characters long and must conform
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
# No more than 256 labels can be associated with a given resource.
# Clients should store labels in a representation such as JSON that does not
# depend on specific characters being disallowed.
# Example: <code>"environment" : "dev"</code>
# Read-write.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The user-assigned display name of the Project.
# It must be 4 to 30 characters.
# Allowed characters are: lowercase and uppercase letters, numbers,
# hyphen, single-quote, double-quote, space, and exclamation point.
# Example: <code>My Project</code>
# Read-write.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The unique, user-assigned ID of the Project.
# It must be 6 to 30 lowercase letters, digits, or hyphens.
# It must start with a letter.
# Trailing hyphens are prohibited.
# Example: <code>tokyo-rain-123</code>
# Read-only after creation.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@project_number = args[:project_number] if args.key?(:project_number)
@parent = args[:parent] if args.key?(:parent)
@create_time = args[:create_time] if args.key?(:create_time)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@project_id = args[:project_id] if args.key?(:project_id)
end
end
# Request message for `TestIamPermissions` method.
class TestIamPermissionsRequest
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with
# wildcards (such as '*' or 'storage.*') are not allowed. For more
# information see
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam).
class Policy
include Google::Apis::Core::Hashable
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`.
# Multiple `bindings` must not be specified for the same `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a policy from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform policy updates in order to avoid race
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
end
end
# Metadata describing a long running folder operation
class FolderOperation
include Google::Apis::Core::Hashable
# The display name of the folder.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The resource name of the folder's parent.
# Only applicable when the operation_type is MOVE.
# Corresponds to the JSON property `sourceParent`
# @return [String]
attr_accessor :source_parent
# The resource name of the folder or organization we are either creating
# the folder under or moving the folder to.
# Corresponds to the JSON property `destinationParent`
# @return [String]
attr_accessor :destination_parent
# The type of this operation.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@source_parent = args[:source_parent] if args.key?(:source_parent)
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
@operation_type = args[:operation_type] if args.key?(:operation_type)
end
end
# A classification of the Folder Operation error.
class FolderOperationError
include Google::Apis::Core::Hashable
# The type of operation error experienced.
# Corresponds to the JSON property `errorMessageId`
# @return [String]
attr_accessor :error_message_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
end
end
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an App Engine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
class ResourceId
include Google::Apis::Core::Hashable
# Required field representing the resource type this id is for.
# At present, the valid types are "project" and "organization".
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Required field for the type-specific id. This should correspond to the id
# used in the type-specific API's.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@id = args[:id] if args.key?(:id)
end
end
end
end
end

View File

@ -22,6 +22,48 @@ module Google
module Apis
module CloudresourcemanagerV1beta1
class GetAncestryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -34,13 +76,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListOrganizationsResponse
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class ListOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -58,13 +100,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Organization
class UndeleteProjectRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UndeleteProjectRequest
class Organization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -76,13 +118,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -113,53 +155,75 @@ module Google
end
class GetAncestryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_number, :numeric_string => true, as: 'projectNumber'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
include Google::Apis::Core::JsonObjectSupport
property :create_time, as: 'createTime'
hash :labels, as: 'labels'
property :name, as: 'name'
property :project_id, as: 'projectId'
property :lifecycle_state, as: 'lifecycleState'
end
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class FolderOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_type, as: 'operationType'
property :display_name, as: 'displayName'
property :source_parent, as: 'sourceParent'
property :destination_parent, as: 'destinationParent'
end
end
include Google::Apis::Core::JsonObjectSupport
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
end
end
class FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId'
end
end
class ResourceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :id, as: 'id'
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service, as: 'service'
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig::Representation
property :service, as: 'service'
end
end
@ -171,15 +235,6 @@ module Google
end
end
class ListOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -189,6 +244,15 @@ module Google
end
end
class ListOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -203,31 +267,37 @@ module Google
end
end
class Organization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
property :name, as: 'name'
property :organization_id, as: 'organizationId'
property :lifecycle_state, as: 'lifecycleState'
property :display_name, as: 'displayName'
end
end
class UndeleteProjectRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Organization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
property :name, as: 'name'
property :organization_id, as: 'organizationId'
property :lifecycle_state, as: 'lifecycleState'
property :display_name, as: 'displayName'
property :creation_time, as: 'creationTime'
end
end
class ProjectCreationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ready, as: 'ready'
property :create_time, as: 'createTime'
property :gettable, as: 'gettable'
property :ready, as: 'ready'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
@ -238,12 +308,6 @@ module Google
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GetAncestryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -275,70 +339,6 @@ module Google
property :next_page_token, as: 'nextPageToken'
end
end
class GetAncestryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lifecycle_state, as: 'lifecycleState'
property :project_number, :numeric_string => true, as: 'projectNumber'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
property :create_time, as: 'createTime'
hash :labels, as: 'labels'
property :name, as: 'name'
property :project_id, as: 'projectId'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
end
end
class FolderOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :source_parent, as: 'sourceParent'
property :destination_parent, as: 'destinationParent'
property :operation_type, as: 'operationType'
end
end
class FolderOperationError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId'
end
end
class ResourceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :id, as: 'id'
end
end
end
end
end

View File

@ -48,6 +48,40 @@ module Google
@batch_path = 'batch'
end
# Returns permissions that a caller has on the specified Project.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
#
# @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 test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Marks the Project identified by the specified
# `project_id` (for example, `my-project-123`) for deletion.
# This method will only affect the Project if the following criteria are met:
@ -70,11 +104,11 @@ module Google
# @param [String] project_id
# The Project ID (for example, `foo-bar-123`).
# Required.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -87,13 +121,13 @@ 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 delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -127,11 +161,11 @@ module Google
# The server can return fewer Projects than requested.
# If unspecified, server picks an appropriate default.
# Optional.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -144,15 +178,15 @@ 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_projects(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
def list_projects(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/projects', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -165,11 +199,11 @@ module Google
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
# @param [Boolean] use_legacy_stack
# A safety hatch to opt out of the new reliable project creation process.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -182,15 +216,15 @@ 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 create_project(project_object = nil, use_legacy_stack: nil, quota_user: nil, fields: nil, options: nil, &block)
def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -210,12 +244,13 @@ module Google
# `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
# + Membership changes that leave the project without any owners that have
# accepted the Terms of Service (ToS) will be rejected.
# + There must be at least one owner who has accepted the Terms of
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
# remove the last ToS-accepted owner from the policy will fail. This
# restriction also applies to legacy projects that no longer have owners
# who have accepted the ToS. Edits to IAM policies will be rejected until
# the lack of a ToS-accepting owner is rectified.
# + If the project is not part of an organization, there must be at least
# one owner who has accepted the Terms of Service (ToS) agreement in the
# policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
# from the policy will fail. This restriction also applies to legacy
# projects that no longer have owners who have accepted the ToS. Edits to
# IAM policies will be rejected until the lack of a ToS-accepting owner is
# rectified.
# + Calling this method requires enabling the App Engine Admin API.
# Note: Removing service accounts from policies or changing their roles
# can render services completely inoperable. It is important to understand
@ -225,11 +260,11 @@ module Google
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -242,15 +277,15 @@ 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 set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -260,11 +295,11 @@ module Google
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -277,15 +312,15 @@ 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 get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -299,11 +334,11 @@ module Google
# The project ID (for example, `foo-bar-123`).
# Required.
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -316,15 +351,15 @@ 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 undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
command.request_object = undelete_project_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -334,11 +369,11 @@ module Google
# @param [String] project_id
# The Project ID (for example, `my-project-123`).
# Required.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -351,13 +386,13 @@ 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 get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -368,11 +403,11 @@ module Google
# The Project ID (for example, `my-project-123`).
# Required.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -385,15 +420,15 @@ 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 get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
command.request_object = get_ancestry_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -404,11 +439,11 @@ module Google
# The project ID (for example, `my-project-123`).
# Required.
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -421,190 +456,15 @@ 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 update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified Project.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
#
# @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 test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for an Organization resource. May be empty
# if no such policy or resource exists. The `resource` field should be the
# organization's resource name, e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Fetches an Organization resource identified by the specified resource name.
# @param [String] name
# The resource name of the Organization to fetch, e.g. "organizations/1234".
# @param [String] organization_id
# The id of the Organization resource to fetch.
# This field is deprecated and will be removed in v1. Use name instead.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
command.params['name'] = name unless name.nil?
command.query['organizationId'] = organization_id unless organization_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Updates an Organization resource identified by the specified resource name.
# @param [String] name
# Output Only. The resource name of the organization. This is the
# organization's relative path in the API. Its format is
# "organizations/[organization_id]". For example, "organizations/1234".
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.request_object = organization_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified Organization.
# The `resource` field should be the organization's resource name,
# e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
#
# @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 test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
@ -629,11 +489,11 @@ module Google
# directory_customer_id` equal to `123456789`.|
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
# This field is optional.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -646,15 +506,15 @@ 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_organizations(page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
def list_organizations(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/organizations', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -665,11 +525,11 @@ module Google
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -682,15 +542,156 @@ 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 set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for an Organization resource. May be empty
# if no such policy or resource exists. The `resource` field should be the
# organization's resource name, e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetches an Organization resource identified by the specified resource name.
# @param [String] name
# The resource name of the Organization to fetch, e.g. "organizations/1234".
# @param [String] organization_id
# The id of the Organization resource to fetch.
# This field is deprecated and will be removed in v1. Use name instead.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization(name, organization_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
command.params['name'] = name unless name.nil?
command.query['organizationId'] = organization_id unless organization_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an Organization resource identified by the specified resource name.
# @param [String] name
# Output Only. The resource name of the organization. This is the
# organization's relative path in the API. Its format is
# "organizations/[organization_id]". For example, "organizations/1234".
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_organization(name, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.request_object = organization_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified Organization.
# The `resource` field should be the organization's resource name,
# e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
#
# @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 test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

View File

@ -35,16 +35,16 @@ module Google
#
# @see https://cloud.google.com/trace
class CloudTraceService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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.
attr_accessor :quota_user
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
def initialize
super('https://cloudtrace.googleapis.com/', '')
@batch_path = 'batch'
@ -58,11 +58,11 @@ module Google
# @param [String] project_id
# ID of the Cloud project where the trace data is stored.
# @param [Google::Apis::CloudtraceV1::Traces] traces_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -75,21 +75,35 @@ 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 patch_project_traces(project_id, traces_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def patch_project_traces(project_id, traces_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/projects/{projectId}/traces', options)
command.request_representation = Google::Apis::CloudtraceV1::Traces::Representation
command.request_object = traces_object
command.response_representation = Google::Apis::CloudtraceV1::Empty::Representation
command.response_class = Google::Apis::CloudtraceV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns of a list of traces that match the specified filter conditions.
# @param [String] project_id
# ID of the Cloud project where the trace data is stored.
# @param [String] view
# Type of data returned for traces in the list. Optional. Default is
# `MINIMAL`.
# @param [String] order_by
# Field used to sort the returned traces. Optional.
# Can be one of the following:
# * `trace_id`
# * `name` (`name` field of root span in the trace)
# * `duration` (difference between `end_time` and `start_time` fields of
# the root span)
# * `start` (`start_time` field of the root span)
# Descending order can be specified by appending `desc` to the sort field
# (for example, `name desc`).
# Only one sort field is permitted.
# @param [String] filter
# An optional filter against labels for the request.
# By default, searches use prefix matching. To specify exact match, prepend
@ -132,25 +146,11 @@ module Google
# Maximum number of traces to return. If not specified or <= 0, the
# implementation selects a reasonable value. The implementation may
# return fewer traces than the requested page size. Optional.
# @param [String] view
# Type of data returned for traces in the list. Optional. Default is
# `MINIMAL`.
# @param [String] order_by
# Field used to sort the returned traces. Optional.
# Can be one of the following:
# * `trace_id`
# * `name` (`name` field of root span in the trace)
# * `duration` (difference between `end_time` and `start_time` fields of
# the root span)
# * `start` (`start_time` field of the root span)
# Descending order can be specified by appending `desc` to the sort field
# (for example, `name desc`).
# Only one sort field is permitted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -163,20 +163,20 @@ 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_project_traces(project_id, filter: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, view: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_traces(project_id, view: nil, order_by: nil, filter: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['view'] = view unless view.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['filter'] = filter unless filter.nil?
command.query['endTime'] = end_time unless end_time.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startTime'] = start_time unless start_time.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['view'] = view unless view.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
@ -185,11 +185,11 @@ module Google
# ID of the Cloud project where the trace data is stored.
# @param [String] trace_id
# ID of the trace to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -202,22 +202,22 @@ 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 get_project_trace(project_id, trace_id, fields: nil, quota_user: nil, options: nil, &block)
def get_project_trace(project_id, trace_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options)
command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation
command.response_class = Google::Apis::CloudtraceV1::Trace
command.params['projectId'] = project_id unless project_id.nil?
command.params['traceId'] = trace_id unless trace_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil?
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20170530'
REVISION = '20170531'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -385,6 +385,24 @@ module Google
# @return [String]
attr_accessor :kind
# A fingerprint for the labels being applied to this Address, which is
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# To see the latest fingerprint, make a get() request to retrieve an Address.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this Address resource. These can be later modified by the
# setLabels method. Each label key/value must comply with RFC1035. Label values
# may be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
@ -431,6 +449,8 @@ module Google
@id = args[:id] if args.key?(:id)
@ip_version = args[:ip_version] if args.key?(:ip_version)
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@ -2051,6 +2071,13 @@ module Google
class Binding
include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence" description: "Determines whether the request
# has a user account" expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::ComputeBeta::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. `
# members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is on the
@ -2081,6 +2108,7 @@ module Google
# Update properties of this object
def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
@ -3373,6 +3401,51 @@ module Google
end
end
# Represents an expression text. Example:
# title: "User account presence" description: "Determines whether the request
# has a user account" expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in [Common Expression Language](http://
# go/api-expr) syntax.
# The application context of the containing message determines which well-known
# feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing its
# purpose. This can be used e.g. in UIs which allow to enter the expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# Represents a Firewall resource.
class Firewall
include Google::Apis::Core::Hashable
@ -3692,6 +3765,25 @@ module Google
# @return [String]
attr_accessor :kind
# A fingerprint for the labels being applied to this resource, which is
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# To see the latest fingerprint, make a get() request to retrieve a
# ForwardingRule.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this resource. These can be later modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# This signifies what the ForwardingRule will be used for and can only take the
# following values: INTERNAL, EXTERNAL The value of INTERNAL means that this
# will be used for Internal Network Load Balancing (TCP, UDP). The value of
@ -3728,7 +3820,8 @@ module Google
# Some types of forwarding target have constraints on the acceptable ports:
# - TargetHttpProxy: 80, 8080
# - TargetHttpsProxy: 443
# - TargetSslProxy: 443
# - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995
# - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995
# - TargetVpnGateway: 500, 4500
# -
# Corresponds to the JSON property `portRange`
@ -3809,6 +3902,8 @@ module Google
@id = args[:id] if args.key?(:id)
@ip_version = args[:ip_version] if args.key?(:ip_version)
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
@load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@ -4050,7 +4145,7 @@ module Google
class GuestOsFeature
include Google::Apis::Core::Hashable
# The type of supported feature. Currenty only VIRTIO_SCSI_MULTIQUEUE is
# The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is
# supported. For newer Windows images, the server might also populate this
# property with the value WINDOWS to indicate that this is a Windows image. This
# value is purely informational and does not enable or disable any features.
@ -4871,6 +4966,27 @@ module Google
# @return [String]
attr_accessor :source_disk_id
# URL of the source image used to create this image. This can be a full or valid
# partial URL. You must provide exactly one of:
# - this property, or
# - the rawDisk.source property, or
# - the sourceDisk property in order to create an image.
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
# Represents a customer-supplied encryption key
# Corresponds to the JSON property `sourceImageEncryptionKey`
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key
# [Output Only] The ID value of the image used to create this image. This value
# may be used to determine whether the image was taken from the current or a
# previous instance of a given image name.
# Corresponds to the JSON property `sourceImageId`
# @return [String]
attr_accessor :source_image_id
# The type of the image used to create this disk. The default and only value is
# RAW
# Corresponds to the JSON property `sourceType`
@ -4910,6 +5026,9 @@ module Google
@source_disk = args[:source_disk] if args.key?(:source_disk)
@source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key)
@source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id)
@source_image = args[:source_image] if args.key?(:source_image)
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
@source_image_id = args[:source_image_id] if args.key?(:source_image_id)
@source_type = args[:source_type] if args.key?(:source_type)
@status = args[:status] if args.key?(:status)
end
@ -6432,7 +6551,7 @@ module Google
end
#
class InstanceMoveRequest
class MoveInstanceRequest
include Google::Apis::Core::Hashable
# The URL of the destination zone to move the instance. This can be a full or
@ -6957,8 +7076,8 @@ module Google
class License
include Google::Apis::Core::Hashable
# [Output Only] If true, the customer will be charged license fee for running
# software that contains this license on an instance.
# [Output Only] Deprecated. This field no longer reflects whether a license
# charges a usage fee.
# Corresponds to the JSON property `chargesUseFee`
# @return [Boolean]
attr_accessor :charges_use_fee
@ -8522,9 +8641,8 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`. Multiple `bindings` must not be
# specified for the same `role`. `bindings` with no members will result in an
# error.
# Associates a list of `members` to a `role`. `bindings` with no members will
# result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::ComputeBeta::Binding>]
attr_accessor :bindings
@ -9361,6 +9479,36 @@ module Google
end
end
#
class RegionSetLabelsRequest
include Google::Apis::Core::Hashable
# The fingerprint of the previous set of labels for this resource, used to
# detect conflicts. The fingerprint is initially generated by Compute Engine and
# changes after every request to modify or update labels. You must always
# provide an up-to-date fingerprint hash in order to update or change labels.
# Make a get() request to the resource to get the latest fingerprint.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :label_fingerprint
# The labels to set for this resource.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
end
end
# Commitment for a particular resource (a Commitment is composed of one or more
# of these).
class ResourceCommitment
@ -9413,7 +9561,7 @@ module Google
# Represents a Route resource. A route specifies how certain packets should be
# handled by the network. Routes are associated with instances by tags and the
# set of routes for a particular instance is called its routing table.
# For each packet leaving a instance, the system searches that instance's
# For each packet leaving an instance, the system searches that instance's
# routing table for a single best matching route. Routes match packets by
# destination IP address, preferring smaller or more specific ranges over larger
# ones. If there is a tie, the system selects the route with the smallest
@ -11970,7 +12118,7 @@ module Google
end
#
class TargetPoolsAddHealthCheckRequest
class AddTargetPoolsHealthCheckRequest
include Google::Apis::Core::Hashable
# The HttpHealthCheck to add to the target pool.
@ -11989,7 +12137,7 @@ module Google
end
#
class TargetPoolsAddInstanceRequest
class AddTargetPoolsInstanceRequest
include Google::Apis::Core::Hashable
# A full or partial URL to an instance to add to this target pool. This can be a
@ -12013,7 +12161,7 @@ module Google
end
#
class TargetPoolsRemoveHealthCheckRequest
class RemoveTargetPoolsHealthCheckRequest
include Google::Apis::Core::Hashable
# Health check URL to be removed. This can be a full or valid partial URL. For
@ -12037,7 +12185,7 @@ module Google
end
#
class TargetPoolsRemoveInstanceRequest
class RemoveTargetPoolsInstanceRequest
include Google::Apis::Core::Hashable
# URLs of the instances to be removed from target pool.
@ -13141,7 +13289,7 @@ module Google
end
#
class UrlMapsValidateRequest
class ValidateUrlMapsRequest
include Google::Apis::Core::Hashable
# A UrlMap resource. This resource defines the mapping from URL to the
@ -13162,7 +13310,7 @@ module Google
end
#
class UrlMapsValidateResponse
class ValidateUrlMapsResponse
include Google::Apis::Core::Hashable
# Message representing the validation result for a UrlMap.

View File

@ -442,6 +442,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Firewall
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -784,7 +790,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstanceMoveRequest
class MoveInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -1228,6 +1234,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionSetLabelsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceCommitment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1552,25 +1564,25 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TargetPoolsAddHealthCheckRequest
class AddTargetPoolsHealthCheckRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetPoolsAddInstanceRequest
class AddTargetPoolsInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetPoolsRemoveHealthCheckRequest
class RemoveTargetPoolsHealthCheckRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetPoolsRemoveInstanceRequest
class RemoveTargetPoolsInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -1744,13 +1756,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UrlMapsValidateRequest
class ValidateUrlMapsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlMapsValidateResponse
class ValidateUrlMapsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -1923,6 +1935,8 @@ module Google
property :id, :numeric_string => true, as: 'id'
property :ip_version, as: 'ipVersion'
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink'
@ -2314,6 +2328,8 @@ module Google
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::ComputeBeta::Expr, decorator: Google::Apis::ComputeBeta::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
@ -2628,6 +2644,16 @@ module Google
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class Firewall
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2690,6 +2716,8 @@ module Google
property :id, :numeric_string => true, as: 'id'
property :ip_version, as: 'ipVersion'
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
property :load_balancing_scheme, as: 'loadBalancingScheme'
property :name, as: 'name'
property :network, as: 'network'
@ -2947,6 +2975,10 @@ module Google
property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
property :source_disk_id, as: 'sourceDiskId'
property :source_image, as: 'sourceImage'
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
property :source_image_id, as: 'sourceImageId'
property :source_type, as: 'sourceType'
property :status, as: 'status'
end
@ -3324,7 +3356,7 @@ module Google
end
end
class InstanceMoveRequest
class MoveInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :destination_zone, as: 'destinationZone'
@ -4099,6 +4131,14 @@ module Google
end
end
class RegionSetLabelsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
end
end
class ResourceCommitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4720,7 +4760,7 @@ module Google
end
end
class TargetPoolsAddHealthCheckRequest
class AddTargetPoolsHealthCheckRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :health_checks, as: 'healthChecks', class: Google::Apis::ComputeBeta::HealthCheckReference, decorator: Google::Apis::ComputeBeta::HealthCheckReference::Representation
@ -4728,7 +4768,7 @@ module Google
end
end
class TargetPoolsAddInstanceRequest
class AddTargetPoolsInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances', class: Google::Apis::ComputeBeta::InstanceReference, decorator: Google::Apis::ComputeBeta::InstanceReference::Representation
@ -4736,7 +4776,7 @@ module Google
end
end
class TargetPoolsRemoveHealthCheckRequest
class RemoveTargetPoolsHealthCheckRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :health_checks, as: 'healthChecks', class: Google::Apis::ComputeBeta::HealthCheckReference, decorator: Google::Apis::ComputeBeta::HealthCheckReference::Representation
@ -4744,7 +4784,7 @@ module Google
end
end
class TargetPoolsRemoveInstanceRequest
class RemoveTargetPoolsInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances', class: Google::Apis::ComputeBeta::InstanceReference, decorator: Google::Apis::ComputeBeta::InstanceReference::Representation
@ -5038,7 +5078,7 @@ module Google
end
end
class UrlMapsValidateRequest
class ValidateUrlMapsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource, as: 'resource', class: Google::Apis::ComputeBeta::UrlMap, decorator: Google::Apis::ComputeBeta::UrlMap::Representation
@ -5046,7 +5086,7 @@ module Google
end
end
class UrlMapsValidateResponse
class ValidateUrlMapsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :result, as: 'result', class: Google::Apis::ComputeBeta::UrlMapValidationResult, decorator: Google::Apis::ComputeBeta::UrlMapValidationResult::Representation

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20170530'
REVISION = '20170531'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,287 @@ module Google
module Apis
module ComputeV1
# A specification of the type and number of accelerator cards attached to the
# instance.
class AcceleratorConfig
include Google::Apis::Core::Hashable
# The number of the guest accelerator cards exposed to this instance.
# Corresponds to the JSON property `acceleratorCount`
# @return [Fixnum]
attr_accessor :accelerator_count
# Full or partial URL of the accelerator type resource to expose to this
# instance.
# Corresponds to the JSON property `acceleratorType`
# @return [String]
attr_accessor :accelerator_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
end
end
# An Accelerator Type resource.
class AcceleratorType
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# Deprecation status for a public resource.
# Corresponds to the JSON property `deprecated`
# @return [Google::Apis::ComputeV1::DeprecationStatus]
attr_accessor :deprecated
# [Output Only] An optional textual description of the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] The type of the resource. Always compute#acceleratorType for
# accelerator types.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] Maximum accelerator cards allowed per instance.
# Corresponds to the JSON property `maximumCardsPerInstance`
# @return [Fixnum]
attr_accessor :maximum_cards_per_instance
# [Output Only] Name of the resource.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] Server-defined fully-qualified URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] The name of the zone where the accelerator type resides, such as
# us-central1-a.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@deprecated = args[:deprecated] if args.key?(:deprecated)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@maximum_cards_per_instance = args[:maximum_cards_per_instance] if args.key?(:maximum_cards_per_instance)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
@zone = args[:zone] if args.key?(:zone)
end
end
#
class AcceleratorTypeAggregatedList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# [Output Only] A map of scoped accelerator type lists.
# Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::ComputeV1::AcceleratorTypesScopedList>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#acceleratorTypeAggregatedList
# for aggregated lists of accelerator types.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# Contains a list of accelerator types.
class AcceleratorTypeList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of AcceleratorType resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::AcceleratorType>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#acceleratorTypeList for lists
# of accelerator types.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] A token used to continue a truncated list request.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
#
class AcceleratorTypesScopedList
include Google::Apis::Core::Hashable
# [Output Only] List of accelerator types contained in this scope.
# Corresponds to the JSON property `acceleratorTypes`
# @return [Array<Google::Apis::ComputeV1::AcceleratorType>]
attr_accessor :accelerator_types
# [Output Only] An informational warning that appears when the accelerator types
# list is empty.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeV1::AcceleratorTypesScopedList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@accelerator_types = args[:accelerator_types] if args.key?(:accelerator_types)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] An informational warning that appears when the accelerator types
# list is empty.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeV1::AcceleratorTypesScopedList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
# An access configuration attached to an instance's network interface. Only one
# access config per instance is supported.
class AccessConfig
@ -93,6 +374,12 @@ module Google
# @return [Fixnum]
attr_accessor :id
# The IP Version that will be used by this address. Valid options are IPV4 or
# IPV6. This can only be specified for a global address.
# Corresponds to the JSON property `ipVersion`
# @return [String]
attr_accessor :ip_version
# [Output Only] Type of the resource. Always compute#address for addresses.
# Corresponds to the JSON property `kind`
# @return [String]
@ -142,6 +429,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@ip_version = args[:ip_version] if args.key?(:ip_version)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@ -2118,7 +2406,7 @@ module Google
end
#
class DiskMoveRequest
class MoveDiskRequest
include Google::Apis::Core::Hashable
# The URL of the destination zone to move the disk. This can be a full or
@ -2765,6 +3053,12 @@ module Google
# @return [Fixnum]
attr_accessor :id
# The IP Version that will be used by this forwarding rule. Valid options are
# IPV4 or IPV6. This can only be specified for a global forwarding rule.
# Corresponds to the JSON property `ipVersion`
# @return [String]
attr_accessor :ip_version
# [Output Only] Type of the resource. Always compute#forwardingRule for
# Forwarding Rule resources.
# Corresponds to the JSON property `kind`
@ -2807,7 +3101,8 @@ module Google
# Some types of forwarding target have constraints on the acceptable ports:
# - TargetHttpProxy: 80, 8080
# - TargetHttpsProxy: 443
# - TargetSslProxy: 443
# - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995
# - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995
# - TargetVpnGateway: 500, 4500
# -
# Corresponds to the JSON property `portRange`
@ -2867,6 +3162,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@ip_version = args[:ip_version] if args.key?(:ip_version)
@kind = args[:kind] if args.key?(:kind)
@load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
@name = args[:name] if args.key?(:name)
@ -3107,7 +3403,7 @@ module Google
class GuestOsFeature
include Google::Apis::Core::Hashable
# The type of supported feature. Currenty only VIRTIO_SCSI_MULTIQUEUE is
# The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is
# supported. For newer Windows images, the server might also populate this
# property with the value WINDOWS to indicate that this is a Windows image. This
# value is purely informational and does not enable or disable any features.
@ -4083,6 +4379,11 @@ module Google
# @return [Array<Google::Apis::ComputeV1::AttachedDisk>]
attr_accessor :disks
# List of the type and count of accelerator cards attached to the instance.
# Corresponds to the JSON property `guestAccelerators`
# @return [Array<Google::Apis::ComputeV1::AcceleratorConfig>]
attr_accessor :guest_accelerators
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
@ -4209,6 +4510,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@disks = args[:disks] if args.key?(:disks)
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@ -5296,7 +5598,7 @@ module Google
end
#
class InstanceMoveRequest
class MoveInstanceRequest
include Google::Apis::Core::Hashable
# The URL of the destination zone to move the instance. This can be a full or
@ -5356,6 +5658,12 @@ module Google
# @return [Array<Google::Apis::ComputeV1::AttachedDisk>]
attr_accessor :disks
# A list of guest accelerator cards' type and count to use for instances created
# from the instance template.
# Corresponds to the JSON property `guestAccelerators`
# @return [Array<Google::Apis::ComputeV1::AcceleratorConfig>]
attr_accessor :guest_accelerators
# Labels to apply to instances that are created from this template.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
@ -5402,6 +5710,7 @@ module Google
@can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
@description = args[:description] if args.key?(:description)
@disks = args[:disks] if args.key?(:disks)
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
@labels = args[:labels] if args.key?(:labels)
@machine_type = args[:machine_type] if args.key?(:machine_type)
@metadata = args[:metadata] if args.key?(:metadata)
@ -5695,6 +6004,25 @@ module Google
end
end
#
class InstancesSetMachineResourcesRequest
include Google::Apis::Core::Hashable
# List of the type and count of accelerator cards attached to the instance.
# Corresponds to the JSON property `guestAccelerators`
# @return [Array<Google::Apis::ComputeV1::AcceleratorConfig>]
attr_accessor :guest_accelerators
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
end
end
#
class InstancesSetMachineTypeRequest
include Google::Apis::Core::Hashable
@ -5769,8 +6097,8 @@ module Google
class License
include Google::Apis::Core::Hashable
# [Output Only] If true, the customer will be charged license fee for running
# software that contains this license on an instance.
# [Output Only] Deprecated. This field no longer reflects whether a license
# charges a usage fee.
# Corresponds to the JSON property `chargesUseFee`
# @return [Boolean]
attr_accessor :charges_use_fee
@ -6413,6 +6741,11 @@ module Google
# @return [String]
attr_accessor :name
# [Output Only] List of network peerings for the resource.
# Corresponds to the JSON property `peerings`
# @return [Array<Google::Apis::ComputeV1::NetworkPeering>]
attr_accessor :peerings
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -6438,6 +6771,7 @@ module Google
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@peerings = args[:peerings] if args.key?(:peerings)
@self_link = args[:self_link] if args.key?(:self_link)
@subnetworks = args[:subnetworks] if args.key?(:subnetworks)
end
@ -6566,6 +6900,117 @@ module Google
end
end
# A network peering attached to a network resource. The message includes the
# peering name, peer network, peering state, and a flag indicating whether
# Google Compute Engine should automatically create routes for the peering.
class NetworkPeering
include Google::Apis::Core::Hashable
# Whether full mesh connectivity is created and managed automatically. When it
# is set to true, Google Compute Engine will automatically create and manage the
# routes between two networks when the state is ACTIVE. Otherwise, user needs to
# create routes manually to route packets to peer network.
# Corresponds to the JSON property `autoCreateRoutes`
# @return [Boolean]
attr_accessor :auto_create_routes
alias_method :auto_create_routes?, :auto_create_routes
# Name of this peering. Provided by the client when the peering is created. The
# name must comply with RFC1035. Specifically, the name must be 1-63 characters
# long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the
# first character must be a lowercase letter, and all the following characters
# must be a dash, lowercase letter, or digit, except the last character, which
# cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The URL of the peer network. It can be either full URL or partial URL. The
# peer network may belong to a different project. If the partial URL does not
# contain project, it is assumed that the peer network is in the same project as
# the current network.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# [Output Only] State for the peering.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# [Output Only] Details about the current state of the peering.
# Corresponds to the JSON property `stateDetails`
# @return [String]
attr_accessor :state_details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_create_routes = args[:auto_create_routes] if args.key?(:auto_create_routes)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@state = args[:state] if args.key?(:state)
@state_details = args[:state_details] if args.key?(:state_details)
end
end
#
class NetworksAddPeeringRequest
include Google::Apis::Core::Hashable
# Whether Google Compute Engine manages the routes automatically.
# Corresponds to the JSON property `autoCreateRoutes`
# @return [Boolean]
attr_accessor :auto_create_routes
alias_method :auto_create_routes?, :auto_create_routes
# Name of the peering, which should conform to RFC1035.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# URL of the peer network. It can be either full URL or partial URL. The peer
# network may belong to a different project. If the partial URL does not contain
# project, it is assumed that the peer network is in the same project as the
# current network.
# Corresponds to the JSON property `peerNetwork`
# @return [String]
attr_accessor :peer_network
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_create_routes = args[:auto_create_routes] if args.key?(:auto_create_routes)
@name = args[:name] if args.key?(:name)
@peer_network = args[:peer_network] if args.key?(:peer_network)
end
end
#
class NetworksRemovePeeringRequest
include Google::Apis::Core::Hashable
# Name of the peering, which should conform to RFC1035.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
end
end
# An Operation resource, used to manage asynchronous API requests.
class Operation
include Google::Apis::Core::Hashable
@ -7855,7 +8300,7 @@ module Google
# Represents a Route resource. A route specifies how certain packets should be
# handled by the network. Routes are associated with instances by tags and the
# set of routes for a particular instance is called its routing table.
# For each packet leaving a instance, the system searches that instance's
# For each packet leaving an instance, the system searches that instance's
# routing table for a single best matching route. Routes match packets by
# destination IP address, preferring smaller or more specific ranges over larger
# ones. If there is a tie, the system selects the route with the smallest
@ -7937,6 +8382,12 @@ module Google
# @return [String]
attr_accessor :next_hop_network
# [Output Only] The network peering name that should handle matching packets,
# which should conform to RFC1035.
# Corresponds to the JSON property `nextHopPeering`
# @return [String]
attr_accessor :next_hop_peering
# The URL to a VpnTunnel that should handle matching packets.
# Corresponds to the JSON property `nextHopVpnTunnel`
# @return [String]
@ -7983,6 +8434,7 @@ module Google
@next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance)
@next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip)
@next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network)
@next_hop_peering = args[:next_hop_peering] if args.key?(:next_hop_peering)
@next_hop_vpn_tunnel = args[:next_hop_vpn_tunnel] if args.key?(:next_hop_vpn_tunnel)
@priority = args[:priority] if args.key?(:priority)
@self_link = args[:self_link] if args.key?(:self_link)
@ -10306,7 +10758,7 @@ module Google
end
#
class TargetPoolsAddHealthCheckRequest
class AddTargetPoolsHealthCheckRequest
include Google::Apis::Core::Hashable
# The HttpHealthCheck to add to the target pool.
@ -10325,7 +10777,7 @@ module Google
end
#
class TargetPoolsAddInstanceRequest
class AddTargetPoolsInstanceRequest
include Google::Apis::Core::Hashable
# A full or partial URL to an instance to add to this target pool. This can be a
@ -10349,7 +10801,7 @@ module Google
end
#
class TargetPoolsRemoveHealthCheckRequest
class RemoveTargetPoolsHealthCheckRequest
include Google::Apis::Core::Hashable
# Health check URL to be removed. This can be a full or valid partial URL. For
@ -10373,7 +10825,7 @@ module Google
end
#
class TargetPoolsRemoveInstanceRequest
class RemoveTargetPoolsInstanceRequest
include Google::Apis::Core::Hashable
# URLs of the instances to be removed from target pool.
@ -11397,7 +11849,7 @@ module Google
end
#
class UrlMapsValidateRequest
class ValidateUrlMapsRequest
include Google::Apis::Core::Hashable
# A UrlMap resource. This resource defines the mapping from URL to the
@ -11418,7 +11870,7 @@ module Google
end
#
class UrlMapsValidateResponse
class ValidateUrlMapsResponse
include Google::Apis::Core::Hashable
# Message representing the validation result for a UrlMap.

View File

@ -22,6 +22,48 @@ module Google
module Apis
module ComputeV1
class AcceleratorConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AcceleratorType
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AcceleratorTypeAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AcceleratorTypeList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AcceleratorTypesScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class AccessConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -262,7 +304,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DiskMoveRequest
class MoveDiskRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -640,7 +682,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstanceMoveRequest
class MoveInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -700,6 +742,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstancesSetMachineResourcesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstancesSetMachineTypeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -826,6 +874,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NetworkPeering
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworksAddPeeringRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworksRemovePeeringRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1324,25 +1390,25 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TargetPoolsAddHealthCheckRequest
class AddTargetPoolsHealthCheckRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetPoolsAddInstanceRequest
class AddTargetPoolsInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetPoolsRemoveHealthCheckRequest
class RemoveTargetPoolsHealthCheckRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetPoolsRemoveInstanceRequest
class RemoveTargetPoolsInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -1498,13 +1564,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UrlMapsValidateRequest
class ValidateUrlMapsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlMapsValidateResponse
class ValidateUrlMapsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -1582,6 +1648,82 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AcceleratorConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :accelerator_count, as: 'acceleratorCount'
property :accelerator_type, as: 'acceleratorType'
end
end
class AcceleratorType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :deprecated, as: 'deprecated', class: Google::Apis::ComputeV1::DeprecationStatus, decorator: Google::Apis::ComputeV1::DeprecationStatus::Representation
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :maximum_cards_per_instance, as: 'maximumCardsPerInstance'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :zone, as: 'zone'
end
end
class AcceleratorTypeAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeV1::AcceleratorTypesScopedList, decorator: Google::Apis::ComputeV1::AcceleratorTypesScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class AcceleratorTypeList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::AcceleratorType, decorator: Google::Apis::ComputeV1::AcceleratorType::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class AcceleratorTypesScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accelerator_types, as: 'acceleratorTypes', class: Google::Apis::ComputeV1::AcceleratorType, decorator: Google::Apis::ComputeV1::AcceleratorType::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeV1::AcceleratorTypesScopedList::Warning, decorator: Google::Apis::ComputeV1::AcceleratorTypesScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::AcceleratorTypesScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::AcceleratorTypesScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class AccessConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1599,6 +1741,7 @@ module Google
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :ip_version, as: 'ipVersion'
property :kind, as: 'kind'
property :name, as: 'name'
property :region, as: 'region'
@ -2061,7 +2204,7 @@ module Google
end
end
class DiskMoveRequest
class MoveDiskRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :destination_zone, as: 'destinationZone'
@ -2220,6 +2363,7 @@ module Google
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :ip_version, as: 'ipVersion'
property :kind, as: 'kind'
property :load_balancing_scheme, as: 'loadBalancingScheme'
property :name, as: 'name'
@ -2509,6 +2653,8 @@ module Google
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeV1::AttachedDisk, decorator: Google::Apis::ComputeV1::AttachedDisk::Representation
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeV1::AcceleratorConfig, decorator: Google::Apis::ComputeV1::AcceleratorConfig::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
@ -2807,7 +2953,7 @@ module Google
end
end
class InstanceMoveRequest
class MoveInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :destination_zone, as: 'destinationZone'
@ -2822,6 +2968,8 @@ module Google
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeV1::AttachedDisk, decorator: Google::Apis::ComputeV1::AttachedDisk::Representation
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeV1::AcceleratorConfig, decorator: Google::Apis::ComputeV1::AcceleratorConfig::Representation
hash :labels, as: 'labels'
property :machine_type, as: 'machineType'
property :metadata, as: 'metadata', class: Google::Apis::ComputeV1::Metadata, decorator: Google::Apis::ComputeV1::Metadata::Representation
@ -2916,6 +3064,14 @@ module Google
end
end
class InstancesSetMachineResourcesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeV1::AcceleratorConfig, decorator: Google::Apis::ComputeV1::AcceleratorConfig::Representation
end
end
class InstancesSetMachineTypeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3105,6 +3261,8 @@ module Google
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
collection :peerings, as: 'peerings', class: Google::Apis::ComputeV1::NetworkPeering, decorator: Google::Apis::ComputeV1::NetworkPeering::Representation
property :self_link, as: 'selfLink'
collection :subnetworks, as: 'subnetworks'
end
@ -3135,6 +3293,33 @@ module Google
end
end
class NetworkPeering
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_create_routes, as: 'autoCreateRoutes'
property :name, as: 'name'
property :network, as: 'network'
property :state, as: 'state'
property :state_details, as: 'stateDetails'
end
end
class NetworksAddPeeringRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_create_routes, as: 'autoCreateRoutes'
property :name, as: 'name'
property :peer_network, as: 'peerNetwork'
end
end
class NetworksRemovePeeringRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3495,6 +3680,7 @@ module Google
property :next_hop_instance, as: 'nextHopInstance'
property :next_hop_ip, as: 'nextHopIp'
property :next_hop_network, as: 'nextHopNetwork'
property :next_hop_peering, as: 'nextHopPeering'
property :next_hop_vpn_tunnel, as: 'nextHopVpnTunnel'
property :priority, as: 'priority'
property :self_link, as: 'selfLink'
@ -4061,7 +4247,7 @@ module Google
end
end
class TargetPoolsAddHealthCheckRequest
class AddTargetPoolsHealthCheckRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :health_checks, as: 'healthChecks', class: Google::Apis::ComputeV1::HealthCheckReference, decorator: Google::Apis::ComputeV1::HealthCheckReference::Representation
@ -4069,7 +4255,7 @@ module Google
end
end
class TargetPoolsAddInstanceRequest
class AddTargetPoolsInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances', class: Google::Apis::ComputeV1::InstanceReference, decorator: Google::Apis::ComputeV1::InstanceReference::Representation
@ -4077,7 +4263,7 @@ module Google
end
end
class TargetPoolsRemoveHealthCheckRequest
class RemoveTargetPoolsHealthCheckRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :health_checks, as: 'healthChecks', class: Google::Apis::ComputeV1::HealthCheckReference, decorator: Google::Apis::ComputeV1::HealthCheckReference::Representation
@ -4085,7 +4271,7 @@ module Google
end
end
class TargetPoolsRemoveInstanceRequest
class RemoveTargetPoolsInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances', class: Google::Apis::ComputeV1::InstanceReference, decorator: Google::Apis::ComputeV1::InstanceReference::Representation
@ -4355,7 +4541,7 @@ module Google
end
end
class UrlMapsValidateRequest
class ValidateUrlMapsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource, as: 'resource', class: Google::Apis::ComputeV1::UrlMap, decorator: Google::Apis::ComputeV1::UrlMap::Representation
@ -4363,7 +4549,7 @@ module Google
end
end
class UrlMapsValidateResponse
class ValidateUrlMapsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :result, as: 'result', class: Google::Apis::ComputeV1::UrlMapValidationResult, decorator: Google::Apis::ComputeV1::UrlMapValidationResult::Representation

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -22,25 +22,7 @@ module Google
module Apis
module ContainerV1
class Cluster
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateNodePoolRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServerConfig
class MasterAuth
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -52,12 +34,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class MasterAuth
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoUpgradeOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,6 +58,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ClientCertificateConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetMasterAuthRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -100,13 +82,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class SetNodePoolManagementRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetNodePoolManagementRequest
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -190,6 +172,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SetNodePoolSizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateClusterRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -197,81 +185,45 @@ module Google
end
class Cluster
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label_fingerprint, as: 'labelFingerprint'
property :zone, as: 'zone'
property :logging_service, as: 'loggingService'
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
property :expire_time, as: 'expireTime'
property :status_message, as: 'statusMessage'
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :current_master_version, as: 'currentMasterVersion'
property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :status, as: 'status'
property :current_node_version, as: 'currentNodeVersion'
property :subnetwork, as: 'subnetwork'
hash :resource_labels, as: 'resourceLabels'
property :name, as: 'name'
property :initial_cluster_version, as: 'initialClusterVersion'
property :endpoint, as: 'endpoint'
property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
property :create_time, as: 'createTime'
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
property :initial_node_count, as: 'initialNodeCount'
property :self_link, as: 'selfLink'
collection :locations, as: 'locations'
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
collection :instance_group_urls, as: 'instanceGroupUrls'
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
property :description, as: 'description'
property :current_node_count, as: 'currentNodeCount'
property :monitoring_service, as: 'monitoringService'
property :network, as: 'network'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation
collection :missing_zones, as: 'missingZones'
end
include Google::Apis::Core::JsonObjectSupport
end
class CreateNodePoolRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServerConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MasterAuth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :valid_master_versions, as: 'validMasterVersions'
property :default_cluster_version, as: 'defaultClusterVersion'
property :default_image_type, as: 'defaultImageType'
collection :valid_node_versions, as: 'validNodeVersions'
collection :valid_image_types, as: 'validImageTypes'
property :password, as: 'password'
property :client_certificate_config, as: 'clientCertificateConfig', class: Google::Apis::ContainerV1::ClientCertificateConfig, decorator: Google::Apis::ContainerV1::ClientCertificateConfig::Representation
property :client_key, as: 'clientKey'
property :cluster_ca_certificate, as: 'clusterCaCertificate'
property :client_certificate, as: 'clientCertificate'
property :username, as: 'username'
end
end
class NodeConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_type, as: 'imageType'
collection :oauth_scopes, as: 'oauthScopes'
property :preemptible, as: 'preemptible'
hash :labels, as: 'labels'
property :local_ssd_count, as: 'localSsdCount'
hash :metadata, as: 'metadata'
@ -279,17 +231,9 @@ module Google
collection :tags, as: 'tags'
property :service_account, as: 'serviceAccount'
property :machine_type, as: 'machineType'
end
end
class MasterAuth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :password, as: 'password'
property :client_certificate, as: 'clientCertificate'
property :username, as: 'username'
property :client_key, as: 'clientKey'
property :cluster_ca_certificate, as: 'clusterCaCertificate'
property :image_type, as: 'imageType'
collection :oauth_scopes, as: 'oauthScopes'
property :preemptible, as: 'preemptible'
end
end
@ -304,9 +248,9 @@ module Google
class ListClustersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :missing_zones, as: 'missingZones'
collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
collection :missing_zones, as: 'missingZones'
end
end
@ -320,9 +264,16 @@ module Google
class NodePoolAutoscaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :max_node_count, as: 'maxNodeCount'
property :min_node_count, as: 'minNodeCount'
property :enabled, as: 'enabled'
end
end
class ClientCertificateConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :issue_client_certificate, as: 'issueClientCertificate'
end
end
@ -338,16 +289,16 @@ module Google
class ClusterUpdate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :desired_master_version, as: 'desiredMasterVersion'
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
collection :desired_locations, as: 'desiredLocations'
property :desired_monitoring_service, as: 'desiredMonitoringService'
property :desired_image_type, as: 'desiredImageType'
property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :desired_node_pool_id, as: 'desiredNodePoolId'
property :desired_node_version, as: 'desiredNodeVersion'
property :desired_master_version, as: 'desiredMasterVersion'
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
collection :desired_locations, as: 'desiredLocations'
property :desired_monitoring_service, as: 'desiredMonitoringService'
end
end
@ -358,12 +309,6 @@ module Google
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SetNodePoolManagementRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -372,6 +317,12 @@ module Google
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class CreateClusterRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -418,19 +369,19 @@ module Google
class NodePool
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
property :initial_node_count, as: 'initialNodeCount'
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
property :self_link, as: 'selfLink'
collection :instance_group_urls, as: 'instanceGroupUrls'
property :version, as: 'version'
property :status, as: 'status'
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
property :status_message, as: 'statusMessage'
property :name, as: 'name'
property :status_message, as: 'statusMessage'
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
property :initial_node_count, as: 'initialNodeCount'
property :self_link, as: 'selfLink'
property :version, as: 'version'
collection :instance_group_urls, as: 'instanceGroupUrls'
end
end
@ -460,7 +411,6 @@ module Google
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :zone, as: 'zone'
property :status, as: 'status'
property :name, as: 'name'
property :status_message, as: 'statusMessage'
@ -468,6 +418,7 @@ module Google
property :target_link, as: 'targetLink'
property :detail, as: 'detail'
property :operation_type, as: 'operationType'
property :zone, as: 'zone'
end
end
@ -487,6 +438,13 @@ module Google
end
end
class SetNodePoolSizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_count, as: 'nodeCount'
end
end
class UpdateClusterRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -494,6 +452,76 @@ module Google
end
end
class Cluster
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :network, as: 'network'
property :label_fingerprint, as: 'labelFingerprint'
property :zone, as: 'zone'
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
property :expire_time, as: 'expireTime'
property :logging_service, as: 'loggingService'
property :status_message, as: 'statusMessage'
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
property :current_master_version, as: 'currentMasterVersion'
property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :status, as: 'status'
property :current_node_version, as: 'currentNodeVersion'
property :subnetwork, as: 'subnetwork'
hash :resource_labels, as: 'resourceLabels'
property :name, as: 'name'
property :initial_cluster_version, as: 'initialClusterVersion'
property :endpoint, as: 'endpoint'
property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
property :create_time, as: 'createTime'
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
property :initial_node_count, as: 'initialNodeCount'
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
collection :locations, as: 'locations'
property :self_link, as: 'selfLink'
collection :instance_group_urls, as: 'instanceGroupUrls'
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
property :description, as: 'description'
property :current_node_count, as: 'currentNodeCount'
property :monitoring_service, as: 'monitoringService'
end
end
class CreateNodePoolRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation
collection :missing_zones, as: 'missingZones'
end
end
class ServerConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :valid_master_versions, as: 'validMasterVersions'
property :default_cluster_version, as: 'defaultClusterVersion'
property :default_image_type, as: 'defaultImageType'
collection :valid_node_versions, as: 'validNodeVersions'
collection :valid_image_types, as: 'validImageTypes'
end
end
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20170523'
REVISION = '20170531'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -469,12 +469,12 @@ module Google
end
#
class AccountsCustomBatchRequest
class BatchAccountsRequest
include Google::Apis::Core::Hashable
# The request entries to be processed in the batch.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::AccountsCustomBatchRequestEntry>]
# @return [Array<Google::Apis::ContentV2::AccountsBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
@ -488,7 +488,7 @@ module Google
end
# A batch entry encoding a single non-batch accounts request.
class AccountsCustomBatchRequestEntry
class AccountsBatchRequestEntry
include Google::Apis::Core::Hashable
# Account data.
@ -515,7 +515,7 @@ module Google
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
attr_accessor :request_method
# Only applicable if the method is claimwebsite. Indicates whether or not to
# take the claim from another account in case there is a conflict.
@ -534,18 +534,18 @@ module Google
@account_id = args[:account_id] if args.key?(:account_id)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@request_method = args[:request_method] if args.key?(:request_method)
@overwrite = args[:overwrite] if args.key?(:overwrite)
end
end
#
class AccountsCustomBatchResponse
class BatchAccountsResponse
include Google::Apis::Core::Hashable
# The result of the execution of the batch requests.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::AccountsCustomBatchResponseEntry>]
# @return [Array<Google::Apis::ContentV2::AccountsBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -566,7 +566,7 @@ module Google
end
# A batch entry encoding a single non-batch accounts response.
class AccountsCustomBatchResponseEntry
class AccountsBatchResponseEntry
include Google::Apis::Core::Hashable
# Account data.
@ -604,7 +604,7 @@ module Google
end
#
class AccountsListResponse
class ListAccountsResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -636,12 +636,12 @@ module Google
end
#
class AccountstatusesCustomBatchRequest
class BatchAccountStatusesRequest
include Google::Apis::Core::Hashable
# The request entries to be processed in the batch.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::AccountstatusesCustomBatchRequestEntry>]
# @return [Array<Google::Apis::ContentV2::AccountStatusesBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
@ -655,7 +655,7 @@ module Google
end
# A batch entry encoding a single non-batch accountstatuses request.
class AccountstatusesCustomBatchRequestEntry
class AccountStatusesBatchRequestEntry
include Google::Apis::Core::Hashable
# The ID of the (sub-)account whose status to get.
@ -676,7 +676,7 @@ module Google
# The method (get).
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
attr_accessor :request_method
def initialize(**args)
update!(**args)
@ -687,17 +687,17 @@ module Google
@account_id = args[:account_id] if args.key?(:account_id)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@request_method = args[:request_method] if args.key?(:request_method)
end
end
#
class AccountstatusesCustomBatchResponse
class BatchAccountStatusesResponse
include Google::Apis::Core::Hashable
# The result of the execution of the batch requests.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::AccountstatusesCustomBatchResponseEntry>]
# @return [Array<Google::Apis::ContentV2::AccountStatusesBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -718,7 +718,7 @@ module Google
end
# A batch entry encoding a single non-batch accountstatuses response.
class AccountstatusesCustomBatchResponseEntry
class AccountStatusesBatchResponseEntry
include Google::Apis::Core::Hashable
# The status of an account, i.e., information about its products, which is
@ -750,7 +750,7 @@ module Google
end
#
class AccountstatusesListResponse
class ListAccountStatusesResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -782,12 +782,12 @@ module Google
end
#
class AccounttaxCustomBatchRequest
class BatchAccountTaxRequest
include Google::Apis::Core::Hashable
# The request entries to be processed in the batch.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::AccounttaxCustomBatchRequestEntry>]
# @return [Array<Google::Apis::ContentV2::AccountTaxBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
@ -801,7 +801,7 @@ module Google
end
# A batch entry encoding a single non-batch accounttax request.
class AccounttaxCustomBatchRequestEntry
class AccountTaxBatchRequestEntry
include Google::Apis::Core::Hashable
# The ID of the account for which to get/update account tax settings.
@ -827,7 +827,7 @@ module Google
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
attr_accessor :request_method
def initialize(**args)
update!(**args)
@ -839,17 +839,17 @@ module Google
@account_tax = args[:account_tax] if args.key?(:account_tax)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@request_method = args[:request_method] if args.key?(:request_method)
end
end
#
class AccounttaxCustomBatchResponse
class BatchAccountTaxResponse
include Google::Apis::Core::Hashable
# The result of the execution of the batch requests.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::AccounttaxCustomBatchResponseEntry>]
# @return [Array<Google::Apis::ContentV2::AccountTaxBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -870,7 +870,7 @@ module Google
end
# A batch entry encoding a single non-batch accounttax response.
class AccounttaxCustomBatchResponseEntry
class AccountTaxBatchResponseEntry
include Google::Apis::Core::Hashable
# The tax settings of a merchant account.
@ -908,7 +908,7 @@ module Google
end
#
class AccounttaxListResponse
class ListAccountTaxResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -1026,7 +1026,7 @@ module Google
end
end
# Datafeed data.
# Datafeed configuration data.
class Datafeed
include Google::Apis::Core::Hashable
@ -1348,12 +1348,12 @@ module Google
end
#
class DatafeedsCustomBatchRequest
class BatchDatafeedsRequest
include Google::Apis::Core::Hashable
# The request entries to be processed in the batch.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::DatafeedsCustomBatchRequestEntry>]
# @return [Array<Google::Apis::ContentV2::DatafeedsBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
@ -1367,7 +1367,7 @@ module Google
end
# A batch entry encoding a single non-batch datafeeds request.
class DatafeedsCustomBatchRequestEntry
class DatafeedsBatchRequestEntry
include Google::Apis::Core::Hashable
# An entry ID, unique within the batch request.
@ -1375,7 +1375,7 @@ module Google
# @return [Fixnum]
attr_accessor :batch_id
# Datafeed data.
# Datafeed configuration data.
# Corresponds to the JSON property `datafeed`
# @return [Google::Apis::ContentV2::Datafeed]
attr_accessor :datafeed
@ -1393,7 +1393,7 @@ module Google
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
attr_accessor :request_method
def initialize(**args)
update!(**args)
@ -1405,17 +1405,17 @@ module Google
@datafeed = args[:datafeed] if args.key?(:datafeed)
@datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@request_method = args[:request_method] if args.key?(:request_method)
end
end
#
class DatafeedsCustomBatchResponse
class BatchDatafeedsResponse
include Google::Apis::Core::Hashable
# The result of the execution of the batch requests.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::DatafeedsCustomBatchResponseEntry>]
# @return [Array<Google::Apis::ContentV2::DatafeedsBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -1436,7 +1436,7 @@ module Google
end
# A batch entry encoding a single non-batch datafeeds response.
class DatafeedsCustomBatchResponseEntry
class DatafeedsBatchResponseEntry
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
@ -1444,7 +1444,7 @@ module Google
# @return [Fixnum]
attr_accessor :batch_id
# Datafeed data.
# Datafeed configuration data.
# Corresponds to the JSON property `datafeed`
# @return [Google::Apis::ContentV2::Datafeed]
attr_accessor :datafeed
@ -1467,7 +1467,7 @@ module Google
end
#
class DatafeedsListResponse
class ListDatafeedsResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -1499,12 +1499,12 @@ module Google
end
#
class DatafeedstatusesCustomBatchRequest
class BatchDatafeedStatusesRequest
include Google::Apis::Core::Hashable
# The request entries to be processed in the batch.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::DatafeedstatusesCustomBatchRequestEntry>]
# @return [Array<Google::Apis::ContentV2::DatafeedStatusesBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
@ -1518,7 +1518,7 @@ module Google
end
# A batch entry encoding a single non-batch datafeedstatuses request.
class DatafeedstatusesCustomBatchRequestEntry
class DatafeedStatusesBatchRequestEntry
include Google::Apis::Core::Hashable
# An entry ID, unique within the batch request.
@ -1539,7 +1539,7 @@ module Google
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
attr_accessor :request_method
def initialize(**args)
update!(**args)
@ -1550,17 +1550,17 @@ module Google
@batch_id = args[:batch_id] if args.key?(:batch_id)
@datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@request_method = args[:request_method] if args.key?(:request_method)
end
end
#
class DatafeedstatusesCustomBatchResponse
class BatchDatafeedStatusesResponse
include Google::Apis::Core::Hashable
# The result of the execution of the batch requests.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::DatafeedstatusesCustomBatchResponseEntry>]
# @return [Array<Google::Apis::ContentV2::DatafeedStatusesBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -1581,7 +1581,7 @@ module Google
end
# A batch entry encoding a single non-batch datafeedstatuses response.
class DatafeedstatusesCustomBatchResponseEntry
class DatafeedStatusesBatchResponseEntry
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
@ -1613,7 +1613,7 @@ module Google
end
#
class DatafeedstatusesListResponse
class ListDatafeedStatusesResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -1898,12 +1898,12 @@ module Google
end
#
class InventoryCustomBatchRequest
class BatchInventoryRequest
include Google::Apis::Core::Hashable
# The request entries to be processed in the batch.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::InventoryCustomBatchRequestEntry>]
# @return [Array<Google::Apis::ContentV2::InventoryBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
@ -1917,7 +1917,7 @@ module Google
end
# A batch entry encoding a single non-batch inventory request.
class InventoryCustomBatchRequestEntry
class InventoryBatchRequestEntry
include Google::Apis::Core::Hashable
# An entry ID, unique within the batch request.
@ -1961,12 +1961,12 @@ module Google
end
#
class InventoryCustomBatchResponse
class BatchInventoryResponse
include Google::Apis::Core::Hashable
# The result of the execution of the batch requests.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::InventoryCustomBatchResponseEntry>]
# @return [Array<Google::Apis::ContentV2::InventoryBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -1987,7 +1987,7 @@ module Google
end
# A batch entry encoding a single non-batch inventory response.
class InventoryCustomBatchResponseEntry
class InventoryBatchResponseEntry
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
@ -2049,7 +2049,7 @@ module Google
end
#
class InventorySetRequest
class SetInventoryRequest
include Google::Apis::Core::Hashable
# The availability of the product.
@ -2123,7 +2123,7 @@ module Google
end
#
class InventorySetResponse
class SetInventoryResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -4536,6 +4536,16 @@ module Google
# @return [String]
attr_accessor :material
# Maximal product handling time (in business days).
# Corresponds to the JSON property `maxHandlingTime`
# @return [Fixnum]
attr_accessor :max_handling_time
# Minimal product handling time (in business days).
# Corresponds to the JSON property `minHandlingTime`
# @return [Fixnum]
attr_accessor :min_handling_time
# Link to a mobile-optimized version of the landing page.
# Corresponds to the JSON property `mobileLink`
# @return [String]
@ -4731,6 +4741,8 @@ module Google
@link = args[:link] if args.key?(:link)
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
@material = args[:material] if args.key?(:material)
@max_handling_time = args[:max_handling_time] if args.key?(:max_handling_time)
@min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time)
@mobile_link = args[:mobile_link] if args.key?(:mobile_link)
@mpn = args[:mpn] if args.key?(:mpn)
@multipack = args[:multipack] if args.key?(:multipack)
@ -5260,12 +5272,12 @@ module Google
end
#
class ProductsCustomBatchRequest
class BatchProductsRequest
include Google::Apis::Core::Hashable
# The request entries to be processed in the batch.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::ProductsCustomBatchRequestEntry>]
# @return [Array<Google::Apis::ContentV2::ProductsBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
@ -5279,7 +5291,7 @@ module Google
end
# A batch entry encoding a single non-batch products request.
class ProductsCustomBatchRequestEntry
class ProductsBatchRequestEntry
include Google::Apis::Core::Hashable
# An entry ID, unique within the batch request.
@ -5295,7 +5307,7 @@ module Google
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
attr_accessor :request_method
# Product data.
# Corresponds to the JSON property `product`
@ -5316,19 +5328,19 @@ module Google
def update!(**args)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@request_method = args[:request_method] if args.key?(:request_method)
@product = args[:product] if args.key?(:product)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
#
class ProductsCustomBatchResponse
class BatchProductsResponse
include Google::Apis::Core::Hashable
# The result of the execution of the batch requests.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::ProductsCustomBatchResponseEntry>]
# @return [Array<Google::Apis::ContentV2::ProductsBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -5349,7 +5361,7 @@ module Google
end
# A batch entry encoding a single non-batch products response.
class ProductsCustomBatchResponseEntry
class ProductsBatchResponseEntry
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
@ -5387,7 +5399,7 @@ module Google
end
#
class ProductsListResponse
class ListProductsResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -5419,12 +5431,12 @@ module Google
end
#
class ProductstatusesCustomBatchRequest
class BatchProductStatusesRequest
include Google::Apis::Core::Hashable
# The request entries to be processed in the batch.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::ProductstatusesCustomBatchRequestEntry>]
# @return [Array<Google::Apis::ContentV2::ProductStatusesBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
@ -5438,7 +5450,7 @@ module Google
end
# A batch entry encoding a single non-batch productstatuses request.
class ProductstatusesCustomBatchRequestEntry
class ProductStatusesBatchRequestEntry
include Google::Apis::Core::Hashable
# An entry ID, unique within the batch request.
@ -5454,7 +5466,7 @@ module Google
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
attr_accessor :request_method
# The ID of the product whose status to get.
# Corresponds to the JSON property `productId`
@ -5469,18 +5481,18 @@ module Google
def update!(**args)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@request_method = args[:request_method] if args.key?(:request_method)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
#
class ProductstatusesCustomBatchResponse
class BatchProductStatusesResponse
include Google::Apis::Core::Hashable
# The result of the execution of the batch requests.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::ContentV2::ProductstatusesCustomBatchResponseEntry>]
# @return [Array<Google::Apis::ContentV2::ProductStatusesBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
@ -5501,7 +5513,7 @@ module Google
end
# A batch entry encoding a single non-batch productstatuses response.
class ProductstatusesCustomBatchResponseEntry
class ProductStatusesBatchResponseEntry
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
@ -5540,7 +5552,7 @@ module Google
end
#
class ProductstatusesListResponse
class ListProductStatusesResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#

View File

@ -88,91 +88,91 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AccountsCustomBatchRequest
class BatchAccountsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountsCustomBatchRequestEntry
class AccountsBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountsCustomBatchResponse
class BatchAccountsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountsCustomBatchResponseEntry
class AccountsBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountsListResponse
class ListAccountsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountstatusesCustomBatchRequest
class BatchAccountStatusesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountstatusesCustomBatchRequestEntry
class AccountStatusesBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountstatusesCustomBatchResponse
class BatchAccountStatusesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountstatusesCustomBatchResponseEntry
class AccountStatusesBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountstatusesListResponse
class ListAccountStatusesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccounttaxCustomBatchRequest
class BatchAccountTaxRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccounttaxCustomBatchRequestEntry
class AccountTaxBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccounttaxCustomBatchResponse
class BatchAccountTaxResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccounttaxCustomBatchResponseEntry
class AccountTaxBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccounttaxListResponse
class ListAccountTaxResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -226,61 +226,61 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedsCustomBatchRequest
class BatchDatafeedsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedsCustomBatchRequestEntry
class DatafeedsBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedsCustomBatchResponse
class BatchDatafeedsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedsCustomBatchResponseEntry
class DatafeedsBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedsListResponse
class ListDatafeedsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedstatusesCustomBatchRequest
class BatchDatafeedStatusesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedstatusesCustomBatchRequestEntry
class DatafeedStatusesBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedstatusesCustomBatchResponse
class BatchDatafeedStatusesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedstatusesCustomBatchResponseEntry
class DatafeedStatusesBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DatafeedstatusesListResponse
class ListDatafeedStatusesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -322,25 +322,25 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InventoryCustomBatchRequest
class BatchInventoryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryCustomBatchRequestEntry
class InventoryBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryCustomBatchResponse
class BatchInventoryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventoryCustomBatchResponseEntry
class InventoryBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -352,13 +352,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InventorySetRequest
class SetInventoryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InventorySetResponse
class SetInventoryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -778,61 +778,61 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ProductsCustomBatchRequest
class BatchProductsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductsCustomBatchRequestEntry
class ProductsBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductsCustomBatchResponse
class BatchProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductsCustomBatchResponseEntry
class ProductsBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductsListResponse
class ListProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductstatusesCustomBatchRequest
class BatchProductStatusesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductstatusesCustomBatchRequestEntry
class ProductStatusesBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductstatusesCustomBatchResponse
class BatchProductStatusesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductstatusesCustomBatchResponseEntry
class ProductStatusesBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductstatusesListResponse
class ListProductStatusesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -1063,15 +1063,15 @@ module Google
end
end
class AccountsCustomBatchRequest
class BatchAccountsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::AccountsCustomBatchRequestEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountsBatchRequestEntry, decorator: Google::Apis::ContentV2::AccountsBatchRequestEntry::Representation
end
end
class AccountsCustomBatchRequestEntry
class AccountsBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account, as: 'account', class: Google::Apis::ContentV2::Account, decorator: Google::Apis::ContentV2::Account::Representation
@ -1079,21 +1079,21 @@ module Google
property :account_id, :numeric_string => true, as: 'accountId'
property :batch_id, as: 'batchId'
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :request_method, as: 'method'
property :overwrite, as: 'overwrite'
end
end
class AccountsCustomBatchResponse
class BatchAccountsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::AccountsCustomBatchResponseEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountsBatchResponseEntry, decorator: Google::Apis::ContentV2::AccountsBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class AccountsCustomBatchResponseEntry
class AccountsBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account, as: 'account', class: Google::Apis::ContentV2::Account, decorator: Google::Apis::ContentV2::Account::Representation
@ -1105,7 +1105,7 @@ module Google
end
end
class AccountsListResponse
class ListAccountsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -1115,34 +1115,34 @@ module Google
end
end
class AccountstatusesCustomBatchRequest
class BatchAccountStatusesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountstatusesCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::AccountstatusesCustomBatchRequestEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountStatusesBatchRequestEntry, decorator: Google::Apis::ContentV2::AccountStatusesBatchRequestEntry::Representation
end
end
class AccountstatusesCustomBatchRequestEntry
class AccountStatusesBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, :numeric_string => true, as: 'accountId'
property :batch_id, as: 'batchId'
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :request_method, as: 'method'
end
end
class AccountstatusesCustomBatchResponse
class BatchAccountStatusesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountstatusesCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::AccountstatusesCustomBatchResponseEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountStatusesBatchResponseEntry, decorator: Google::Apis::ContentV2::AccountStatusesBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class AccountstatusesCustomBatchResponseEntry
class AccountStatusesBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_status, as: 'accountStatus', class: Google::Apis::ContentV2::AccountStatus, decorator: Google::Apis::ContentV2::AccountStatus::Representation
@ -1153,7 +1153,7 @@ module Google
end
end
class AccountstatusesListResponse
class ListAccountStatusesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -1163,15 +1163,15 @@ module Google
end
end
class AccounttaxCustomBatchRequest
class BatchAccountTaxRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccounttaxCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::AccounttaxCustomBatchRequestEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountTaxBatchRequestEntry, decorator: Google::Apis::ContentV2::AccountTaxBatchRequestEntry::Representation
end
end
class AccounttaxCustomBatchRequestEntry
class AccountTaxBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, :numeric_string => true, as: 'accountId'
@ -1179,20 +1179,20 @@ module Google
property :batch_id, as: 'batchId'
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :request_method, as: 'method'
end
end
class AccounttaxCustomBatchResponse
class BatchAccountTaxResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccounttaxCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::AccounttaxCustomBatchResponseEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountTaxBatchResponseEntry, decorator: Google::Apis::ContentV2::AccountTaxBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class AccounttaxCustomBatchResponseEntry
class AccountTaxBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_tax, as: 'accountTax', class: Google::Apis::ContentV2::AccountTax, decorator: Google::Apis::ContentV2::AccountTax::Representation
@ -1204,7 +1204,7 @@ module Google
end
end
class AccounttaxListResponse
class ListAccountTaxResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -1314,15 +1314,15 @@ module Google
end
end
class DatafeedsCustomBatchRequest
class BatchDatafeedsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::DatafeedsCustomBatchRequestEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedsBatchRequestEntry, decorator: Google::Apis::ContentV2::DatafeedsBatchRequestEntry::Representation
end
end
class DatafeedsCustomBatchRequestEntry
class DatafeedsBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
@ -1330,20 +1330,20 @@ module Google
property :datafeed_id, :numeric_string => true, as: 'datafeedId'
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :request_method, as: 'method'
end
end
class DatafeedsCustomBatchResponse
class BatchDatafeedsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::DatafeedsCustomBatchResponseEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedsBatchResponseEntry, decorator: Google::Apis::ContentV2::DatafeedsBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class DatafeedsCustomBatchResponseEntry
class DatafeedsBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
@ -1354,7 +1354,7 @@ module Google
end
end
class DatafeedsListResponse
class ListDatafeedsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -1364,34 +1364,34 @@ module Google
end
end
class DatafeedstatusesCustomBatchRequest
class BatchDatafeedStatusesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedstatusesCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::DatafeedstatusesCustomBatchRequestEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedStatusesBatchRequestEntry, decorator: Google::Apis::ContentV2::DatafeedStatusesBatchRequestEntry::Representation
end
end
class DatafeedstatusesCustomBatchRequestEntry
class DatafeedStatusesBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :datafeed_id, :numeric_string => true, as: 'datafeedId'
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :request_method, as: 'method'
end
end
class DatafeedstatusesCustomBatchResponse
class BatchDatafeedStatusesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedstatusesCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::DatafeedstatusesCustomBatchResponseEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedStatusesBatchResponseEntry, decorator: Google::Apis::ContentV2::DatafeedStatusesBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class DatafeedstatusesCustomBatchResponseEntry
class DatafeedStatusesBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
@ -1402,7 +1402,7 @@ module Google
end
end
class DatafeedstatusesListResponse
class ListDatafeedStatusesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -1483,15 +1483,15 @@ module Google
end
end
class InventoryCustomBatchRequest
class BatchInventoryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::InventoryCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::InventoryCustomBatchRequestEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::InventoryBatchRequestEntry, decorator: Google::Apis::ContentV2::InventoryBatchRequestEntry::Representation
end
end
class InventoryCustomBatchRequestEntry
class InventoryBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
@ -1503,16 +1503,16 @@ module Google
end
end
class InventoryCustomBatchResponse
class BatchInventoryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::InventoryCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::InventoryCustomBatchResponseEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::InventoryBatchResponseEntry, decorator: Google::Apis::ContentV2::InventoryBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class InventoryCustomBatchResponseEntry
class InventoryBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
@ -1530,7 +1530,7 @@ module Google
end
end
class InventorySetRequest
class SetInventoryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :availability, as: 'availability'
@ -1550,7 +1550,7 @@ module Google
end
end
class InventorySetResponse
class SetInventoryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -2216,6 +2216,8 @@ module Google
property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation
property :material, as: 'material'
property :max_handling_time, :numeric_string => true, as: 'maxHandlingTime'
property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
property :mobile_link, as: 'mobileLink'
property :mpn, as: 'mpn'
property :multipack, :numeric_string => true, as: 'multipack'
@ -2392,36 +2394,36 @@ module Google
end
end
class ProductsCustomBatchRequest
class BatchProductsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::ProductsCustomBatchRequestEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductsBatchRequestEntry, decorator: Google::Apis::ContentV2::ProductsBatchRequestEntry::Representation
end
end
class ProductsCustomBatchRequestEntry
class ProductsBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :request_method, as: 'method'
property :product, as: 'product', class: Google::Apis::ContentV2::Product, decorator: Google::Apis::ContentV2::Product::Representation
property :product_id, as: 'productId'
end
end
class ProductsCustomBatchResponse
class BatchProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::ProductsCustomBatchResponseEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductsBatchResponseEntry, decorator: Google::Apis::ContentV2::ProductsBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class ProductsCustomBatchResponseEntry
class ProductsBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
@ -2433,7 +2435,7 @@ module Google
end
end
class ProductsListResponse
class ListProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
@ -2443,34 +2445,34 @@ module Google
end
end
class ProductstatusesCustomBatchRequest
class BatchProductStatusesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductstatusesCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::ProductstatusesCustomBatchRequestEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductStatusesBatchRequestEntry, decorator: Google::Apis::ContentV2::ProductStatusesBatchRequestEntry::Representation
end
end
class ProductstatusesCustomBatchRequestEntry
class ProductStatusesBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :request_method, as: 'method'
property :product_id, as: 'productId'
end
end
class ProductstatusesCustomBatchResponse
class BatchProductStatusesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductstatusesCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::ProductstatusesCustomBatchResponseEntry::Representation
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductStatusesBatchResponseEntry, decorator: Google::Apis::ContentV2::ProductStatusesBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class ProductstatusesCustomBatchResponseEntry
class ProductStatusesBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
@ -2482,7 +2484,7 @@ module Google
end
end
class ProductstatusesListResponse
class ListProductStatusesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'

View File

@ -76,7 +76,7 @@ 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 authinfo_account(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_authinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/authinfo', options)
command.response_representation = Google::Apis::ContentV2::AccountsAuthInfoResponse::Representation
command.response_class = Google::Apis::ContentV2::AccountsAuthInfoResponse
@ -131,7 +131,7 @@ module Google
# Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)
# accounts in a single request.
# @param [Google::Apis::ContentV2::AccountsCustomBatchRequest] accounts_custom_batch_request_object
# @param [Google::Apis::ContentV2::BatchAccountsRequest] batch_accounts_request_object
# @param [Boolean] dry_run
# Flag to run the request in dry-run mode.
# @param [String] fields
@ -147,20 +147,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::AccountsCustomBatchResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::BatchAccountsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::AccountsCustomBatchResponse]
# @return [Google::Apis::ContentV2::BatchAccountsResponse]
#
# @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 custombatch_account(accounts_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'accounts/batch', options)
command.request_representation = Google::Apis::ContentV2::AccountsCustomBatchRequest::Representation
command.request_object = accounts_custom_batch_request_object
command.response_representation = Google::Apis::ContentV2::AccountsCustomBatchResponse::Representation
command.response_class = Google::Apis::ContentV2::AccountsCustomBatchResponse
command.request_representation = Google::Apis::ContentV2::BatchAccountsRequest::Representation
command.request_object = batch_accounts_request_object
command.response_representation = Google::Apis::ContentV2::BatchAccountsResponse::Representation
command.response_class = Google::Apis::ContentV2::BatchAccountsResponse
command.query['dryRun'] = dry_run unless dry_run.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -311,18 +311,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::AccountsListResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::ListAccountsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::AccountsListResponse]
# @return [Google::Apis::ContentV2::ListAccountsResponse]
#
# @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_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/accounts', options)
command.response_representation = Google::Apis::ContentV2::AccountsListResponse::Representation
command.response_class = Google::Apis::ContentV2::AccountsListResponse
command.response_representation = Google::Apis::ContentV2::ListAccountsResponse::Representation
command.response_class = Google::Apis::ContentV2::ListAccountsResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
@ -426,7 +426,7 @@ module Google
end
#
# @param [Google::Apis::ContentV2::AccountstatusesCustomBatchRequest] accountstatuses_custom_batch_request_object
# @param [Google::Apis::ContentV2::BatchAccountStatusesRequest] batch_account_statuses_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -440,20 +440,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::AccountstatusesCustomBatchResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::BatchAccountStatusesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::AccountstatusesCustomBatchResponse]
# @return [Google::Apis::ContentV2::BatchAccountStatusesResponse]
#
# @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 custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_account_status(batch_account_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'accountstatuses/batch', options)
command.request_representation = Google::Apis::ContentV2::AccountstatusesCustomBatchRequest::Representation
command.request_object = accountstatuses_custom_batch_request_object
command.response_representation = Google::Apis::ContentV2::AccountstatusesCustomBatchResponse::Representation
command.response_class = Google::Apis::ContentV2::AccountstatusesCustomBatchResponse
command.request_representation = Google::Apis::ContentV2::BatchAccountStatusesRequest::Representation
command.request_object = batch_account_statuses_request_object
command.response_representation = Google::Apis::ContentV2::BatchAccountStatusesResponse::Representation
command.response_class = Google::Apis::ContentV2::BatchAccountStatusesResponse
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?
@ -489,7 +489,7 @@ 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 get_accountstatus(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_status(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options)
command.response_representation = Google::Apis::ContentV2::AccountStatus::Representation
command.response_class = Google::Apis::ContentV2::AccountStatus
@ -523,18 +523,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::AccountstatusesListResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::ListAccountStatusesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::AccountstatusesListResponse]
# @return [Google::Apis::ContentV2::ListAccountStatusesResponse]
#
# @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_accountstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/accountstatuses', options)
command.response_representation = Google::Apis::ContentV2::AccountstatusesListResponse::Representation
command.response_class = Google::Apis::ContentV2::AccountstatusesListResponse
command.response_representation = Google::Apis::ContentV2::ListAccountStatusesResponse::Representation
command.response_class = Google::Apis::ContentV2::ListAccountStatusesResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
@ -545,7 +545,7 @@ module Google
end
# Retrieves and updates tax settings of multiple accounts in a single request.
# @param [Google::Apis::ContentV2::AccounttaxCustomBatchRequest] accounttax_custom_batch_request_object
# @param [Google::Apis::ContentV2::BatchAccountTaxRequest] batch_account_tax_request_object
# @param [Boolean] dry_run
# Flag to run the request in dry-run mode.
# @param [String] fields
@ -561,20 +561,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::AccounttaxCustomBatchResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::BatchAccountTaxResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::AccounttaxCustomBatchResponse]
# @return [Google::Apis::ContentV2::BatchAccountTaxResponse]
#
# @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 custombatch_accounttax(accounttax_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_account_tax(batch_account_tax_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'accounttax/batch', options)
command.request_representation = Google::Apis::ContentV2::AccounttaxCustomBatchRequest::Representation
command.request_object = accounttax_custom_batch_request_object
command.response_representation = Google::Apis::ContentV2::AccounttaxCustomBatchResponse::Representation
command.response_class = Google::Apis::ContentV2::AccounttaxCustomBatchResponse
command.request_representation = Google::Apis::ContentV2::BatchAccountTaxRequest::Representation
command.request_object = batch_account_tax_request_object
command.response_representation = Google::Apis::ContentV2::BatchAccountTaxResponse::Representation
command.response_class = Google::Apis::ContentV2::BatchAccountTaxResponse
command.query['dryRun'] = dry_run unless dry_run.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -610,7 +610,7 @@ 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 get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_account_tax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options)
command.response_representation = Google::Apis::ContentV2::AccountTax::Representation
command.response_class = Google::Apis::ContentV2::AccountTax
@ -643,18 +643,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::AccounttaxListResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::ListAccountTaxResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::AccounttaxListResponse]
# @return [Google::Apis::ContentV2::ListAccountTaxResponse]
#
# @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_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_account_taxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/accounttax', options)
command.response_representation = Google::Apis::ContentV2::AccounttaxListResponse::Representation
command.response_class = Google::Apis::ContentV2::AccounttaxListResponse
command.response_representation = Google::Apis::ContentV2::ListAccountTaxResponse::Representation
command.response_class = Google::Apis::ContentV2::ListAccountTaxResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
@ -696,7 +696,7 @@ 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 patch_accounttax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{merchantId}/accounttax/{accountId}', options)
command.request_representation = Google::Apis::ContentV2::AccountTax::Representation
command.request_object = account_tax_object
@ -742,7 +742,7 @@ 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 update_accounttax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options)
command.request_representation = Google::Apis::ContentV2::AccountTax::Representation
command.request_object = account_tax_object
@ -758,7 +758,7 @@ module Google
end
#
# @param [Google::Apis::ContentV2::DatafeedsCustomBatchRequest] datafeeds_custom_batch_request_object
# @param [Google::Apis::ContentV2::BatchDatafeedsRequest] batch_datafeeds_request_object
# @param [Boolean] dry_run
# Flag to run the request in dry-run mode.
# @param [String] fields
@ -774,20 +774,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::DatafeedsCustomBatchResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::BatchDatafeedsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::DatafeedsCustomBatchResponse]
# @return [Google::Apis::ContentV2::BatchDatafeedsResponse]
#
# @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 custombatch_datafeed(datafeeds_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'datafeeds/batch', options)
command.request_representation = Google::Apis::ContentV2::DatafeedsCustomBatchRequest::Representation
command.request_object = datafeeds_custom_batch_request_object
command.response_representation = Google::Apis::ContentV2::DatafeedsCustomBatchResponse::Representation
command.response_class = Google::Apis::ContentV2::DatafeedsCustomBatchResponse
command.request_representation = Google::Apis::ContentV2::BatchDatafeedsRequest::Representation
command.request_object = batch_datafeeds_request_object
command.response_representation = Google::Apis::ContentV2::BatchDatafeedsResponse::Representation
command.response_class = Google::Apis::ContentV2::BatchDatafeedsResponse
command.query['dryRun'] = dry_run unless dry_run.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -795,8 +795,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a datafeed from your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# Deletes a datafeed configuration from your Merchant Center account. This
# method can only be called for non-multi-client accounts.
# @param [Fixnum] merchant_id
# @param [Fixnum] datafeed_id
# @param [Boolean] dry_run
@ -833,8 +833,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a datafeed from your Merchant Center account. This method can only
# be called for non-multi-client accounts.
# Retrieves a datafeed configuration from your Merchant Center account. This
# method can only be called for non-multi-client accounts.
# @param [Fixnum] merchant_id
# @param [Fixnum] datafeed_id
# @param [String] fields
@ -870,8 +870,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Registers a datafeed with your Merchant Center account. This method can only
# be called for non-multi-client accounts.
# Registers a datafeed configuration with your Merchant Center account. This
# method can only be called for non-multi-client accounts.
# @param [Fixnum] merchant_id
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object
# @param [Boolean] dry_run
@ -932,18 +932,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::DatafeedsListResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::ListDatafeedsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::DatafeedsListResponse]
# @return [Google::Apis::ContentV2::ListDatafeedsResponse]
#
# @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_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/datafeeds', options)
command.response_representation = Google::Apis::ContentV2::DatafeedsListResponse::Representation
command.response_class = Google::Apis::ContentV2::DatafeedsListResponse
command.response_representation = Google::Apis::ContentV2::ListDatafeedsResponse::Representation
command.response_class = Google::Apis::ContentV2::ListDatafeedsResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
@ -953,8 +953,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a datafeed of your Merchant Center account. This method can only be
# called for non-multi-client accounts. This method supports patch semantics.
# Updates a datafeed configuration of your Merchant Center account. This method
# can only be called for non-multi-client accounts. This method supports patch
# semantics.
# @param [Fixnum] merchant_id
# @param [Fixnum] datafeed_id
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object
@ -996,8 +997,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a datafeed of your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# Updates a datafeed configuration of your Merchant Center account. This method
# can only be called for non-multi-client accounts.
# @param [Fixnum] merchant_id
# @param [Fixnum] datafeed_id
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object
@ -1040,7 +1041,7 @@ module Google
end
#
# @param [Google::Apis::ContentV2::DatafeedstatusesCustomBatchRequest] datafeedstatuses_custom_batch_request_object
# @param [Google::Apis::ContentV2::BatchDatafeedStatusesRequest] batch_datafeed_statuses_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1054,20 +1055,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::DatafeedstatusesCustomBatchResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::BatchDatafeedStatusesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::DatafeedstatusesCustomBatchResponse]
# @return [Google::Apis::ContentV2::BatchDatafeedStatusesResponse]
#
# @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 custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_datafeed_status(batch_datafeed_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'datafeedstatuses/batch', options)
command.request_representation = Google::Apis::ContentV2::DatafeedstatusesCustomBatchRequest::Representation
command.request_object = datafeedstatuses_custom_batch_request_object
command.response_representation = Google::Apis::ContentV2::DatafeedstatusesCustomBatchResponse::Representation
command.response_class = Google::Apis::ContentV2::DatafeedstatusesCustomBatchResponse
command.request_representation = Google::Apis::ContentV2::BatchDatafeedStatusesRequest::Representation
command.request_object = batch_datafeed_statuses_request_object
command.response_representation = Google::Apis::ContentV2::BatchDatafeedStatusesResponse::Representation
command.response_class = Google::Apis::ContentV2::BatchDatafeedStatusesResponse
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?
@ -1099,7 +1100,7 @@ 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 get_datafeedstatus(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_datafeed_status(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
command.response_representation = Google::Apis::ContentV2::DatafeedStatus::Representation
command.response_class = Google::Apis::ContentV2::DatafeedStatus
@ -1132,18 +1133,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::DatafeedstatusesListResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::ListDatafeedStatusesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::DatafeedstatusesListResponse]
# @return [Google::Apis::ContentV2::ListDatafeedStatusesResponse]
#
# @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_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_datafeed_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options)
command.response_representation = Google::Apis::ContentV2::DatafeedstatusesListResponse::Representation
command.response_class = Google::Apis::ContentV2::DatafeedstatusesListResponse
command.response_representation = Google::Apis::ContentV2::ListDatafeedStatusesResponse::Representation
command.response_class = Google::Apis::ContentV2::ListDatafeedStatusesResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
@ -1156,7 +1157,7 @@ module Google
# Updates price and availability for multiple products or stores in a single
# request. This operation does not update the expiration date of the products.
# This method can only be called for non-multi-client accounts.
# @param [Google::Apis::ContentV2::InventoryCustomBatchRequest] inventory_custom_batch_request_object
# @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object
# @param [Boolean] dry_run
# Flag to run the request in dry-run mode.
# @param [String] fields
@ -1172,20 +1173,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::InventoryCustomBatchResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::BatchInventoryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::InventoryCustomBatchResponse]
# @return [Google::Apis::ContentV2::BatchInventoryResponse]
#
# @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 custombatch_inventory(inventory_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'inventory/batch', options)
command.request_representation = Google::Apis::ContentV2::InventoryCustomBatchRequest::Representation
command.request_object = inventory_custom_batch_request_object
command.response_representation = Google::Apis::ContentV2::InventoryCustomBatchResponse::Representation
command.response_class = Google::Apis::ContentV2::InventoryCustomBatchResponse
command.request_representation = Google::Apis::ContentV2::BatchInventoryRequest::Representation
command.request_object = batch_inventory_request_object
command.response_representation = Google::Apis::ContentV2::BatchInventoryResponse::Representation
command.response_class = Google::Apis::ContentV2::BatchInventoryResponse
command.query['dryRun'] = dry_run unless dry_run.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -1203,7 +1204,7 @@ module Google
# to update price and availability of an online product.
# @param [String] product_id
# The ID of the product for which to update price and availability.
# @param [Google::Apis::ContentV2::InventorySetRequest] inventory_set_request_object
# @param [Google::Apis::ContentV2::SetInventoryRequest] set_inventory_request_object
# @param [Boolean] dry_run
# Flag to run the request in dry-run mode.
# @param [String] fields
@ -1219,20 +1220,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::InventorySetResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::SetInventoryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::InventorySetResponse]
# @return [Google::Apis::ContentV2::SetInventoryResponse]
#
# @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 set_inventory(merchant_id, store_code, product_id, inventory_set_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/inventory/{storeCode}/products/{productId}', options)
command.request_representation = Google::Apis::ContentV2::InventorySetRequest::Representation
command.request_object = inventory_set_request_object
command.response_representation = Google::Apis::ContentV2::InventorySetResponse::Representation
command.response_class = Google::Apis::ContentV2::InventorySetResponse
command.request_representation = Google::Apis::ContentV2::SetInventoryRequest::Representation
command.request_object = set_inventory_request_object
command.response_representation = Google::Apis::ContentV2::SetInventoryResponse::Representation
command.response_class = Google::Apis::ContentV2::SetInventoryResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['storeCode'] = store_code unless store_code.nil?
command.params['productId'] = product_id unless product_id.nil?
@ -1312,7 +1313,7 @@ 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 advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def advance_test_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
command.response_representation = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse::Representation
command.response_class = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse
@ -1394,7 +1395,7 @@ 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 cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def cancel_order_line_item(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
command.request_representation = Google::Apis::ContentV2::OrdersCancelLineItemRequest::Representation
command.request_object = orders_cancel_line_item_request_object
@ -1434,7 +1435,7 @@ 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 createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def create_test_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/testorders', options)
command.request_representation = Google::Apis::ContentV2::OrdersCreateTestOrderRequest::Representation
command.request_object = orders_create_test_order_request_object
@ -1471,7 +1472,7 @@ 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 custombatch_order(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def custom_order_batch(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'orders/batch', options)
command.request_representation = Google::Apis::ContentV2::OrdersCustomBatchRequest::Representation
command.request_object = orders_custom_batch_request_object
@ -1549,7 +1550,7 @@ 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 getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_order_by_merchant_order_id(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
command.response_representation = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse::Representation
command.response_class = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse
@ -1589,7 +1590,7 @@ 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 gettestordertemplate_order(merchant_id, template_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_test_order_template(merchant_id, template_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
command.response_representation = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse::Representation
command.response_class = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse
@ -1745,7 +1746,7 @@ 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 returnlineitem_order(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def return_order_line_item(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnLineItem', options)
command.request_representation = Google::Apis::ContentV2::OrdersReturnLineItemRequest::Representation
command.request_object = orders_return_line_item_request_object
@ -1829,7 +1830,7 @@ 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 updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_merchant_order_id(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
command.request_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest::Representation
command.request_object = orders_update_merchant_order_id_request_object
@ -1871,7 +1872,7 @@ 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 updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_order_shipment(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
command.request_representation = Google::Apis::ContentV2::OrdersUpdateShipmentRequest::Representation
command.request_object = orders_update_shipment_request_object
@ -1887,7 +1888,7 @@ module Google
# Retrieves, inserts, and deletes multiple products in a single request. This
# method can only be called for non-multi-client accounts.
# @param [Google::Apis::ContentV2::ProductsCustomBatchRequest] products_custom_batch_request_object
# @param [Google::Apis::ContentV2::BatchProductsRequest] batch_products_request_object
# @param [Boolean] dry_run
# Flag to run the request in dry-run mode.
# @param [String] fields
@ -1903,20 +1904,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::ProductsCustomBatchResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::BatchProductsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::ProductsCustomBatchResponse]
# @return [Google::Apis::ContentV2::BatchProductsResponse]
#
# @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 custombatch_product(products_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_product(batch_products_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'products/batch', options)
command.request_representation = Google::Apis::ContentV2::ProductsCustomBatchRequest::Representation
command.request_object = products_custom_batch_request_object
command.response_representation = Google::Apis::ContentV2::ProductsCustomBatchResponse::Representation
command.response_class = Google::Apis::ContentV2::ProductsCustomBatchResponse
command.request_representation = Google::Apis::ContentV2::BatchProductsRequest::Representation
command.request_object = batch_products_request_object
command.response_representation = Google::Apis::ContentV2::BatchProductsResponse::Representation
command.response_class = Google::Apis::ContentV2::BatchProductsResponse
command.query['dryRun'] = dry_run unless dry_run.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -2071,18 +2072,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::ProductsListResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::ListProductsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::ProductsListResponse]
# @return [Google::Apis::ContentV2::ListProductsResponse]
#
# @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_products(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/products', options)
command.response_representation = Google::Apis::ContentV2::ProductsListResponse::Representation
command.response_class = Google::Apis::ContentV2::ProductsListResponse
command.response_representation = Google::Apis::ContentV2::ListProductsResponse::Representation
command.response_class = Google::Apis::ContentV2::ListProductsResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.nil?
command.query['maxResults'] = max_results unless max_results.nil?
@ -2095,7 +2096,7 @@ module Google
# Gets the statuses of multiple products in a single request. This method can
# only be called for non-multi-client accounts.
# @param [Google::Apis::ContentV2::ProductstatusesCustomBatchRequest] productstatuses_custom_batch_request_object
# @param [Google::Apis::ContentV2::BatchProductStatusesRequest] batch_product_statuses_request_object
# @param [Boolean] include_attributes
# Flag to include full product data in the results of this request. The default
# value is false.
@ -2112,20 +2113,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::ProductstatusesCustomBatchResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::BatchProductStatusesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::ProductstatusesCustomBatchResponse]
# @return [Google::Apis::ContentV2::BatchProductStatusesResponse]
#
# @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 custombatch_productstatus(productstatuses_custom_batch_request_object = nil, include_attributes: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_product_status(batch_product_statuses_request_object = nil, include_attributes: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'productstatuses/batch', options)
command.request_representation = Google::Apis::ContentV2::ProductstatusesCustomBatchRequest::Representation
command.request_object = productstatuses_custom_batch_request_object
command.response_representation = Google::Apis::ContentV2::ProductstatusesCustomBatchResponse::Representation
command.response_class = Google::Apis::ContentV2::ProductstatusesCustomBatchResponse
command.request_representation = Google::Apis::ContentV2::BatchProductStatusesRequest::Representation
command.request_object = batch_product_statuses_request_object
command.response_representation = Google::Apis::ContentV2::BatchProductStatusesResponse::Representation
command.response_class = Google::Apis::ContentV2::BatchProductStatusesResponse
command.query['includeAttributes'] = include_attributes unless include_attributes.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -2163,7 +2164,7 @@ 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 get_productstatus(merchant_id, product_id, include_attributes: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_product_status(merchant_id, product_id, include_attributes: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
command.response_representation = Google::Apis::ContentV2::ProductStatus::Representation
command.response_class = Google::Apis::ContentV2::ProductStatus
@ -2204,18 +2205,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::ProductstatusesListResponse] parsed result object
# @yieldparam result [Google::Apis::ContentV2::ListProductStatusesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::ProductstatusesListResponse]
# @return [Google::Apis::ContentV2::ListProductStatusesResponse]
#
# @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_productstatuses(merchant_id, include_attributes: nil, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_product_statuses(merchant_id, include_attributes: nil, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/productstatuses', options)
command.response_representation = Google::Apis::ContentV2::ProductstatusesListResponse::Representation
command.response_class = Google::Apis::ContentV2::ProductstatusesListResponse
command.response_representation = Google::Apis::ContentV2::ListProductStatusesResponse::Representation
command.response_class = Google::Apis::ContentV2::ListProductStatusesResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.query['includeAttributes'] = include_attributes unless include_attributes.nil?
command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.nil?

View File

@ -20,12 +20,12 @@ module Google
module Apis
# CustomSearch API
#
# Lets you search over a website or collection of websites
# Searches over a website or collection of websites
#
# @see https://developers.google.com/custom-search/v1/using_rest
module CustomsearchV1
VERSION = 'V1'
REVISION = '20160411'
REVISION = '20170530'
end
end
end

View File

@ -209,11 +209,6 @@ module Google
# @return [String]
attr_accessor :cr
#
# Corresponds to the JSON property `cref`
# @return [String]
attr_accessor :cref
#
# Corresponds to the JSON property `cx`
# @return [String]
@ -392,7 +387,6 @@ module Google
def update!(**args)
@count = args[:count] if args.key?(:count)
@cr = args[:cr] if args.key?(:cr)
@cref = args[:cref] if args.key?(:cref)
@cx = args[:cx] if args.key?(:cx)
@date_restrict = args[:date_restrict] if args.key?(:date_restrict)
@disable_cn_tw_translation = args[:disable_cn_tw_translation] if args.key?(:disable_cn_tw_translation)

View File

@ -160,7 +160,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count'
property :cr, as: 'cr'
property :cref, as: 'cref'
property :cx, as: 'cx'
property :date_restrict, as: 'dateRestrict'
property :disable_cn_tw_translation, as: 'disableCnTwTranslation'

Some files were not shown because too many files have changed in this diff Show More