Bump version, regen APIs

Delete services which are no longer discoverable:
 - adexchangebuyer:v1_3
 - appengine:v1beta4
 - appengine:v1beta5
 - autoscaler:v1beta2
 - classroom:v1beta1
 - cloudkms:v1beta1
 - cloudlatencytest:v2
 - container:v1beta1
 - coordinate:v1
 - datastore:v1beta2
 - datastore:v1beta3
 - deploymentmanager:v2beta2
 - dfareporting:v2_1
 - dfareporting:v2_3
 - dfareporting:v2_5
 - dfareporting:v2_6
 - gan:v1beta1
 - genomics:v1beta2
 - logging:v1beta3
 - manager:v1beta2
 - pubsub:v1beta2
 - tracing:v1

Also include fixes in the gemspec file recommended by the package
script.
This commit is contained in:
Sai Cheemalapati 2017-06-01 23:11:31 -07:00
parent e3792b19d2
commit 3f26743ef7
395 changed files with 105255 additions and 245738 deletions

View File

@ -1,3 +1,54 @@
# 0.12.0
* *Breaking change* - Change behavior of `fetch_all` to collect Hash responses
into a single collection.
For responses that return a Hash, `fetch_all` used to return an array of
Hashes in version 0.11.3 and below:
```
items = service.fetch_all do |token|
service.aggregated_autoscaler_list(project, page_token: token)
end
items.each do |item|
item.each do |key, val|
puts String(key) + " => " + val.to_json
end
end
```
The new behavior is to return an array of [ key, value ] arrays:
```
items = service.fetch_all do |token|
service.foo(project, page_token: token)
end
items.each do |key, val|
puts String(key) + " => " + val.to_json
end
```
* Regenerate APIs
* Remove non-discoverable APIs:
* adexchangebuyer:v1\_3
* appengine:v1beta4
* appengine:v1beta5
* autoscaler:v1beta2
* classroom:v1beta1
* cloudkms:v1beta1
* cloudlatencytest:v2
* container:v1beta1
* coordinate:v1
* datastore:v1beta2
* datastore:v1beta3
* deploymentmanager:v2beta2
* dfareporting:v2\_1
* dfareporting:v2\_3
* dfareporting:v2\_5
* dfareporting:v2\_6
* gan:v1beta1
* genomics:v1beta2
* logging:v1beta3
* manager:v1beta2
* pubsub:v1beta2
* tracing:v1
# 0.11.3 # 0.11.3
* Add `RequestOptions.api_format_version` to opt-in to receive v2 error messages * Add `RequestOptions.api_format_version` to opt-in to receive v2 error messages
* Fix `to_json` signature to allow args * Fix `to_json` signature to allow args

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

0
dl.rb
View File

View File

@ -22,92 +22,6 @@ module Google
module Apis module Apis
module AcceleratedmobilepageurlV1 module AcceleratedmobilepageurlV1
# AMP URL Error resource for a requested URL that couldn't be found.
class AmpUrlError
include Google::Apis::Core::Hashable
# The error code of an API call.
# Corresponds to the JSON property `errorCode`
# @return [String]
attr_accessor :error_code
# The original non-AMP URL.
# Corresponds to the JSON property `originalUrl`
# @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_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
# AMP URL request for a batch of URLs.
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)).
# Corresponds to the JSON property `urls`
# @return [Array<String>]
attr_accessor :urls
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
@urls = args[:urls] if args.key?(:urls)
end
end
# Batch AMP URL response.
class BatchGetAmpUrlsResponse
include Google::Apis::Core::Hashable
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
# not be in the same order as URLs in the batch request.
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
# only once.
# Corresponds to the JSON property `ampUrls`
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
attr_accessor :amp_urls
# The errors for requested URLs that have no AMP URL.
# Corresponds to the JSON property `urlErrors`
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>]
attr_accessor :url_errors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
@url_errors = args[:url_errors] if args.key?(:url_errors)
end
end
# AMP URL response for a requested URL. # AMP URL response for a requested URL.
class AmpUrl class AmpUrl
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -139,6 +53,92 @@ module Google
@amp_url = args[:amp_url] if args.key?(:amp_url) @amp_url = args[:amp_url] if args.key?(:amp_url)
end end
end end
# AMP URL Error resource for a requested URL that couldn't be found.
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]
attr_accessor :error_code
# The original non-AMP URL.
# Corresponds to the JSON property `originalUrl`
# @return [String]
attr_accessor :original_url
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)
end
end
# AMP URL request for a batch of URLs.
class BatchGetAmpUrlsRequest
include Google::Apis::Core::Hashable
# 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)).
# Corresponds to the JSON property `urls`
# @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)
end
end
# Batch AMP URL response.
class BatchGetAmpUrlsResponse
include Google::Apis::Core::Hashable
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
# not be in the same order as URLs in the batch request.
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
# only once.
# Corresponds to the JSON property `ampUrls`
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
attr_accessor :amp_urls
# The errors for requested URLs that have no AMP URL.
# Corresponds to the JSON property `urlErrors`
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>]
attr_accessor :url_errors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
@url_errors = args[:url_errors] if args.key?(:url_errors)
end
end
end end
end end
end end

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module AcceleratedmobilepageurlV1 module AcceleratedmobilepageurlV1
class AmpUrl
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AmpUrlError class AmpUrlError
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -41,25 +47,28 @@ module Google
end end
class AmpUrl class AmpUrl
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :cdn_amp_url, as: 'cdnAmpUrl'
property :original_url, as: 'originalUrl'
property :amp_url, as: 'ampUrl'
end
end end
class AmpUrlError class AmpUrlError
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :error_message, as: 'errorMessage'
property :error_code, as: 'errorCode' property :error_code, as: 'errorCode'
property :original_url, as: 'originalUrl' property :original_url, as: 'originalUrl'
property :error_message, as: 'errorMessage'
end end
end end
class BatchGetAmpUrlsRequest class BatchGetAmpUrlsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :lookup_strategy, as: 'lookupStrategy'
collection :urls, as: 'urls' collection :urls, as: 'urls'
property :lookup_strategy, as: 'lookupStrategy'
end end
end end
@ -72,15 +81,6 @@ module Google
end end
end end
class AmpUrl
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cdn_amp_url, as: 'cdnAmpUrl'
property :original_url, as: 'originalUrl'
property :amp_url, as: 'ampUrl'
end
end
end end
end end
end end

View File

@ -33,16 +33,16 @@ module Google
# #
# @see https://developers.google.com/amp/cache/ # @see https://developers.google.com/amp/cache/
class AcceleratedmobilepageurlService < Google::Apis::Core::BaseService class AcceleratedmobilepageurlService < Google::Apis::Core::BaseService
# @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] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # 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. # quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key 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
def initialize def initialize
super('https://acceleratedmobilepageurl.googleapis.com/', '') super('https://acceleratedmobilepageurl.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
@ -51,11 +51,11 @@ module Google
# Returns AMP URL(s) and equivalent # Returns AMP URL(s) and equivalent
# [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format). # [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
# @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_request_object # @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -68,22 +68,22 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_get_amp_urls(batch_get_amp_urls_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def batch_get_amp_urls(batch_get_amp_urls_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/ampUrls:batchGet', options) command = make_simple_command(:post, 'v1/ampUrls:batchGet', options)
command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation
command.request_object = batch_get_amp_urls_request_object command.request_object = batch_get_amp_urls_request_object
command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation
command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil? command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end end
end end
end end

View File

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

View File

@ -22,149 +22,6 @@ module Google
module Apis module Apis
module Adexchangebuyer2V2beta1 module Adexchangebuyer2V2beta1
# @OutputOnly The app type the restriction applies to for mobile device.
class AppContext
include Google::Apis::Core::Hashable
# The app types this restriction applies to.
# Corresponds to the JSON property `appTypes`
# @return [Array<String>]
attr_accessor :app_types
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@app_types = args[:app_types] if args.key?(:app_types)
end
end
# Native content for a creative.
class NativeContent
include Google::Apis::Core::Hashable
# A long description of the ad.
# Corresponds to the JSON property `body`
# @return [String]
attr_accessor :body
# The app rating in the app store. Must be in the range [0-5].
# Corresponds to the JSON property `starRating`
# @return [Float]
attr_accessor :star_rating
# The URL to fetch a native video ad.
# Corresponds to the JSON property `videoUrl`
# @return [String]
attr_accessor :video_url
# The URL that the browser/SDK will load when the user clicks the ad.
# Corresponds to the JSON property `clickLinkUrl`
# @return [String]
attr_accessor :click_link_url
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# Corresponds to the JSON property `logo`
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
attr_accessor :logo
# The price of the promoted app including currency info.
# Corresponds to the JSON property `priceDisplayText`
# @return [String]
attr_accessor :price_display_text
# The URL to use for click tracking.
# Corresponds to the JSON property `clickTrackingUrl`
# @return [String]
attr_accessor :click_tracking_url
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# Corresponds to the JSON property `image`
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
attr_accessor :image
# The name of the advertiser or sponsor, to be displayed in the ad creative.
# Corresponds to the JSON property `advertiserName`
# @return [String]
attr_accessor :advertiser_name
# The URL to the app store to purchase/download the promoted app.
# Corresponds to the JSON property `storeUrl`
# @return [String]
attr_accessor :store_url
# A short title for the ad.
# Corresponds to the JSON property `headline`
# @return [String]
attr_accessor :headline
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# Corresponds to the JSON property `appIcon`
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
attr_accessor :app_icon
# A label for the button that the user is supposed to click.
# Corresponds to the JSON property `callToAction`
# @return [String]
attr_accessor :call_to_action
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@body = args[:body] if args.key?(:body)
@star_rating = args[:star_rating] if args.key?(:star_rating)
@video_url = args[:video_url] if args.key?(:video_url)
@click_link_url = args[:click_link_url] if args.key?(:click_link_url)
@logo = args[:logo] if args.key?(:logo)
@price_display_text = args[:price_display_text] if args.key?(:price_display_text)
@click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
@image = args[:image] if args.key?(:image)
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
@store_url = args[:store_url] if args.key?(:store_url)
@headline = args[:headline] if args.key?(:headline)
@app_icon = args[:app_icon] if args.key?(:app_icon)
@call_to_action = args[:call_to_action] if args.key?(:call_to_action)
end
end
#
class ListClientsResponse
include Google::Apis::Core::Hashable
# A token to retrieve the next page of results.
# Pass this value in the
# ListClientsRequest.pageToken
# field in the subsequent call to the
# accounts.clients.list method
# to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The returned list of clients.
# Corresponds to the JSON property `clients`
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
attr_accessor :clients
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)
@clients = args[:clients] if args.key?(:clients)
end
end
# @OutputOnly A security context. # @OutputOnly A security context.
class SecurityContext class SecurityContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -184,6 +41,37 @@ module Google
end end
end end
# HTML content for a creative.
class HtmlContent
include Google::Apis::Core::Hashable
# The height of the HTML snippet in pixels.
# Corresponds to the JSON property `height`
# @return [Fixnum]
attr_accessor :height
# The width of the HTML snippet in pixels.
# Corresponds to the JSON property `width`
# @return [Fixnum]
attr_accessor :width
# The HTML snippet that displays the ad when inserted in the web page.
# Corresponds to the JSON property `snippet`
# @return [String]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@height = args[:height] if args.key?(:height)
@width = args[:width] if args.key?(:width)
@snippet = args[:snippet] if args.key?(:snippet)
end
end
# A response for listing creatives. # A response for listing creatives.
class ListCreativesResponse class ListCreativesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -213,41 +101,20 @@ module Google
end end
end end
# HTML content for a creative.
class HtmlContent
include Google::Apis::Core::Hashable
# The width of the HTML snippet in pixels.
# Corresponds to the JSON property `width`
# @return [Fixnum]
attr_accessor :width
# The HTML snippet that displays the ad when inserted in the web page.
# Corresponds to the JSON property `snippet`
# @return [String]
attr_accessor :snippet
# The height of the HTML snippet in pixels.
# Corresponds to the JSON property `height`
# @return [Fixnum]
attr_accessor :height
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@width = args[:width] if args.key?(:width)
@snippet = args[:snippet] if args.key?(:snippet)
@height = args[:height] if args.key?(:height)
end
end
# The serving context for this restriction. # The serving context for this restriction.
class ServingContext class ServingContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# @OutputOnly The type of platform the restriction applies to.
# Corresponds to the JSON property `platform`
# @return [Google::Apis::Adexchangebuyer2V2beta1::PlatformContext]
attr_accessor :platform
# @OutputOnly The Geo criteria the restriction applies to.
# Corresponds to the JSON property `location`
# @return [Google::Apis::Adexchangebuyer2V2beta1::LocationContext]
attr_accessor :location
# @OutputOnly The auction type the restriction applies to. # @OutputOnly The auction type the restriction applies to.
# Corresponds to the JSON property `auctionType` # Corresponds to the JSON property `auctionType`
# @return [Google::Apis::Adexchangebuyer2V2beta1::AuctionContext] # @return [Google::Apis::Adexchangebuyer2V2beta1::AuctionContext]
@ -268,28 +135,18 @@ module Google
# @return [Google::Apis::Adexchangebuyer2V2beta1::SecurityContext] # @return [Google::Apis::Adexchangebuyer2V2beta1::SecurityContext]
attr_accessor :security_type attr_accessor :security_type
# @OutputOnly The type of platform the restriction applies to.
# Corresponds to the JSON property `platform`
# @return [Google::Apis::Adexchangebuyer2V2beta1::PlatformContext]
attr_accessor :platform
# @OutputOnly The Geo criteria the restriction applies to.
# Corresponds to the JSON property `location`
# @return [Google::Apis::Adexchangebuyer2V2beta1::LocationContext]
attr_accessor :location
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@platform = args[:platform] if args.key?(:platform)
@location = args[:location] if args.key?(:location)
@auction_type = args[:auction_type] if args.key?(:auction_type) @auction_type = args[:auction_type] if args.key?(:auction_type)
@all = args[:all] if args.key?(:all) @all = args[:all] if args.key?(:all)
@app_type = args[:app_type] if args.key?(:app_type) @app_type = args[:app_type] if args.key?(:app_type)
@security_type = args[:security_type] if args.key?(:security_type) @security_type = args[:security_type] if args.key?(:security_type)
@platform = args[:platform] if args.key?(:platform)
@location = args[:location] if args.key?(:location)
end end
end end
@ -329,6 +186,12 @@ module Google
class Reason class Reason
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The number of times the creative was filtered for the status. The
# count is aggregated across all publishers on the exchange.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# The filtering status code. Please refer to the # The filtering status code. Please refer to the
# [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb- # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-
# dictionaries/creative-status-codes.txt) # dictionaries/creative-status-codes.txt)
@ -337,20 +200,14 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :status attr_accessor :status
# The number of times the creative was filtered for the status. The
# count is aggregated across all publishers on the exchange.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@status = args[:status] if args.key?(:status)
@count = args[:count] if args.key?(:count) @count = args[:count] if args.key?(:count)
@status = args[:status] if args.key?(:status)
end end
end end
@ -465,11 +322,6 @@ module Google
class ListClientUsersResponse class ListClientUsersResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The returned list of client users.
# Corresponds to the JSON property `users`
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUser>]
attr_accessor :users
# A token to retrieve the next page of results. # A token to retrieve the next page of results.
# Pass this value in the # Pass this value in the
# ListClientUsersRequest.pageToken # ListClientUsersRequest.pageToken
@ -481,14 +333,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# The returned list of client users.
# Corresponds to the JSON property `users`
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUser>]
attr_accessor :users
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@users = args[:users] if args.key?(:users)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token) @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@users = args[:users] if args.key?(:users)
end end
end end
@ -547,14 +404,6 @@ module Google
class ClientUser class ClientUser
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Numerical account ID of the client buyer
# with which the user is associated; the
# buyer must be a client of the current sponsor buyer.
# The value of this field is ignored in an update operation.
# Corresponds to the JSON property `clientAccountId`
# @return [Fixnum]
attr_accessor :client_account_id
# The status of the client user. # The status of the client user.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
@ -573,16 +422,24 @@ module Google
# @return [String] # @return [String]
attr_accessor :email attr_accessor :email
# Numerical account ID of the client buyer
# with which the user is associated; the
# buyer must be a client of the current sponsor buyer.
# The value of this field is ignored in an update operation.
# Corresponds to the JSON property `clientAccountId`
# @return [Fixnum]
attr_accessor :client_account_id
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@client_account_id = args[:client_account_id] if args.key?(:client_account_id)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@user_id = args[:user_id] if args.key?(:user_id) @user_id = args[:user_id] if args.key?(:user_id)
@email = args[:email] if args.key?(:email) @email = args[:email] if args.key?(:email)
@client_account_id = args[:client_account_id] if args.key?(:client_account_id)
end end
end end
@ -590,6 +447,11 @@ module Google
class CreativeDealAssociation class CreativeDealAssociation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The externalDealId for the deal associated with the creative.
# Corresponds to the JSON property `dealsId`
# @return [String]
attr_accessor :deals_id
# The account the creative belongs to. # The account the creative belongs to.
# Corresponds to the JSON property `accountId` # Corresponds to the JSON property `accountId`
# @return [String] # @return [String]
@ -600,52 +462,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :creative_id attr_accessor :creative_id
# The externalDealId for the deal associated with the creative.
# Corresponds to the JSON property `dealsId`
# @return [String]
attr_accessor :deals_id
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@deals_id = args[:deals_id] if args.key?(:deals_id)
@account_id = args[:account_id] if args.key?(:account_id) @account_id = args[:account_id] if args.key?(:account_id)
@creative_id = args[:creative_id] if args.key?(:creative_id) @creative_id = args[:creative_id] if args.key?(:creative_id)
@deals_id = args[:deals_id] if args.key?(:deals_id)
end
end
# @OutputOnly Filtering reasons for this creative during a period of a single
# day (from midnight to midnight Pacific).
class FilteringStats
include Google::Apis::Core::Hashable
# The set of filtering reasons for this date.
# Corresponds to the JSON property `reasons`
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Reason>]
attr_accessor :reasons
# Represents a whole calendar date, e.g. date of birth. The time of day and
# time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
# represent a year and month where the day is not significant, e.g. credit card
# expiration date. The year may be 0 to represent a month and day independent
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
# and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `date`
# @return [Google::Apis::Adexchangebuyer2V2beta1::Date]
attr_accessor :date
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@reasons = args[:reasons] if args.key?(:reasons)
@date = args[:date] if args.key?(:date)
end end
end end
@ -653,47 +478,6 @@ module Google
class Creative class Creative
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# HTML content for a creative.
# Corresponds to the JSON property `html`
# @return [Google::Apis::Adexchangebuyer2V2beta1::HtmlContent]
attr_accessor :html
# @OutputOnly The top-level deals status of this creative.
# If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
# serving_restrictions will also exist. Note
# that this may be nuanced with other contextual restrictions, in which case,
# it may be preferable to read from serving_restrictions directly.
# Can be used to filter the response of the
# creatives.list
# method.
# Corresponds to the JSON property `dealsStatus`
# @return [String]
attr_accessor :deals_status
# @OutputOnly Detected product categories, if any.
# See the ad-product-categories.txt file in the technical documentation
# for a list of IDs.
# Corresponds to the JSON property `detectedProductCategories`
# @return [Array<Fixnum>]
attr_accessor :detected_product_categories
# @OutputOnly The top-level open auction status of this creative.
# If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
# serving_restrictions will also exist. Note
# that this may be nuanced with other contextual restrictions, in which case,
# it may be preferable to read from serving_restrictions directly.
# Can be used to filter the response of the
# creatives.list
# method.
# Corresponds to the JSON property `openAuctionStatus`
# @return [String]
attr_accessor :open_auction_status
# The name of the company being advertised in the creative.
# Corresponds to the JSON property `advertiserName`
# @return [String]
attr_accessor :advertiser_name
# @OutputOnly Detected advertiser IDs, if any. # @OutputOnly Detected advertiser IDs, if any.
# Corresponds to the JSON property `detectedAdvertiserIds` # Corresponds to the JSON property `detectedAdvertiserIds`
# @return [Array<Fixnum>] # @return [Array<Fixnum>]
@ -816,17 +600,53 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :impression_tracking_urls attr_accessor :impression_tracking_urls
# HTML content for a creative.
# Corresponds to the JSON property `html`
# @return [Google::Apis::Adexchangebuyer2V2beta1::HtmlContent]
attr_accessor :html
# @OutputOnly Detected product categories, if any.
# See the ad-product-categories.txt file in the technical documentation
# for a list of IDs.
# Corresponds to the JSON property `detectedProductCategories`
# @return [Array<Fixnum>]
attr_accessor :detected_product_categories
# @OutputOnly The top-level deals status of this creative.
# If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
# serving_restrictions will also exist. Note
# that this may be nuanced with other contextual restrictions, in which case,
# it may be preferable to read from serving_restrictions directly.
# Can be used to filter the response of the
# creatives.list
# method.
# Corresponds to the JSON property `dealsStatus`
# @return [String]
attr_accessor :deals_status
# @OutputOnly The top-level open auction status of this creative.
# If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
# serving_restrictions will also exist. Note
# that this may be nuanced with other contextual restrictions, in which case,
# it may be preferable to read from serving_restrictions directly.
# Can be used to filter the response of the
# creatives.list
# method.
# Corresponds to the JSON property `openAuctionStatus`
# @return [String]
attr_accessor :open_auction_status
# The name of the company being advertised in the creative.
# Corresponds to the JSON property `advertiserName`
# @return [String]
attr_accessor :advertiser_name
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@html = args[:html] if args.key?(:html)
@deals_status = args[:deals_status] if args.key?(:deals_status)
@detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
@open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
@detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids) @detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids)
@detected_domains = args[:detected_domains] if args.key?(:detected_domains) @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
@filtering_stats = args[:filtering_stats] if args.key?(:filtering_stats) @filtering_stats = args[:filtering_stats] if args.key?(:filtering_stats)
@ -847,6 +667,43 @@ module Google
@version = args[:version] if args.key?(:version) @version = args[:version] if args.key?(:version)
@vendor_ids = args[:vendor_ids] if args.key?(:vendor_ids) @vendor_ids = args[:vendor_ids] if args.key?(:vendor_ids)
@impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls) @impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
@html = args[:html] if args.key?(:html)
@detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
@deals_status = args[:deals_status] if args.key?(:deals_status)
@open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
end
end
# @OutputOnly Filtering reasons for this creative during a period of a single
# day (from midnight to midnight Pacific).
class FilteringStats
include Google::Apis::Core::Hashable
# Represents a whole calendar date, e.g. date of birth. The time of day and
# time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
# represent a year and month where the day is not significant, e.g. credit card
# expiration date. The year may be 0 to represent a month and day independent
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
# and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `date`
# @return [Google::Apis::Adexchangebuyer2V2beta1::Date]
attr_accessor :date
# The set of filtering reasons for this date.
# Corresponds to the JSON property `reasons`
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Reason>]
attr_accessor :reasons
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@date = args[:date] if args.key?(:date)
@reasons = args[:reasons] if args.key?(:reasons)
end end
end end
@ -1125,11 +982,6 @@ module Google
class Date class Date
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Month of year. Must be from 1 to 12.
# Corresponds to the JSON property `month`
# @return [Fixnum]
attr_accessor :month
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
# a year. # a year.
# Corresponds to the JSON property `year` # Corresponds to the JSON property `year`
@ -1142,15 +994,20 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :day attr_accessor :day
# Month of year. Must be from 1 to 12.
# Corresponds to the JSON property `month`
# @return [Fixnum]
attr_accessor :month
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@month = args[:month] if args.key?(:month)
@year = args[:year] if args.key?(:year) @year = args[:year] if args.key?(:year)
@day = args[:day] if args.key?(:day) @day = args[:day] if args.key?(:day)
@month = args[:month] if args.key?(:month)
end end
end end
@ -1195,6 +1052,149 @@ module Google
@topic = args[:topic] if args.key?(:topic) @topic = args[:topic] if args.key?(:topic)
end end
end end
# @OutputOnly The app type the restriction applies to for mobile device.
class AppContext
include Google::Apis::Core::Hashable
# The app types this restriction applies to.
# Corresponds to the JSON property `appTypes`
# @return [Array<String>]
attr_accessor :app_types
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@app_types = args[:app_types] if args.key?(:app_types)
end
end
# Native content for a creative.
class NativeContent
include Google::Apis::Core::Hashable
# The app rating in the app store. Must be in the range [0-5].
# Corresponds to the JSON property `starRating`
# @return [Float]
attr_accessor :star_rating
# The URL to fetch a native video ad.
# Corresponds to the JSON property `videoUrl`
# @return [String]
attr_accessor :video_url
# The URL that the browser/SDK will load when the user clicks the ad.
# Corresponds to the JSON property `clickLinkUrl`
# @return [String]
attr_accessor :click_link_url
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# Corresponds to the JSON property `logo`
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
attr_accessor :logo
# The price of the promoted app including currency info.
# Corresponds to the JSON property `priceDisplayText`
# @return [String]
attr_accessor :price_display_text
# The URL to use for click tracking.
# Corresponds to the JSON property `clickTrackingUrl`
# @return [String]
attr_accessor :click_tracking_url
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# Corresponds to the JSON property `image`
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
attr_accessor :image
# The name of the advertiser or sponsor, to be displayed in the ad creative.
# Corresponds to the JSON property `advertiserName`
# @return [String]
attr_accessor :advertiser_name
# The URL to the app store to purchase/download the promoted app.
# Corresponds to the JSON property `storeUrl`
# @return [String]
attr_accessor :store_url
# A short title for the ad.
# Corresponds to the JSON property `headline`
# @return [String]
attr_accessor :headline
# An image resource. You may provide a larger image than was requested,
# so long as the aspect ratio is preserved.
# Corresponds to the JSON property `appIcon`
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
attr_accessor :app_icon
# A label for the button that the user is supposed to click.
# Corresponds to the JSON property `callToAction`
# @return [String]
attr_accessor :call_to_action
# A long description of the ad.
# Corresponds to the JSON property `body`
# @return [String]
attr_accessor :body
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@star_rating = args[:star_rating] if args.key?(:star_rating)
@video_url = args[:video_url] if args.key?(:video_url)
@click_link_url = args[:click_link_url] if args.key?(:click_link_url)
@logo = args[:logo] if args.key?(:logo)
@price_display_text = args[:price_display_text] if args.key?(:price_display_text)
@click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
@image = args[:image] if args.key?(:image)
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
@store_url = args[:store_url] if args.key?(:store_url)
@headline = args[:headline] if args.key?(:headline)
@app_icon = args[:app_icon] if args.key?(:app_icon)
@call_to_action = args[:call_to_action] if args.key?(:call_to_action)
@body = args[:body] if args.key?(:body)
end
end
#
class ListClientsResponse
include Google::Apis::Core::Hashable
# The returned list of clients.
# Corresponds to the JSON property `clients`
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
attr_accessor :clients
# A token to retrieve the next page of results.
# Pass this value in the
# ListClientsRequest.pageToken
# field in the subsequent call to the
# accounts.clients.list method
# to retrieve 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)
@clients = args[:clients] if args.key?(:clients)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
end end
end end
end end

View File

@ -22,37 +22,19 @@ module Google
module Apis module Apis
module Adexchangebuyer2V2beta1 module Adexchangebuyer2V2beta1
class AppContext
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 ListClientsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityContext class SecurityContext
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListCreativesResponse class HtmlContent
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class HtmlContent class ListCreativesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -130,13 +112,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FilteringStats class Creative
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Creative class FilteringStats
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -209,41 +191,21 @@ module Google
end end
class AppContext class AppContext
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :app_types, as: 'appTypes' include Google::Apis::Core::JsonObjectSupport
end
end end
class NativeContent class NativeContent
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
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' include Google::Apis::Core::JsonObjectSupport
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'
end
end end
class ListClientsResponse class ListClientsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
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 include Google::Apis::Core::JsonObjectSupport
end end
class SecurityContext class SecurityContext
@ -253,6 +215,15 @@ module Google
end end
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 class ListCreativesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -262,18 +233,13 @@ module Google
end end
end end
class HtmlContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :width, as: 'width'
property :snippet, as: 'snippet'
property :height, as: 'height'
end
end
class ServingContext class ServingContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 property :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation
property :all, as: 'all' property :all, as: 'all'
@ -281,10 +247,6 @@ module Google
property :security_type, as: 'securityType', class: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext::Representation 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
property :location, as: 'location', class: Google::Apis::Adexchangebuyer2V2beta1::LocationContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::LocationContext::Representation
end end
end end
@ -300,8 +262,8 @@ module Google
class Reason class Reason
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status'
property :count, :numeric_string => true, as: 'count' property :count, :numeric_string => true, as: 'count'
property :status, as: 'status'
end end
end end
@ -340,9 +302,9 @@ module Google
class ListClientUsersResponse class ListClientUsersResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
@ -363,41 +325,25 @@ module Google
class ClientUser class ClientUser
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :client_account_id, :numeric_string => true, as: 'clientAccountId'
property :status, as: 'status' property :status, as: 'status'
property :user_id, :numeric_string => true, as: 'userId' property :user_id, :numeric_string => true, as: 'userId'
property :email, as: 'email' property :email, as: 'email'
property :client_account_id, :numeric_string => true, as: 'clientAccountId'
end end
end end
class CreativeDealAssociation class CreativeDealAssociation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :deals_id, as: 'dealsId'
property :account_id, as: 'accountId' property :account_id, as: 'accountId'
property :creative_id, as: 'creativeId' property :creative_id, as: 'creativeId'
property :deals_id, as: 'dealsId'
end
end
class FilteringStats
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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
end end
class Creative class Creative
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :html, as: 'html', class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent::Representation
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_advertiser_ids, as: 'detectedAdvertiserIds'
collection :detected_domains, as: 'detectedDomains' collection :detected_domains, as: 'detectedDomains'
property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation
@ -423,6 +369,22 @@ module Google
property :version, as: 'version' property :version, as: 'version'
collection :vendor_ids, as: 'vendorIds' collection :vendor_ids, as: 'vendorIds'
collection :impression_tracking_urls, as: 'impressionTrackingUrls' 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'
property :open_auction_status, as: 'openAuctionStatus'
property :advertiser_name, as: 'advertiserName'
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
end end
end end
@ -503,9 +465,9 @@ module Google
class Date class Date
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :month, as: 'month'
property :year, as: 'year' property :year, as: 'year'
property :day, as: 'day' property :day, as: 'day'
property :month, as: 'month'
end end
end end
@ -521,6 +483,44 @@ module Google
property :topic, as: 'topic' property :topic, as: 'topic'
end end
end end
class AppContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :app_types, as: 'appTypes'
end
end
class NativeContent
# @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
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'
end
end
class ListClientsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
property :next_page_token, as: 'nextPageToken'
end
end
end end
end end
end end

View File

@ -241,9 +241,6 @@ module Google
# numerical account identifier or the `-` character # numerical account identifier or the `-` character
# to list all the invitations for all the clients # to list all the invitations for all the clients
# of a given sponsor buyer. # of a given sponsor buyer.
# @param [Fixnum] page_size
# Requested page size. Server may return fewer clients than requested.
# If unspecified, server will pick an appropriate default.
# @param [String] page_token # @param [String] page_token
# A token identifying a page of results the server should return. # A token identifying a page of results the server should return.
# Typically, this is the value of # Typically, this is the value of
@ -251,6 +248,9 @@ module Google
# returned from the previous call to the # returned from the previous call to the
# clients.invitations.list # clients.invitations.list
# method. # method.
# @param [Fixnum] page_size
# Requested page size. Server may return fewer clients than requested.
# If unspecified, server will pick an appropriate default.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -268,14 +268,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_client_invitations(account_id, client_account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options) command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['clientAccountId'] = client_account_id unless client_account_id.nil? command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -330,15 +330,15 @@ module Google
# numerical account identifier or the `-` character # numerical account identifier or the `-` character
# to list all the client users for all the clients # to list all the client users for all the clients
# of a given sponsor buyer. # of a given sponsor buyer.
# @param [Fixnum] page_size
# Requested page size. The server may return fewer clients than requested.
# If unspecified, the server will pick an appropriate default.
# @param [String] page_token # @param [String] page_token
# A token identifying a page of results the server should return. # A token identifying a page of results the server should return.
# Typically, this is the value of # Typically, this is the value of
# ListClientUsersResponse.nextPageToken # ListClientUsersResponse.nextPageToken
# returned from the previous call to the # returned from the previous call to the
# accounts.clients.users.list method. # accounts.clients.users.list method.
# @param [Fixnum] page_size
# Requested page size. The server may return fewer clients than requested.
# If unspecified, the server will pick an appropriate default.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -356,14 +356,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_client_users(account_id, client_account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options) command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['clientAccountId'] = client_account_id unless client_account_id.nil? command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -447,66 +447,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists creatives.
# @param [String] account_id
# The account to list the creatives from.
# Specify "-" to list all creatives the current user has access to.
# @param [String] page_token
# A token identifying a page of results the server should return.
# Typically, this is the value of
# ListCreativesResponse.next_page_token
# returned from the previous call to 'ListCreatives' method.
# @param [Fixnum] page_size
# Requested page size. The server may return fewer creatives than requested
# (due to timeout constraint) even if more are available via another call.
# If unspecified, server will pick an appropriate default.
# Acceptable values are 1 to 1000, inclusive.
# @param [String] query
# An optional query string to filter creatives. If no filter is specified,
# all active creatives will be returned.
# Supported queries are:
# <ul>
# <li>accountId=<i>account_id_string</i>
# <li>creativeId=<i>creative_id_string</i>
# <li>dealsStatus: `approved, conditionally_approved, disapproved,
# not_checked`
# <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
# not_checked`
# <li>attribute: `a numeric attribute from the list of attributes`
# <li>disapprovalReason: `a reason from DisapprovalReason
# </ul>
# Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
# unacceptable_content) OR attribute:47'
# @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::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creatives(account_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
command.params['accountId'] = account_id unless account_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['query'] = query unless query.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 a creative. # Creates a creative.
# @param [String] account_id # @param [String] account_id
# The account that this creative belongs to. # The account that this creative belongs to.
@ -585,39 +525,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets a creative.
# @param [String] account_id
# The account the creative belongs to.
# @param [String] creative_id
# The ID of the creative to retrieve.
# @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::Adexchangebuyer2V2beta1::Creative] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creative(account_id, creative_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
command.params['accountId'] = account_id unless account_id.nil?
command.params['creativeId'] = creative_id unless creative_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
# Watches a creative. Will result in push notifications being sent to the # Watches a creative. Will result in push notifications being sent to the
# topic when the creative changes status. # topic when the creative changes status.
# @param [String] account_id # @param [String] account_id
@ -659,6 +566,39 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets a creative.
# @param [String] account_id
# The account the creative belongs to.
# @param [String] creative_id
# The ID of the creative to retrieve.
# @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::Adexchangebuyer2V2beta1::Creative] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creative(account_id, creative_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
command.params['accountId'] = account_id unless account_id.nil?
command.params['creativeId'] = creative_id unless creative_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 a creative. # Updates a creative.
# @param [String] account_id # @param [String] account_id
# The account that this creative belongs to. # The account that this creative belongs to.
@ -701,6 +641,66 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists creatives.
# @param [String] account_id
# The account to list the creatives from.
# Specify "-" to list all creatives the current user has access to.
# @param [String] page_token
# A token identifying a page of results the server should return.
# Typically, this is the value of
# ListCreativesResponse.next_page_token
# returned from the previous call to 'ListCreatives' method.
# @param [Fixnum] page_size
# Requested page size. The server may return fewer creatives than requested
# (due to timeout constraint) even if more are available via another call.
# If unspecified, server will pick an appropriate default.
# Acceptable values are 1 to 1000, inclusive.
# @param [String] query
# An optional query string to filter creatives. If no filter is specified,
# all active creatives will be returned.
# Supported queries are:
# <ul>
# <li>accountId=<i>account_id_string</i>
# <li>creativeId=<i>creative_id_string</i>
# <li>dealsStatus: `approved, conditionally_approved, disapproved,
# not_checked`
# <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
# not_checked`
# <li>attribute: `a numeric attribute from the list of attributes`
# <li>disapprovalReason: `a reason from DisapprovalReason
# </ul>
# Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
# unacceptable_content) OR attribute:47'
# @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::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creatives(account_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
command.params['accountId'] = account_id unless account_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List all creative-deal associations. # List all creative-deal associations.
# @param [String] account_id # @param [String] account_id
# The account to list the associations from. # The account to list the associations from.
@ -708,14 +708,6 @@ module Google
# @param [String] creative_id # @param [String] creative_id
# The creative ID to list the associations from. # The creative ID to list the associations from.
# Specify "-" to list all creatives under the above account. # Specify "-" to list all creatives under the above account.
# @param [String] page_token
# A token identifying a page of results the server should return.
# Typically, this is the value of
# ListDealAssociationsResponse.next_page_token
# returned from the previous call to 'ListDealAssociations' method.
# @param [Fixnum] page_size
# Requested page size. Server may return fewer associations than requested.
# If unspecified, server will pick an appropriate default.
# @param [String] query # @param [String] query
# An optional query string to filter deal associations. If no filter is # An optional query string to filter deal associations. If no filter is
# specified, all associations will be returned. # specified, all associations will be returned.
@ -730,6 +722,14 @@ module Google
# not_checked` # not_checked`
# </ul> # </ul>
# Example: 'dealsId=12345 AND dealsStatus:disapproved' # Example: 'dealsId=12345 AND dealsStatus:disapproved'
# @param [String] page_token
# A token identifying a page of results the server should return.
# Typically, this is the value of
# ListDealAssociationsResponse.next_page_token
# returned from the previous call to 'ListDealAssociations' method.
# @param [Fixnum] page_size
# Requested page size. Server may return fewer associations than requested.
# If unspecified, server will pick an appropriate default.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -747,15 +747,15 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) def list_account_creative_deal_associations(account_id, creative_id, query: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options) command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['creativeId'] = creative_id unless creative_id.nil? command.params['creativeId'] = creative_id unless creative_id.nil?
command.query['query'] = query unless query.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)

View File

@ -1,35 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/adexchangebuyer_v1_3/service.rb'
require 'google/apis/adexchangebuyer_v1_3/classes.rb'
require 'google/apis/adexchangebuyer_v1_3/representations.rb'
module Google
module Apis
# Ad Exchange Buyer API
#
# Accesses your bidding-account information, submits creatives for validation,
# finds available direct deals, and retrieves performance reports.
#
# @see https://developers.google.com/ad-exchange/buyer-rest
module AdexchangebuyerV1_3
VERSION = 'V1_3'
REVISION = '20160118'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,446 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AdexchangebuyerV1_3
class Account
class Representation < Google::Apis::Core::JsonRepresentation; end
class BidderLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
class AccountsList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class BillingInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class BillingInfoList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Budget
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Creative
class Representation < Google::Apis::Core::JsonRepresentation; end
class Correction
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DisapprovalReason
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class FilteringReasons
class Representation < Google::Apis::Core::JsonRepresentation; end
class Reason
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
class NativeAd
class Representation < Google::Apis::Core::JsonRepresentation; end
class AppIcon
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Image
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Logo
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
end
class CreativesList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DirectDeal
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DirectDealsList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class PerformanceReport
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class PerformanceReportList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class PretargetingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
class Dimension
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ExcludedPlacement
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Placement
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
class PretargetingConfigList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Account
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bidder_location, as: 'bidderLocation', class: Google::Apis::AdexchangebuyerV1_3::Account::BidderLocation, decorator: Google::Apis::AdexchangebuyerV1_3::Account::BidderLocation::Representation
property :cookie_matching_nid, as: 'cookieMatchingNid'
property :cookie_matching_url, as: 'cookieMatchingUrl'
property :id, as: 'id'
property :kind, as: 'kind'
property :maximum_active_creatives, as: 'maximumActiveCreatives'
property :maximum_total_qps, as: 'maximumTotalQps'
property :number_active_creatives, as: 'numberActiveCreatives'
end
class BidderLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :maximum_qps, as: 'maximumQps'
property :region, as: 'region'
property :url, as: 'url'
end
end
end
class AccountsList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_3::Account, decorator: Google::Apis::AdexchangebuyerV1_3::Account::Representation
property :kind, as: 'kind'
end
end
class BillingInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :account_name, as: 'accountName'
collection :billing_id, as: 'billingId'
property :kind, as: 'kind'
end
end
class BillingInfoList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_3::BillingInfo, decorator: Google::Apis::AdexchangebuyerV1_3::BillingInfo::Representation
property :kind, as: 'kind'
end
end
class Budget
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :billing_id, as: 'billingId'
property :budget_amount, as: 'budgetAmount'
property :currency_code, as: 'currencyCode'
property :id, as: 'id'
property :kind, as: 'kind'
end
end
class Creative
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :html_snippet, as: 'HTMLSnippet'
property :account_id, as: 'accountId'
collection :advertiser_id, as: 'advertiserId'
property :advertiser_name, as: 'advertiserName'
property :agency_id, as: 'agencyId'
property :api_upload_timestamp, as: 'apiUploadTimestamp', type: DateTime
collection :attribute, as: 'attribute'
property :buyer_creative_id, as: 'buyerCreativeId'
collection :click_through_url, as: 'clickThroughUrl'
collection :corrections, as: 'corrections', class: Google::Apis::AdexchangebuyerV1_3::Creative::Correction, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::Correction::Representation
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::AdexchangebuyerV1_3::Creative::DisapprovalReason, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::DisapprovalReason::Representation
property :filtering_reasons, as: 'filteringReasons', class: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Representation
property :height, as: 'height'
collection :impression_tracking_url, as: 'impressionTrackingUrl'
property :kind, as: 'kind'
property :native_ad, as: 'nativeAd', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Representation
collection :product_categories, as: 'productCategories'
collection :restricted_categories, as: 'restrictedCategories'
collection :sensitive_categories, as: 'sensitiveCategories'
property :status, as: 'status'
collection :vendor_type, as: 'vendorType'
property :version, as: 'version'
property :video_url, as: 'videoURL'
property :width, as: 'width'
end
class Correction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :reason, as: 'reason'
end
end
class DisapprovalReason
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :reason, as: 'reason'
end
end
class FilteringReasons
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date, as: 'date'
collection :reasons, as: 'reasons', class: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Reason, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Reason::Representation
end
class Reason
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filtering_count, as: 'filteringCount'
property :filtering_status, as: 'filteringStatus'
end
end
end
class NativeAd
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :advertiser, as: 'advertiser'
property :app_icon, as: 'appIcon', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon::Representation
property :body, as: 'body'
property :call_to_action, as: 'callToAction'
property :click_tracking_url, as: 'clickTrackingUrl'
property :headline, as: 'headline'
property :image, as: 'image', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image::Representation
collection :impression_tracking_url, as: 'impressionTrackingUrl'
property :logo, as: 'logo', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo::Representation
property :price, as: 'price'
property :star_rating, as: 'starRating'
property :store, as: 'store'
end
class AppIcon
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :url, as: 'url'
property :width, as: 'width'
end
end
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :url, as: 'url'
property :width, as: 'width'
end
end
class Logo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :url, as: 'url'
property :width, as: 'width'
end
end
end
end
class CreativesList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_3::Creative, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class DirectDeal
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :advertiser, as: 'advertiser'
property :currency_code, as: 'currencyCode'
property :deal_tier, as: 'dealTier'
property :end_time, as: 'endTime'
property :fixed_cpm, as: 'fixedCpm'
property :id, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :private_exchange_min_cpm, as: 'privateExchangeMinCpm'
property :publisher_blocks_overriden, as: 'publisherBlocksOverriden'
property :seller_network, as: 'sellerNetwork'
property :start_time, as: 'startTime'
end
end
class DirectDealsList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :direct_deals, as: 'directDeals', class: Google::Apis::AdexchangebuyerV1_3::DirectDeal, decorator: Google::Apis::AdexchangebuyerV1_3::DirectDeal::Representation
property :kind, as: 'kind'
end
end
class PerformanceReport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bid_rate, as: 'bidRate'
property :bid_request_rate, as: 'bidRequestRate'
collection :callout_status_rate, as: 'calloutStatusRate'
collection :cookie_matcher_status_rate, as: 'cookieMatcherStatusRate'
collection :creative_status_rate, as: 'creativeStatusRate'
property :filtered_bid_rate, as: 'filteredBidRate'
collection :hosted_match_status_rate, as: 'hostedMatchStatusRate'
property :inventory_match_rate, as: 'inventoryMatchRate'
property :kind, as: 'kind'
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'
property :pixel_match_responses, as: 'pixelMatchResponses'
property :quota_configured_limit, as: 'quotaConfiguredLimit'
property :quota_throttled_limit, as: 'quotaThrottledLimit'
property :region, as: 'region'
property :successful_request_rate, as: 'successfulRequestRate'
property :timestamp, as: 'timestamp'
property :unsuccessful_request_rate, as: 'unsuccessfulRequestRate'
end
end
class PerformanceReportList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :performance_report, as: 'performanceReport', class: Google::Apis::AdexchangebuyerV1_3::PerformanceReport, decorator: Google::Apis::AdexchangebuyerV1_3::PerformanceReport::Representation
end
end
class PretargetingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :billing_id, as: 'billingId'
property :config_id, as: 'configId'
property :config_name, as: 'configName'
collection :creative_type, as: 'creativeType'
collection :dimensions, as: 'dimensions', class: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Dimension, decorator: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Dimension::Representation
collection :excluded_content_labels, as: 'excludedContentLabels'
collection :excluded_geo_criteria_ids, as: 'excludedGeoCriteriaIds'
collection :excluded_placements, as: 'excludedPlacements', class: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::ExcludedPlacement, decorator: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::ExcludedPlacement::Representation
collection :excluded_user_lists, as: 'excludedUserLists'
collection :excluded_verticals, as: 'excludedVerticals'
collection :geo_criteria_ids, as: 'geoCriteriaIds'
property :is_active, as: 'isActive'
property :kind, as: 'kind'
collection :languages, as: 'languages'
collection :mobile_carriers, as: 'mobileCarriers'
collection :mobile_devices, as: 'mobileDevices'
collection :mobile_operating_system_versions, as: 'mobileOperatingSystemVersions'
collection :placements, as: 'placements', class: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Placement, decorator: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Placement::Representation
collection :platforms, as: 'platforms'
collection :supported_creative_attributes, as: 'supportedCreativeAttributes'
collection :user_lists, as: 'userLists'
collection :vendor_types, as: 'vendorTypes'
collection :verticals, as: 'verticals'
end
class Dimension
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :width, as: 'width'
end
end
class ExcludedPlacement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :token, as: 'token'
property :type, as: 'type'
end
end
class Placement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :token, as: 'token'
property :type, as: 'type'
end
end
end
class PretargetingConfigList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig, decorator: Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
property :kind, as: 'kind'
end
end
end
end
end

View File

@ -1,872 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AdexchangebuyerV1_3
# Ad Exchange Buyer API
#
# Accesses your bidding-account information, submits creatives for validation,
# finds available direct deals, and retrieves performance reports.
#
# @example
# require 'google/apis/adexchangebuyer_v1_3'
#
# Adexchangebuyer = Google::Apis::AdexchangebuyerV1_3 # Alias the module
# service = Adexchangebuyer::AdExchangeBuyerService.new
#
# @see https://developers.google.com/ad-exchange/buyer-rest
class AdExchangeBuyerService < 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.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'adexchangebuyer/v1.3/')
end
# Gets one account by ID.
# @param [Fixnum] id
# The account id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Account] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::Account]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{id}', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::Account
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the authenticated user's list of accounts.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::AccountsList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::AccountsList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::AccountsList::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::AccountsList
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing account. This method supports patch semantics.
# @param [Fixnum] id
# The account id
# @param [Google::Apis::AdexchangebuyerV1_3::Account] account_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Account] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::Account]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'accounts/{id}', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
command.request_object = account_object
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::Account
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing account.
# @param [Fixnum] id
# The account id
# @param [Google::Apis::AdexchangebuyerV1_3::Account] account_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Account] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::Account]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'accounts/{id}', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
command.request_object = account_object
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::Account
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the billing information for one account specified by account ID.
# @param [Fixnum] account_id
# The account id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::BillingInfo] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::BillingInfo]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'billinginfo/{accountId}', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfo::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfo
command.params['accountId'] = account_id unless account_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a list of billing information for all accounts of the authenticated
# user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::BillingInfoList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::BillingInfoList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'billinginfo', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfoList::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfoList
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the budget information for the adgroup specified by the accountId and
# billingId.
# @param [String] account_id
# The account id to get the budget information for.
# @param [String] billing_id
# The billing id to get the budget information for.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Budget] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::Budget]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'billinginfo/{accountId}/{billingId}', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget
command.params['accountId'] = account_id unless account_id.nil?
command.params['billingId'] = billing_id unless billing_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates the budget amount for the budget of the adgroup specified by the
# accountId and billingId, with the budget amount in the request. This method
# supports patch semantics.
# @param [String] account_id
# The account id associated with the budget being updated.
# @param [String] billing_id
# The billing id associated with the budget being updated.
# @param [Google::Apis::AdexchangebuyerV1_3::Budget] budget_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Budget] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::Budget]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'billinginfo/{accountId}/{billingId}', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
command.request_object = budget_object
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget
command.params['accountId'] = account_id unless account_id.nil?
command.params['billingId'] = billing_id unless billing_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates the budget amount for the budget of the adgroup specified by the
# accountId and billingId, with the budget amount in the request.
# @param [String] account_id
# The account id associated with the budget being updated.
# @param [String] billing_id
# The billing id associated with the budget being updated.
# @param [Google::Apis::AdexchangebuyerV1_3::Budget] budget_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Budget] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::Budget]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'billinginfo/{accountId}/{billingId}', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
command.request_object = budget_object
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget
command.params['accountId'] = account_id unless account_id.nil?
command.params['billingId'] = billing_id unless billing_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets the status for a single creative. A creative will be available 30-40
# minutes after submission.
# @param [Fixnum] account_id
# The id for the account that will serve this creative.
# @param [String] buyer_creative_id
# The buyer-specific id for this creative.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Creative] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::Creative]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'creatives/{accountId}/{buyerCreativeId}', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative
command.params['accountId'] = account_id unless account_id.nil?
command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Submit a new creative.
# @param [Google::Apis::AdexchangebuyerV1_3::Creative] creative_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::Creative] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::Creative]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'creatives', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
command.request_object = creative_object
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a list of the authenticated user's active creatives. A creative will
# be available 30-40 minutes after submission.
# @param [Array<Fixnum>, Fixnum] account_id
# When specified, only creatives for the given account ids are returned.
# @param [Array<String>, String] buyer_creative_id
# When specified, only creatives for the given buyer creative ids are returned.
# @param [Fixnum] max_results
# Maximum number of entries returned on one result page. If not set, the default
# is 100. Optional.
# @param [String] page_token
# A continuation token, used to page through ad clients. To retrieve the next
# page, set this parameter to the value of "nextPageToken" from the previous
# response. Optional.
# @param [String] status_filter
# When specified, only creatives having the given status are returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::CreativesList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::CreativesList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creatives(account_id: nil, buyer_creative_id: nil, max_results: nil, page_token: nil, status_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'creatives', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::CreativesList::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::CreativesList
command.query['accountId'] = account_id unless account_id.nil?
command.query['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['statusFilter'] = status_filter unless status_filter.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets one direct deal by ID.
# @param [String] id
# The direct deal id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::DirectDeal] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::DirectDeal]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_direct_deal(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'directdeals/{id}', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDeal::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDeal
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the authenticated user's list of direct deals.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::DirectDealsList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::DirectDealsList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_direct_deals(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'directdeals', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDealsList::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDealsList
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the authenticated user's list of performance metrics.
# @param [String] account_id
# The account id to get the reports.
# @param [String] end_date_time
# The end time of the report in ISO 8601 timestamp format using UTC.
# @param [String] start_date_time
# The start time of the report in ISO 8601 timestamp format using UTC.
# @param [Fixnum] max_results
# Maximum number of entries returned on one result page. If not set, the default
# is 100. Optional.
# @param [String] page_token
# A continuation token, used to page through performance reports. To retrieve
# the next page, set this parameter to the value of "nextPageToken" from the
# previous response. 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PerformanceReportList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::PerformanceReportList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_performance_reports(account_id, end_date_time, start_date_time, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'performancereport', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList
command.query['accountId'] = account_id unless account_id.nil?
command.query['endDateTime'] = end_date_time unless end_date_time.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startDateTime'] = start_date_time unless start_date_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes an existing pretargeting config.
# @param [String] account_id
# The account id to delete the pretargeting config for.
# @param [String] config_id
# The specific id of the configuration to delete.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'pretargetingconfigs/{accountId}/{configId}', options)
command.params['accountId'] = account_id unless account_id.nil?
command.params['configId'] = config_id unless config_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets a specific pretargeting configuration
# @param [String] account_id
# The account id to get the pretargeting config for.
# @param [String] config_id
# The specific id of the configuration to retrieve.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'pretargetingconfigs/{accountId}/{configId}', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
command.params['accountId'] = account_id unless account_id.nil?
command.params['configId'] = config_id unless config_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Inserts a new pretargeting configuration.
# @param [String] account_id
# The account id to insert the pretargeting config for.
# @param [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] pretargeting_config_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'pretargetingconfigs/{accountId}', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
command.request_object = pretargeting_config_object
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
command.params['accountId'] = account_id unless account_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a list of the authenticated user's pretargeting configurations.
# @param [String] account_id
# The account id to get the pretargeting configs for.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'pretargetingconfigs/{accountId}', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList
command.params['accountId'] = account_id unless account_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing pretargeting config. This method supports patch semantics.
# @param [String] account_id
# The account id to update the pretargeting config for.
# @param [String] config_id
# The specific id of the configuration to update.
# @param [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] pretargeting_config_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'pretargetingconfigs/{accountId}/{configId}', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
command.request_object = pretargeting_config_object
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
command.params['accountId'] = account_id unless account_id.nil?
command.params['configId'] = config_id unless config_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing pretargeting config.
# @param [String] account_id
# The account id to update the pretargeting config for.
# @param [String] config_id
# The specific id of the configuration to update.
# @param [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] pretargeting_config_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_3::PretargetingConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'pretargetingconfigs/{accountId}/{configId}', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
command.request_object = pretargeting_config_object
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
command.params['accountId'] = account_id unless account_id.nil?
command.params['configId'] = config_id unless config_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -2223,19 +2223,19 @@ module Google
# for the duration period covered by the report. # for the duration period covered by the report.
# Corresponds to the JSON property `latency50thPercentile` # Corresponds to the JSON property `latency50thPercentile`
# @return [Float] # @return [Float]
attr_accessor :latency_50th_percentile attr_accessor :latency50th_percentile
# The 85th percentile round trip latency(ms) as perceived from Google servers # The 85th percentile round trip latency(ms) as perceived from Google servers
# for the duration period covered by the report. # for the duration period covered by the report.
# Corresponds to the JSON property `latency85thPercentile` # Corresponds to the JSON property `latency85thPercentile`
# @return [Float] # @return [Float]
attr_accessor :latency_85th_percentile attr_accessor :latency85th_percentile
# The 95th percentile round trip latency(ms) as perceived from Google servers # The 95th percentile round trip latency(ms) as perceived from Google servers
# for the duration period covered by the report. # for the duration period covered by the report.
# Corresponds to the JSON property `latency95thPercentile` # Corresponds to the JSON property `latency95thPercentile`
# @return [Float] # @return [Float]
attr_accessor :latency_95th_percentile attr_accessor :latency95th_percentile
# Rate of various quota account statuses per quota check. # Rate of various quota account statuses per quota check.
# Corresponds to the JSON property `noQuotaInRegion` # 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) @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) @inventory_match_rate = args[:inventory_match_rate] if args.key?(:inventory_match_rate)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@latency_50th_percentile = args[:latency_50th_percentile] if args.key?(:latency_50th_percentile) @latency50th_percentile = args[:latency50th_percentile] if args.key?(:latency50th_percentile)
@latency_85th_percentile = args[:latency_85th_percentile] if args.key?(:latency_85th_percentile) @latency85th_percentile = args[:latency85th_percentile] if args.key?(:latency85th_percentile)
@latency_95th_percentile = args[:latency_95th_percentile] if args.key?(:latency_95th_percentile) @latency95th_percentile = args[:latency95th_percentile] if args.key?(:latency95th_percentile)
@no_quota_in_region = args[:no_quota_in_region] if args.key?(:no_quota_in_region) @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) @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) @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' collection :hosted_match_status_rate, as: 'hostedMatchStatusRate'
property :inventory_match_rate, as: 'inventoryMatchRate' property :inventory_match_rate, as: 'inventoryMatchRate'
property :kind, as: 'kind' property :kind, as: 'kind'
property :latency_50th_percentile, as: 'latency50thPercentile' property :latency50th_percentile, as: 'latency50thPercentile'
property :latency_85th_percentile, as: 'latency85thPercentile' property :latency85th_percentile, as: 'latency85thPercentile'
property :latency_95th_percentile, as: 'latency95thPercentile' property :latency95th_percentile, as: 'latency95thPercentile'
property :no_quota_in_region, as: 'noQuotaInRegion' property :no_quota_in_region, as: 'noQuotaInRegion'
property :out_of_quota, as: 'outOfQuota' property :out_of_quota, as: 'outOfQuota'
property :pixel_match_requests, as: 'pixelMatchRequests' 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) def updateproposal_marketplaceprivateauction(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 = make_simple_command(:post, 'privateauction/{privateAuctionId}/updateproposal', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_4::UpdatePrivateAuctionProposalRequest::Representation command.request_representation = Google::Apis::AdexchangebuyerV1_4::UpdatePrivateAuctionProposalRequest::Representation
command.request_object = update_private_auction_proposal_request_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def proposal_setup_complete(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def setupcomplete_proposal(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'proposals/{proposalId}/setupcomplete', options) command = make_simple_command(:post, 'proposals/{proposalId}/setupcomplete', options)
command.params['proposalId'] = proposal_id unless proposal_id.nil? command.params['proposalId'] = proposal_id unless proposal_id.nil?
command.query['fields'] = fields unless fields.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_pub_profiles(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_pubprofiles(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'publisher/{accountId}/profiles', options) command = make_simple_command(:get, 'publisher/{accountId}/profiles', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetPublisherProfilesByAccountIdResponse::Representation command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetPublisherProfilesByAccountIdResponse::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_4::GetPublisherProfilesByAccountIdResponse 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_account_adclients(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 = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::AdClients::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::AdClients::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::AdClients 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_account_customchannel(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 = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannel 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannels::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannels::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannels 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_metadata_dimensions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_account_metadatum_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 = make_simple_command(:get, 'accounts/{accountId}/metadata/dimensions', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_metadata_metrics(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_account_metadatum_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 = make_simple_command(:get, 'accounts/{accountId}/metadata/metrics', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_account_preferred_deal(account_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_account_preferreddeal(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 = make_simple_command(:get, 'accounts/{accountId}/preferreddeals/{dealId}', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeal 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_preferred_deals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_account_preferreddeals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals', options) command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeals::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeals::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeals 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options) command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::Report 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_account_report_saveds(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 = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::SavedReports::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::SavedReports::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::SavedReports 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
command.response_representation = Google::Apis::AdexchangesellerV2_0::UrlChannels::Representation command.response_representation = Google::Apis::AdexchangesellerV2_0::UrlChannels::Representation
command.response_class = Google::Apis::AdexchangesellerV2_0::UrlChannels 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_chrome_os_device(customer_id, device_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_chromeosdevice(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 = make_simple_command(:get, 'customer/{customerId}/devices/chromeos/{deviceId}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevice 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos', options) command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos', options)
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation
command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevices 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, 'customer/{customerId}/devices/chromeos/{deviceId}', options) command = make_simple_command(:patch, 'customer/{customerId}/devices/chromeos/{deviceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
command.request_object = chrome_os_device_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'customer/{customerId}/devices/chromeos/{deviceId}', options) command = make_simple_command(:put, 'customer/{customerId}/devices/chromeos/{deviceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
command.request_object = chrome_os_device_object command.request_object = chrome_os_device_object
@ -1064,7 +1064,7 @@ module Google
# Remove a alias for the group # Remove a alias for the group
# @param [String] group_key # @param [String] group_key
# Email or immutable Id of the group # Email or immutable Id of the group
# @param [String] group_alias # @param [String] alias_
# The alias to be removed # The alias to be removed
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_group_alias(group_key, group_alias, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_group_alias(group_key, alias_, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'groups/{groupKey}/aliases/{alias}', options) command = make_simple_command(:delete, 'groups/{groupKey}/aliases/{alias}', options)
command.params['groupKey'] = group_key unless group_key.nil? command.params['groupKey'] = group_key unless group_key.nil?
command.params['alias'] = group_alias unless group_alias.nil? command.params['alias'] = alias_ unless alias_.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def action_mobile_device(customer_id, resource_id, mobile_device_action_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def action_mobiledevice(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 = make_simple_command(:post, 'customer/{customerId}/devices/mobile/{resourceId}/action', options)
command.request_representation = Google::Apis::AdminDirectoryV1::MobileDeviceAction::Representation command.request_representation = Google::Apis::AdminDirectoryV1::MobileDeviceAction::Representation
command.request_object = mobile_device_action_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_mobile_device(customer_id, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_mobiledevice(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 = make_simple_command(:delete, 'customer/{customerId}/devices/mobile/{resourceId}', options)
command.params['customerId'] = customer_id unless customer_id.nil? command.params['customerId'] = customer_id unless customer_id.nil?
command.params['resourceId'] = resource_id unless resource_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_mobile_device(customer_id, resource_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_mobiledevice(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 = make_simple_command(:get, 'customer/{customerId}/devices/mobile/{resourceId}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevice::Representation command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevice::Representation
command.response_class = Google::Apis::AdminDirectoryV1::MobileDevice 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'customer/{customerId}/devices/mobile', options) command = make_simple_command(:get, 'customer/{customerId}/devices/mobile', options)
command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevices::Representation command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevices::Representation
command.response_class = Google::Apis::AdminDirectoryV1::MobileDevices 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_orgunit(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 = make_simple_command(:delete, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
command.params['customerId'] = customer_id unless customer_id.nil? command.params['customerId'] = customer_id unless customer_id.nil?
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_orgunit(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 = make_simple_command(:get, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_org_unit(customer_id, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_orgunit(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 = make_simple_command(:post, 'customer/{customerId}/orgunits', options)
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
command.request_object = org_unit_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_org_units(customer_id, org_unit_path: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_orgunits(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 = make_simple_command(:get, 'customer/{customerId}/orgunits', options)
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnits::Representation command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnits::Representation
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnits 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_orgunit(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 = make_simple_command(:patch, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
command.request_object = org_unit_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_orgunit(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 = make_simple_command(:put, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
command.request_object = org_unit_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_calendar_resource(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_resource_calendar(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 = make_simple_command(:delete, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.params['customer'] = customer unless customer.nil? command.params['customer'] = customer unless customer.nil?
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_calendar_resource(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_resource_calendar(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 = make_simple_command(:get, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def calendar_resource(customer, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_resource_calendar(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 = make_simple_command(:post, 'customer/{customer}/resources/calendars', options)
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.request_object = calendar_resource_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_calendar_resources(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_resource_calendars(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 = make_simple_command(:get, 'customer/{customer}/resources/calendars', options)
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResources::Representation command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResources::Representation
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResources 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_calendar_resource(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_resource_calendar(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 = make_simple_command(:patch, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.request_object = calendar_resource_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_calendar_resource(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_resource_calendar(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 = make_simple_command(:put, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.request_object = calendar_resource_object command.request_object = calendar_resource_object
@ -3448,7 +3448,7 @@ module Google
# Remove a alias for the user # Remove a alias for the user
# @param [String] user_key # @param [String] user_key
# Email or immutable Id of the user # Email or immutable Id of the user
# @param [String] user_alias # @param [String] alias_
# The alias to be removed # The alias to be removed
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_alias(user_key, user_alias, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_user_alias(user_key, alias_, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'users/{userKey}/aliases/{alias}', options) command = make_simple_command(:delete, 'users/{userKey}/aliases/{alias}', options)
command.params['userKey'] = user_key unless user_key.nil? command.params['userKey'] = user_key unless user_key.nil?
command.params['alias'] = user_alias unless user_alias.nil? command.params['alias'] = alias_ unless alias_.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.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/ # @see https://developers.google.com/adsense/management/
module AdsenseV1_4 module AdsenseV1_4
VERSION = 'V1_4' VERSION = 'V1_4'
REVISION = '20170524' REVISION = '20170531'
# View and manage your AdSense data # View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

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

View File

@ -106,7 +106,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GenerateReportResponse class AdsenseReportsGenerateResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
class Header class Header
@ -364,12 +364,12 @@ module Google
end end
end end
class GenerateReportResponse class AdsenseReportsGenerateResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :averages, as: 'averages' collection :averages, as: 'averages'
property :end_date, as: 'endDate' property :end_date, as: 'endDate'
collection :headers, as: 'headers', class: Google::Apis::AdsenseV1_4::GenerateReportResponse::Header, decorator: Google::Apis::AdsenseV1_4::GenerateReportResponse::Header::Representation collection :headers, as: 'headers', class: Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Header, decorator: Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Header::Representation
property :kind, as: 'kind' property :kind, as: 'kind'
collection :rows, as: 'rows', :class => Array do 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_account_adclients(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 = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdClients 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_account_adunit(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 = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnit 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdCode 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnits 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_account_customchannel(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 = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannel 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnits command.response_class = Google::Apis::AdsenseV1_4::AdUnits
@ -653,10 +653,10 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object # @yieldparam result [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AdsenseV1_4::GenerateReportResponse] # @return [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @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 = make_download_command(:get, 'accounts/{accountId}/reports', options)
command.download_dest = download_dest command.download_dest = download_dest
end end
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse command.response_class = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.query['currency'] = currency unless currency.nil? command.query['currency'] = currency unless currency.nil?
command.query['dimension'] = dimension unless dimension.nil? command.query['dimension'] = dimension unless dimension.nil?
@ -714,18 +714,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object # @yieldparam result [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AdsenseV1_4::GenerateReportResponse] # @return [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options) command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse command.response_class = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['savedReportId'] = saved_report_id unless saved_report_id.nil? command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
command.query['locale'] = locale unless locale.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_account_report_saveds(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 = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedReports 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_account_saved_ad_style(account_id, saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_account_savedadstyle(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 = make_simple_command(:get, 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) def list_account_savedadstyles(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 = make_simple_command(:get, 'accounts/{accountId}/savedadstyles', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::UrlChannels 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_adclients(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 = make_simple_command(:get, 'adclients', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdClients 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_adunit(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 = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnit 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_ad_code_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_adunit_ad_code(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 = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdCode 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options) command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnits 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options) command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_customchannel(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 = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannel 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_customchannels(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 = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options) command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdUnits 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_metadata_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_metadatum_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'metadata/dimensions', options) command = make_simple_command(:get, 'metadata/dimensions', options)
command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
command.response_class = Google::Apis::AdsenseV1_4::Metadata 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_metadata_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_metadatum_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'metadata/metrics', options) command = make_simple_command(:get, 'metadata/metrics', options)
command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
command.response_class = Google::Apis::AdsenseV1_4::Metadata command.response_class = Google::Apis::AdsenseV1_4::Metadata
@ -1460,10 +1460,10 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object # @yieldparam result [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AdsenseV1_4::GenerateReportResponse] # @return [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @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 = make_download_command(:get, 'reports', options)
command.download_dest = download_dest command.download_dest = download_dest
end end
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse command.response_class = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse
command.query['accountId'] = account_id unless account_id.nil? command.query['accountId'] = account_id unless account_id.nil?
command.query['currency'] = currency unless currency.nil? command.query['currency'] = currency unless currency.nil?
command.query['dimension'] = dimension unless dimension.nil? command.query['dimension'] = dimension unless dimension.nil?
@ -1519,18 +1519,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdsenseV1_4::GenerateReportResponse] parsed result object # @yieldparam result [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AdsenseV1_4::GenerateReportResponse] # @return [Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'reports/{savedReportId}', options) command = make_simple_command(:get, 'reports/{savedReportId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse::Representation
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse command.response_class = Google::Apis::AdsenseV1_4::AdsenseReportsGenerateResponse
command.params['savedReportId'] = saved_report_id unless saved_report_id.nil? command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
command.query['locale'] = locale unless locale.nil? command.query['locale'] = locale unless locale.nil?
command.query['maxResults'] = max_results unless max_results.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_saved_reports(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_report_saveds(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 = make_simple_command(:get, 'reports/saved', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedReports 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_saved_ad_style(saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_savedadstyle(saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'savedadstyles/{savedAdStyleId}', options) command = make_simple_command(:get, 'savedadstyles/{savedAdStyleId}', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_saved_ad_styles(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_savedadstyles(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 = make_simple_command(:get, 'savedadstyles', options)
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_urlchannels(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 = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options)
command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
command.response_class = Google::Apis::AdsenseV1_4::UrlChannels command.response_class = Google::Apis::AdsenseV1_4::UrlChannels

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/ # @see https://developers.google.com/adsense/host/
module AdsensehostV4_1 module AdsensehostV4_1
VERSION = 'V4_1' VERSION = 'V4_1'
REVISION = '20170524' REVISION = '20170531'
# View and manage your AdSense host data and associated accounts # View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_account_ad_client(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_account_adclient(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 = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdClient 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_account_adclients(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 = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdClients 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_account_adunit(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 = make_simple_command(:delete, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdUnit 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_account_adunit(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 = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdUnit 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdCode::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AdCode::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdCode 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) def insert_account_adunit(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 = make_simple_command(:post, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.request_object = ad_unit_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnits::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AdUnits::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdUnits 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, 'accounts/{accountId}/adclients/{adClientId}/adunits', options) command = make_simple_command(:patch, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.request_object = ad_unit_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) def update_account_adunit(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 = make_simple_command(:put, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
command.request_object = ad_unit_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_ad_client(ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_adclient(ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'adclients/{adClientId}', options) command = make_simple_command(:get, 'adclients/{adClientId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdClient 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_adclients(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 = make_simple_command(:get, 'adclients', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AdClients 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) def start_associationsession(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 = make_simple_command(:get, 'associationsessions/start', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def verify_association_session(token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def verify_associationsession(token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'associationsessions/verify', options) command = make_simple_command(:get, 'associationsessions/verify', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_customchannel(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 = make_simple_command(:delete, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_customchannel(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 = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_customchannel(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 = make_simple_command(:post, 'adclients/{adClientId}/customchannels', options)
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.request_object = custom_channel_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_customchannels(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 = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options)
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannels::Representation command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannels::Representation
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannels 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) def patch_customchannel(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 = make_simple_command(:patch, 'adclients/{adClientId}/customchannels', options)
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.request_object = custom_channel_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_customchannel(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 = make_simple_command(:put, 'adclients/{adClientId}/customchannels', options)
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
command.request_object = custom_channel_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_url_channel(ad_client_id, url_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_urlchannel(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 = make_simple_command(:delete, 'adclients/{adClientId}/urlchannels/{urlChannelId}', options)
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
command.response_class = Google::Apis::AdsensehostV4_1::UrlChannel 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_url_channel(ad_client_id, url_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_urlchannel(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 = make_simple_command(:post, 'adclients/{adClientId}/urlchannels', options)
command.request_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation command.request_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
command.request_object = url_channel_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_urlchannels(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 = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options)
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannels::Representation command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannels::Representation
command.response_class = Google::Apis::AdsensehostV4_1::UrlChannels command.response_class = Google::Apis::AdsensehostV4_1::UrlChannels

View File

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

View File

@ -76,7 +76,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DeleteUploadDataRequest class AnalyticsDataimportDeleteUploadDataRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -738,7 +738,7 @@ module Google
end end
end end
class DeleteUploadDataRequest class AnalyticsDataimportDeleteUploadDataRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :custom_data_import_uids, as: 'customDataImportUids' collection :custom_data_import_uids, as: 'customDataImportUids'
@ -1833,7 +1833,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :bucket_id, as: 'bucketId' property :bucket_id, as: 'bucketId'
property :obj_id, as: 'objectId' property :object_id_prop, as: 'objectId'
end end
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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'data/ga', options) command = make_simple_command(:get, 'data/ga', options)
command.response_representation = Google::Apis::AnalyticsV3::GaData::Representation command.response_representation = Google::Apis::AnalyticsV3::GaData::Representation
command.response_class = Google::Apis::AnalyticsV3::GaData 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'data/mcf', options) command = make_simple_command(:get, 'data/mcf', options)
command.response_representation = Google::Apis::AnalyticsV3::McfData::Representation command.response_representation = Google::Apis::AnalyticsV3::McfData::Representation
command.response_class = Google::Apis::AnalyticsV3::McfData 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'data/realtime', options) command = make_simple_command(:get, 'data/realtime', options)
command.response_representation = Google::Apis::AnalyticsV3::RealtimeData::Representation command.response_representation = Google::Apis::AnalyticsV3::RealtimeData::Representation
command.response_class = Google::Apis::AnalyticsV3::RealtimeData 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_summaries(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_management_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 = make_simple_command(:get, 'management/accountSummaries', options)
command.response_representation = Google::Apis::AnalyticsV3::AccountSummaries::Representation command.response_representation = Google::Apis::AnalyticsV3::AccountSummaries::Representation
command.response_class = Google::Apis::AnalyticsV3::AccountSummaries 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_account_user_link(account_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_management_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 = make_simple_command(:delete, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options)
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['linkId'] = link_id unless link_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_account_user_link(account_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_management_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 = make_simple_command(:post, 'management/accounts/{accountId}/entityUserLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_account_user_links(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/entityUserLinks', options) command = make_simple_command(:get, 'management/accounts/{accountId}/entityUserLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options) command = make_simple_command(:put, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_accounts(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_management_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 = make_simple_command(:get, 'management/accounts', options)
command.response_representation = Google::Apis::AnalyticsV3::Accounts::Representation command.response_representation = Google::Apis::AnalyticsV3::Accounts::Representation
command.response_class = Google::Apis::AnalyticsV3::Accounts 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomDataSources::Representation command.response_representation = Google::Apis::AnalyticsV3::CustomDataSources::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomDataSources 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_custom_dimension(account_id, web_property_id, custom_dimension_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_management_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 = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomDimension 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_custom_dimension(account_id, web_property_id, custom_dimension_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
command.request_object = custom_dimension_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomDimensions::Representation command.response_representation = Google::Apis::AnalyticsV3::CustomDimensions::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomDimensions 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options) command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
command.request_object = custom_dimension_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options) command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
command.request_object = custom_dimension_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_custom_metric(account_id, web_property_id, custom_metric_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_management_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 = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomMetric 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_custom_metric(account_id, web_property_id, custom_metric_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
command.request_object = custom_metric_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options)
command.response_representation = Google::Apis::AnalyticsV3::CustomMetrics::Representation command.response_representation = Google::Apis::AnalyticsV3::CustomMetrics::Representation
command.response_class = Google::Apis::AnalyticsV3::CustomMetrics 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options) command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
command.request_object = custom_metric_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options) command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
command.request_object = custom_metric_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_management_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 = 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['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_management_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 = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
command.response_class = Google::Apis::AnalyticsV3::Experiment 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_experiment(account_id, web_property_id, profile_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options)
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
command.request_object = experiment_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options)
command.response_representation = Google::Apis::AnalyticsV3::Experiments::Representation command.response_representation = Google::Apis::AnalyticsV3::Experiments::Representation
command.response_class = Google::Apis::AnalyticsV3::Experiments 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options) 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_representation = Google::Apis::AnalyticsV3::Experiment::Representation
command.request_object = experiment_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options) 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_representation = Google::Apis::AnalyticsV3::Experiment::Representation
command.request_object = experiment_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_management_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 = make_simple_command(:delete, 'management/accounts/{accountId}/filters/{filterId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.response_class = Google::Apis::AnalyticsV3::Filter 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_management_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 = make_simple_command(:get, 'management/accounts/{accountId}/filters/{filterId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.response_class = Google::Apis::AnalyticsV3::Filter 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_filter(account_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_management_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 = make_simple_command(:post, 'management/accounts/{accountId}/filters', options)
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.request_object = filter_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_filters(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_management_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 = make_simple_command(:get, 'management/accounts/{accountId}/filters', options)
command.response_representation = Google::Apis::AnalyticsV3::Filters::Representation command.response_representation = Google::Apis::AnalyticsV3::Filters::Representation
command.response_class = Google::Apis::AnalyticsV3::Filters 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_management_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 = make_simple_command(:patch, 'management/accounts/{accountId}/filters/{filterId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.request_object = filter_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_management_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 = make_simple_command(:put, 'management/accounts/{accountId}/filters/{filterId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
command.request_object = filter_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_goal(account_id, web_property_id, profile_id, goal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_management_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 = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
command.response_class = Google::Apis::AnalyticsV3::Goal 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_goal(account_id, web_property_id, profile_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options)
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
command.request_object = goal_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options)
command.response_representation = Google::Apis::AnalyticsV3::Goals::Representation command.response_representation = Google::Apis::AnalyticsV3::Goals::Representation
command.response_class = Google::Apis::AnalyticsV3::Goals 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options) 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_representation = Google::Apis::AnalyticsV3::Goal::Representation
command.request_object = goal_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options) 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_representation = Google::Apis::AnalyticsV3::Goal::Representation
command.request_object = goal_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options) 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['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options) 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_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLink 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
command.request_object = profile_filter_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLinks::Representation command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLinks 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options) 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_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
command.request_object = profile_filter_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options) 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_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
command.request_object = profile_filter_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options) 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['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options) 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_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_management_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 = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_management_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 = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
command.response_class = Google::Apis::AnalyticsV3::Profile 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_profile(account_id, web_property_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_management_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 = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options)
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
command.request_object = profile_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options)
command.response_representation = Google::Apis::AnalyticsV3::Profiles::Representation command.response_representation = Google::Apis::AnalyticsV3::Profiles::Representation
command.response_class = Google::Apis::AnalyticsV3::Profiles 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options) command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
command.request_object = profile_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options) command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
command.request_object = profile_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_segments(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_management_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 = make_simple_command(:get, 'management/segments', options)
command.response_representation = Google::Apis::AnalyticsV3::Segments::Representation command.response_representation = Google::Apis::AnalyticsV3::Segments::Representation
command.response_class = Google::Apis::AnalyticsV3::Segments 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', options) 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['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', options) 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_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
command.response_class = Google::Apis::AnalyticsV3::UnsampledReport 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options)
command.request_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation command.request_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
command.request_object = unsampled_report_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options)
command.response_representation = Google::Apis::AnalyticsV3::UnsampledReports::Representation command.response_representation = Google::Apis::AnalyticsV3::UnsampledReports::Representation
command.response_class = Google::Apis::AnalyticsV3::UnsampledReports command.response_class = Google::Apis::AnalyticsV3::UnsampledReports
@ -2934,7 +2934,7 @@ module Google
# Web property Id for the uploads to be deleted. # Web property Id for the uploads to be deleted.
# @param [String] custom_data_source_id # @param [String] custom_data_source_id
# Custom data source Id for the uploads to be deleted. # Custom data source Id for the uploads to be deleted.
# @param [Google::Apis::AnalyticsV3::DeleteUploadDataRequest] delete_upload_data_request_object # @param [Google::Apis::AnalyticsV3::AnalyticsDataimportDeleteUploadDataRequest] analytics_dataimport_delete_upload_data_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', options)
command.request_representation = Google::Apis::AnalyticsV3::DeleteUploadDataRequest::Representation command.request_representation = Google::Apis::AnalyticsV3::AnalyticsDataimportDeleteUploadDataRequest::Representation
command.request_object = delete_upload_data_request_object command.request_object = analytics_dataimport_delete_upload_data_request_object
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_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? 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', options) 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_representation = Google::Apis::AnalyticsV3::Upload::Representation
command.response_class = Google::Apis::AnalyticsV3::Upload 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
command.response_representation = Google::Apis::AnalyticsV3::Uploads::Representation command.response_representation = Google::Apis::AnalyticsV3::Uploads::Representation
command.response_class = Google::Apis::AnalyticsV3::Uploads 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
if upload_source.nil? if upload_source.nil?
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
else 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options) command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLink 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
command.request_object = entity_ad_words_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLinks::Representation command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLinks 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options) command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
command.request_object = entity_ad_words_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options) command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
command.request_object = entity_ad_words_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_web_property(account_id, web_property_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_management_webproperty(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 = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
command.response_class = Google::Apis::AnalyticsV3::Webproperty 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_web_property(account_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_management_webproperty(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 = make_simple_command(:post, 'management/accounts/{accountId}/webproperties', options)
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
command.request_object = webproperty_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_web_properties(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_management_webproperties(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 = make_simple_command(:get, 'management/accounts/{accountId}/webproperties', options)
command.response_representation = Google::Apis::AnalyticsV3::Webproperties::Representation command.response_representation = Google::Apis::AnalyticsV3::Webproperties::Representation
command.response_class = Google::Apis::AnalyticsV3::Webproperties 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_management_webproperty(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 = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
command.request_object = webproperty_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_management_webproperty(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 = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
command.request_object = webproperty_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_web_property_user_link(account_id, web_property_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_management_webproperty_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 = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options)
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['webPropertyId'] = web_property_id unless web_property_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options) command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options) command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options)
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options) command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options)
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
command.request_object = entity_user_link_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_metadata_columns(report_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_metadatum_columns(report_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'metadata/{reportType}/columns', options) command = make_simple_command(:get, 'metadata/{reportType}/columns', options)
command.response_representation = Google::Apis::AnalyticsV3::Columns::Representation command.response_representation = Google::Apis::AnalyticsV3::Columns::Representation
command.response_class = Google::Apis::AnalyticsV3::Columns 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def create_account_ticket(account_ticket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def create_provisioning_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 = make_simple_command(:post, 'provisioning/createAccountTicket', options)
command.request_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation command.request_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation
command.request_object = account_ticket_object command.request_object = account_ticket_object

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/ # @see https://developers.google.com/analytics/devguides/reporting/core/v4/
module AnalyticsreportingV4 module AnalyticsreportingV4
VERSION = 'V4' VERSION = 'V4'
REVISION = '20170427' REVISION = '20170531'
# View your Google Analytics data # View your Google Analytics data
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly' AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'

File diff suppressed because it is too large Load Diff

View File

@ -22,78 +22,6 @@ module Google
module Apis module Apis
module AnalyticsreportingV4 module AnalyticsreportingV4
class DimensionFilterClause
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetReportsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SequenceSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SegmentMetricFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DateRangeValues
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CohortGroup
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetReportsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Pivot
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PivotHeaderEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SegmentFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SegmentDefinition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricHeaderEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportData class ReportData
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -202,12 +130,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class MetricFilterClause
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Cohort class Cohort
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -220,6 +142,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class MetricFilterClause
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrFiltersForSegment class OrFiltersForSegment
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -233,135 +161,93 @@ module Google
end end
class DimensionFilterClause class DimensionFilterClause
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :operator, as: 'operator'
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class GetReportsResponse class GetReportsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :reports, as: 'reports', class: Google::Apis::AnalyticsreportingV4::Report, decorator: Google::Apis::AnalyticsreportingV4::Report::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class SequenceSegment class SequenceSegment
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
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' include Google::Apis::Core::JsonObjectSupport
end
end end
class SegmentMetricFilter class SegmentMetricFilter
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :max_comparison_value, as: 'maxComparisonValue' include Google::Apis::Core::JsonObjectSupport
property :comparison_value, as: 'comparisonValue'
property :operator, as: 'operator'
property :metric_name, as: 'metricName'
property :scope, as: 'scope'
end
end end
class DateRangeValues class DateRangeValues
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values'
collection :pivot_value_regions, as: 'pivotValueRegions', class: Google::Apis::AnalyticsreportingV4::PivotValueRegion, decorator: Google::Apis::AnalyticsreportingV4::PivotValueRegion::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class CohortGroup class CohortGroup
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation
property :lifetime_value, as: 'lifetimeValue' include Google::Apis::Core::JsonObjectSupport
end
end end
class GetReportsRequest class GetReportsRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :report_requests, as: 'reportRequests', class: Google::Apis::AnalyticsreportingV4::ReportRequest, decorator: Google::Apis::AnalyticsreportingV4::ReportRequest::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class Pivot class Pivot
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
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
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation include Google::Apis::Core::JsonObjectSupport
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
end
end end
class PivotHeaderEntry class PivotHeaderEntry
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
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
end include Google::Apis::Core::JsonObjectSupport
end end
class SegmentFilter class SegmentFilter
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
property :not, as: 'not' include Google::Apis::Core::JsonObjectSupport
property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation
end
end end
class SegmentDefinition class SegmentDefinition
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :segment_filters, as: 'segmentFilters', class: Google::Apis::AnalyticsreportingV4::SegmentFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilter::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class MetricHeaderEntry class MetricHeaderEntry
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type' include Google::Apis::Core::JsonObjectSupport
property :name, as: 'name'
end
end end
class ReportData class ReportData
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation property :is_data_golden, as: 'isDataGolden'
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 collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
property :is_data_golden, as: 'isDataGolden' property :row_count, as: 'rowCount'
property :data_last_refreshed, as: 'dataLastRefreshed' property :data_last_refreshed, as: 'dataLastRefreshed'
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
collection :minimums, as: 'minimums', 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 end
end end
@ -379,12 +265,12 @@ module Google
class SegmentDimensionFilter class SegmentDimensionFilter
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :case_sensitive, as: 'caseSensitive'
property :min_comparison_value, as: 'minComparisonValue' property :min_comparison_value, as: 'minComparisonValue'
property :max_comparison_value, as: 'maxComparisonValue' property :max_comparison_value, as: 'maxComparisonValue'
property :dimension_name, as: 'dimensionName' property :dimension_name, as: 'dimensionName'
property :operator, as: 'operator' property :operator, as: 'operator'
collection :expressions, as: 'expressions' collection :expressions, as: 'expressions'
property :case_sensitive, as: 'caseSensitive'
end end
end end
@ -418,9 +304,9 @@ module Google
class Metric class Metric
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :expression, as: 'expression'
property :formatting_type, as: 'formattingType' property :formatting_type, as: 'formattingType'
property :alias, as: 'alias' property :alias, as: 'alias'
property :expression, as: 'expression'
end end
end end
@ -434,11 +320,11 @@ module Google
class Report class Report
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
end end
end end
@ -454,8 +340,8 @@ module Google
class DateRange class DateRange
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :end_date, as: 'endDate'
property :start_date, as: 'startDate' property :start_date, as: 'startDate'
property :end_date, as: 'endDate'
end end
end end
@ -472,12 +358,14 @@ module Google
class ReportRequest class ReportRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
property :page_size, as: 'pageSize' property :page_size, as: 'pageSize'
property :hide_totals, as: 'hideTotals' property :hide_totals, as: 'hideTotals'
property :hide_value_ranges, as: 'hideValueRanges' 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 :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' property :view_id, as: 'viewId'
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
@ -490,14 +378,12 @@ module Google
property :sampling_level, as: 'samplingLevel' property :sampling_level, as: 'samplingLevel'
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation 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 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 collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
property :include_empty_rows, as: 'includeEmptyRows' property :include_empty_rows, as: 'includeEmptyRows'
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
end end
end end
@ -548,15 +434,6 @@ module Google
end end
end end
class MetricFilterClause
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operator, as: 'operator'
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation
end
end
class Cohort class Cohort
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -576,6 +453,15 @@ module Google
end end
end end
class MetricFilterClause
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operator, as: 'operator'
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation
end
end
class OrFiltersForSegment class OrFiltersForSegment
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -593,6 +479,120 @@ module Google
end end
end end
class DimensionFilterClause
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operator, as: 'operator'
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation
end
end
class GetReportsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :reports, as: 'reports', class: Google::Apis::AnalyticsreportingV4::Report, decorator: Google::Apis::AnalyticsreportingV4::Report::Representation
end
end
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
end
end
class SegmentMetricFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric_name, as: 'metricName'
property :scope, as: 'scope'
property :max_comparison_value, as: 'maxComparisonValue'
property :comparison_value, as: 'comparisonValue'
property :operator, as: 'operator'
end
end
class DateRangeValues
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values'
collection :pivot_value_regions, as: 'pivotValueRegions', class: Google::Apis::AnalyticsreportingV4::PivotValueRegion, decorator: Google::Apis::AnalyticsreportingV4::PivotValueRegion::Representation
end
end
class CohortGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lifetime_value, as: 'lifetimeValue'
collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation
end
end
class GetReportsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :report_requests, as: 'reportRequests', class: Google::Apis::AnalyticsreportingV4::ReportRequest, decorator: Google::Apis::AnalyticsreportingV4::ReportRequest::Representation
end
end
class Pivot
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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
end
end
class SegmentFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :not, as: 'not'
property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation
property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
end
end
class SegmentDefinition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :segment_filters, as: 'segmentFilters', class: Google::Apis::AnalyticsreportingV4::SegmentFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilter::Representation
end
end
class MetricHeaderEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :type, as: 'type'
end
end
end end
end end
end end

View File

@ -32,16 +32,16 @@ module Google
# #
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/ # @see https://developers.google.com/analytics/devguides/reporting/core/v4/
class AnalyticsReportingService < Google::Apis::Core::BaseService class AnalyticsReportingService < 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] # @return [String]
# Available to use for quota purposes for server-side applications. Can be any # 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. # arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user 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 def initialize
super('https://analyticsreporting.googleapis.com/', '') super('https://analyticsreporting.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
@ -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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_get_reports(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def batch_report_get(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/reports:batchGet', options) command = make_simple_command(:post, 'v4/reports:batchGet', options)
command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation
command.request_object = get_reports_request_object command.request_object = get_reports_request_object
@ -80,8 +80,8 @@ module Google
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil?
end end
end end
end end

View File

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

View File

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

View File

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

View File

@ -157,18 +157,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListDevicesResponse] parsed result object # @yieldparam result [Google::Apis::AndroidenterpriseV1::DevicesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidenterpriseV1::ListDevicesResponse] # @return [Google::Apis::AndroidenterpriseV1::DevicesListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::DevicesListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse command.response_class = Google::Apis::AndroidenterpriseV1::DevicesListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil? command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -634,18 +634,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse] parsed result object # @yieldparam result [Google::Apis::AndroidenterpriseV1::EnterprisesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse] # @return [Google::Apis::AndroidenterpriseV1::EnterprisesListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises', options) command = make_simple_command(:get, 'enterprises', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::EnterprisesListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse command.response_class = Google::Apis::AndroidenterpriseV1::EnterprisesListResponse
command.query['domain'] = domain unless domain.nil? command.query['domain'] = domain unless domain.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -725,18 +725,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse] parsed result object # @yieldparam result [Google::Apis::AndroidenterpriseV1::EnterprisesSendTestPushNotificationResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse] # @return [Google::Apis::AndroidenterpriseV1::EnterprisesSendTestPushNotificationResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:post, 'enterprises/{enterpriseId}/sendTestPushNotification', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::EnterprisesSendTestPushNotificationResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse command.response_class = Google::Apis::AndroidenterpriseV1::EnterprisesSendTestPushNotificationResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -958,18 +958,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse] parsed result object # @yieldparam result [Google::Apis::AndroidenterpriseV1::EntitlementsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse] # @return [Google::Apis::AndroidenterpriseV1::EntitlementsListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::EntitlementsListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse command.response_class = Google::Apis::AndroidenterpriseV1::EntitlementsListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil? command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_grouplicense(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 = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense
@ -1134,18 +1134,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse] parsed result object # @yieldparam result [Google::Apis::AndroidenterpriseV1::GroupLicensesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse] # @return [Google::Apis::AndroidenterpriseV1::GroupLicensesListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_grouplicenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses', options) command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicensesListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicensesListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -1173,18 +1173,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse] parsed result object # @yieldparam result [Google::Apis::AndroidenterpriseV1::GroupLicenseUsersListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse] # @return [Google::Apis::AndroidenterpriseV1::GroupLicenseUsersListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_grouplicenseusers(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 = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicenseUsersListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicenseUsersListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['groupLicenseId'] = group_license_id unless group_license_id.nil? command.params['groupLicenseId'] = group_license_id unless group_license_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -1302,18 +1302,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListInstallsResponse] parsed result object # @yieldparam result [Google::Apis::AndroidenterpriseV1::InstallsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidenterpriseV1::ListInstallsResponse] # @return [Google::Apis::AndroidenterpriseV1::InstallsListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListInstallsResponse::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::InstallsListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListInstallsResponse command.response_class = Google::Apis::AndroidenterpriseV1::InstallsListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil? command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil? command.params['deviceId'] = device_id unless device_id.nil?
@ -1912,7 +1912,7 @@ module Google
# The ID of the enterprise. # The ID of the enterprise.
# @param [String] product_id # @param [String] product_id
# The ID of the product. # The ID of the product.
# @param [Google::Apis::AndroidenterpriseV1::ApproveProductRequest] approve_product_request_object # @param [Google::Apis::AndroidenterpriseV1::ProductsApproveRequest] products_approve_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def approve_product(enterprise_id, product_id, products_approve_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 = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation command.request_representation = Google::Apis::AndroidenterpriseV1::ProductsApproveRequest::Representation
command.request_object = approve_product_request_object command.request_object = products_approve_request_object
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_id.nil? command.params['productId'] = product_id unless product_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -1974,18 +1974,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse] parsed result object # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductsGenerateApprovalUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse] # @return [Google::Apis::AndroidenterpriseV1::ProductsGenerateApprovalUrlResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::ProductsGenerateApprovalUrlResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse command.response_class = Google::Apis::AndroidenterpriseV1::ProductsGenerateApprovalUrlResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_id.nil? command.params['productId'] = product_id unless product_id.nil?
command.query['languageCode'] = language_code unless language_code.nil? command.query['languageCode'] = language_code unless language_code.nil?
@ -3069,18 +3069,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListUsersResponse] parsed result object # @yieldparam result [Google::Apis::AndroidenterpriseV1::UsersListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidenterpriseV1::ListUsersResponse] # @return [Google::Apis::AndroidenterpriseV1::UsersListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_users(enterprise_id, email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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 = make_simple_command(:get, 'enterprises/{enterpriseId}/users', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation command.response_representation = Google::Apis::AndroidenterpriseV1::UsersListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListUsersResponse command.response_class = Google::Apis::AndroidenterpriseV1::UsersListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['email'] = email unless email.nil? command.query['email'] = email unless email.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?

View File

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

View File

@ -40,7 +40,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListApkListingsResponse class ApkListingsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -58,7 +58,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListApksResponse class ApksListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -112,7 +112,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListEntitlementsResponse class EntitlementsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -124,7 +124,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UploadExpansionFilesResponse class ExpansionFilesUploadResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -148,19 +148,19 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DeleteAllImagesResponse class ImagesDeleteAllResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListImagesResponse class ImagesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UploadImagesResponse class ImagesUploadResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -178,55 +178,55 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InAppProductsBatchRequest class InappproductsBatchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InAppProductsBatchRequestEntry class InappproductsBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InAppProductsBatchResponse class InappproductsBatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InAppProductsBatchResponseEntry class InappproductsBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InsertInAppProductsRequest class InappproductsInsertRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InsertInAppProductsResponse class InappproductsInsertResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListInAppProductsResponse class InappproductsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UpdateInAppProductsRequest class InappproductsUpdateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UpdateInAppProductsResponse class InappproductsUpdateResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -238,7 +238,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListListingsResponse class ListingsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -322,13 +322,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DeferSubscriptionPurchasesRequest class SubscriptionPurchasesDeferRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DeferSubscriptionPurchasesResponse class SubscriptionPurchasesDeferResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -358,7 +358,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListTracksResponse class TracksListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -406,7 +406,7 @@ module Google
end end
end end
class ListApkListingsResponse class ApkListingsListResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind' property :kind, as: 'kind'
@ -431,7 +431,7 @@ module Google
end end
end end
class ListApksResponse class ApksListResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :apks, as: 'apks', class: Google::Apis::AndroidpublisherV2::Apk, decorator: Google::Apis::AndroidpublisherV2::Apk::Representation collection :apks, as: 'apks', class: Google::Apis::AndroidpublisherV2::Apk, decorator: Google::Apis::AndroidpublisherV2::Apk::Representation
@ -519,7 +519,7 @@ module Google
end end
end end
class ListEntitlementsResponse class EntitlementsListResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV2::PageInfo, decorator: Google::Apis::AndroidpublisherV2::PageInfo::Representation property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV2::PageInfo, decorator: Google::Apis::AndroidpublisherV2::PageInfo::Representation
@ -539,7 +539,7 @@ module Google
end end
end end
class UploadExpansionFilesResponse class ExpansionFilesUploadResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :expansion_file, as: 'expansionFile', class: Google::Apis::AndroidpublisherV2::ExpansionFile, decorator: Google::Apis::AndroidpublisherV2::ExpansionFile::Representation property :expansion_file, as: 'expansionFile', class: Google::Apis::AndroidpublisherV2::ExpansionFile, decorator: Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
@ -586,7 +586,7 @@ module Google
end end
end end
class DeleteAllImagesResponse class ImagesDeleteAllResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :deleted, as: 'deleted', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation collection :deleted, as: 'deleted', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
@ -594,7 +594,7 @@ module Google
end end
end end
class ListImagesResponse class ImagesListResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :images, as: 'images', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation collection :images, as: 'images', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
@ -602,7 +602,7 @@ module Google
end end
end end
class UploadImagesResponse class ImagesUploadResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :image, as: 'image', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation property :image, as: 'image', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
@ -639,47 +639,47 @@ module Google
end end
end end
class InAppProductsBatchRequest class InappproductsBatchRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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
end end
class InAppProductsBatchRequestEntry class InappproductsBatchRequestEntry
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId' property :batch_id, as: 'batchId'
property :inappproductsinsertrequest, as: 'inappproductsinsertrequest', class: Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest, decorator: Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest::Representation property :inappproductsinsertrequest, as: 'inappproductsinsertrequest', class: Google::Apis::AndroidpublisherV2::InappproductsInsertRequest, decorator: Google::Apis::AndroidpublisherV2::InappproductsInsertRequest::Representation
property :inappproductsupdaterequest, as: 'inappproductsupdaterequest', class: Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest, decorator: Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest::Representation property :inappproductsupdaterequest, as: 'inappproductsupdaterequest', class: Google::Apis::AndroidpublisherV2::InappproductsUpdateRequest, decorator: Google::Apis::AndroidpublisherV2::InappproductsUpdateRequest::Representation
property :method_name, as: 'methodName' property :method_name, as: 'methodName'
end end
end end
class InAppProductsBatchResponse class InappproductsBatchResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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' property :kind, as: 'kind'
end end
end end
class InAppProductsBatchResponseEntry class InappproductsBatchResponseEntry
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId' property :batch_id, as: 'batchId'
property :inappproductsinsertresponse, as: 'inappproductsinsertresponse', class: Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse, decorator: Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse::Representation property :inappproductsinsertresponse, as: 'inappproductsinsertresponse', class: Google::Apis::AndroidpublisherV2::InappproductsInsertResponse, decorator: Google::Apis::AndroidpublisherV2::InappproductsInsertResponse::Representation
property :inappproductsupdateresponse, as: 'inappproductsupdateresponse', class: Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse, decorator: Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse::Representation property :inappproductsupdateresponse, as: 'inappproductsupdateresponse', class: Google::Apis::AndroidpublisherV2::InappproductsUpdateResponse, decorator: Google::Apis::AndroidpublisherV2::InappproductsUpdateResponse::Representation
end end
end end
class InsertInAppProductsRequest class InappproductsInsertRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -687,7 +687,7 @@ module Google
end end
end end
class InsertInAppProductsResponse class InappproductsInsertResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -695,7 +695,7 @@ module Google
end end
end end
class ListInAppProductsResponse class InappproductsListResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation collection :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -708,7 +708,7 @@ module Google
end end
end end
class UpdateInAppProductsRequest class InappproductsUpdateRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -716,7 +716,7 @@ module Google
end end
end end
class UpdateInAppProductsResponse class InappproductsUpdateResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
@ -735,7 +735,7 @@ module Google
end end
end end
class ListListingsResponse class ListingsListResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind' property :kind, as: 'kind'
@ -873,7 +873,7 @@ module Google
end end
end end
class DeferSubscriptionPurchasesRequest class SubscriptionPurchasesDeferRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :deferral_info, as: 'deferralInfo', class: Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo, decorator: Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo::Representation property :deferral_info, as: 'deferralInfo', class: Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo, decorator: Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo::Representation
@ -881,7 +881,7 @@ module Google
end end
end end
class DeferSubscriptionPurchasesResponse class SubscriptionPurchasesDeferResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :new_expiry_time_millis, :numeric_string => true, as: 'newExpiryTimeMillis' property :new_expiry_time_millis, :numeric_string => true, as: 'newExpiryTimeMillis'
@ -921,7 +921,7 @@ module Google
end end
end end
class ListTracksResponse class TracksListResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind' 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_edit_apklisting(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 = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_all_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def deleteall_edit_apklisting(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 = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options)
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_edit_apklisting(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 = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ApkListing command.response_class = Google::Apis::AndroidpublisherV2::ApkListing
@ -405,18 +405,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListApkListingsResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::ApkListingsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::ListApkListingsResponse] # @return [Google::Apis::AndroidpublisherV2::ApkListingsListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_edit_apklistings(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 = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ListApkListingsResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::ApkListingsListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListApkListingsResponse command.response_class = Google::Apis::AndroidpublisherV2::ApkListingsListResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil? command.params['editId'] = edit_id unless edit_id.nil?
command.params['apkVersionCode'] = apk_version_code unless apk_version_code.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options) command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
command.request_object = apk_listing_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options) command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
command.request_object = apk_listing_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/externallyHosted', options) command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/externallyHosted', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedRequest::Representation command.request_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedRequest::Representation
command.request_object = apks_add_externally_hosted_request_object command.request_object = apks_add_externally_hosted_request_object
@ -592,18 +592,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListApksResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::ApksListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::ListApksResponse] # @return [Google::Apis::AndroidpublisherV2::ApksListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_edit_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 = make_simple_command(:get, '{packageName}/edits/{editId}/apks', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ListApksResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::ApksListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListApksResponse command.response_class = Google::Apis::AndroidpublisherV2::ApksListResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil? command.params['editId'] = edit_id unless edit_id.nil?
command.query['fields'] = fields unless fields.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def upload_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) 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)
if upload_source.nil? if upload_source.nil?
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks', options) command = make_simple_command(:post, '{packageName}/edits/{editId}/apks', options)
else 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_edit_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 = make_simple_command(:get, '{packageName}/edits/{editId}/details', options)
command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
command.response_class = Google::Apis::AndroidpublisherV2::AppDetails 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_edit_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 = make_simple_command(:patch, '{packageName}/edits/{editId}/details', options)
command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
command.request_object = app_details_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_edit_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 = make_simple_command(:put, '{packageName}/edits/{editId}/details', options)
command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
command.request_object = app_details_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
command.request_object = expansion_file_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
command.request_object = expansion_file_object command.request_object = expansion_file_object
@ -1011,15 +1011,15 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::ExpansionFilesUploadResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse] # @return [Google::Apis::AndroidpublisherV2::ExpansionFilesUploadResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
if upload_source.nil? if upload_source.nil?
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
else else
@ -1027,8 +1027,8 @@ module Google
command.upload_source = upload_source command.upload_source = upload_source
command.upload_content_type = content_type command.upload_content_type = content_type
end end
command.response_representation = Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFilesUploadResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::UploadExpansionFilesResponse command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFilesUploadResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil? command.params['editId'] = edit_id unless edit_id.nil?
command.params['apkVersionCode'] = apk_version_code unless apk_version_code.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_edit_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 = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options)
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil? command.params['editId'] = edit_id unless edit_id.nil?
@ -1110,18 +1110,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse] # @return [Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_all_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def deleteall_edit_image(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 = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse command.response_class = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil? command.params['editId'] = edit_id unless edit_id.nil?
command.params['language'] = language unless language.nil? command.params['language'] = language unless language.nil?
@ -1156,18 +1156,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListImagesResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::ImagesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::ListImagesResponse] # @return [Google::Apis::AndroidpublisherV2::ImagesListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_edit_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 = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ListImagesResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::ImagesListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListImagesResponse command.response_class = Google::Apis::AndroidpublisherV2::ImagesListResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil? command.params['editId'] = edit_id unless edit_id.nil?
command.params['language'] = language unless language.nil? command.params['language'] = language unless language.nil?
@ -1207,15 +1207,15 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::UploadImagesResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::ImagesUploadResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::UploadImagesResponse] # @return [Google::Apis::AndroidpublisherV2::ImagesUploadResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
if upload_source.nil? if upload_source.nil?
command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
else else
@ -1223,8 +1223,8 @@ module Google
command.upload_source = upload_source command.upload_source = upload_source
command.upload_content_type = content_type command.upload_content_type = content_type
end end
command.response_representation = Google::Apis::AndroidpublisherV2::UploadImagesResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::ImagesUploadResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::UploadImagesResponse command.response_class = Google::Apis::AndroidpublisherV2::ImagesUploadResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil? command.params['editId'] = edit_id unless edit_id.nil?
command.params['language'] = language unless language.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_edit_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 = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}', options)
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_all_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def deleteall_edit_listing(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 = make_simple_command(:delete, '{packageName}/edits/{editId}/listings', options)
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_edit_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 = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
command.response_class = Google::Apis::AndroidpublisherV2::Listing command.response_class = Google::Apis::AndroidpublisherV2::Listing
@ -1375,18 +1375,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListListingsResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::ListingsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::ListListingsResponse] # @return [Google::Apis::AndroidpublisherV2::ListingsListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_edit_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 = make_simple_command(:get, '{packageName}/edits/{editId}/listings', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ListListingsResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::ListingsListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListListingsResponse command.response_class = Google::Apis::AndroidpublisherV2::ListingsListResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil? command.params['editId'] = edit_id unless edit_id.nil?
command.query['fields'] = fields unless fields.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_edit_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 = make_simple_command(:patch, '{packageName}/edits/{editId}/listings/{language}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
command.request_object = listing_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_edit_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 = make_simple_command(:put, '{packageName}/edits/{editId}/listings/{language}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
command.request_object = listing_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_edit_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 = make_simple_command(:get, '{packageName}/edits/{editId}/testers/{track}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
command.response_class = Google::Apis::AndroidpublisherV2::Testers 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_edit_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 = make_simple_command(:patch, '{packageName}/edits/{editId}/testers/{track}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
command.request_object = testers_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_edit_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 = make_simple_command(:put, '{packageName}/edits/{editId}/testers/{track}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
command.request_object = testers_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_edit_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 = make_simple_command(:get, '{packageName}/edits/{editId}/tracks/{track}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
command.response_class = Google::Apis::AndroidpublisherV2::Track command.response_class = Google::Apis::AndroidpublisherV2::Track
@ -1679,18 +1679,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListTracksResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::TracksListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::ListTracksResponse] # @return [Google::Apis::AndroidpublisherV2::TracksListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_edit_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 = make_simple_command(:get, '{packageName}/edits/{editId}/tracks', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ListTracksResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::TracksListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListTracksResponse command.response_class = Google::Apis::AndroidpublisherV2::TracksListResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil? command.params['editId'] = edit_id unless edit_id.nil?
command.query['fields'] = fields unless fields.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_edit_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 = make_simple_command(:patch, '{packageName}/edits/{editId}/tracks/{track}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
command.request_object = track_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_edit_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 = make_simple_command(:put, '{packageName}/edits/{editId}/tracks/{track}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
command.request_object = track_object command.request_object = track_object
@ -1816,18 +1816,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::EntitlementsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::ListEntitlementsResponse] # @return [Google::Apis::AndroidpublisherV2::EntitlementsListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:get, '{packageName}/entitlements', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::EntitlementsListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse command.response_class = Google::Apis::AndroidpublisherV2::EntitlementsListResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.query['maxResults'] = max_results unless max_results.nil? command.query['maxResults'] = max_results unless max_results.nil?
command.query['productId'] = product_id unless product_id.nil? command.query['productId'] = product_id unless product_id.nil?
@ -1840,7 +1840,7 @@ module Google
end end
# #
# @param [Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest] in_app_products_batch_request_object # @param [Google::Apis::AndroidpublisherV2::InappproductsBatchRequest] inappproducts_batch_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1854,20 +1854,20 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @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 # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_update_in_app_products(in_app_products_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def batch_inappproduct(inappproducts_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'inappproducts/batch', options) command = make_simple_command(:post, 'inappproducts/batch', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest::Representation command.request_representation = Google::Apis::AndroidpublisherV2::InappproductsBatchRequest::Representation
command.request_object = in_app_products_batch_request_object command.request_object = inappproducts_batch_request_object
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::InappproductsBatchResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse command.response_class = Google::Apis::AndroidpublisherV2::InappproductsBatchResponse
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options) command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options)
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['sku'] = sku unless sku.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options) command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, '{packageName}/inappproducts', options) command = make_simple_command(:post, '{packageName}/inappproducts', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
command.request_object = in_app_product_object command.request_object = in_app_product_object
@ -2012,18 +2012,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::ListInAppProductsResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::InappproductsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::ListInAppProductsResponse] # @return [Google::Apis::AndroidpublisherV2::InappproductsListResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) def list_inappproducts(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 = make_simple_command(:get, '{packageName}/inappproducts', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::InappproductsListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse command.response_class = Google::Apis::AndroidpublisherV2::InappproductsListResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.query['maxResults'] = max_results unless max_results.nil? command.query['maxResults'] = max_results unless max_results.nil?
command.query['startIndex'] = start_index unless start_index.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options) command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
command.request_object = in_app_product_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options) command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
command.request_object = in_app_product_object command.request_object = in_app_product_object
@ -2219,7 +2219,7 @@ module Google
# The purchased subscription ID (for example, 'monthly001'). # The purchased subscription ID (for example, 'monthly001').
# @param [String] token # @param [String] token
# The token provided to the user's device when the subscription was purchased. # The token provided to the user's device when the subscription was purchased.
# @param [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest] defer_subscription_purchases_request_object # @param [Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferRequest] subscription_purchases_defer_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2233,20 +2233,20 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse] parsed result object # @yieldparam result [Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse] # @return [Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options) command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options)
command.request_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest::Representation command.request_representation = Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferRequest::Representation
command.request_object = defer_subscription_purchases_request_object command.request_object = subscription_purchases_defer_request_object
command.response_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse::Representation command.response_representation = Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse command.response_class = Google::Apis::AndroidpublisherV2::SubscriptionPurchasesDeferResponse
command.params['packageName'] = package_name unless package_name.nil? command.params['packageName'] = package_name unless package_name.nil?
command.params['subscriptionId'] = subscription_id unless subscription_id.nil? command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
command.params['token'] = token unless token.nil? command.params['token'] = token unless token.nil?

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/ # @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1 module AppengineV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170522' REVISION = '20170525'
# View and manage your applications deployed on Google App Engine # View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,31 @@ module Google
module Apis module Apis
module AppengineV1 module AppengineV1
class ErrorHandler class ManualScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Service
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 OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -34,7 +58,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Network class ErrorHandler
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -46,6 +70,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Network
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -106,13 +136,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FileInfo class ScriptHandler
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ScriptHandler class FileInfo
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -142,13 +172,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Resources class Deployment
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Deployment class Resources
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -220,19 +250,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class EndpointsApiService
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlMap class UrlMap
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ApiConfigHandler class EndpointsApiService
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -244,6 +268,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ApiConfigHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StaticFilesHandler class StaticFilesHandler
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -268,46 +298,75 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class IdentityAwareProxy class IdentityAwareProxy
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ManualScaling class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ManualScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instances, as: 'instances'
end
end
class LocationMetadata class LocationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
property :standard_environment_available, as: 'standardEnvironmentAvailable'
end
end end
class Service class Service
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :split, as: 'split', class: Google::Apis::AppengineV1::TrafficSplit, decorator: Google::Apis::AppengineV1::TrafficSplit::Representation
include Google::Apis::Core::JsonObjectSupport property :id, as: 'id'
property :name, as: 'name'
end
end end
class ListOperationsResponse class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @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
include Google::Apis::Core::JsonObjectSupport end
end end
class OperationMetadata class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
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
include Google::Apis::Core::JsonObjectSupport 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'
end
end end
class ErrorHandler class ErrorHandler
@ -319,16 +378,23 @@ module Google
end end
end end
class OperationMetadataV1 class Application
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :target, as: 'target' property :default_hostname, as: 'defaultHostname'
property :user, as: 'user' property :iap, as: 'iap', class: Google::Apis::AppengineV1::IdentityAwareProxy, decorator: Google::Apis::AppengineV1::IdentityAwareProxy::Representation
property :ephemeral_message, as: 'ephemeralMessage'
property :method_prop, as: 'method' property :auth_domain, as: 'authDomain'
property :end_time, as: 'endTime' property :code_bucket, as: 'codeBucket'
collection :warning, as: 'warning' property :default_bucket, as: 'defaultBucket'
property :insert_time, as: 'insertTime' 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
end end
@ -342,103 +408,83 @@ module Google
end end
end end
class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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 :default_cookie_expiration, as: 'defaultCookieExpiration'
property :id, as: 'id'
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'
end
end
class Instance class Instance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :average_latency, as: 'averageLatency'
property :id, as: 'id'
property :vm_ip, as: 'vmIp'
property :memory_usage, :numeric_string => true, as: 'memoryUsage'
property :errors, as: 'errors'
property :availability, as: 'availability'
property :vm_status, as: 'vmStatus'
property :start_time, as: 'startTime'
property :vm_debug_enabled, as: 'vmDebugEnabled' property :vm_debug_enabled, as: 'vmDebugEnabled'
property :requests, as: 'requests' property :requests, as: 'requests'
property :app_engine_release, as: 'appEngineRelease' property :app_engine_release, as: 'appEngineRelease'
property :vm_name, as: 'vmName'
property :qps, as: 'qps'
property :vm_id, as: 'vmId'
property :vm_zone_name, as: 'vmZoneName'
property :name, as: 'name'
property :average_latency, as: 'averageLatency'
property :vm_ip, as: 'vmIp'
property :memory_usage, :numeric_string => true, as: 'memoryUsage'
property :id, as: 'id'
property :availability, as: 'availability'
property :errors, as: 'errors'
property :vm_status, as: 'vmStatus'
property :start_time, as: 'startTime'
end end
end end
class LivenessCheck class LivenessCheck
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :timeout, as: 'timeout' property :check_interval, as: 'checkInterval'
property :failure_threshold, as: 'failureThreshold' property :failure_threshold, as: 'failureThreshold'
property :timeout, as: 'timeout'
property :initial_delay, as: 'initialDelay' property :initial_delay, as: 'initialDelay'
property :path, as: 'path' property :path, as: 'path'
property :host, as: 'host' property :host, as: 'host'
property :success_threshold, as: 'successThreshold' property :success_threshold, as: 'successThreshold'
property :check_interval, as: 'checkInterval'
end end
end end
class NetworkUtilization class NetworkUtilization
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :target_sent_bytes_per_second, as: 'targetSentBytesPerSecond'
property :target_sent_packets_per_second, as: 'targetSentPacketsPerSecond' property :target_sent_packets_per_second, as: 'targetSentPacketsPerSecond'
property :target_received_bytes_per_second, as: 'targetReceivedBytesPerSecond' property :target_received_bytes_per_second, as: 'targetReceivedBytesPerSecond'
property :target_received_packets_per_second, as: 'targetReceivedPacketsPerSecond' property :target_received_packets_per_second, as: 'targetReceivedPacketsPerSecond'
property :target_sent_bytes_per_second, as: 'targetSentBytesPerSecond'
end end
end end
class Location class Location
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :name, as: 'name' property :name, as: 'name'
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
end end
end end
class HealthCheck class HealthCheck
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :restart_threshold, as: 'restartThreshold'
property :healthy_threshold, as: 'healthyThreshold'
property :check_interval, as: 'checkInterval' property :check_interval, as: 'checkInterval'
property :timeout, as: 'timeout' property :timeout, as: 'timeout'
property :unhealthy_threshold, as: 'unhealthyThreshold' property :unhealthy_threshold, as: 'unhealthyThreshold'
property :disable_health_check, as: 'disableHealthCheck' property :disable_health_check, as: 'disableHealthCheck'
property :host, as: 'host'
property :restart_threshold, as: 'restartThreshold'
property :healthy_threshold, as: 'healthyThreshold'
end end
end end
class ReadinessCheck class ReadinessCheck
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :host, as: 'host'
property :success_threshold, as: 'successThreshold'
property :check_interval, as: 'checkInterval' property :check_interval, as: 'checkInterval'
property :timeout, as: 'timeout' property :timeout, as: 'timeout'
property :failure_threshold, as: 'failureThreshold' property :failure_threshold, as: 'failureThreshold'
property :path, as: 'path'
property :success_threshold, as: 'successThreshold'
property :host, as: 'host'
end end
end end
@ -463,28 +509,6 @@ module Google
class Version class Version
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :instance_class, as: 'instanceClass'
property :serving_status, as: 'servingStatus'
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1::Deployment, decorator: Google::Apis::AppengineV1::Deployment::Representation
property :create_time, as: 'createTime'
property :resources, as: 'resources', class: Google::Apis::AppengineV1::Resources, decorator: Google::Apis::AppengineV1::Resources::Representation
collection :inbound_services, as: 'inboundServices'
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1::ErrorHandler, decorator: Google::Apis::AppengineV1::ErrorHandler::Representation
property :default_expiration, as: 'defaultExpiration'
collection :libraries, as: 'libraries', class: Google::Apis::AppengineV1::Library, decorator: Google::Apis::AppengineV1::Library::Representation
property :nobuild_files_regex, as: 'nobuildFilesRegex'
property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1::BasicScaling, decorator: Google::Apis::AppengineV1::BasicScaling::Representation
property :runtime, as: 'runtime'
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 property :network, as: 'network', class: Google::Apis::AppengineV1::Network, decorator: Google::Apis::AppengineV1::Network::Representation
hash :beta_settings, as: 'betaSettings' hash :beta_settings, as: 'betaSettings'
@ -508,6 +532,29 @@ module Google
property :version_url, as: 'versionUrl' property :version_url, as: 'versionUrl'
property :vm, as: 'vm' property :vm, as: 'vm'
property :instance_class, as: 'instanceClass'
property :serving_status, as: 'servingStatus'
property :runtime_api_version, as: 'runtimeApiVersion'
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1::Deployment, decorator: Google::Apis::AppengineV1::Deployment::Representation
property :create_time, as: 'createTime'
collection :inbound_services, as: 'inboundServices'
property :resources, as: 'resources', class: Google::Apis::AppengineV1::Resources, decorator: Google::Apis::AppengineV1::Resources::Representation
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1::ErrorHandler, decorator: Google::Apis::AppengineV1::ErrorHandler::Representation
property :default_expiration, as: 'defaultExpiration'
collection :libraries, as: 'libraries', class: Google::Apis::AppengineV1::Library, decorator: Google::Apis::AppengineV1::Library::Representation
property :nobuild_files_regex, as: 'nobuildFilesRegex'
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'
hash :env_variables, as: 'envVariables'
property :liveness_check, as: 'livenessCheck', class: Google::Apis::AppengineV1::LivenessCheck, decorator: Google::Apis::AppengineV1::LivenessCheck::Representation
end end
end end
@ -517,15 +564,6 @@ module Google
end end
end end
class FileInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :mime_type, as: 'mimeType'
property :source_url, as: 'sourceUrl'
property :sha1_sum, as: 'sha1Sum'
end
end
class ScriptHandler class ScriptHandler
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -533,14 +571,23 @@ module Google
end end
end end
class FileInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :sha1_sum, as: 'sha1Sum'
property :mime_type, as: 'mimeType'
property :source_url, as: 'sourceUrl'
end
end
class OperationMetadataExperimental class OperationMetadataExperimental
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :user, as: 'user'
property :target, as: 'target'
property :method_prop, as: 'method' property :method_prop, as: 'method'
property :insert_time, as: 'insertTime' property :insert_time, as: 'insertTime'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
property :user, as: 'user'
property :target, as: 'target'
end end
end end
@ -555,13 +602,13 @@ module Google
class OperationMetadataV1Beta class OperationMetadataV1Beta
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :target, as: 'target'
property :user, as: 'user'
property :ephemeral_message, as: 'ephemeralMessage'
property :method_prop, as: 'method' property :method_prop, as: 'method'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
collection :warning, as: 'warning' collection :warning, as: 'warning'
property :insert_time, as: 'insertTime' property :insert_time, as: 'insertTime'
property :user, as: 'user'
property :target, as: 'target'
property :ephemeral_message, as: 'ephemeralMessage'
end end
end end
@ -574,17 +621,6 @@ module Google
end end
end end
class Resources
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu, as: 'cpu'
property :memory_gb, as: 'memoryGb'
collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1::Volume, decorator: Google::Apis::AppengineV1::Volume::Representation
property :disk_gb, as: 'diskGb'
end
end
class Deployment class Deployment
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -597,12 +633,23 @@ module Google
end end
end end
class Resources
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1::Volume, decorator: Google::Apis::AppengineV1::Volume::Representation
property :disk_gb, as: 'diskGb'
property :cpu, as: 'cpu'
property :memory_gb, as: 'memoryGb'
end
end
class Volume class Volume
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :volume_type, as: 'volumeType' property :volume_type, as: 'volumeType'
property :size_gb, as: 'sizeGb' property :size_gb, as: 'sizeGb'
property :name, as: 'name'
end end
end end
@ -618,9 +665,9 @@ module Google
class UrlDispatchRule class UrlDispatchRule
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :domain, as: 'domain' property :domain, as: 'domain'
property :service, as: 'service' property :service, as: 'service'
property :path, as: 'path'
end end
end end
@ -651,9 +698,6 @@ module Google
class AutomaticScaling class AutomaticScaling
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1::DiskUtilization, decorator: Google::Apis::AppengineV1::DiskUtilization::Representation
property :min_pending_latency, as: 'minPendingLatency'
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation
property :max_idle_instances, as: 'maxIdleInstances' property :max_idle_instances, as: 'maxIdleInstances'
@ -667,14 +711,17 @@ module Google
property :max_pending_latency, as: 'maxPendingLatency' property :max_pending_latency, as: 'maxPendingLatency'
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1::CpuUtilization, decorator: Google::Apis::AppengineV1::CpuUtilization::Representation 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
end end
class Library class Library
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
property :name, as: 'name' property :name, as: 'name'
property :version, as: 'version'
end end
end end
@ -702,20 +749,9 @@ module Google
end end
end end
class EndpointsApiService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :config_id, as: 'configId'
end
end
class UrlMap class UrlMap
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
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 :static_files, as: 'staticFiles', class: Google::Apis::AppengineV1::StaticFilesHandler, decorator: Google::Apis::AppengineV1::StaticFilesHandler::Representation
property :redirect_http_response_code, as: 'redirectHttpResponseCode' property :redirect_http_response_code, as: 'redirectHttpResponseCode'
@ -724,42 +760,53 @@ module Google
property :script, as: 'script', class: Google::Apis::AppengineV1::ScriptHandler, decorator: Google::Apis::AppengineV1::ScriptHandler::Representation property :script, as: 'script', class: Google::Apis::AppengineV1::ScriptHandler, decorator: Google::Apis::AppengineV1::ScriptHandler::Representation
property :url_regex, as: 'urlRegex' 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
end end
class ApiConfigHandler class EndpointsApiService
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :login, as: 'login' property :name, as: 'name'
property :url, as: 'url' property :config_id, as: 'configId'
property :security_level, as: 'securityLevel'
property :auth_fail_action, as: 'authFailAction'
property :script, as: 'script'
end end
end end
class Operation class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name' property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::AppengineV1::Status, decorator: Google::Apis::AppengineV1::Status::Representation property :error, as: 'error', class: Google::Apis::AppengineV1::Status, decorator: Google::Apis::AppengineV1::Status::Representation
hash :metadata, as: 'metadata' 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
end end
class StaticFilesHandler class StaticFilesHandler
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :require_matching_file, as: 'requireMatchingFile'
property :expiration, as: 'expiration' property :expiration, as: 'expiration'
property :application_readable, as: 'applicationReadable' property :application_readable, as: 'applicationReadable'
hash :http_headers, as: 'httpHeaders' hash :http_headers, as: 'httpHeaders'
property :upload_path_regex, as: 'uploadPathRegex' property :upload_path_regex, as: 'uploadPathRegex'
property :path, as: 'path' property :path, as: 'path'
property :mime_type, as: 'mimeType' property :mime_type, as: 'mimeType'
property :require_matching_file, as: 'requireMatchingFile'
end end
end end
@ -784,17 +831,8 @@ module Google
class CpuUtilization class CpuUtilization
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :aggregation_window_length, as: 'aggregationWindowLength'
property :target_utilization, as: 'targetUtilization' property :target_utilization, as: 'targetUtilization'
end property :aggregation_window_length, as: 'aggregationWindowLength'
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end end
end end
@ -808,49 +846,12 @@ module Google
end end
end end
class ManualScaling class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :instances, as: 'instances' property :message, as: 'message'
end collection :details, as: 'details'
end property :code, as: 'code'
class LocationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :standard_environment_available, as: 'standardEnvironmentAvailable'
property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
end
end
class Service
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :insert_time, as: 'insertTime'
property :target, as: 'target'
property :user, as: 'user'
property :method_prop, as: 'method'
property :end_time, as: 'endTime'
property :operation_type, as: 'operationType'
end end
end end
end end

View File

@ -48,77 +48,6 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end 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. # Creates an App Engine application for a Google Cloud Platform project.
# Required fields: # Required fields:
# id - The ID of the target Cloud Platform project. # id - The ID of the target Cloud Platform project.
@ -191,18 +120,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the server # Gets information about an application.
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
# below allows API services to override the binding to use different resource
# name schemes, such as users/*/operations.
# @param [String] apps_id # @param [String] apps_id
# Part of `name`. The name of the operation collection. # Part of `name`. Name of the Application resource to get. Example: apps/myapp.
# @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 # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -212,33 +132,35 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::ListOperationsResponse] parsed result object # @yieldparam result [Google::Apis::AppengineV1::Application] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AppengineV1::ListOperationsResponse] # @return [Google::Apis::AppengineV1::Application]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) def get_app(apps_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options) command = make_simple_command(:get, 'v1/apps/{appsId}', options)
command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation command.response_representation = Google::Apis::AppengineV1::Application::Representation
command.response_class = Google::Apis::AppengineV1::ListOperationsResponse command.response_class = Google::Apis::AppengineV1::Application
command.params['appsId'] = apps_id unless apps_id.nil? 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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this method # Updates the specified Application resource. You can update the following
# to poll the operation result at intervals as recommended by the API service. # 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 # @param [String] apps_id
# Part of `name`. The name of the operation resource. # Part of `name`. Name of the Application resource to update. Example: apps/
# @param [String] operations_id # myapp.
# Part of `name`. See documentation of `appsId`. # @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 # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -256,84 +178,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block) def patch_app(apps_id, application_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/operations/{operationsId}', options) 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_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil? command.params['appsId'] = apps_id unless apps_id.nil?
command.params['operationsId'] = operations_id unless operations_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
# 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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -376,10 +228,10 @@ module Google
# Lists all the services in the application. # Lists all the services in the application.
# @param [String] apps_id # @param [String] apps_id
# Part of `parent`. Name of the parent Application resource. Example: apps/myapp. # Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum results to return per page. # Maximum results to return per page.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -397,13 +249,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_app_services(apps_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) def list_app_services(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services', options) command = make_simple_command(:get, 'v1/apps/{appsId}/services', options)
command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListServicesResponse command.response_class = Google::Apis::AppengineV1::ListServicesResponse
command.params['appsId'] = apps_id unless apps_id.nil? 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['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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -450,8 +302,6 @@ module Google
# @param [String] services_id # @param [String] services_id
# Part of `name`. See documentation of `appsId`. # Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1::Service] service_object # @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 # @param [Boolean] migrate_traffic
# Set to true to gradually shift traffic to one or more versions that you # Set to true to gradually shift traffic to one or more versions that you
# specify. By default, traffic is shifted immediately. For gradual traffic # specify. By default, traffic is shifted immediately. For gradual traffic
@ -465,6 +315,8 @@ module Google
# not supported in the App Engine flexible environment. For examples, see # not supported in the App Engine flexible environment. For examples, see
# Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin- # Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-
# api/migrating-splitting-traffic). # api/migrating-splitting-traffic).
# @param [String] update_mask
# Standard field mask for the set of fields to be updated.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -482,7 +334,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:patch, 'v1/apps/{appsId}/services/{servicesId}', options) command = make_simple_command(:patch, 'v1/apps/{appsId}/services/{servicesId}', options)
command.request_representation = Google::Apis::AppengineV1::Service::Representation command.request_representation = Google::Apis::AppengineV1::Service::Representation
command.request_object = service_object command.request_object = service_object
@ -490,8 +342,45 @@ module Google
command.response_class = Google::Apis::AppengineV1::Operation command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil? command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil? command.params['servicesId'] = services_id unless services_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.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['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -678,43 +567,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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. # Stops a running instance.
# @param [String] apps_id # @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/ # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
@ -888,6 +740,158 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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 protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

@ -1,35 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/appengine_v1beta4/service.rb'
require 'google/apis/appengine_v1beta4/classes.rb'
require 'google/apis/appengine_v1beta4/representations.rb'
module Google
module Apis
# Google App Engine Admin API
#
# The Google App Engine Admin API enables developers to provision and manage
# their App Engine applications.
#
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta4
VERSION = 'V1beta4'
REVISION = '20160121'
# 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

@ -1,542 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AppengineV1beta4
class Application
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class UrlDispatchRule
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Version
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class AutomaticScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class CpuUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class RequestUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DiskUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class NetworkUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class BasicScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ManualScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Network
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Resources
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class UrlMap
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StaticFilesHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StaticDirectoryHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ScriptHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ApiEndpointHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ErrorHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Library
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ApiConfigHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class HealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Deployment
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class FileInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ContainerInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class SourceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Module
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class TrafficSplit
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListModulesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class OperationMetadataV1Beta5
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1beta4::UrlDispatchRule, decorator: Google::Apis::AppengineV1beta4::UrlDispatchRule::Representation
property :location, as: 'location'
property :code_bucket, as: 'codeBucket'
property :default_bucket, as: 'defaultBucket'
end
end
class UrlDispatchRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain, as: 'domain'
property :path, as: 'path'
property :module, as: 'module'
end
end
class Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::AppengineV1beta4::AutomaticScaling, decorator: Google::Apis::AppengineV1beta4::AutomaticScaling::Representation
property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1beta4::BasicScaling, decorator: Google::Apis::AppengineV1beta4::BasicScaling::Representation
property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1beta4::ManualScaling, decorator: Google::Apis::AppengineV1beta4::ManualScaling::Representation
collection :inbound_services, as: 'inboundServices'
property :instance_class, as: 'instanceClass'
property :network, as: 'network', class: Google::Apis::AppengineV1beta4::Network, decorator: Google::Apis::AppengineV1beta4::Network::Representation
property :resources, as: 'resources', class: Google::Apis::AppengineV1beta4::Resources, decorator: Google::Apis::AppengineV1beta4::Resources::Representation
property :runtime, as: 'runtime'
property :threadsafe, as: 'threadsafe'
property :vm, as: 'vm'
hash :beta_settings, as: 'betaSettings'
property :env, as: 'env'
property :serving_status, as: 'servingStatus'
property :deployer, as: 'deployer'
property :creation_time, as: 'creationTime'
collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1beta4::UrlMap, decorator: Google::Apis::AppengineV1beta4::UrlMap::Representation
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1beta4::ErrorHandler, decorator: Google::Apis::AppengineV1beta4::ErrorHandler::Representation
collection :libraries, as: 'libraries', class: Google::Apis::AppengineV1beta4::Library, decorator: Google::Apis::AppengineV1beta4::Library::Representation
property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1beta4::ApiConfigHandler, decorator: Google::Apis::AppengineV1beta4::ApiConfigHandler::Representation
hash :env_variables, as: 'envVariables'
property :default_expiration, as: 'defaultExpiration'
property :health_check, as: 'healthCheck', class: Google::Apis::AppengineV1beta4::HealthCheck, decorator: Google::Apis::AppengineV1beta4::HealthCheck::Representation
property :nobuild_files_regex, as: 'nobuildFilesRegex'
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1beta4::Deployment, decorator: Google::Apis::AppengineV1beta4::Deployment::Representation
end
end
class AutomaticScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cool_down_period, as: 'coolDownPeriod'
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1beta4::CpuUtilization, decorator: Google::Apis::AppengineV1beta4::CpuUtilization::Representation
property :max_concurrent_requests, as: 'maxConcurrentRequests'
property :max_idle_instances, as: 'maxIdleInstances'
property :max_total_instances, as: 'maxTotalInstances'
property :max_pending_latency, as: 'maxPendingLatency'
property :min_idle_instances, as: 'minIdleInstances'
property :min_total_instances, as: 'minTotalInstances'
property :min_pending_latency, as: 'minPendingLatency'
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1beta4::RequestUtilization, decorator: Google::Apis::AppengineV1beta4::RequestUtilization::Representation
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1beta4::DiskUtilization, decorator: Google::Apis::AppengineV1beta4::DiskUtilization::Representation
property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1beta4::NetworkUtilization, decorator: Google::Apis::AppengineV1beta4::NetworkUtilization::Representation
end
end
class CpuUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :aggregation_window_length, as: 'aggregationWindowLength'
property :target_utilization, as: 'targetUtilization'
end
end
class RequestUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_request_count_per_sec, as: 'targetRequestCountPerSec'
property :target_concurrent_requests, as: 'targetConcurrentRequests'
end
end
class DiskUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_write_bytes_per_sec, as: 'targetWriteBytesPerSec'
property :target_write_ops_per_sec, as: 'targetWriteOpsPerSec'
property :target_read_bytes_per_sec, as: 'targetReadBytesPerSec'
property :target_read_ops_per_sec, as: 'targetReadOpsPerSec'
end
end
class NetworkUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_sent_bytes_per_sec, as: 'targetSentBytesPerSec'
property :target_sent_packets_per_sec, as: 'targetSentPacketsPerSec'
property :target_received_bytes_per_sec, as: 'targetReceivedBytesPerSec'
property :target_received_packets_per_sec, as: 'targetReceivedPacketsPerSec'
end
end
class BasicScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :idle_timeout, as: 'idleTimeout'
property :max_instances, as: 'maxInstances'
end
end
class ManualScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instances, as: 'instances'
end
end
class Network
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :forwarded_ports, as: 'forwardedPorts'
property :instance_tag, as: 'instanceTag'
property :name, as: 'name'
end
end
class Resources
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu, as: 'cpu'
property :disk_gb, as: 'diskGb'
property :memory_gb, as: 'memoryGb'
end
end
class UrlMap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url_regex, as: 'urlRegex'
property :static_files, as: 'staticFiles', class: Google::Apis::AppengineV1beta4::StaticFilesHandler, decorator: Google::Apis::AppengineV1beta4::StaticFilesHandler::Representation
property :static_directory, as: 'staticDirectory', class: Google::Apis::AppengineV1beta4::StaticDirectoryHandler, decorator: Google::Apis::AppengineV1beta4::StaticDirectoryHandler::Representation
property :script, as: 'script', class: Google::Apis::AppengineV1beta4::ScriptHandler, decorator: Google::Apis::AppengineV1beta4::ScriptHandler::Representation
property :api_endpoint, as: 'apiEndpoint', class: Google::Apis::AppengineV1beta4::ApiEndpointHandler, decorator: Google::Apis::AppengineV1beta4::ApiEndpointHandler::Representation
property :security_level, as: 'securityLevel'
property :login, as: 'login'
property :auth_fail_action, as: 'authFailAction'
property :redirect_http_response_code, as: 'redirectHttpResponseCode'
end
end
class StaticFilesHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :upload_path_regex, as: 'uploadPathRegex'
hash :http_headers, as: 'httpHeaders'
property :mime_type, as: 'mimeType'
property :expiration, as: 'expiration'
property :require_matching_file, as: 'requireMatchingFile'
property :application_readable, as: 'applicationReadable'
end
end
class StaticDirectoryHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :directory, as: 'directory'
hash :http_headers, as: 'httpHeaders'
property :mime_type, as: 'mimeType'
property :expiration, as: 'expiration'
property :require_matching_file, as: 'requireMatchingFile'
property :application_readable, as: 'applicationReadable'
end
end
class ScriptHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :script_path, as: 'scriptPath'
end
end
class ApiEndpointHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :script_path, as: 'scriptPath'
end
end
class ErrorHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_code, as: 'errorCode'
property :static_file, as: 'staticFile'
property :mime_type, as: 'mimeType'
end
end
class Library
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :version, as: 'version'
end
end
class ApiConfigHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth_fail_action, as: 'authFailAction'
property :login, as: 'login'
property :script, as: 'script'
property :security_level, as: 'securityLevel'
property :url, as: 'url'
end
end
class HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disable_health_check, as: 'disableHealthCheck'
property :host, as: 'host'
property :healthy_threshold, as: 'healthyThreshold'
property :unhealthy_threshold, as: 'unhealthyThreshold'
property :restart_threshold, as: 'restartThreshold'
property :check_interval, as: 'checkInterval'
property :timeout, as: 'timeout'
end
end
class Deployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :files, as: 'files', class: Google::Apis::AppengineV1beta4::FileInfo, decorator: Google::Apis::AppengineV1beta4::FileInfo::Representation
property :container, as: 'container', class: Google::Apis::AppengineV1beta4::ContainerInfo, decorator: Google::Apis::AppengineV1beta4::ContainerInfo::Representation
collection :source_references, as: 'sourceReferences', class: Google::Apis::AppengineV1beta4::SourceReference, decorator: Google::Apis::AppengineV1beta4::SourceReference::Representation
end
end
class FileInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source_url, as: 'sourceUrl'
property :sha1_sum, as: 'sha1Sum'
property :mime_type, as: 'mimeType'
end
end
class ContainerInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image, as: 'image'
end
end
class SourceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repository, as: 'repository'
property :revision_id, as: 'revisionId'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
hash :metadata, as: 'metadata'
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::AppengineV1beta4::Status, decorator: Google::Apis::AppengineV1beta4::Status::Representation
hash :response, as: 'response'
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 ListVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :versions, as: 'versions', class: Google::Apis::AppengineV1beta4::Version, decorator: Google::Apis::AppengineV1beta4::Version::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Module
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
property :split, as: 'split', class: Google::Apis::AppengineV1beta4::TrafficSplit, decorator: Google::Apis::AppengineV1beta4::TrafficSplit::Representation
end
end
class TrafficSplit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :shard_by, as: 'shardBy'
hash :allocations, as: 'allocations'
end
end
class ListModulesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :modules, as: 'modules', class: Google::Apis::AppengineV1beta4::Module, decorator: Google::Apis::AppengineV1beta4::Module::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::AppengineV1beta4::Operation, decorator: Google::Apis::AppengineV1beta4::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_type, as: 'operationType'
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 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'
end
end
end
end
end

View File

@ -1,477 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AppengineV1beta4
# Google App Engine Admin API
#
# The Google App Engine Admin API enables developers to provision and manage
# their App Engine applications.
#
# @example
# require 'google/apis/appengine_v1beta4'
#
# Appengine = Google::Apis::AppengineV1beta4 # Alias the module
# service = Appengine::AppengineService.new
#
# @see https://cloud.google.com/appengine/docs/admin-api/
class AppengineService < 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
def initialize
super('https://appengine.googleapis.com/', '')
end
# Gets information about an application.
# @param [String] apps_id
# Part of `name`. Name of the application to get. For example: "apps/myapp".
# @param [Boolean] ensure_resources_exist
# Certain resources associated with an application are created on-demand.
# Controls whether these resources should be created when performing the `GET`
# operation. If specified and any resources could not be created, the request
# will fail with an error code. Additionally, this parameter can cause the
# request to take longer to complete.
# @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::AppengineV1beta4::Application] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::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, ensure_resources_exist: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta4/apps/{appsId}', options)
command.response_representation = Google::Apis::AppengineV1beta4::Application::Representation
command.response_class = Google::Apis::AppengineV1beta4::Application
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['ensureResourcesExist'] = ensure_resources_exist unless ensure_resources_exist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a module and all enclosed versions.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# modules/default".
# @param [String] modules_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::AppengineV1beta4::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::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 delete_app_module(apps_id, modules_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta4/apps/{appsId}/modules/{modulesId}', options)
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta4::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['modulesId'] = modules_id unless modules_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
# Gets the current configuration of the module.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# modules/default".
# @param [String] modules_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::AppengineV1beta4::Module] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::Module]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_module(apps_id, modules_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}', options)
command.response_representation = Google::Apis::AppengineV1beta4::Module::Representation
command.response_class = Google::Apis::AppengineV1beta4::Module
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['modulesId'] = modules_id unless modules_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 all the modules in the application.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For 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 [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::AppengineV1beta4::ListModulesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::ListModulesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_modules(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules', options)
command.response_representation = Google::Apis::AppengineV1beta4::ListModulesResponse::Representation
command.response_class = Google::Apis::AppengineV1beta4::ListModulesResponse
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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the configuration of the specified module.
# @param [String] apps_id
# Part of `name`. Name of the resource to update. For example: "apps/myapp/
# modules/default".
# @param [String] modules_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1beta4::Module] module_object
# @param [String] mask
# Standard field mask for the set of fields to be updated.
# @param [Boolean] migrate_traffic
# Whether to use Traffic Migration to shift traffic gradually. Traffic can only
# be migrated from a single version to another single version.
# @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::AppengineV1beta4::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::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_module(apps_id, modules_id, module_object = nil, mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta4/apps/{appsId}/modules/{modulesId}', options)
command.request_representation = Google::Apis::AppengineV1beta4::Module::Representation
command.request_object = module_object
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta4::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['modulesId'] = modules_id unless modules_id.nil?
command.query['mask'] = mask unless mask.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)
end
# Deploys new code and resource files to a version.
# @param [String] apps_id
# Part of `name`. Name of the resource to update. For example: "apps/myapp/
# modules/default".
# @param [String] modules_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1beta4::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::AppengineV1beta4::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::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_module_version(apps_id, modules_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', options)
command.request_representation = Google::Apis::AppengineV1beta4::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta4::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['modulesId'] = modules_id unless modules_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
# Deletes an existing version.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# modules/default/versions/v1".
# @param [String] modules_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_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::AppengineV1beta4::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::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 delete_app_module_version(apps_id, modules_id, versions_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', options)
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta4::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['modulesId'] = modules_id unless modules_id.nil?
command.params['versionsId'] = versions_id unless versions_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
# Gets application deployment information.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# modules/default/versions/v1".
# @param [String] modules_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] view
# Controls the set of fields returned in the `Get` response.
# @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::AppengineV1beta4::Version] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::Version]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_module_version(apps_id, modules_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', options)
command.response_representation = Google::Apis::AppengineV1beta4::Version::Representation
command.response_class = Google::Apis::AppengineV1beta4::Version
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['modulesId'] = modules_id unless modules_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.query['view'] = view unless view.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 versions of a module.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# modules/default".
# @param [String] modules_id
# Part of `name`. See documentation of `appsId`.
# @param [String] view
# Controls the set of fields returned in the `List` response.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @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::AppengineV1beta4::ListVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::ListVersionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_module_versions(apps_id, modules_id, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', options)
command.response_representation = Google::Apis::AppengineV1beta4::ListVersionsResponse::Representation
command.response_class = Google::Apis::AppengineV1beta4::ListVersionsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['modulesId'] = modules_id unless modules_id.nil?
command.query['view'] = view unless view.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
# 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::AppengineV1beta4::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::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, 'v1beta4/apps/{appsId}/operations/{operationsId}', options)
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta4::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 operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding below allows API services to override the binding to use different
# resource name schemes, such as `users/*/operations`.
# @param [String] apps_id
# Part of `name`. The name of the operation collection.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list 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::AppengineV1beta4::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta4::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, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/operations', options)
command.response_representation = Google::Apis::AppengineV1beta4::ListOperationsResponse::Representation
command.response_class = Google::Apis::AppengineV1beta4::ListOperationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['filter'] = filter unless filter.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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -1,40 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/appengine_v1beta5/service.rb'
require 'google/apis/appengine_v1beta5/classes.rb'
require 'google/apis/appengine_v1beta5/representations.rb'
module Google
module Apis
# Google App Engine Admin API
#
# Provisions and manages App Engine applications.
#
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta5
VERSION = 'V1beta5'
REVISION = '20170324'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,802 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AppengineV1beta5
class ListOperationsResponse
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 Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Application
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 IdentityAwareProxy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Version
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 CpuUtilization
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 DiskUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkUtilization
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 ManualScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Network
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Resources
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Volume
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 StaticFilesHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ScriptHandler
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 ErrorHandler
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 ApiConfigHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Deployment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FileInfo
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 SourceReference
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 ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Service
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TrafficSplit
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListServicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DebugInstanceRequest
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 Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataExperimental
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1Beta5
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1Beta
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::AppengineV1beta5::Operation, decorator: Google::Apis::AppengineV1beta5::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
hash :metadata, as: 'metadata'
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::AppengineV1beta5::Status, decorator: Google::Apis::AppengineV1beta5::Status::Representation
hash :response, as: 'response'
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 Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1beta5::UrlDispatchRule, decorator: Google::Apis::AppengineV1beta5::UrlDispatchRule::Representation
property :auth_domain, as: 'authDomain'
property :location, as: 'location'
property :code_bucket, as: 'codeBucket'
property :default_cookie_expiration, as: 'defaultCookieExpiration'
property :default_hostname, as: 'defaultHostname'
property :default_bucket, as: 'defaultBucket'
property :iap, as: 'iap', class: Google::Apis::AppengineV1beta5::IdentityAwareProxy, decorator: Google::Apis::AppengineV1beta5::IdentityAwareProxy::Representation
end
end
class UrlDispatchRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain, as: 'domain'
property :path, as: 'path'
property :service, as: 'service'
end
end
class IdentityAwareProxy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :oauth2_client_id, as: 'oauth2ClientId'
property :oauth2_client_secret, as: 'oauth2ClientSecret'
property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256'
end
end
class Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::AppengineV1beta5::AutomaticScaling, decorator: Google::Apis::AppengineV1beta5::AutomaticScaling::Representation
property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1beta5::BasicScaling, decorator: Google::Apis::AppengineV1beta5::BasicScaling::Representation
property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1beta5::ManualScaling, decorator: Google::Apis::AppengineV1beta5::ManualScaling::Representation
collection :inbound_services, as: 'inboundServices'
property :instance_class, as: 'instanceClass'
property :network, as: 'network', class: Google::Apis::AppengineV1beta5::Network, decorator: Google::Apis::AppengineV1beta5::Network::Representation
property :resources, as: 'resources', class: Google::Apis::AppengineV1beta5::Resources, decorator: Google::Apis::AppengineV1beta5::Resources::Representation
property :runtime, as: 'runtime'
property :threadsafe, as: 'threadsafe'
property :vm, as: 'vm'
hash :beta_settings, as: 'betaSettings'
property :env, as: 'env'
property :serving_status, as: 'servingStatus'
property :deployer, as: 'deployer'
property :creation_time, as: 'creationTime'
property :disk_usage_bytes, as: 'diskUsageBytes'
collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1beta5::UrlMap, decorator: Google::Apis::AppengineV1beta5::UrlMap::Representation
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1beta5::ErrorHandler, decorator: Google::Apis::AppengineV1beta5::ErrorHandler::Representation
collection :libraries, as: 'libraries', class: Google::Apis::AppengineV1beta5::Library, decorator: Google::Apis::AppengineV1beta5::Library::Representation
property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1beta5::ApiConfigHandler, decorator: Google::Apis::AppengineV1beta5::ApiConfigHandler::Representation
hash :env_variables, as: 'envVariables'
property :default_expiration, as: 'defaultExpiration'
property :health_check, as: 'healthCheck', class: Google::Apis::AppengineV1beta5::HealthCheck, decorator: Google::Apis::AppengineV1beta5::HealthCheck::Representation
property :nobuild_files_regex, as: 'nobuildFilesRegex'
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1beta5::Deployment, decorator: Google::Apis::AppengineV1beta5::Deployment::Representation
property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1beta5::EndpointsApiService, decorator: Google::Apis::AppengineV1beta5::EndpointsApiService::Representation
end
end
class AutomaticScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cool_down_period, as: 'coolDownPeriod'
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1beta5::CpuUtilization, decorator: Google::Apis::AppengineV1beta5::CpuUtilization::Representation
property :max_concurrent_requests, as: 'maxConcurrentRequests'
property :max_idle_instances, as: 'maxIdleInstances'
property :max_total_instances, as: 'maxTotalInstances'
property :max_pending_latency, as: 'maxPendingLatency'
property :min_idle_instances, as: 'minIdleInstances'
property :min_total_instances, as: 'minTotalInstances'
property :min_pending_latency, as: 'minPendingLatency'
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1beta5::RequestUtilization, decorator: Google::Apis::AppengineV1beta5::RequestUtilization::Representation
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1beta5::DiskUtilization, decorator: Google::Apis::AppengineV1beta5::DiskUtilization::Representation
property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1beta5::NetworkUtilization, decorator: Google::Apis::AppengineV1beta5::NetworkUtilization::Representation
end
end
class CpuUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :aggregation_window_length, as: 'aggregationWindowLength'
property :target_utilization, as: 'targetUtilization'
end
end
class RequestUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_request_count_per_sec, as: 'targetRequestCountPerSec'
property :target_concurrent_requests, as: 'targetConcurrentRequests'
end
end
class DiskUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_write_bytes_per_sec, as: 'targetWriteBytesPerSec'
property :target_write_ops_per_sec, as: 'targetWriteOpsPerSec'
property :target_read_bytes_per_sec, as: 'targetReadBytesPerSec'
property :target_read_ops_per_sec, as: 'targetReadOpsPerSec'
end
end
class NetworkUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_sent_bytes_per_sec, as: 'targetSentBytesPerSec'
property :target_sent_packets_per_sec, as: 'targetSentPacketsPerSec'
property :target_received_bytes_per_sec, as: 'targetReceivedBytesPerSec'
property :target_received_packets_per_sec, as: 'targetReceivedPacketsPerSec'
end
end
class BasicScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :idle_timeout, as: 'idleTimeout'
property :max_instances, as: 'maxInstances'
end
end
class ManualScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instances, as: 'instances'
end
end
class Network
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :forwarded_ports, as: 'forwardedPorts'
property :instance_tag, as: 'instanceTag'
property :name, as: 'name'
property :subnetwork_name, as: 'subnetworkName'
end
end
class Resources
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu, as: 'cpu'
property :disk_gb, as: 'diskGb'
property :memory_gb, as: 'memoryGb'
collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1beta5::Volume, decorator: Google::Apis::AppengineV1beta5::Volume::Representation
end
end
class Volume
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :volume_type, as: 'volumeType'
property :size_gb, as: 'sizeGb'
end
end
class UrlMap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url_regex, as: 'urlRegex'
property :static_files, as: 'staticFiles', class: Google::Apis::AppengineV1beta5::StaticFilesHandler, decorator: Google::Apis::AppengineV1beta5::StaticFilesHandler::Representation
property :script, as: 'script', class: Google::Apis::AppengineV1beta5::ScriptHandler, decorator: Google::Apis::AppengineV1beta5::ScriptHandler::Representation
property :api_endpoint, as: 'apiEndpoint', class: Google::Apis::AppengineV1beta5::ApiEndpointHandler, decorator: Google::Apis::AppengineV1beta5::ApiEndpointHandler::Representation
property :security_level, as: 'securityLevel'
property :login, as: 'login'
property :auth_fail_action, as: 'authFailAction'
property :redirect_http_response_code, as: 'redirectHttpResponseCode'
end
end
class StaticFilesHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :upload_path_regex, as: 'uploadPathRegex'
hash :http_headers, as: 'httpHeaders'
property :mime_type, as: 'mimeType'
property :expiration, as: 'expiration'
property :require_matching_file, as: 'requireMatchingFile'
property :application_readable, as: 'applicationReadable'
end
end
class ScriptHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :script_path, as: 'scriptPath'
end
end
class ApiEndpointHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :script_path, as: 'scriptPath'
end
end
class ErrorHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_code, as: 'errorCode'
property :static_file, as: 'staticFile'
property :mime_type, as: 'mimeType'
end
end
class Library
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :version, as: 'version'
end
end
class ApiConfigHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth_fail_action, as: 'authFailAction'
property :login, as: 'login'
property :script, as: 'script'
property :security_level, as: 'securityLevel'
property :url, as: 'url'
end
end
class HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disable_health_check, as: 'disableHealthCheck'
property :host, as: 'host'
property :healthy_threshold, as: 'healthyThreshold'
property :unhealthy_threshold, as: 'unhealthyThreshold'
property :restart_threshold, as: 'restartThreshold'
property :check_interval, as: 'checkInterval'
property :timeout, as: 'timeout'
end
end
class Deployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :files, as: 'files', class: Google::Apis::AppengineV1beta5::FileInfo, decorator: Google::Apis::AppengineV1beta5::FileInfo::Representation
property :container, as: 'container', class: Google::Apis::AppengineV1beta5::ContainerInfo, decorator: Google::Apis::AppengineV1beta5::ContainerInfo::Representation
collection :source_references, as: 'sourceReferences', class: Google::Apis::AppengineV1beta5::SourceReference, decorator: Google::Apis::AppengineV1beta5::SourceReference::Representation
end
end
class FileInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source_url, as: 'sourceUrl'
property :sha1_sum, as: 'sha1Sum'
property :mime_type, as: 'mimeType'
end
end
class ContainerInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image, as: 'image'
end
end
class SourceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repository, as: 'repository'
property :revision_id, as: 'revisionId'
end
end
class EndpointsApiService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :config_id, as: 'configId'
end
end
class ListVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :versions, as: 'versions', class: Google::Apis::AppengineV1beta5::Version, decorator: Google::Apis::AppengineV1beta5::Version::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Service
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
property :split, as: 'split', class: Google::Apis::AppengineV1beta5::TrafficSplit, decorator: Google::Apis::AppengineV1beta5::TrafficSplit::Representation
end
end
class TrafficSplit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :shard_by, as: 'shardBy'
hash :allocations, as: 'allocations'
end
end
class ListServicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :services, as: 'services', class: Google::Apis::AppengineV1beta5::Service, decorator: Google::Apis::AppengineV1beta5::Service::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
property :app_engine_release, as: 'appEngineRelease'
property :availability, as: 'availability'
property :vm_name, as: 'vmName'
property :vm_zone_name, as: 'vmZoneName'
property :vm_id, as: 'vmId'
property :start_timestamp, as: 'startTimestamp'
property :requests, as: 'requests'
property :errors, as: 'errors'
property :qps, as: 'qps'
property :average_latency, as: 'averageLatency'
property :memory_usage, as: 'memoryUsage'
property :vm_status, as: 'vmStatus'
property :vm_unlocked, as: 'vmUnlocked'
property :vm_ip, as: 'vmIp'
end
end
class ListInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances', class: Google::Apis::AppengineV1beta5::Instance, decorator: Google::Apis::AppengineV1beta5::Instance::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class DebugInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ssh_key, as: 'sshKey'
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :locations, as: 'locations', class: Google::Apis::AppengineV1beta5::Location, decorator: Google::Apis::AppengineV1beta5::Location::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :location_id, as: 'locationId'
hash :labels, as: 'labels'
hash :metadata, as: 'metadata'
end
end
class OperationMetadataExperimental
# @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'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_type, as: 'operationType'
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 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'
end
end
class OperationMetadataV1Beta
# @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 :ephemeral_message, as: 'ephemeralMessage'
collection :warning, as: 'warning'
end
end
class OperationMetadataV1
# @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 :ephemeral_message, as: 'ephemeralMessage'
collection :warning, as: 'warning'
end
end
class LocationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :standard_environment_available, as: 'standardEnvironmentAvailable'
property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
end
end
end
end
end

View File

@ -1,867 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AppengineV1beta5
# Google App Engine Admin API
#
# Provisions and manages App Engine applications.
#
# @example
# require 'google/apis/appengine_v1beta5'
#
# Appengine = Google::Apis::AppengineV1beta5 # Alias the module
# service = Appengine::AppengineService.new
#
# @see https://cloud.google.com/appengine/docs/admin-api/
class AppengineService < 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
def initialize
super('https://appengine.googleapis.com/', '')
end
# Creates an App Engine application for a Google Cloud Platform project.
# Required fields: id - The ID of the target Cloud Platform project. location -
# The region (https://cloud.google.com/appengine/docs/locations) where you want
# the App Engine application located.For more information about App Engine
# applications, see Managing Projects, Applications, and Billing (https://cloud.
# google.com/appengine/docs/python/console/).
# @param [Google::Apis::AppengineV1beta5::Application] application_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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta5/apps', options)
command.request_representation = Google::Apis::AppengineV1beta5::Application::Representation
command.request_object = application_object
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets information about an application.
# @param [String] apps_id
# Part of `name`. Name of the application to get. Example: apps/myapp.
# @param [Boolean] ensure_resources_exist
# Certain resources associated with an application are created on-demand.
# Controls whether these resources should be created when performing the GET
# operation. If specified and any resources could not be created, the request
# will fail with an error code. Additionally, this parameter can cause the
# request to take longer to complete. Note: This parameter will be deprecated in
# a future version of the API.
# @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::AppengineV1beta5::Application] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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, ensure_resources_exist: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Application::Representation
command.response_class = Google::Apis::AppengineV1beta5::Application
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['ensureResourcesExist'] = ensure_resources_exist unless ensure_resources_exist.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 (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta5/apps#Application.FIELDS.auth_domain)
# default_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta5/apps#Application.FIELDS.default_cookie_expiration)
# @param [String] apps_id
# Part of `name`. Name of the Application resource to update. Example: apps/
# myapp.
# @param [Google::Apis::AppengineV1beta5::Application] application_object
# @param [String] 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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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, mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta5/apps/{appsId}', options)
command.request_representation = Google::Apis::AppengineV1beta5::Application::Representation
command.request_object = application_object
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['mask'] = mask unless 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
# 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
# below allows API services to override the binding to use different resource
# name schemes, such as users/*/operations.
# @param [String] apps_id
# Part of `name`. The name of the operation collection.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list 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::AppengineV1beta5::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/operations', options)
command.response_representation = Google::Apis::AppengineV1beta5::ListOperationsResponse::Representation
command.response_class = Google::Apis::AppengineV1beta5::ListOperationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['filter'] = filter unless filter.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
# 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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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, 'v1beta5/apps/{appsId}/operations/{operationsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::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
# Deletes the specified service and all enclosed versions.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default.
# @param [String] services_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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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 delete_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::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
# Gets the current configuration of the specified service.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default.
# @param [String] services_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::AppengineV1beta5::Service] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Service]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Service::Representation
command.response_class = Google::Apis::AppengineV1beta5::Service
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
# Lists all the services in the application.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. 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 [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::AppengineV1beta5::ListServicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::ListServicesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services', options)
command.response_representation = Google::Apis::AppengineV1beta5::ListServicesResponse::Representation
command.response_class = Google::Apis::AppengineV1beta5::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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the configuration of the specified service.
# @param [String] apps_id
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/
# default.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1beta5::Service] service_object
# @param [String] 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
# migration, the target versions must be located within instances that are
# configured for both warmup requests (https://cloud.google.com/appengine/docs/
# admin-api/reference/rest/v1beta5/apps.services.versions#inboundservicetype)
# and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta5/apps.services.versions#automaticscaling). You must
# specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta5/apps.services#shardby) field in the Service resource.
# Gradual traffic migration is 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] 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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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_service(apps_id, services_id, service_object = nil, mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
command.request_representation = Google::Apis::AppengineV1beta5::Service::Representation
command.request_object = service_object
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['mask'] = mask unless mask.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)
end
# Deploys new code and resource files to a new version.
# @param [String] apps_id
# Part of `name`. Name of the resource to update. For example: "apps/myapp/
# services/default".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1beta5::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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options)
command.request_representation = Google::Apis::AppengineV1beta5::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::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
# Deletes an existing version.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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 delete_app_service_version(apps_id, services_id, versions_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_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
# Gets the specified Version resource. By default, only a BASIC_VIEW will be
# returned. Specify the FULL_VIEW parameter to get the full resource.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] view
# Controls the set of fields returned in the Get response.
# @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::AppengineV1beta5::Version] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Version]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_version(apps_id, services_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Version::Representation
command.response_class = Google::Apis::AppengineV1beta5::Version
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.query['view'] = view unless view.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 versions of a service.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] view
# Controls the set of fields returned in the List response.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @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::AppengineV1beta5::ListVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::ListVersionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_versions(apps_id, services_id, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options)
command.response_representation = Google::Apis::AppengineV1beta5::ListVersionsResponse::Representation
command.response_class = Google::Apis::AppengineV1beta5::ListVersionsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['view'] = view unless view.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
# Updates the specified Version resource. You can specify the following fields
# depending on the App Engine environment and type of scaling that the version
# resource uses: serving_status (https://cloud.google.com/appengine/docs/admin-
# api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.
# serving_status): For Version resources that use basic scaling, manual scaling,
# or run in the App Engine flexible environment. instance_class (https://cloud.
# google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.
# versions#Version.FIELDS.instance_class): For Version resources that run in the
# App Engine standard environment. automatic_scaling.min_idle_instances (https://
# cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.
# versions#Version.FIELDS.automatic_scaling): For Version resources that use
# automatic scaling and run in the App Engine standard environment.
# automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/
# admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.
# automatic_scaling): For Version resources that use automatic scaling and run
# in the App Engine standard environment.
# @param [String] apps_id
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/
# default/versions/1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1beta5::Version] version_object
# @param [String] 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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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_service_version(apps_id, services_id, versions_id, version_object = nil, mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
command.request_representation = Google::Apis::AppengineV1beta5::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.query['mask'] = mask unless 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
# Stops a running instance.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# services/default/versions/v1/instances/instance-1".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] instances_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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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 delete_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.params['instancesId'] = instances_id unless instances_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
# Gets instance information.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1/instances/instance-1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] instances_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::AppengineV1beta5::Instance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Instance]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Instance::Representation
command.response_class = Google::Apis::AppengineV1beta5::Instance
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.params['instancesId'] = instances_id unless instances_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 the instances of a version.Tip: To aggregate details about instances
# over time, see the Stackdriver Monitoring API (https://cloud.google.com/
# monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @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::AppengineV1beta5::ListInstancesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::ListInstancesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service_version_instances(apps_id, services_id, versions_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances', options)
command.response_representation = Google::Apis::AppengineV1beta5::ListInstancesResponse::Representation
command.response_class = Google::Apis::AppengineV1beta5::ListInstancesResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.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
# Enables debugging on a VM instance. This allows you to use the SSH command to
# connect to the virtual machine where the instance lives. While in "debug mode",
# the instance continues to serve live traffic. You should delete the instance
# when you are done debugging and then allow the system to take over and
# determine if another instance should be started.Only applicable for instances
# in App Engine flexible environment.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1/instances/instance-1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] instances_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1beta5::DebugInstanceRequest] debug_instance_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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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 debug_instance(apps_id, services_id, versions_id, instances_id, debug_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug', options)
command.request_representation = Google::Apis::AppengineV1beta5::DebugInstanceRequest::Representation
command.request_object = debug_instance_request_object
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.params['instancesId'] = instances_id unless instances_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 [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list 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::AppengineV1beta5::ListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/locations', options)
command.response_representation = Google::Apis::AppengineV1beta5::ListLocationsResponse::Representation
command.response_class = Google::Apis::AppengineV1beta5::ListLocationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['filter'] = filter unless filter.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
# 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::AppengineV1beta5::Location] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::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, 'v1beta5/apps/{appsId}/locations/{locationsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Location::Representation
command.response_class = Google::Apis::AppengineV1beta5::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
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

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

View File

@ -1,38 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/autoscaler_v1beta2/service.rb'
require 'google/apis/autoscaler_v1beta2/classes.rb'
require 'google/apis/autoscaler_v1beta2/representations.rb'
module Google
module Apis
# Google Compute Engine Autoscaler API
#
# The Google Compute Engine Autoscaler API provides autoscaling for groups of
# Cloud VMs.
#
# @see http://developers.google.com/compute/docs/autoscaler
module AutoscalerV1beta2
VERSION = 'V1beta2'
REVISION = '20160511'
# View and manage your Google Compute Engine resources
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
# View your Google Compute Engine resources
AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly'
end
end
end

View File

@ -1,710 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AutoscalerV1beta2
# Cloud Autoscaler resource.
class Autoscaler
include Google::Apis::Core::Hashable
# Cloud Autoscaler policy.
# Corresponds to the JSON property `autoscalingPolicy`
# @return [Google::Apis::AutoscalerV1beta2::AutoscalingPolicy]
attr_accessor :autoscaling_policy
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional textual description of the resource provided by the client.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the Autoscaler resource. Must be unique per project and zone.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] A self-link to the Autoscaler configuration resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# URL to the entity which will be autoscaled. Currently the only supported value
# is ReplicaPool?s URL. Note: it is illegal to specify multiple Autoscalers for
# the same target.
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@autoscaling_policy = args[:autoscaling_policy] if args.key?(:autoscaling_policy)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
@target = args[:target] if args.key?(:target)
end
end
#
class ListAutoscalerResponse
include Google::Apis::Core::Hashable
# Autoscaler resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::AutoscalerV1beta2::Autoscaler>]
attr_accessor :items
# Type of resource.
# 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
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@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)
end
end
# Cloud Autoscaler policy.
class AutoscalingPolicy
include Google::Apis::Core::Hashable
# The number of seconds that the Autoscaler should wait between two succeeding
# changes to the number of virtual machines. You should define an interval that
# is at least as long as the initialization time of a virtual machine and the
# time it may take for replica pool to create the virtual machine. The default
# is 60 seconds.
# Corresponds to the JSON property `coolDownPeriodSec`
# @return [Fixnum]
attr_accessor :cool_down_period_sec
# CPU utilization policy.
# Corresponds to the JSON property `cpuUtilization`
# @return [Google::Apis::AutoscalerV1beta2::AutoscalingPolicyCpuUtilization]
attr_accessor :cpu_utilization
# Configuration parameters of autoscaling based on custom metric.
# Corresponds to the JSON property `customMetricUtilizations`
# @return [Array<Google::Apis::AutoscalerV1beta2::AutoscalingPolicyCustomMetricUtilization>]
attr_accessor :custom_metric_utilizations
# Load balancing utilization policy.
# Corresponds to the JSON property `loadBalancingUtilization`
# @return [Google::Apis::AutoscalerV1beta2::AutoscalingPolicyLoadBalancingUtilization]
attr_accessor :load_balancing_utilization
# The maximum number of replicas that the Autoscaler can scale up to.
# Corresponds to the JSON property `maxNumReplicas`
# @return [Fixnum]
attr_accessor :max_num_replicas
# The minimum number of replicas that the Autoscaler can scale down to.
# Corresponds to the JSON property `minNumReplicas`
# @return [Fixnum]
attr_accessor :min_num_replicas
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec)
@cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
@custom_metric_utilizations = args[:custom_metric_utilizations] if args.key?(:custom_metric_utilizations)
@load_balancing_utilization = args[:load_balancing_utilization] if args.key?(:load_balancing_utilization)
@max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas)
@min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas)
end
end
# CPU utilization policy.
class AutoscalingPolicyCpuUtilization
include Google::Apis::Core::Hashable
# The target utilization that the Autoscaler should maintain. It is represented
# as a fraction of used cores. For example: 6 cores used in 8-core VM are
# represented here as 0.75. Must be a float value between (0, 1]. If not defined,
# the default is 0.8.
# Corresponds to the JSON property `utilizationTarget`
# @return [Float]
attr_accessor :utilization_target
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@utilization_target = args[:utilization_target] if args.key?(:utilization_target)
end
end
# Custom utilization metric policy.
class AutoscalingPolicyCustomMetricUtilization
include Google::Apis::Core::Hashable
# Identifier of the metric. It should be a Cloud Monitoring metric. The metric
# can not have negative values. The metric should be an utilization metric (
# increasing number of VMs handling requests x times should reduce average value
# of the metric roughly x times). For example you could use: compute.googleapis.
# com/instance/network/received_bytes_count.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# Target value of the metric which Autoscaler should maintain. Must be a
# positive value.
# Corresponds to the JSON property `utilizationTarget`
# @return [Float]
attr_accessor :utilization_target
# Defines type in which utilization_target is expressed.
# Corresponds to the JSON property `utilizationTargetType`
# @return [String]
attr_accessor :utilization_target_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metric = args[:metric] if args.key?(:metric)
@utilization_target = args[:utilization_target] if args.key?(:utilization_target)
@utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type)
end
end
# Load balancing utilization policy.
class AutoscalingPolicyLoadBalancingUtilization
include Google::Apis::Core::Hashable
# Fraction of backend capacity utilization (set in HTTP load balancing
# configuration) that Autoscaler should maintain. Must be a positive float value.
# If not defined, the default is 0.8. For example if your maxRatePerInstance
# capacity (in HTTP Load Balancing configuration) is set at 10 and you would
# like to keep number of instances such that each instance receives 7 QPS on
# average, set this to 0.7.
# Corresponds to the JSON property `utilizationTarget`
# @return [Float]
attr_accessor :utilization_target
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@utilization_target = args[:utilization_target] if args.key?(:utilization_target)
end
end
#
class DeprecationStatus
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `deleted`
# @return [String]
attr_accessor :deleted
#
# Corresponds to the JSON property `deprecated`
# @return [String]
attr_accessor :deprecated
#
# Corresponds to the JSON property `obsolete`
# @return [String]
attr_accessor :obsolete
#
# Corresponds to the JSON property `replacement`
# @return [String]
attr_accessor :replacement
#
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deleted = args[:deleted] if args.key?(:deleted)
@deprecated = args[:deprecated] if args.key?(:deprecated)
@obsolete = args[:obsolete] if args.key?(:obsolete)
@replacement = args[:replacement] if args.key?(:replacement)
@state = args[:state] if args.key?(:state)
end
end
#
class Operation
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `clientOperationId`
# @return [String]
attr_accessor :client_operation_id
#
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
#
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
#
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
#
# Corresponds to the JSON property `error`
# @return [Google::Apis::AutoscalerV1beta2::Operation::Error]
attr_accessor :error
#
# Corresponds to the JSON property `httpErrorMessage`
# @return [String]
attr_accessor :http_error_message
#
# Corresponds to the JSON property `httpErrorStatusCode`
# @return [Fixnum]
attr_accessor :http_error_status_code
#
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
#
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# [Output Only] Type of the resource. Always compute#operation for Operation
# resources.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
#
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
#
# Corresponds to the JSON property `progress`
# @return [Fixnum]
attr_accessor :progress
#
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
#
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
#
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
#
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
#
# Corresponds to the JSON property `statusMessage`
# @return [String]
attr_accessor :status_message
#
# Corresponds to the JSON property `targetId`
# @return [String]
attr_accessor :target_id
#
# Corresponds to the JSON property `targetLink`
# @return [String]
attr_accessor :target_link
#
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
#
# Corresponds to the JSON property `warnings`
# @return [Array<Google::Apis::AutoscalerV1beta2::Operation::Warning>]
attr_accessor :warnings
#
# 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)
@client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@end_time = args[:end_time] if args.key?(:end_time)
@error = args[:error] if args.key?(:error)
@http_error_message = args[:http_error_message] if args.key?(:http_error_message)
@http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
@id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@progress = args[:progress] if args.key?(:progress)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@target_id = args[:target_id] if args.key?(:target_id)
@target_link = args[:target_link] if args.key?(:target_link)
@user = args[:user] if args.key?(:user)
@warnings = args[:warnings] if args.key?(:warnings)
@zone = args[:zone] if args.key?(:zone)
end
#
class Error
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `errors`
# @return [Array<Google::Apis::AutoscalerV1beta2::Operation::Error::Error>]
attr_accessor :errors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@errors = args[:errors] if args.key?(:errors)
end
#
class Error
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
#
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
#
# 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)
@location = args[:location] if args.key?(:location)
@message = args[:message] if args.key?(:message)
end
end
end
#
class Warning
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
#
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::AutoscalerV1beta2::Operation::Warning::Datum>]
attr_accessor :data
#
# 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
#
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :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
#
class OperationList
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
#
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::AutoscalerV1beta2::Operation>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#operations for Operations
# resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# 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 Zone
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
#
# Corresponds to the JSON property `deprecated`
# @return [Google::Apis::AutoscalerV1beta2::DeprecationStatus]
attr_accessor :deprecated
#
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
#
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# [Output Only] Type of the resource. Always compute#zone for zones.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
#
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
#
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
#
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
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)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
end
end
#
class ZoneList
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
#
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::AutoscalerV1beta2::Zone>]
attr_accessor :items
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# 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
end
end
end

View File

@ -1,296 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AutoscalerV1beta2
class Autoscaler
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAutoscalerResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingPolicyCpuUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingPolicyCustomMetricUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingPolicyLoadBalancingUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeprecationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
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 OperationList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Zone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ZoneList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Autoscaler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :autoscaling_policy, as: 'autoscalingPolicy', class: Google::Apis::AutoscalerV1beta2::AutoscalingPolicy, decorator: Google::Apis::AutoscalerV1beta2::AutoscalingPolicy::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :target, as: 'target'
end
end
class ListAutoscalerResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::AutoscalerV1beta2::Autoscaler, decorator: Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class AutoscalingPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cool_down_period_sec, as: 'coolDownPeriodSec'
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AutoscalerV1beta2::AutoscalingPolicyCpuUtilization, decorator: Google::Apis::AutoscalerV1beta2::AutoscalingPolicyCpuUtilization::Representation
collection :custom_metric_utilizations, as: 'customMetricUtilizations', class: Google::Apis::AutoscalerV1beta2::AutoscalingPolicyCustomMetricUtilization, decorator: Google::Apis::AutoscalerV1beta2::AutoscalingPolicyCustomMetricUtilization::Representation
property :load_balancing_utilization, as: 'loadBalancingUtilization', class: Google::Apis::AutoscalerV1beta2::AutoscalingPolicyLoadBalancingUtilization, decorator: Google::Apis::AutoscalerV1beta2::AutoscalingPolicyLoadBalancingUtilization::Representation
property :max_num_replicas, as: 'maxNumReplicas'
property :min_num_replicas, as: 'minNumReplicas'
end
end
class AutoscalingPolicyCpuUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :utilization_target, as: 'utilizationTarget'
end
end
class AutoscalingPolicyCustomMetricUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric, as: 'metric'
property :utilization_target, as: 'utilizationTarget'
property :utilization_target_type, as: 'utilizationTargetType'
end
end
class AutoscalingPolicyLoadBalancingUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :utilization_target, as: 'utilizationTarget'
end
end
class DeprecationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deleted, as: 'deleted'
property :deprecated, as: 'deprecated'
property :obsolete, as: 'obsolete'
property :replacement, as: 'replacement'
property :state, as: 'state'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_operation_id, as: 'clientOperationId'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :end_time, as: 'endTime'
property :error, as: 'error', class: Google::Apis::AutoscalerV1beta2::Operation::Error, decorator: Google::Apis::AutoscalerV1beta2::Operation::Error::Representation
property :http_error_message, as: 'httpErrorMessage'
property :http_error_status_code, as: 'httpErrorStatusCode'
property :id, as: 'id'
property :insert_time, as: 'insertTime'
property :kind, as: 'kind'
property :name, as: 'name'
property :operation_type, as: 'operationType'
property :progress, as: 'progress'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :start_time, as: 'startTime'
property :status, as: 'status'
property :status_message, as: 'statusMessage'
property :target_id, as: 'targetId'
property :target_link, as: 'targetLink'
property :user, as: 'user'
collection :warnings, as: 'warnings', class: Google::Apis::AutoscalerV1beta2::Operation::Warning, decorator: Google::Apis::AutoscalerV1beta2::Operation::Warning::Representation
property :zone, as: 'zone'
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :errors, as: 'errors', class: Google::Apis::AutoscalerV1beta2::Operation::Error::Error, decorator: Google::Apis::AutoscalerV1beta2::Operation::Error::Error::Representation
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :location, as: 'location'
property :message, as: 'message'
end
end
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::AutoscalerV1beta2::Operation::Warning::Datum, decorator: Google::Apis::AutoscalerV1beta2::Operation::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 OperationList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::AutoscalerV1beta2::Operation, decorator: Google::Apis::AutoscalerV1beta2::Operation::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class Zone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :deprecated, as: 'deprecated', class: Google::Apis::AutoscalerV1beta2::DeprecationStatus, decorator: Google::Apis::AutoscalerV1beta2::DeprecationStatus::Representation
property :description, as: 'description'
property :id, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :status, as: 'status'
end
end
class ZoneList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::AutoscalerV1beta2::Zone, decorator: Google::Apis::AutoscalerV1beta2::Zone::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
end
end
end

View File

@ -1,478 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AutoscalerV1beta2
# Google Compute Engine Autoscaler API
#
# The Google Compute Engine Autoscaler API provides autoscaling for groups of
# Cloud VMs.
#
# @example
# require 'google/apis/autoscaler_v1beta2'
#
# Autoscaler = Google::Apis::AutoscalerV1beta2 # Alias the module
# service = Autoscaler::AutoscalerService.new
#
# @see http://developers.google.com/compute/docs/autoscaler
class AutoscalerService < 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.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'autoscaler/v1beta2/')
end
# Deletes the specified Autoscaler resource.
# @param [String] project
# Project ID of Autoscaler resource.
# @param [String] zone
# Zone name of Autoscaler resource.
# @param [String] autoscaler
# Name of the Autoscaler resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AutoscalerV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AutoscalerV1beta2::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 delete_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['autoscaler'] = autoscaler unless autoscaler.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets the specified Autoscaler resource.
# @param [String] project
# Project ID of Autoscaler resource.
# @param [String] zone
# Zone name of Autoscaler resource.
# @param [String] autoscaler
# Name of the Autoscaler resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AutoscalerV1beta2::Autoscaler] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AutoscalerV1beta2::Autoscaler]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
command.response_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
command.response_class = Google::Apis::AutoscalerV1beta2::Autoscaler
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['autoscaler'] = autoscaler unless autoscaler.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Adds new Autoscaler resource.
# @param [String] project
# Project ID of Autoscaler resource.
# @param [String] zone
# Zone name of Autoscaler resource.
# @param [Google::Apis::AutoscalerV1beta2::Autoscaler] autoscaler_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AutoscalerV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AutoscalerV1beta2::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 insert_autoscaler(project, zone, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/autoscalers', options)
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
command.request_object = autoscaler_object
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists all Autoscaler resources in this zone.
# @param [String] project
# Project ID of Autoscaler resource.
# @param [String] zone
# Zone name of Autoscaler resource.
# @param [String] filter
# @param [Fixnum] max_results
# @param [String] 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_autoscalers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers', options)
command.response_representation = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse::Representation
command.response_class = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Update the entire content of the Autoscaler resource. This method supports
# patch semantics.
# @param [String] project
# Project ID of Autoscaler resource.
# @param [String] zone
# Zone name of Autoscaler resource.
# @param [String] autoscaler
# Name of the Autoscaler resource.
# @param [Google::Apis::AutoscalerV1beta2::Autoscaler] autoscaler_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AutoscalerV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AutoscalerV1beta2::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_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
command.request_object = autoscaler_object
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['autoscaler'] = autoscaler unless autoscaler.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Update the entire content of the Autoscaler resource.
# @param [String] project
# Project ID of Autoscaler resource.
# @param [String] zone
# Zone name of Autoscaler resource.
# @param [String] autoscaler
# Name of the Autoscaler resource.
# @param [Google::Apis::AutoscalerV1beta2::Autoscaler] autoscaler_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AutoscalerV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AutoscalerV1beta2::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 update_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
command.request_object = autoscaler_object
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['autoscaler'] = autoscaler unless autoscaler.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified zone-specific operation resource.
# @param [String] project
# @param [String] zone
# @param [String] operation
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/zones/{zone}/operations/{operation}', options)
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the specified zone-specific operation resource.
# @param [String] project
# @param [String] zone
# @param [String] operation
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AutoscalerV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AutoscalerV1beta2::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_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the list of operation resources contained within the specified zone.
# @param [String] project
# @param [String] zone
# @param [String] filter
# @param [Fixnum] max_results
# @param [String] 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AutoscalerV1beta2::OperationList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AutoscalerV1beta2::OperationList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
command.response_representation = Google::Apis::AutoscalerV1beta2::OperationList::Representation
command.response_class = Google::Apis::AutoscalerV1beta2::OperationList
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] filter
# @param [Fixnum] max_results
# @param [String] page_token
# @param [String] project
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AutoscalerV1beta2::ZoneList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AutoscalerV1beta2::ZoneList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_zones(filter: nil, max_results: nil, page_token: nil, project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'zones', options)
command.response_representation = Google::Apis::AutoscalerV1beta2::ZoneList::Representation
command.response_class = Google::Apis::AutoscalerV1beta2::ZoneList
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['project'] = project unless project.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

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

View File

@ -1020,7 +1020,7 @@ module Google
end end
# #
class CancelJobResponse class JobCancelResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The final state of the job. # The final state of the job.
@ -1375,7 +1375,8 @@ module Google
# [Optional] If true and query uses legacy SQL dialect, allows the query to # [Optional] If true and query uses legacy SQL dialect, allows the query to
# produce arbitrarily large result tables at a slight cost in performance. # produce arbitrarily large result tables at a slight cost in performance.
# Requires destinationTable to be set. For standard SQL queries, this flag is # Requires destinationTable to be set. For standard SQL queries, this flag is
# ignored and large results are always allowed. # ignored and large results are always allowed. However, you must still set
# destinationTable when result size exceeds the allowed maximum response size.
# Corresponds to the JSON property `allowLargeResults` # Corresponds to the JSON property `allowLargeResults`
# @return [Boolean] # @return [Boolean]
attr_accessor :allow_large_results attr_accessor :allow_large_results
@ -1398,7 +1399,8 @@ module Google
attr_accessor :default_dataset attr_accessor :default_dataset
# [Optional] Describes the table where the query results should be stored. If # [Optional] Describes the table where the query results should be stored. If
# not present, a new table will be created to store the results. # not present, a new table will be created to store the results. This property
# must be set for large results that exceed the maximum response size.
# Corresponds to the JSON property `destinationTable` # Corresponds to the JSON property `destinationTable`
# @return [Google::Apis::BigqueryV2::TableReference] # @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :destination_table attr_accessor :destination_table
@ -2605,7 +2607,7 @@ module Google
end end
# #
class InsertAllTableDataRequest class TableDataInsertAllRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Optional] Accept rows that contain values that do not match the schema. The # [Optional] Accept rows that contain values that do not match the schema. The
@ -2623,7 +2625,7 @@ module Google
# The rows to insert. # The rows to insert.
# Corresponds to the JSON property `rows` # Corresponds to the JSON property `rows`
# @return [Array<Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row>] # @return [Array<Google::Apis::BigqueryV2::TableDataInsertAllRequest::Row>]
attr_accessor :rows attr_accessor :rows
# [Optional] Insert all valid rows of a request, even if invalid rows exist. The # [Optional] Insert all valid rows of a request, even if invalid rows exist. The
@ -2685,12 +2687,12 @@ module Google
end end
# #
class InsertAllTableDataResponse class TableDataInsertAllResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An array of errors for rows that were not inserted. # An array of errors for rows that were not inserted.
# Corresponds to the JSON property `insertErrors` # Corresponds to the JSON property `insertErrors`
# @return [Array<Google::Apis::BigqueryV2::InsertAllTableDataResponse::InsertError>] # @return [Array<Google::Apis::BigqueryV2::TableDataInsertAllResponse::InsertError>]
attr_accessor :insert_errors attr_accessor :insert_errors
# The resource type of the response. # The resource type of the response.

View File

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

View File

@ -330,18 +330,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryV2::CancelJobResponse] parsed result object # @yieldparam result [Google::Apis::BigqueryV2::JobCancelResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::BigqueryV2::CancelJobResponse] # @return [Google::Apis::BigqueryV2::JobCancelResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:post, 'projects/{projectId}/jobs/{jobId}/cancel', options)
command.response_representation = Google::Apis::BigqueryV2::CancelJobResponse::Representation command.response_representation = Google::Apis::BigqueryV2::JobCancelResponse::Representation
command.response_class = Google::Apis::BigqueryV2::CancelJobResponse command.response_class = Google::Apis::BigqueryV2::JobCancelResponse
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil? command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -628,7 +628,7 @@ module Google
# Dataset ID of the destination table. # Dataset ID of the destination table.
# @param [String] table_id # @param [String] table_id
# Table ID of the destination table. # Table ID of the destination table.
# @param [Google::Apis::BigqueryV2::InsertAllTableDataRequest] insert_all_table_data_request_object # @param [Google::Apis::BigqueryV2::TableDataInsertAllRequest] table_data_insert_all_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -642,20 +642,20 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryV2::InsertAllTableDataResponse] parsed result object # @yieldparam result [Google::Apis::BigqueryV2::TableDataInsertAllResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::BigqueryV2::InsertAllTableDataResponse] # @return [Google::Apis::BigqueryV2::TableDataInsertAllResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll', options) command = make_simple_command(:post, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll', options)
command.request_representation = Google::Apis::BigqueryV2::InsertAllTableDataRequest::Representation command.request_representation = Google::Apis::BigqueryV2::TableDataInsertAllRequest::Representation
command.request_object = insert_all_table_data_request_object command.request_object = table_data_insert_all_request_object
command.response_representation = Google::Apis::BigqueryV2::InsertAllTableDataResponse::Representation command.response_representation = Google::Apis::BigqueryV2::TableDataInsertAllResponse::Representation
command.response_class = Google::Apis::BigqueryV2::InsertAllTableDataResponse command.response_class = Google::Apis::BigqueryV2::TableDataInsertAllResponse
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['datasetId'] = dataset_id unless dataset_id.nil? command.params['datasetId'] = dataset_id unless dataset_id.nil?
command.params['tableId'] = table_id unless table_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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data', options) command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data', options)
command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation
command.response_class = Google::Apis::BigqueryV2::TableDataList 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'users/{userId}/blogs', options) command = make_simple_command(:get, 'users/{userId}/blogs', options)
command.response_representation = Google::Apis::BloggerV3::BlogList::Representation command.response_representation = Google::Apis::BloggerV3::BlogList::Representation
command.response_class = Google::Apis::BloggerV3::BlogList 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'blogs/{blogId}/comments', options) command = make_simple_command(:get, 'blogs/{blogId}/comments', options)
command.response_representation = Google::Apis::BloggerV3::CommentList::Representation command.response_representation = Google::Apis::BloggerV3::CommentList::Representation
command.response_class = Google::Apis::BloggerV3::CommentList 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}/posts', options) command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}/posts', options)
command.response_representation = Google::Apis::BloggerV3::PostUserInfosList::Representation command.response_representation = Google::Apis::BloggerV3::PostUserInfosList::Representation
command.response_class = Google::Apis::BloggerV3::PostUserInfosList 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. # Range in CFI format for this annotation sent by client.
# Corresponds to the JSON property `cfiRange` # Corresponds to the JSON property `cfiRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :cfi_range attr_accessor :cfi_range
# Content version the client sent in. # Content version the client sent in.
@ -155,17 +155,17 @@ module Google
# Range in GB image format for this annotation sent by client. # Range in GB image format for this annotation sent by client.
# Corresponds to the JSON property `gbImageRange` # Corresponds to the JSON property `gbImageRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :gb_image_range attr_accessor :gb_image_range
# Range in GB text format for this annotation sent by client. # Range in GB text format for this annotation sent by client.
# Corresponds to the JSON property `gbTextRange` # Corresponds to the JSON property `gbTextRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :gb_text_range attr_accessor :gb_text_range
# Range in image CFI format for this annotation sent by client. # Range in image CFI format for this annotation sent by client.
# Corresponds to the JSON property `imageCfiRange` # Corresponds to the JSON property `imageCfiRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :image_cfi_range attr_accessor :image_cfi_range
def initialize(**args) def initialize(**args)
@ -188,7 +188,7 @@ module Google
# Range in CFI format for this annotation for version above. # Range in CFI format for this annotation for version above.
# Corresponds to the JSON property `cfiRange` # Corresponds to the JSON property `cfiRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :cfi_range attr_accessor :cfi_range
# Content version applicable to ranges below. # Content version applicable to ranges below.
@ -198,17 +198,17 @@ module Google
# Range in GB image format for this annotation for version above. # Range in GB image format for this annotation for version above.
# Corresponds to the JSON property `gbImageRange` # Corresponds to the JSON property `gbImageRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :gb_image_range attr_accessor :gb_image_range
# Range in GB text format for this annotation for version above. # Range in GB text format for this annotation for version above.
# Corresponds to the JSON property `gbTextRange` # Corresponds to the JSON property `gbTextRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :gb_text_range attr_accessor :gb_text_range
# Range in image CFI format for this annotation for version above. # Range in image CFI format for this annotation for version above.
# Corresponds to the JSON property `imageCfiRange` # Corresponds to the JSON property `imageCfiRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :image_cfi_range attr_accessor :image_cfi_range
def initialize(**args) def initialize(**args)
@ -259,7 +259,7 @@ module Google
end end
# #
class AnnotationData class Annotationdata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The type of annotation this data is for. # The type of annotation this data is for.
@ -435,12 +435,12 @@ module Google
end end
# #
class AnnotationsData class Annotationsdata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A list of Annotation Data. # A list of Annotation Data.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BooksV1::AnnotationData>] # @return [Array<Google::Apis::BooksV1::Annotationdata>]
attr_accessor :items attr_accessor :items
# Resource type # Resource type
@ -473,7 +473,7 @@ module Google
end end
# #
class AnnotatinsRange class BooksAnnotationsRange
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The offset from the ending position. # The offset from the ending position.
@ -510,7 +510,7 @@ module Google
end end
# #
class LoadingResource class BooksCloudloadingResource
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# #
@ -547,7 +547,7 @@ module Google
end end
# #
class RateRecommendedVolumeResponse class BooksVolumesRecommendedRateResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# #
@ -805,17 +805,17 @@ module Google
end end
# #
class DictLayerData class Dictlayerdata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# #
# Corresponds to the JSON property `common` # Corresponds to the JSON property `common`
# @return [Google::Apis::BooksV1::DictLayerData::Common] # @return [Google::Apis::BooksV1::Dictlayerdata::Common]
attr_accessor :common attr_accessor :common
# #
# Corresponds to the JSON property `dict` # Corresponds to the JSON property `dict`
# @return [Google::Apis::BooksV1::DictLayerData::Dict] # @return [Google::Apis::BooksV1::Dictlayerdata::Dict]
attr_accessor :dict attr_accessor :dict
# #
@ -860,12 +860,12 @@ module Google
# The source, url and attribution for this dictionary data. # The source, url and attribution for this dictionary data.
# Corresponds to the JSON property `source` # Corresponds to the JSON property `source`
# @return [Google::Apis::BooksV1::DictLayerData::Dict::Source] # @return [Google::Apis::BooksV1::Dictlayerdata::Dict::Source]
attr_accessor :source attr_accessor :source
# #
# Corresponds to the JSON property `words` # 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 attr_accessor :words
def initialize(**args) def initialize(**args)
@ -909,23 +909,23 @@ module Google
# #
# Corresponds to the JSON property `derivatives` # 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 attr_accessor :derivatives
# #
# Corresponds to the JSON property `examples` # 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 attr_accessor :examples
# #
# Corresponds to the JSON property `senses` # 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 attr_accessor :senses
# The words with different meanings but not related words, e.g. "go" (game) and " # The words with different meanings but not related words, e.g. "go" (game) and "
# go" (verb). # go" (verb).
# Corresponds to the JSON property `source` # 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 attr_accessor :source
def initialize(**args) def initialize(**args)
@ -946,7 +946,7 @@ module Google
# #
# Corresponds to the JSON property `source` # 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 attr_accessor :source
# #
@ -996,7 +996,7 @@ module Google
# #
# Corresponds to the JSON property `source` # 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 attr_accessor :source
# #
@ -1046,12 +1046,12 @@ module Google
# #
# Corresponds to the JSON property `conjugations` # 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 attr_accessor :conjugations
# #
# Corresponds to the JSON property `definitions` # 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 attr_accessor :definitions
# #
@ -1071,7 +1071,7 @@ module Google
# #
# Corresponds to the JSON property `source` # 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 attr_accessor :source
# #
@ -1081,7 +1081,7 @@ module Google
# #
# Corresponds to the JSON property `synonyms` # 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 attr_accessor :synonyms
def initialize(**args) def initialize(**args)
@ -1136,7 +1136,7 @@ module Google
# #
# Corresponds to the JSON property `examples` # 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 attr_accessor :examples
def initialize(**args) def initialize(**args)
@ -1155,7 +1155,7 @@ module Google
# #
# Corresponds to the JSON property `source` # 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 attr_accessor :source
# #
@ -1231,7 +1231,7 @@ module Google
# #
# Corresponds to the JSON property `source` # 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 attr_accessor :source
# #
@ -1552,17 +1552,17 @@ module Google
end end
# #
class GeoLayerData class Geolayerdata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# #
# Corresponds to the JSON property `common` # Corresponds to the JSON property `common`
# @return [Google::Apis::BooksV1::GeoLayerData::Common] # @return [Google::Apis::BooksV1::Geolayerdata::Common]
attr_accessor :common attr_accessor :common
# #
# Corresponds to the JSON property `geo` # Corresponds to the JSON property `geo`
# @return [Google::Apis::BooksV1::GeoLayerData::Geo] # @return [Google::Apis::BooksV1::Geolayerdata::Geo]
attr_accessor :geo attr_accessor :geo
# #
@ -1632,7 +1632,7 @@ module Google
# The boundary of the location as a set of loops containing pairs of latitude, # The boundary of the location as a set of loops containing pairs of latitude,
# longitude coordinates. # longitude coordinates.
# Corresponds to the JSON property `boundary` # 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 attr_accessor :boundary
# The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER # 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 # The viewport for showing this location. This is a latitude, longitude
# rectangle. # rectangle.
# Corresponds to the JSON property `viewport` # Corresponds to the JSON property `viewport`
# @return [Google::Apis::BooksV1::GeoLayerData::Geo::Viewport] # @return [Google::Apis::BooksV1::Geolayerdata::Geo::Viewport]
attr_accessor :viewport attr_accessor :viewport
# The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom # 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` # 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 attr_accessor :hi
# #
# Corresponds to the JSON property `lo` # 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 attr_accessor :lo
def initialize(**args) def initialize(**args)
@ -1795,12 +1795,12 @@ module Google
end end
# #
class LayerSummaries class Layersummaries
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A list of layer summary items. # A list of layer summary items.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BooksV1::LayerSummary>] # @return [Array<Google::Apis::BooksV1::Layersummary>]
attr_accessor :items attr_accessor :items
# Resource type. # Resource type.
@ -1826,7 +1826,7 @@ module Google
end end
# #
class LayerSummary class Layersummary
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The number of annotations for this layer. # The number of annotations for this layer.
@ -2480,7 +2480,7 @@ module Google
end end
# #
class SeriesMembership class Seriesmembership
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Resorce type. # Resorce type.
@ -2511,7 +2511,7 @@ module Google
end end
# #
class UserSettings class Usersettings
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Resource type. # Resource type.
@ -2521,12 +2521,12 @@ module Google
# User settings in sub-objects, each for different purposes. # User settings in sub-objects, each for different purposes.
# Corresponds to the JSON property `notesExport` # Corresponds to the JSON property `notesExport`
# @return [Google::Apis::BooksV1::UserSettings::NotesExport] # @return [Google::Apis::BooksV1::Usersettings::NotesExport]
attr_accessor :notes_export attr_accessor :notes_export
# #
# Corresponds to the JSON property `notification` # Corresponds to the JSON property `notification`
# @return [Google::Apis::BooksV1::UserSettings::Notification] # @return [Google::Apis::BooksV1::Usersettings::Notification]
attr_accessor :notification attr_accessor :notification
def initialize(**args) def initialize(**args)
@ -2572,17 +2572,17 @@ module Google
# #
# Corresponds to the JSON property `moreFromAuthors` # 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 attr_accessor :more_from_authors
# #
# Corresponds to the JSON property `moreFromSeries` # 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 attr_accessor :more_from_series
# #
# Corresponds to the JSON property `rewardExpirations` # Corresponds to the JSON property `rewardExpirations`
# @return [Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations] # @return [Google::Apis::BooksV1::Usersettings::Notification::RewardExpirations]
attr_accessor :reward_expirations attr_accessor :reward_expirations
def initialize(**args) def initialize(**args)
@ -3867,7 +3867,7 @@ module Google
end end
# #
class VolumeAnnotation class Volumeannotation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The annotation data id for this volume annotation. # The annotation data id for this volume annotation.
@ -3887,7 +3887,7 @@ module Google
# The content ranges to identify the selected text. # The content ranges to identify the selected text.
# Corresponds to the JSON property `contentRanges` # Corresponds to the JSON property `contentRanges`
# @return [Google::Apis::BooksV1::VolumeAnnotation::ContentRanges] # @return [Google::Apis::BooksV1::Volumeannotation::ContentRanges]
attr_accessor :content_ranges attr_accessor :content_ranges
# Data for this annotation. # Data for this annotation.
@ -3970,7 +3970,7 @@ module Google
# Range in CFI format for this annotation for version above. # Range in CFI format for this annotation for version above.
# Corresponds to the JSON property `cfiRange` # Corresponds to the JSON property `cfiRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :cfi_range attr_accessor :cfi_range
# Content version applicable to ranges below. # Content version applicable to ranges below.
@ -3980,12 +3980,12 @@ module Google
# Range in GB image format for this annotation for version above. # Range in GB image format for this annotation for version above.
# Corresponds to the JSON property `gbImageRange` # Corresponds to the JSON property `gbImageRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :gb_image_range attr_accessor :gb_image_range
# Range in GB text format for this annotation for version above. # Range in GB text format for this annotation for version above.
# Corresponds to the JSON property `gbTextRange` # Corresponds to the JSON property `gbTextRange`
# @return [Google::Apis::BooksV1::AnnotatinsRange] # @return [Google::Apis::BooksV1::BooksAnnotationsRange]
attr_accessor :gb_text_range attr_accessor :gb_text_range
def initialize(**args) def initialize(**args)
@ -4008,7 +4008,7 @@ module Google
# A list of volume annotations. # A list of volume annotations.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BooksV1::VolumeAnnotation>] # @return [Array<Google::Apis::BooksV1::Volumeannotation>]
attr_accessor :items attr_accessor :items
# Resource type # Resource type

View File

@ -46,7 +46,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AnnotationData class Annotationdata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -70,25 +70,25 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AnnotationsData class Annotationsdata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AnnotatinsRange class BooksAnnotationsRange
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LoadingResource class BooksCloudloadingResource
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RateRecommendedVolumeResponse class BooksVolumesRecommendedRateResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -124,7 +124,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DictLayerData class Dictlayerdata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
class Common class Common
@ -262,7 +262,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GeoLayerData class Geolayerdata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
class Common class Common
@ -304,13 +304,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LayerSummaries class Layersummaries
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LayerSummary class Layersummary
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -394,13 +394,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SeriesMembership class Seriesmembership
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UserSettings class Usersettings
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
class NotesExport class NotesExport
@ -592,7 +592,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class VolumeAnnotation class Volumeannotation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
class ContentRanges class ContentRanges
@ -664,14 +664,14 @@ module Google
class ClientVersionRanges class ClientVersionRanges
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :content_version, as: 'contentVersion' property :content_version, as: 'contentVersion'
property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation property :gb_image_range, as: 'gbImageRange', 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 :gb_text_range, as: 'gbTextRange', 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 property :image_cfi_range, as: 'imageCfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
end end
end end
@ -679,14 +679,14 @@ module Google
class CurrentVersionRanges class CurrentVersionRanges
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :content_version, as: 'contentVersion' property :content_version, as: 'contentVersion'
property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation property :gb_image_range, as: 'gbImageRange', 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 :gb_text_range, as: 'gbTextRange', 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 property :image_cfi_range, as: 'imageCfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
end end
end end
@ -701,7 +701,7 @@ module Google
end end
end end
class AnnotationData class Annotationdata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_type, as: 'annotationType' property :annotation_type, as: 'annotationType'
@ -749,10 +749,10 @@ module Google
end end
end end
class AnnotationsData class Annotationsdata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
@ -760,7 +760,7 @@ module Google
end end
end end
class AnnotatinsRange class BooksAnnotationsRange
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :end_offset, as: 'endOffset' property :end_offset, as: 'endOffset'
@ -770,7 +770,7 @@ module Google
end end
end end
class LoadingResource class BooksCloudloadingResource
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :author, as: 'author' property :author, as: 'author'
@ -780,7 +780,7 @@ module Google
end end
end end
class RateRecommendedVolumeResponse class BooksVolumesRecommendedRateResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :consistency_token, as: 'consistency_token' property :consistency_token, as: 'consistency_token'
@ -850,12 +850,12 @@ module Google
end end
end end
class DictLayerData class Dictlayerdata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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' property :kind, as: 'kind'
end end
@ -870,9 +870,9 @@ module Google
class Dict class Dict
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 end
@ -887,20 +887,20 @@ module Google
class Word class Word
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 end
class Derivative class Derivative
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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' property :text, as: 'text'
end end
@ -917,7 +917,7 @@ module Google
class Example class Example
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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' property :text, as: 'text'
end end
@ -934,17 +934,17 @@ module Google
class Sense class Sense
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :part_of_speech, as: 'partOfSpeech'
property :pronunciation, as: 'pronunciation' property :pronunciation, as: 'pronunciation'
property :pronunciation_url, as: 'pronunciationUrl' 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' 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 end
@ -960,14 +960,14 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :definition, as: 'definition' 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 end
class Example class Example
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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' property :text, as: 'text'
end end
@ -993,7 +993,7 @@ module Google
class Synonym class Synonym
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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' property :text, as: 'text'
end end
@ -1082,12 +1082,12 @@ module Google
end end
end end
class GeoLayerData class Geolayerdata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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' property :kind, as: 'kind'
end end
@ -1108,7 +1108,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :boundary, as: 'boundary', :class => Array do collection :boundary, as: 'boundary', :class => Array do
include Representable::JSON::Collection 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 end
@ -1117,7 +1117,7 @@ module Google
property :latitude, as: 'latitude' property :latitude, as: 'latitude'
property :longitude, as: 'longitude' property :longitude, as: 'longitude'
property :map_type, as: 'mapType' 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' property :zoom, as: 'zoom'
end end
@ -1133,9 +1133,9 @@ module Google
class Viewport class Viewport
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 end
@ -1158,17 +1158,17 @@ module Google
end end
end end
class LayerSummaries class Layersummaries
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :kind, as: 'kind'
property :total_items, as: 'totalItems' property :total_items, as: 'totalItems'
end end
end end
class LayerSummary class Layersummary
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_count, as: 'annotationCount' property :annotation_count, as: 'annotationCount'
@ -1339,7 +1339,7 @@ module Google
end end
end end
class SeriesMembership class Seriesmembership
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind' property :kind, as: 'kind'
@ -1349,13 +1349,13 @@ module Google
end end
end end
class UserSettings class Usersettings
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind' 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 end
@ -1370,11 +1370,11 @@ module Google
class Notification class Notification
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 end
@ -1723,13 +1723,13 @@ module Google
end end
end end
class VolumeAnnotation class Volumeannotation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_data_id, as: 'annotationDataId' property :annotation_data_id, as: 'annotationDataId'
property :annotation_data_link, as: 'annotationDataLink' property :annotation_data_link, as: 'annotationDataLink'
property :annotation_type, as: 'annotationType' 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 :data, as: 'data'
property :deleted, as: 'deleted' property :deleted, as: 'deleted'
@ -1747,12 +1747,12 @@ module Google
class ContentRanges class ContentRanges
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation property :cfi_range, as: 'cfiRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
property :content_version, as: 'contentVersion' property :content_version, as: 'contentVersion'
property :gb_image_range, as: 'gbImageRange', class: Google::Apis::BooksV1::AnnotatinsRange, decorator: Google::Apis::BooksV1::AnnotatinsRange::Representation property :gb_image_range, as: 'gbImageRange', 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 :gb_text_range, as: 'gbTextRange', class: Google::Apis::BooksV1::BooksAnnotationsRange, decorator: Google::Apis::BooksV1::BooksAnnotationsRange::Representation
end end
end end
@ -1761,7 +1761,7 @@ module Google
class Volumeannotations class Volumeannotations
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'

View File

@ -203,18 +203,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::LoadingResource] parsed result object # @yieldparam result [Google::Apis::BooksV1::BooksCloudloadingResource] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::BooksV1::LoadingResource] # @return [Google::Apis::BooksV1::BooksCloudloadingResource]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'cloudloading/addBook', options) command = make_simple_command(:post, 'cloudloading/addBook', options)
command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation command.response_representation = Google::Apis::BooksV1::BooksCloudloadingResource::Representation
command.response_class = Google::Apis::BooksV1::LoadingResource command.response_class = Google::Apis::BooksV1::BooksCloudloadingResource
command.query['drive_document_id'] = drive_document_id unless drive_document_id.nil? 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['mime_type'] = mime_type unless mime_type.nil?
command.query['name'] = name unless name.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_cloudloading_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'cloudloading/deleteBook', options) command = make_simple_command(:post, 'cloudloading/deleteBook', options)
command.query['volumeId'] = volume_id unless volume_id.nil? command.query['volumeId'] = volume_id unless volume_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -259,7 +259,7 @@ module Google
end end
# #
# @param [Google::Apis::BooksV1::LoadingResource] loading_resource_object # @param [Google::Apis::BooksV1::BooksCloudloadingResource] books_cloudloading_resource_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -273,20 +273,20 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::LoadingResource] parsed result object # @yieldparam result [Google::Apis::BooksV1::BooksCloudloadingResource] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::BooksV1::LoadingResource] # @return [Google::Apis::BooksV1::BooksCloudloadingResource]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_book(loading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_cloudloading_book(books_cloudloading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'cloudloading/updateBook', options) command = make_simple_command(:post, 'cloudloading/updateBook', options)
command.request_representation = Google::Apis::BooksV1::LoadingResource::Representation command.request_representation = Google::Apis::BooksV1::BooksCloudloadingResource::Representation
command.request_object = loading_resource_object command.request_object = books_cloudloading_resource_object
command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation command.response_representation = Google::Apis::BooksV1::BooksCloudloadingResource::Representation
command.response_class = Google::Apis::BooksV1::LoadingResource command.response_class = Google::Apis::BooksV1::BooksCloudloadingResource
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_offline_metadata_dictionary(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_dictionary_offline_metadata(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'dictionary/listOfflineMetadata', options) command = make_simple_command(:get, 'dictionary/listOfflineMetadata', options)
command.response_representation = Google::Apis::BooksV1::Metadata::Representation command.response_representation = Google::Apis::BooksV1::Metadata::Representation
command.response_class = Google::Apis::BooksV1::Metadata command.response_class = Google::Apis::BooksV1::Metadata
@ -350,18 +350,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @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 # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:get, 'volumes/{volumeId}/layersummary/{summaryId}', options)
command.response_representation = Google::Apis::BooksV1::LayerSummary::Representation command.response_representation = Google::Apis::BooksV1::Layersummary::Representation
command.response_class = Google::Apis::BooksV1::LayerSummary command.response_class = Google::Apis::BooksV1::Layersummary
command.params['volumeId'] = volume_id unless volume_id.nil? command.params['volumeId'] = volume_id unless volume_id.nil?
command.params['summaryId'] = summary_id unless summary_id.nil? command.params['summaryId'] = summary_id unless summary_id.nil?
command.query['contentVersion'] = content_version unless content_version.nil? command.query['contentVersion'] = content_version unless content_version.nil?
@ -396,18 +396,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @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 # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:get, 'volumes/{volumeId}/layersummary', options)
command.response_representation = Google::Apis::BooksV1::LayerSummaries::Representation command.response_representation = Google::Apis::BooksV1::Layersummaries::Representation
command.response_class = Google::Apis::BooksV1::LayerSummaries command.response_class = Google::Apis::BooksV1::Layersummaries
command.params['volumeId'] = volume_id unless volume_id.nil? command.params['volumeId'] = volume_id unless volume_id.nil?
command.query['contentVersion'] = content_version unless content_version.nil? command.query['contentVersion'] = content_version unless content_version.nil?
command.query['maxResults'] = max_results unless max_results.nil? command.query['maxResults'] = max_results unless max_results.nil?
@ -456,18 +456,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @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 # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options) command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options)
command.response_representation = Google::Apis::BooksV1::AnnotationData::Representation command.response_representation = Google::Apis::BooksV1::Annotationdata::Representation
command.response_class = Google::Apis::BooksV1::AnnotationData command.response_class = Google::Apis::BooksV1::Annotationdata
command.params['volumeId'] = volume_id unless volume_id.nil? command.params['volumeId'] = volume_id unless volume_id.nil?
command.params['layerId'] = layer_id unless layer_id.nil? command.params['layerId'] = layer_id unless layer_id.nil?
command.params['annotationDataId'] = annotation_data_id unless annotation_data_id.nil? command.params['annotationDataId'] = annotation_data_id unless annotation_data_id.nil?
@ -530,18 +530,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @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 # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data', options)
command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation command.response_representation = Google::Apis::BooksV1::Annotationsdata::Representation
command.response_class = Google::Apis::BooksV1::AnnotationsData command.response_class = Google::Apis::BooksV1::Annotationsdata
command.params['volumeId'] = volume_id unless volume_id.nil? command.params['volumeId'] = volume_id unless volume_id.nil?
command.params['layerId'] = layer_id unless layer_id.nil? command.params['layerId'] = layer_id unless layer_id.nil?
command.query['annotationDataId'] = annotation_data_id unless annotation_data_id.nil? command.query['annotationDataId'] = annotation_data_id unless annotation_data_id.nil?
@ -586,18 +586,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @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 # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', options)
command.response_representation = Google::Apis::BooksV1::VolumeAnnotation::Representation command.response_representation = Google::Apis::BooksV1::Volumeannotation::Representation
command.response_class = Google::Apis::BooksV1::VolumeAnnotation command.response_class = Google::Apis::BooksV1::Volumeannotation
command.params['volumeId'] = volume_id unless volume_id.nil? command.params['volumeId'] = volume_id unless volume_id.nil?
command.params['layerId'] = layer_id unless layer_id.nil? command.params['layerId'] = layer_id unless layer_id.nil?
command.params['annotationId'] = annotation_id unless annotation_id.nil? command.params['annotationId'] = annotation_id unless annotation_id.nil?
@ -704,18 +704,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @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 # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_myconfig_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'myconfig/getUserSettings', options) command = make_simple_command(:get, 'myconfig/getUserSettings', options)
command.response_representation = Google::Apis::BooksV1::UserSettings::Representation command.response_representation = Google::Apis::BooksV1::Usersettings::Representation
command.response_class = Google::Apis::BooksV1::UserSettings command.response_class = Google::Apis::BooksV1::Usersettings
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def release_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def release_myconfig_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 = make_simple_command(:post, 'myconfig/releaseDownloadAccess', options)
command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation
command.response_class = Google::Apis::BooksV1::DownloadAccesses 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def request_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) 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)
command = make_simple_command(:post, 'myconfig/requestAccess', options) command = make_simple_command(:post, 'myconfig/requestAccess', options)
command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation
command.response_class = Google::Apis::BooksV1::RequestAccess 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'myconfig/syncVolumeLicenses', options) command = make_simple_command(:post, 'myconfig/syncVolumeLicenses', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes 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 # 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- # overwrite the existing sub-object stored in the server. Unspecified sub-
# objects will retain the existing value. # objects will retain the existing value.
# @param [Google::Apis::BooksV1::UserSettings] user_settings_object # @param [Google::Apis::BooksV1::Usersettings] usersettings_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -889,20 +889,20 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @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 # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_settings(user_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_myconfig_user_settings(usersettings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'myconfig/updateUserSettings', options) command = make_simple_command(:post, 'myconfig/updateUserSettings', options)
command.request_representation = Google::Apis::BooksV1::UserSettings::Representation command.request_representation = Google::Apis::BooksV1::Usersettings::Representation
command.request_object = user_settings_object command.request_object = usersettings_object
command.response_representation = Google::Apis::BooksV1::UserSettings::Representation command.response_representation = Google::Apis::BooksV1::Usersettings::Representation
command.response_class = Google::Apis::BooksV1::UserSettings command.response_class = Google::Apis::BooksV1::Usersettings
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_mylibrary_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 = make_simple_command(:delete, 'mylibrary/annotations/{annotationId}', options)
command.params['annotationId'] = annotation_id unless annotation_id.nil? command.params['annotationId'] = annotation_id unless annotation_id.nil?
command.query['source'] = source unless source.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'mylibrary/annotations', options) command = make_simple_command(:post, 'mylibrary/annotations', options)
command.request_representation = Google::Apis::BooksV1::Annotation::Representation command.request_representation = Google::Apis::BooksV1::Annotation::Representation
command.request_object = annotation_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'mylibrary/annotations', options) command = make_simple_command(:get, 'mylibrary/annotations', options)
command.response_representation = Google::Apis::BooksV1::Annotations::Representation command.response_representation = Google::Apis::BooksV1::Annotations::Representation
command.response_class = Google::Apis::BooksV1::Annotations 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def summary_mylibrary_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 = make_simple_command(:post, 'mylibrary/annotations/summary', options)
command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation
command.response_class = Google::Apis::BooksV1::AnnotationsSummary 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_mylibrary_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 = make_simple_command(:put, 'mylibrary/annotations/{annotationId}', options)
command.request_representation = Google::Apis::BooksV1::Annotation::Representation command.request_representation = Google::Apis::BooksV1::Annotation::Representation
command.request_object = annotation_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def add_mylibrary_bookshelf_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 = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/addVolume', options)
command.params['shelf'] = shelf unless shelf.nil? command.params['shelf'] = shelf unless shelf.nil?
command.query['reason'] = reason unless reason.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def clear_mylibrary_bookshelf_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 = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/clearVolumes', options)
command.params['shelf'] = shelf unless shelf.nil? command.params['shelf'] = shelf unless shelf.nil?
command.query['source'] = source unless source.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_mylibrary_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 = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}', options)
command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
command.response_class = Google::Apis::BooksV1::Bookshelf 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_mylibrary_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'mylibrary/bookshelves', options) command = make_simple_command(:get, 'mylibrary/bookshelves', options)
command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
command.response_class = Google::Apis::BooksV1::Bookshelves 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def move_mylibrary_bookshelf_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 = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/moveVolume', options)
command.params['shelf'] = shelf unless shelf.nil? command.params['shelf'] = shelf unless shelf.nil?
command.query['source'] = source unless source.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def remove_mylibrary_bookshelf_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 = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/removeVolume', options)
command.params['shelf'] = shelf unless shelf.nil? command.params['shelf'] = shelf unless shelf.nil?
command.query['reason'] = reason unless reason.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}/volumes', options) command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}/volumes', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_mylibrary_readingposition(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 = make_simple_command(:get, 'mylibrary/readingpositions/{volumeId}', options)
command.response_representation = Google::Apis::BooksV1::ReadingPosition::Representation command.response_representation = Google::Apis::BooksV1::ReadingPosition::Representation
command.response_class = Google::Apis::BooksV1::ReadingPosition 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'mylibrary/readingpositions/{volumeId}/setPosition', options) command = make_simple_command(:post, 'mylibrary/readingpositions/{volumeId}/setPosition', options)
command.params['volumeId'] = volume_id unless volume_id.nil? command.params['volumeId'] = volume_id unless volume_id.nil?
command.query['action'] = action unless action.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'promooffer/accept', options) command = make_simple_command(:post, 'promooffer/accept', options)
command.query['androidId'] = android_id unless android_id.nil? command.query['androidId'] = android_id unless android_id.nil?
command.query['device'] = device unless device.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:post, 'promooffer/dismiss', options) command = make_simple_command(:post, 'promooffer/dismiss', options)
command.query['androidId'] = android_id unless android_id.nil? command.query['androidId'] = android_id unless android_id.nil?
command.query['device'] = device unless device.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'promooffer/get', options) command = make_simple_command(:get, 'promooffer/get', options)
command.response_representation = Google::Apis::BooksV1::Offers::Representation command.response_representation = Google::Apis::BooksV1::Offers::Representation
command.response_class = Google::Apis::BooksV1::Offers command.response_class = Google::Apis::BooksV1::Offers
@ -1899,18 +1899,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @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 # @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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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) 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 = make_simple_command(:get, 'series/membership/get', options)
command.response_representation = Google::Apis::BooksV1::SeriesMembership::Representation command.response_representation = Google::Apis::BooksV1::Seriesmembership::Representation
command.response_class = Google::Apis::BooksV1::SeriesMembership command.response_class = Google::Apis::BooksV1::Seriesmembership
command.query['page_size'] = page_size unless page_size.nil? command.query['page_size'] = page_size unless page_size.nil?
command.query['page_token'] = page_token unless page_token.nil? command.query['page_token'] = page_token unless page_token.nil?
command.query['series_id'] = series_id unless series_id.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'volumes/{volumeId}/associated', options) command = make_simple_command(:get, 'volumes/{volumeId}/associated', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'volumes/mybooks', options) command = make_simple_command(:get, 'volumes/mybooks', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_volume_recommendeds(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 = make_simple_command(:get, 'volumes/recommended', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes command.response_class = Google::Apis::BooksV1::Volumes
@ -2217,18 +2217,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BooksV1::RateRecommendedVolumeResponse] parsed result object # @yieldparam result [Google::Apis::BooksV1::BooksVolumesRecommendedRateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::BooksV1::RateRecommendedVolumeResponse] # @return [Google::Apis::BooksV1::BooksVolumesRecommendedRateResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def rate_recommended_volume(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def rate_volume_recommended(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 = make_simple_command(:post, 'volumes/recommended/rate', options)
command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation command.response_representation = Google::Apis::BooksV1::BooksVolumesRecommendedRateResponse::Representation
command.response_class = Google::Apis::BooksV1::RateRecommendedVolumeResponse command.response_class = Google::Apis::BooksV1::BooksVolumesRecommendedRateResponse
command.query['locale'] = locale unless locale.nil? command.query['locale'] = locale unless locale.nil?
command.query['rating'] = rating unless rating.nil? command.query['rating'] = rating unless rating.nil?
command.query['source'] = source unless source.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'volumes/useruploaded', options) command = make_simple_command(:get, 'volumes/useruploaded', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes command.response_class = Google::Apis::BooksV1::Volumes

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp # @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3 module CalendarV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20170521' REVISION = '20170523'
# Manage your calendars # Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' 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. # on inserts and updates. SMS reminders are only available for G Suite customers.
# Corresponds to the JSON property `method` # Corresponds to the JSON property `method`
# @return [String] # @return [String]
attr_accessor :delivery_method attr_accessor :method_prop
# The type of notification. Possible values are: # The type of notification. Possible values are:
# - "eventCreation" - Notification sent when a new event is put on the calendar. # - "eventCreation" - Notification sent when a new event is put on the calendar.
@ -448,7 +448,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@delivery_method = args[:delivery_method] if args.key?(:delivery_method) @method_prop = args[:method_prop] if args.key?(:method_prop)
@type = args[:type] if args.key?(:type) @type = args[:type] if args.key?(:type)
end end
end end
@ -1082,7 +1082,7 @@ module Google
# - "chip" - The gadget displays when the event is clicked. # - "chip" - The gadget displays when the event is clicked.
# Corresponds to the JSON property `display` # Corresponds to the JSON property `display`
# @return [String] # @return [String]
attr_accessor :display_mode attr_accessor :display_prop
# The gadget's height in pixels. The height must be an integer greater than 0. # The gadget's height in pixels. The height must be an integer greater than 0.
# Optional. # Optional.
@ -1127,7 +1127,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@display_mode = args[:display_mode] if args.key?(:display_mode) @display_prop = args[:display_prop] if args.key?(:display_prop)
@height = args[:height] if args.key?(:height) @height = args[:height] if args.key?(:height)
@icon_link = args[:icon_link] if args.key?(:icon_link) @icon_link = args[:icon_link] if args.key?(:icon_link)
@link = args[:link] if args.key?(:link) @link = args[:link] if args.key?(:link)
@ -1443,7 +1443,7 @@ module Google
# - "popup" - Reminders are sent via a UI popup. # - "popup" - Reminders are sent via a UI popup.
# Corresponds to the JSON property `method` # Corresponds to the JSON property `method`
# @return [String] # @return [String]
attr_accessor :reminder_method attr_accessor :method_prop
# Number of minutes before the start of the event when the reminder should # 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). # trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
@ -1457,7 +1457,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@reminder_method = args[:reminder_method] if args.key?(:reminder_method) @method_prop = args[:method_prop] if args.key?(:method_prop)
@minutes = args[:minutes] if args.key?(:minutes) @minutes = args[:minutes] if args.key?(:minutes)
end end
end end

View File

@ -344,7 +344,7 @@ module Google
class CalendarNotification class CalendarNotification
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :delivery_method, as: 'method' property :method_prop, as: 'method'
property :type, as: 'type' property :type, as: 'type'
end end
end end
@ -490,7 +490,7 @@ module Google
class Gadget class Gadget
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :display_mode, as: 'display' property :display_prop, as: 'display'
property :height, as: 'height' property :height, as: 'height'
property :icon_link, as: 'iconLink' property :icon_link, as: 'iconLink'
property :link, as: 'link' property :link, as: 'link'
@ -579,7 +579,7 @@ module Google
class EventReminder class EventReminder
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :reminder_method, as: 'method' property :method_prop, as: 'method'
property :minutes, as: 'minutes' property :minutes, as: 'minutes'
end end
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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'calendars/{calendarId}/events/{eventId}/instances', options) command = make_simple_command(:get, 'calendars/{calendarId}/events/{eventId}/instances', options)
command.response_representation = Google::Apis::CalendarV3::Events::Representation command.response_representation = Google::Apis::CalendarV3::Events::Representation
command.response_class = Google::Apis::CalendarV3::Events 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def quick_add_event(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def quick_event_add(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 = make_simple_command(:post, 'calendars/{calendarId}/events/quickAdd', options)
command.response_representation = Google::Apis::CalendarV3::Event::Representation command.response_representation = Google::Apis::CalendarV3::Event::Representation
command.response_class = Google::Apis::CalendarV3::Event command.response_class = Google::Apis::CalendarV3::Event

View File

@ -664,7 +664,7 @@ module Google
end end
# The list of elections available for this version of the API. # The list of elections available for this version of the API.
class QueryElectionsResponse class ElectionsQueryResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A list of available elections # A list of available elections

View File

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

View File

@ -110,20 +110,20 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CivicinfoV2::QueryElectionsResponse] parsed result object # @yieldparam result [Google::Apis::CivicinfoV2::ElectionsQueryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::CivicinfoV2::QueryElectionsResponse] # @return [Google::Apis::CivicinfoV2::ElectionsQueryResponse]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def query_election(elections_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def election_election_query(elections_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'elections', options) command = make_simple_command(:get, 'elections', options)
command.request_representation = Google::Apis::CivicinfoV2::ElectionsQueryRequest::Representation command.request_representation = Google::Apis::CivicinfoV2::ElectionsQueryRequest::Representation
command.request_object = elections_query_request_object command.request_object = elections_query_request_object
command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation command.response_representation = Google::Apis::CivicinfoV2::ElectionsQueryResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse command.response_class = Google::Apis::CivicinfoV2::ElectionsQueryResponse
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'voterinfo', options) command = make_simple_command(:get, 'voterinfo', options)
command.request_representation = Google::Apis::CivicinfoV2::VoterInfoRequest::Representation command.request_representation = Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
command.request_object = voter_info_request_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'representatives', options) command = make_simple_command(:get, 'representatives', options)
command.request_representation = Google::Apis::CivicinfoV2::RepresentativeInfoRequest::Representation command.request_representation = Google::Apis::CivicinfoV2::RepresentativeInfoRequest::Representation
command.request_object = representative_info_request_object 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::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
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) 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)
command = make_simple_command(:get, 'representatives/{ocdId}', options) command = make_simple_command(:get, 'representatives/{ocdId}', options)
command.request_representation = Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest::Representation command.request_representation = Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest::Representation
command.request_object = division_representative_info_request_object command.request_object = division_representative_info_request_object

View File

@ -25,34 +25,7 @@ module Google
# @see https://developers.google.com/classroom/ # @see https://developers.google.com/classroom/
module ClassroomV1 module ClassroomV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170523' REVISION = '20170601'
# View the profile photos of people in your classes
AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
# View your Google Classroom class rosters
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
# View and manage guardians for students in your Google Classroom classes
AUTH_CLASSROOM_GUARDIANLINKS_STUDENTS = 'https://www.googleapis.com/auth/classroom.guardianlinks.students'
# 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'
# 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 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 Google Classroom guardians
AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.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'
# Manage your course work and view your grades in Google Classroom # Manage your course work and view your grades in Google Classroom
AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me' AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me'
@ -71,6 +44,33 @@ module Google
# View your Google Classroom classes # View your Google Classroom classes
AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly' AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly'
# View your Google Classroom class rosters
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
# View the profile photos of people in your classes
AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
# View and manage guardians for students in your Google Classroom classes
AUTH_CLASSROOM_GUARDIANLINKS_STUDENTS = 'https://www.googleapis.com/auth/classroom.guardianlinks.students'
# 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 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 end
end end

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,30 @@ module Google
module Apis module Apis
module ClassroomV1 module ClassroomV1
class Teacher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReclaimStudentSubmissionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AssignmentSubmission
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Material
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CourseWork class CourseWork
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -76,19 +100,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListStudentSubmissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TurnInStudentSubmissionRequest class TurnInStudentSubmissionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ModifyAttachmentsRequest class ListStudentSubmissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -100,6 +118,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ModifyAttachmentsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class YouTubeVideo class YouTubeVideo
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -112,13 +136,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GuardianInvitation class Attachment
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Attachment class GuardianInvitation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -196,13 +220,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CourseMaterial class Name
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Name class CourseMaterial
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -257,32 +281,51 @@ module Google
end end
class Teacher class Teacher
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :user_id, as: 'userId'
property :course_id, as: 'courseId'
property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class ReclaimStudentSubmissionRequest class ReclaimStudentSubmissionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport end
end end
class AssignmentSubmission class AssignmentSubmission
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :attachments, as: 'attachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class Material class Material
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation
include Google::Apis::Core::JsonObjectSupport property :youtube_video, as: 'youtubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::SharedDriveFile, decorator: Google::Apis::ClassroomV1::SharedDriveFile::Representation
property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation
end
end end
class CourseWork class CourseWork
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation
property :work_type, as: 'workType'
property :multiple_choice_question, as: 'multipleChoiceQuestion', class: Google::Apis::ClassroomV1::MultipleChoiceQuestion, decorator: Google::Apis::ClassroomV1::MultipleChoiceQuestion::Representation
property :description, as: 'description' property :description, as: 'description'
property :creation_time, as: 'creationTime' property :creation_time, as: 'creationTime'
property :due_date, as: 'dueDate', class: Google::Apis::ClassroomV1::Date, decorator: Google::Apis::ClassroomV1::Date::Representation property :due_date, as: 'dueDate', class: Google::Apis::ClassroomV1::Date, decorator: Google::Apis::ClassroomV1::Date::Representation
@ -294,17 +337,12 @@ module Google
property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation
property :title, as: 'title' property :title, as: 'title'
property :associated_with_developer, as: 'associatedWithDeveloper'
collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation
property :associated_with_developer, as: 'associatedWithDeveloper'
property :update_time, as: 'updateTime' property :update_time, as: 'updateTime'
property :alternate_link, as: 'alternateLink' property :alternate_link, as: 'alternateLink'
property :max_points, as: 'maxPoints' property :max_points, as: 'maxPoints'
property :multiple_choice_question, as: 'multipleChoiceQuestion', class: Google::Apis::ClassroomV1::MultipleChoiceQuestion, decorator: Google::Apis::ClassroomV1::MultipleChoiceQuestion::Representation
property :work_type, as: 'workType'
property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation
end end
end end
@ -366,9 +404,9 @@ module Google
class DriveFolder class DriveFolder
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :title, as: 'title' property :title, as: 'title'
property :alternate_link, as: 'alternateLink' property :alternate_link, as: 'alternateLink'
property :id, as: 'id'
end end
end end
@ -382,7 +420,6 @@ module Google
class StudentSubmission class StudentSubmission
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :assigned_grade, as: 'assignedGrade'
property :multiple_choice_submission, as: 'multipleChoiceSubmission', class: Google::Apis::ClassroomV1::MultipleChoiceSubmission, decorator: Google::Apis::ClassroomV1::MultipleChoiceSubmission::Representation property :multiple_choice_submission, as: 'multipleChoiceSubmission', class: Google::Apis::ClassroomV1::MultipleChoiceSubmission, decorator: Google::Apis::ClassroomV1::MultipleChoiceSubmission::Representation
property :assignment_submission, as: 'assignmentSubmission', class: Google::Apis::ClassroomV1::AssignmentSubmission, decorator: Google::Apis::ClassroomV1::AssignmentSubmission::Representation property :assignment_submission, as: 'assignmentSubmission', class: Google::Apis::ClassroomV1::AssignmentSubmission, decorator: Google::Apis::ClassroomV1::AssignmentSubmission::Representation
@ -392,8 +429,8 @@ module Google
property :update_time, as: 'updateTime' property :update_time, as: 'updateTime'
property :alternate_link, as: 'alternateLink' property :alternate_link, as: 'alternateLink'
property :late, as: 'late'
property :draft_grade, as: 'draftGrade' property :draft_grade, as: 'draftGrade'
property :late, as: 'late'
property :course_work_type, as: 'courseWorkType' property :course_work_type, as: 'courseWorkType'
property :creation_time, as: 'creationTime' property :creation_time, as: 'creationTime'
property :state, as: 'state' property :state, as: 'state'
@ -401,15 +438,7 @@ module Google
property :course_work_id, as: 'courseWorkId' property :course_work_id, as: 'courseWorkId'
property :course_id, as: 'courseId' property :course_id, as: 'courseId'
property :id, as: 'id' property :id, as: 'id'
end property :assigned_grade, as: 'assignedGrade'
end
class ListStudentSubmissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :student_submissions, as: 'studentSubmissions', class: Google::Apis::ClassroomV1::StudentSubmission, decorator: Google::Apis::ClassroomV1::StudentSubmission::Representation
end end
end end
@ -419,10 +448,11 @@ module Google
end end
end end
class ModifyAttachmentsRequest class ListStudentSubmissionsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :add_attachments, as: 'addAttachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation property :next_page_token, as: 'nextPageToken'
collection :student_submissions, as: 'studentSubmissions', class: Google::Apis::ClassroomV1::StudentSubmission, decorator: Google::Apis::ClassroomV1::StudentSubmission::Representation
end end
end end
@ -436,13 +466,21 @@ module Google
end end
end end
class ModifyAttachmentsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :add_attachments, as: 'addAttachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation
end
end
class YouTubeVideo class YouTubeVideo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :thumbnail_url, as: 'thumbnailUrl'
property :id, as: 'id' property :id, as: 'id'
property :title, as: 'title' property :title, as: 'title'
property :alternate_link, as: 'alternateLink' property :alternate_link, as: 'alternateLink'
property :thumbnail_url, as: 'thumbnailUrl'
end end
end end
@ -455,17 +493,6 @@ module Google
end end
end end
class GuardianInvitation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :student_id, as: 'studentId'
property :state, as: 'state'
property :invited_email_address, as: 'invitedEmailAddress'
property :creation_time, as: 'creationTime'
property :invitation_id, as: 'invitationId'
end
end
class Attachment class Attachment
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -480,6 +507,17 @@ module Google
end end
end end
class GuardianInvitation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :invitation_id, as: 'invitationId'
property :student_id, as: 'studentId'
property :state, as: 'state'
property :invited_email_address, as: 'invitedEmailAddress'
end
end
class CourseMaterialSet class CourseMaterialSet
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -511,10 +549,10 @@ module Google
class Form class Form
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :title, as: 'title'
property :thumbnail_url, as: 'thumbnailUrl' property :thumbnail_url, as: 'thumbnailUrl'
property :response_url, as: 'responseUrl' property :response_url, as: 'responseUrl'
property :form_url, as: 'formUrl' property :form_url, as: 'formUrl'
property :title, as: 'title'
end end
end end
@ -530,9 +568,9 @@ module Google
class Link class Link
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :thumbnail_url, as: 'thumbnailUrl'
property :url, as: 'url' property :url, as: 'url'
property :title, as: 'title' property :title, as: 'title'
property :thumbnail_url, as: 'thumbnailUrl'
end end
end end
@ -564,9 +602,9 @@ module Google
class ListGuardianInvitationsResponse class ListGuardianInvitationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :guardian_invitations, as: 'guardianInvitations', class: Google::Apis::ClassroomV1::GuardianInvitation, decorator: Google::Apis::ClassroomV1::GuardianInvitation::Representation collection :guardian_invitations, as: 'guardianInvitations', class: Google::Apis::ClassroomV1::GuardianInvitation, decorator: Google::Apis::ClassroomV1::GuardianInvitation::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
@ -586,6 +624,15 @@ module Google
end end
end end
class Name
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :given_name, as: 'givenName'
property :family_name, as: 'familyName'
property :full_name, as: 'fullName'
end
end
class CourseMaterial class CourseMaterial
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -600,15 +647,6 @@ module Google
end end
end end
class Name
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :given_name, as: 'givenName'
property :family_name, as: 'familyName'
property :full_name, as: 'fullName'
end
end
class Assignment class Assignment
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -642,16 +680,6 @@ module Google
class Course class Course
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :section, as: 'section'
property :id, as: 'id'
property :room, as: 'room'
property :course_group_email, as: 'courseGroupEmail'
property :enrollment_code, as: 'enrollmentCode'
collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation
property :description_heading, as: 'descriptionHeading'
property :update_time, as: 'updateTime'
property :alternate_link, as: 'alternateLink'
property :guardians_enabled, as: 'guardiansEnabled' property :guardians_enabled, as: 'guardiansEnabled'
property :owner_id, as: 'ownerId' property :owner_id, as: 'ownerId'
property :course_state, as: 'courseState' property :course_state, as: 'courseState'
@ -661,6 +689,16 @@ module Google
property :name, as: 'name' property :name, as: 'name'
property :teacher_folder, as: 'teacherFolder', class: Google::Apis::ClassroomV1::DriveFolder, decorator: Google::Apis::ClassroomV1::DriveFolder::Representation property :teacher_folder, as: 'teacherFolder', class: Google::Apis::ClassroomV1::DriveFolder, decorator: Google::Apis::ClassroomV1::DriveFolder::Representation
property :section, as: 'section'
property :id, as: 'id'
property :room, as: 'room'
property :course_group_email, as: 'courseGroupEmail'
collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation
property :enrollment_code, as: 'enrollmentCode'
property :description_heading, as: 'descriptionHeading'
property :update_time, as: 'updateTime'
property :alternate_link, as: 'alternateLink'
end end
end end
@ -686,44 +724,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
class Teacher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :course_id, as: 'courseId'
property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
property :user_id, as: 'userId'
end
end
class ReclaimStudentSubmissionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class AssignmentSubmission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :attachments, as: 'attachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation
end
end
class Material
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::SharedDriveFile, decorator: Google::Apis::ClassroomV1::SharedDriveFile::Representation
property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation
property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation
property :youtube_video, as: 'youtubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation
end
end
end end
end end
end end

File diff suppressed because it is too large Load Diff

View File

@ -1,49 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/classroom_v1beta1/service.rb'
require 'google/apis/classroom_v1beta1/classes.rb'
require 'google/apis/classroom_v1beta1/representations.rb'
module Google
module Apis
# Google Classroom API
#
# Google Classroom API
#
# @see
module ClassroomV1beta1
VERSION = 'V1beta1'
REVISION = '20150628'
# Manage your Google Classroom classes
AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses'
# View your Google Classroom classes
AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly'
# View the email addresses of people in your classes
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
# View the profile photos of people in your classes
AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
# Manage your Google Classroom class rosters
AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters'
# View your Google Classroom class rosters
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
end
end
end

View File

@ -1,447 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ClassroomV1beta1
# A Course in Classroom.
class Course
include Google::Apis::Core::Hashable
# Unique identifier for this course assigned by Classroom. You may optionally
# set this to an [alias string][google.classroom.v1beta1.CourseAlias] as part of
# [creating a course][google.classroom.v1beta1.Courses.CreateCourse], creating a
# corresponding alias. The `ID` cannot be updated after a course is created.
# Specifying this field in a course update mask will result in an error.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Name of the course. For example, "10th Grade Biology". This is required and
# must be between 1 and 750 characters and a valid UTF-8 string.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Section of the course For example, "Period 2". If set, this field must be a
# valid UTF-8 string and no longer than 2800 characters.
# Corresponds to the JSON property `section`
# @return [String]
attr_accessor :section
# Optional heading for the description. For example, "Welcome to 10th Grade
# Biology" If set, this field must be a valid UTF-8 string and no longer than
# 3600 characters.
# Corresponds to the JSON property `descriptionHeading`
# @return [String]
attr_accessor :description_heading
# Optional description. For example, "We'll be learning about about the
# structure of living creatures from a combination of textbooks, guest lectures,
# and lab work. Expect to be excited!" If set, this field must be a valid UTF-8
# string and no longer than 30,000 characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Optional room location. For example, "301" If set, this field must be a valid
# UTF-8 string and no longer than 650 characters.
# Corresponds to the JSON property `room`
# @return [String]
attr_accessor :room
# The identifier of the primary teacher of a course. When specified as a
# parameter of CreateCourseRequest, this field is required. It may be the
# numeric identifier for the user, or an alias that identifies the teacher. The
# following aliases are supported: * the e-mail address of the user * the string
# literal `"me"`, indicating that the requesting user This must be set in a
# CreateRequest; specifying this field in a course update mask will result in an
# error.
# Corresponds to the JSON property `primaryTeacherId`
# @return [String]
attr_accessor :primary_teacher_id
# Creation time of the course. Specifying this field in a course update mask
# will result in an error. Read-only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# Time of the most recent update to this course. Specifying this field in a
# course update mask will result in an error. Read-only.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Enrollment code to use when joining this course. Specifying this field in a
# course update mask will result in an error. Read-only.
# Corresponds to the JSON property `enrollmentCode`
# @return [String]
attr_accessor :enrollment_code
# State of the course. If unspecified, the default state will be `PROVISIONED`.
# Corresponds to the JSON property `courseState`
# @return [String]
attr_accessor :course_state
# Absolute link to this course in the Classroom web UI. Read-only.
# Corresponds to the JSON property `webLink`
# @return [String]
attr_accessor :web_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@section = args[:section] unless args[:section].nil?
@description_heading = args[:description_heading] unless args[:description_heading].nil?
@description = args[:description] unless args[:description].nil?
@room = args[:room] unless args[:room].nil?
@primary_teacher_id = args[:primary_teacher_id] unless args[:primary_teacher_id].nil?
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@update_time = args[:update_time] unless args[:update_time].nil?
@enrollment_code = args[:enrollment_code] unless args[:enrollment_code].nil?
@course_state = args[:course_state] unless args[:course_state].nil?
@web_link = args[:web_link] unless args[:web_link].nil?
end
end
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response when listing courses.
class ListCoursesResponse
include Google::Apis::Core::Hashable
# Courses that match the request.
# Corresponds to the JSON property `courses`
# @return [Array<Google::Apis::ClassroomV1beta1::Course>]
attr_accessor :courses
# Token identifying the next page of results to return. If empty, no further
# results are available.
# 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)
@courses = args[:courses] unless args[:courses].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
end
end
# Alternative identifier for a course. An alias uniquely identifies a course. It
# will be unique within one of the following scopes: * domain: A domain-scoped
# alias is visible to all users within the alias creator's domain and may only
# be created by a domain admin. A domain-scoped alias is often used when a
# course has an identifier external to Classroom. * project: A project-scoped
# alias is visible to any request from an application using the Developer
# Console Project ID that created the alias and may be created by any project. A
# project-scoped alias is often used when an application has alternative
# identifiers. A random value can also be used to avoid duplicate courses in the
# event of transmission failures, as retrying a request will return
# ALREADY_EXISTS if a previous one has succeeded.
class CourseAlias
include Google::Apis::Core::Hashable
# Alias string. The format of the string indicated the desired alias scoping. * "
# d:" indicates a domain-scoped alias. Example: d:math_101 * "p:" indicates a
# project-scoped alias. Example: p:abc123 This field has a maximum length of 256
# characters.
# Corresponds to the JSON property `alias`
# @return [String]
attr_accessor :alias
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@alias = args[:alias] unless args[:alias].nil?
end
end
# Response when listing course aliases.
class ListCourseAliasesResponse
include Google::Apis::Core::Hashable
# The course aliases.
# Corresponds to the JSON property `aliases`
# @return [Array<Google::Apis::ClassroomV1beta1::CourseAlias>]
attr_accessor :aliases
# Token identifying the next page of results to return. If empty, no further
# results are available.
# 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)
@aliases = args[:aliases] unless args[:aliases].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
end
end
# Global information for a user.
class UserProfile
include Google::Apis::Core::Hashable
# Unique identifier of the user. Read-only
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Details of the user's name.
# Corresponds to the JSON property `name`
# @return [Google::Apis::ClassroomV1beta1::Name]
attr_accessor :name
# E-mail address of the user. Read-only
# Corresponds to the JSON property `emailAddress`
# @return [String]
attr_accessor :email_address
# Url of user's profile photo. Read-only
# Corresponds to the JSON property `photoUrl`
# @return [String]
attr_accessor :photo_url
# Global permissions of the user. Read-only
# Corresponds to the JSON property `permissions`
# @return [Array<Google::Apis::ClassroomV1beta1::GlobalPermission>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@email_address = args[:email_address] unless args[:email_address].nil?
@photo_url = args[:photo_url] unless args[:photo_url].nil?
@permissions = args[:permissions] unless args[:permissions].nil?
end
end
# Details of the user's name.
class Name
include Google::Apis::Core::Hashable
# The user's first name. Read-only
# Corresponds to the JSON property `givenName`
# @return [String]
attr_accessor :given_name
# The user's last name. Read-only
# Corresponds to the JSON property `familyName`
# @return [String]
attr_accessor :family_name
# The user's full name formed by concatenating the first and last name values.
# Read-only
# Corresponds to the JSON property `fullName`
# @return [String]
attr_accessor :full_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@given_name = args[:given_name] unless args[:given_name].nil?
@family_name = args[:family_name] unless args[:family_name].nil?
@full_name = args[:full_name] unless args[:full_name].nil?
end
end
# Global user permission description.
class GlobalPermission
include Google::Apis::Core::Hashable
# Permission value.
# Corresponds to the JSON property `permission`
# @return [String]
attr_accessor :permission
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permission = args[:permission] unless args[:permission].nil?
end
end
# Teacher of a course.
class Teacher
include Google::Apis::Core::Hashable
# Unique identifier of the course. Read-only
# Corresponds to the JSON property `courseId`
# @return [String]
attr_accessor :course_id
# The identifier of the user. When specified as a parameter of request, this
# field may be set to an alias that identifies the teacher. The following are
# supported: * the e-mail address of the user * the string literal `"me"`,
# indicating the requesting user
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
# Global information for a user.
# Corresponds to the JSON property `profile`
# @return [Google::Apis::ClassroomV1beta1::UserProfile]
attr_accessor :profile
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@course_id = args[:course_id] unless args[:course_id].nil?
@user_id = args[:user_id] unless args[:user_id].nil?
@profile = args[:profile] unless args[:profile].nil?
end
end
# Response when listing teachers.
class ListTeachersResponse
include Google::Apis::Core::Hashable
# The teachers who match the list request.
# Corresponds to the JSON property `teachers`
# @return [Array<Google::Apis::ClassroomV1beta1::Teacher>]
attr_accessor :teachers
# Token identifying the next page of results to return. If empty, no further
# results are available.
# 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)
@teachers = args[:teachers] unless args[:teachers].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
end
end
# Student in a course.
class Student
include Google::Apis::Core::Hashable
# Unique identifier of the course. Read-only
# Corresponds to the JSON property `courseId`
# @return [String]
attr_accessor :course_id
# The identifier of the user. When specified as a parameter of request, this
# field may be set to an alias that identifies the student. The following are
# supported: * the e-mail address of the user * the string literal `"me"`,
# indicating that the requesting user
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
# Global information for a user.
# Corresponds to the JSON property `profile`
# @return [Google::Apis::ClassroomV1beta1::UserProfile]
attr_accessor :profile
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@course_id = args[:course_id] unless args[:course_id].nil?
@user_id = args[:user_id] unless args[:user_id].nil?
@profile = args[:profile] unless args[:profile].nil?
end
end
# Response when listing students.
class ListStudentsResponse
include Google::Apis::Core::Hashable
# The students who match the list request.
# Corresponds to the JSON property `students`
# @return [Array<Google::Apis::ClassroomV1beta1::Student>]
attr_accessor :students
# Token identifying the next page of results to return. If empty, no further
# results are available.
# 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)
@students = args[:students] unless args[:students].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
end
end
end
end
end

View File

@ -1,190 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ClassroomV1beta1
class Course
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListCoursesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class CourseAlias
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListCourseAliasesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class UserProfile
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Name
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class GlobalPermission
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Teacher
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListTeachersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Student
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListStudentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Course
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :name, as: 'name'
property :section, as: 'section'
property :description_heading, as: 'descriptionHeading'
property :description, as: 'description'
property :room, as: 'room'
property :primary_teacher_id, as: 'primaryTeacherId'
property :creation_time, as: 'creationTime'
property :update_time, as: 'updateTime'
property :enrollment_code, as: 'enrollmentCode'
property :course_state, as: 'courseState'
property :web_link, as: 'webLink'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ListCoursesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :courses, as: 'courses', class: Google::Apis::ClassroomV1beta1::Course, decorator: Google::Apis::ClassroomV1beta1::Course::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class CourseAlias
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alias, as: 'alias'
end
end
class ListCourseAliasesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :aliases, as: 'aliases', class: Google::Apis::ClassroomV1beta1::CourseAlias, decorator: Google::Apis::ClassroomV1beta1::CourseAlias::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class UserProfile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :name, as: 'name', class: Google::Apis::ClassroomV1beta1::Name, decorator: Google::Apis::ClassroomV1beta1::Name::Representation
property :email_address, as: 'emailAddress'
property :photo_url, as: 'photoUrl'
collection :permissions, as: 'permissions', class: Google::Apis::ClassroomV1beta1::GlobalPermission, decorator: Google::Apis::ClassroomV1beta1::GlobalPermission::Representation
end
end
class Name
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :given_name, as: 'givenName'
property :family_name, as: 'familyName'
property :full_name, as: 'fullName'
end
end
class GlobalPermission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :permission, as: 'permission'
end
end
class Teacher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :course_id, as: 'courseId'
property :user_id, as: 'userId'
property :profile, as: 'profile', class: Google::Apis::ClassroomV1beta1::UserProfile, decorator: Google::Apis::ClassroomV1beta1::UserProfile::Representation
end
end
class ListTeachersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :teachers, as: 'teachers', class: Google::Apis::ClassroomV1beta1::Teacher, decorator: Google::Apis::ClassroomV1beta1::Teacher::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Student
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :course_id, as: 'courseId'
property :user_id, as: 'userId'
property :profile, as: 'profile', class: Google::Apis::ClassroomV1beta1::UserProfile, decorator: Google::Apis::ClassroomV1beta1::UserProfile::Representation
end
end
class ListStudentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :students, as: 'students', class: Google::Apis::ClassroomV1beta1::Student, decorator: Google::Apis::ClassroomV1beta1::Student::Representation
property :next_page_token, as: 'nextPageToken'
end
end
end
end
end

View File

@ -1,791 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ClassroomV1beta1
# Google Classroom API
#
# Google Classroom API
#
# @example
# require 'google/apis/classroom_v1beta1'
#
# Classroom = Google::Apis::ClassroomV1beta1 # Alias the module
# service = Classroom::ClassroomService.new
#
# @see
class ClassroomService < 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
def initialize
super('https://classroom.googleapis.com/', '')
end
# Creates a course. The user specified as the primary teacher in `
# primary_teacher_id` is the owner of the created course and added as a teacher.
# This method returns the following error codes: * `PERMISSION_DENIED` if the
# requesting user is not permitted to create courses. * `NOT_FOUND` if the
# primary teacher is not a valid user. * `ALREADY_EXISTS` if an alias was
# specified and already exists.
# @param [Google::Apis::ClassroomV1beta1::Course] course_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::ClassroomV1beta1::Course] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::Course]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course(course_object = nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses'
command = make_simple_command(:post, path, options)
command.request_representation = Google::Apis::ClassroomV1beta1::Course::Representation
command.request_object = course_object
command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Course
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a course. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course. * `NOT_FOUND` if no course exists with the requested ID.
# @param [String] id
# Identifier of the course to return. This may either be the Classroom-assigned
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
# @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::ClassroomV1beta1::Course] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::Course]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course(id, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{id}'
command = make_simple_command(:get, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Course
command.params['id'] = id unless 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 a course. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to modify the
# requested course. * `NOT_FOUND` if no course exists with the requested ID.
# @param [String] id
# Identifier of the course to update. This may either be the Classroom-assigned
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
# @param [Google::Apis::ClassroomV1beta1::Course] course_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::ClassroomV1beta1::Course] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::Course]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course(id, course_object = nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{id}'
command = make_simple_command(:put, path, options)
command.request_representation = Google::Apis::ClassroomV1beta1::Course::Representation
command.request_object = course_object
command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Course
command.params['id'] = id unless 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 one or more fields a course. This method returns the following error
# codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify
# the requested course. * `NOT_FOUND` if no course exists with the requested ID.
# * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if
# no update mask is supplied.
# @param [String] id
# Identifier of the course to update. This may either be the Classroom-assigned
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
# @param [Google::Apis::ClassroomV1beta1::Course] course_object
# @param [String] update_mask
# Mask which identifies which fields on the course to update. This field is
# required to do an update. The update will fail if invalid fields are specified.
# Valid fields are listed below: * `name` * `section` * `descriptionHeading` * `
# description` * `room` * `courseState` When set in a query parameter, this
# should be specified as `updateMask=,,...`
# @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::ClassroomV1beta1::Course] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::Course]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course(id, course_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{id}'
command = make_simple_command(:patch, path, options)
command.request_representation = Google::Apis::ClassroomV1beta1::Course::Representation
command.request_object = course_object
command.response_representation = Google::Apis::ClassroomV1beta1::Course::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Course
command.params['id'] = id unless 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
# Deletes a course. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to delete the
# requested course. * `NOT_FOUND` if no course exists with the requested ID.
# @param [String] id
# Identifier of the course to delete. This may either be the Classroom-assigned
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
# @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::ClassroomV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::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 delete_course(id, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{id}'
command = make_simple_command(:delete, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Empty
command.params['id'] = id unless 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
# Returns a list of courses that the requesting user is permitted to view,
# restricted to those that match the request. This method returns the following
# error codes: * `INVALID_ARGUMENT` if the query argument is malformed. * `
# NOT_FOUND` if any users specified in the query arguments do not exist.
# @param [String] student_id
# Restricts returned courses to those having a student with the specified
# identifier, or an alias that identifies a student. The following aliases are
# supported: * the e-mail address of the user * the string literal `"me"`,
# indicating that the requesting user
# @param [String] teacher_id
# Restricts returned courses to those having a teacher with the specified
# identifier, or an alias that identifies a teacher. The following aliases are
# supported: * the e-mail address of the user * the string literal `"me"`,
# indicating that the requesting user
# @param [Fixnum] page_size
# Maximum number of items to return. Zero or unspecified indicates that the
# server may assign a maximum. The server may return fewer than the specified
# number of results.
# @param [String] page_token
# [nextPageToken][google.classroom.v1beta1.ListCoursesResponse.next_page_token]
# value returned from a previous [list][google.classroom.v1beta1.Courses.
# ListCourses] call, indicating that the subsequent page of results should be
# returned. The [list][google.classroom.v1beta1.Courses.ListCourses] request
# must be identical to the one which resulted in this 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::ClassroomV1beta1::ListCoursesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::ListCoursesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_courses(student_id: nil, teacher_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses'
command = make_simple_command(:get, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::ListCoursesResponse::Representation
command.response_class = Google::Apis::ClassroomV1beta1::ListCoursesResponse
command.query['studentId'] = student_id unless student_id.nil?
command.query['teacherId'] = teacher_id unless teacher_id.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
# Creates an alias to a course. This method returns the following error codes: *
# `PERMISSION_DENIED` if the requesting user is not permitted to create the
# alias. * `NOT_FOUND` if the course does not exist. * `ALREADY_EXISTS` if the
# alias already exists.
# @param [String] course_id
# The identifier of the course to alias. This may either be the Classroom-
# assigned identifier or an [alias][google.classroom.v1beta1.CourseAlias].
# @param [Google::Apis::ClassroomV1beta1::CourseAlias] course_alias_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::ClassroomV1beta1::CourseAlias] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::CourseAlias]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course_alias(course_id, course_alias_object = nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/aliases'
command = make_simple_command(:post, path, options)
command.request_representation = Google::Apis::ClassroomV1beta1::CourseAlias::Representation
command.request_object = course_alias_object
command.response_representation = Google::Apis::ClassroomV1beta1::CourseAlias::Representation
command.response_class = Google::Apis::ClassroomV1beta1::CourseAlias
command.params['courseId'] = course_id unless course_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
# Deletes an alias of a course. This method returns the following error codes: *
# `PERMISSION_DENIED` if the requesting user is not permitted to remove the
# alias. * `NOT_FOUND` if the alias does not exist.
# @param [String] course_id
# The identifier of the course whose alias should be deleted. This may either be
# the Classroom-assigned identifier or an [alias][google.classroom.v1beta1.
# CourseAlias].
# @param [String] alias_
# The alias to delete. This may not be the Classroom-assigned identifier.
# @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::ClassroomV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::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 delete_course_alias(course_id, alias_, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/aliases/{alias}'
command = make_simple_command(:delete, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Empty
command.params['courseId'] = course_id unless course_id.nil?
command.params['alias'] = alias_ unless alias_.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 aliases of a course. This method returns the following error codes: *
# `PERMISSION_DENIED` if the requesting user is not permitted to access the
# course. * `NOT_FOUND` if the course does not exist.
# @param [String] course_id
# The identifier of the course. This may either be the Classroom-assigned
# identifier or an [alias][google.classroom.v1beta1.CourseAlias].
# @param [Fixnum] page_size
# Maximum number of items to return. Zero or unspecified indicates that the
# server may assign a maximum. The server may return fewer than the specified
# number of results.
# @param [String] page_token
# [nextPageToken][google.classroom.v1beta1.ListCourseAliasesResponse.
# next_page_token] value returned from a previous [list][google.classroom.
# v1beta1.Courses.ListCourseAliases] call, indicating that the subsequent page
# of results should be returned. The [list][google.classroom.v1beta1.Courses.
# ListCourseAliases] request must be identical to the one which resulted in this
# 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::ClassroomV1beta1::ListCourseAliasesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course_aliases(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/aliases'
command = make_simple_command(:get, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse::Representation
command.response_class = Google::Apis::ClassroomV1beta1::ListCourseAliasesResponse
command.params['courseId'] = course_id unless course_id.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
# Creates a teacher of a course. This method returns the following error codes: *
# `PERMISSION_DENIED` if the requesting user is not permitted to create
# teachers in this course. * `NOT_FOUND` if the requested course ID does not
# exist. * `ALREADY_EXISTS` if the user is already a teacher or student in the
# course.
# @param [String] course_id
# Unique identifier of the course. This may either be the Classroom-assigned
# identifier or an alias.
# @param [Google::Apis::ClassroomV1beta1::Teacher] teacher_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::ClassroomV1beta1::Teacher] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::Teacher]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course_teacher(course_id, teacher_object = nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/teachers'
command = make_simple_command(:post, path, options)
command.request_representation = Google::Apis::ClassroomV1beta1::Teacher::Representation
command.request_object = teacher_object
command.response_representation = Google::Apis::ClassroomV1beta1::Teacher::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Teacher
command.params['courseId'] = course_id unless course_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
# Returns a teacher of a course. This method returns the following error codes: *
# `PERMISSION_DENIED` if the requesting user is not permitted to view teachers
# of this course. * `NOT_FOUND` if no teacher of this course has the requested
# ID or if the course does not exist.
# @param [String] course_id
# Unique identifier of the course. This may either be the Classroom-assigned
# identifier or an alias.
# @param [String] user_id
# Identifier of the teacher to return, or an alias the identifies the user. the
# following aliases are supported: * the e-mail address of the user * the string
# literal `"me"`, indicating that the requesting user
# @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::ClassroomV1beta1::Teacher] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::Teacher]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/teachers/{userId}'
command = make_simple_command(:get, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::Teacher::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Teacher
command.params['courseId'] = course_id unless course_id.nil?
command.params['userId'] = user_id unless user_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
# Deletes a teacher of a course. This method returns the following error codes: *
# `PERMISSION_DENIED` if the requesting user is not permitted to delete
# teachers of this course. * `NOT_FOUND` if no teacher of this course has the
# requested ID or if the course does not exist. * `FAILED_PRECONDITION` if the
# requested ID belongs to the primary teacher of this course.
# @param [String] course_id
# Unique identifier of the course. This may either be the Classroom-assigned
# identifier or an alias.
# @param [String] user_id
# Identifier of the teacher to delete, or an alias the identifies the user. the
# following aliases are supported: * the e-mail address of the user * the string
# literal `"me"`, indicating that the requesting user
# @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::ClassroomV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::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 delete_course_teacher(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/teachers/{userId}'
command = make_simple_command(:delete, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Empty
command.params['courseId'] = course_id unless course_id.nil?
command.params['userId'] = user_id unless user_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
# Returns a list of teachers of this course that the requester is permitted to
# view. Fails with `NOT_FOUND` if the course does not exist.
# @param [String] course_id
# Unique identifier of the course. This may either be the Classroom-assigned
# identifier or an alias.
# @param [Fixnum] page_size
# Maximum number of items to return. Zero means no maximum. The server may
# return fewer than the specified number of results.
# @param [String] page_token
# [nextPageToken][google.classroom.v1beta1.ListTeachersResponse.next_page_token]
# value returned from a previous [list][google.classroom.v1beta1.Users.
# ListTeachers] call, indicating that the subsequent page of results should be
# returned. The [list][google.classroom.v1beta1.Users.ListTeachers] request must
# be identical to the one which resulted in this 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::ClassroomV1beta1::ListTeachersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::ListTeachersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course_teachers(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/teachers'
command = make_simple_command(:get, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::ListTeachersResponse::Representation
command.response_class = Google::Apis::ClassroomV1beta1::ListTeachersResponse
command.params['courseId'] = course_id unless course_id.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
# Adds a user as a student of a course. This method returns the following error
# codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create
# students in this course. * `NOT_FOUND` if the requested course ID does not
# exist. * `ALREADY_EXISTS` if the user is already a student or student in the
# course.
# @param [String] course_id
# Identifier of the course to create the student in. This may either be the
# Classroom-assigned identifier or an alias.
# @param [Google::Apis::ClassroomV1beta1::Student] student_object
# @param [String] enrollment_code
# Enrollment code of the course to create the student in. This is required if [
# userId][google.classroom.v1beta1.Student.user_id] corresponds to the
# requesting user; this may be omitted if the requesting user has administrative
# permissions to create students for any user.
# @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::ClassroomV1beta1::Student] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::Student]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course_student(course_id, student_object = nil, enrollment_code: nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/students'
command = make_simple_command(:post, path, options)
command.request_representation = Google::Apis::ClassroomV1beta1::Student::Representation
command.request_object = student_object
command.response_representation = Google::Apis::ClassroomV1beta1::Student::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Student
command.params['courseId'] = course_id unless course_id.nil?
command.query['enrollmentCode'] = enrollment_code unless enrollment_code.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 a student of a course. This method returns the following error codes: *
# `PERMISSION_DENIED` if the requesting user is not permitted to view students
# of this course. * `NOT_FOUND` if no student of this course has the requested
# ID or if the course does not exist.
# @param [String] course_id
# Unique identifier of the course. This may either be the Classroom-assigned
# identifier or an alias.
# @param [String] user_id
# Identifier of the student to return, or an alias the identifies the user. The
# following aliases are supported: * the e-mail address of the user * the string
# literal `"me"`, indicating that the requesting user
# @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::ClassroomV1beta1::Student] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::Student]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/students/{userId}'
command = make_simple_command(:get, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::Student::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Student
command.params['courseId'] = course_id unless course_id.nil?
command.params['userId'] = user_id unless user_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
# Deletes a student of a course. This method returns the following error codes: *
# `PERMISSION_DENIED` if the requesting user is not permitted to delete
# students of this course. * `NOT_FOUND` if no student of this course has the
# requested ID or if the course does not exist.
# @param [String] course_id
# Unique identifier of the course. This may either be the Classroom-assigned
# identifier or an alias.
# @param [String] user_id
# Identifier of the student to delete, or an alias the identifies the user. The
# following aliases are supported: * the e-mail address of the user * the string
# literal `"me"`, indicating that the requesting user
# @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::ClassroomV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::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 delete_course_student(course_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/students/{userId}'
command = make_simple_command(:delete, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1beta1::Empty
command.params['courseId'] = course_id unless course_id.nil?
command.params['userId'] = user_id unless user_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
# Returns a list of students of this course that the requester is permitted to
# view. Fails with `NOT_FOUND` if the course does not exist.
# @param [String] course_id
# Unique identifier of the course. This may either be the Classroom-assigned
# identifier or an alias.
# @param [Fixnum] page_size
# Maximum number of items to return. Zero means no maximum. The server may
# return fewer than the specified number of results.
# @param [String] page_token
# [nextPageToken][google.classroom.v1beta1.ListStudentsResponse.next_page_token]
# value returned from a previous [list][google.classroom.v1beta1.Users.
# ListStudents] call, indicating that the subsequent page of results should be
# returned. The [list][google.classroom.v1beta1.Users.ListStudents] request must
# be identical to the one which resulted in this 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::ClassroomV1beta1::ListStudentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::ListStudentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course_students(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/courses/{courseId}/students'
command = make_simple_command(:get, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::ListStudentsResponse::Representation
command.response_class = Google::Apis::ClassroomV1beta1::ListStudentsResponse
command.params['courseId'] = course_id unless course_id.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
# Returns a user profile. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to access this user
# profile. * `NOT_FOUND` if the profile does not exist.
# @param [String] user_id
# Identifier of the profile to return, or an alias the identifies the user. The
# following aliases are supported: * the e-mail address of the user * the string
# literal `"me"`, indicating the requesting user
# @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::ClassroomV1beta1::UserProfile] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1beta1::UserProfile]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block)
path = 'v1beta1/userProfiles/{userId}'
command = make_simple_command(:get, path, options)
command.response_representation = Google::Apis::ClassroomV1beta1::UserProfile::Representation
command.response_class = Google::Apis::ClassroomV1beta1::UserProfile
command.params['userId'] = user_id unless user_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
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

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

View File

@ -22,89 +22,17 @@ module Google
module Apis module Apis
module CloudbuildV1 module CloudbuildV1
# 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
# StorageSource describes the location of the source in an archive file in # StorageSource describes the location of the source in an archive file in
# Google Cloud Storage. # Google Cloud Storage.
class StorageSource class StorageSource
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Google Cloud Storage generation for the object. If the generation is
# omitted, the latest generation will be used.
# Corresponds to the JSON property `generation`
# @return [Fixnum]
attr_accessor :generation
# Google Cloud Storage bucket containing source (see # Google Cloud Storage bucket containing source (see
# [Bucket Name # [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
@ -120,21 +48,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :object attr_accessor :object
# Google Cloud Storage generation for the object. If the generation is
# omitted, the latest generation will be used.
# Corresponds to the JSON property `generation`
# @return [Fixnum]
attr_accessor :generation
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@generation = args[:generation] if args.key?(:generation)
@bucket = args[:bucket] if args.key?(:bucket) @bucket = args[:bucket] if args.key?(:bucket)
@object = args[:object] if args.key?(:object) @object = args[:object] if args.key?(:object)
@generation = args[:generation] if args.key?(:generation)
end end
end end
@ -199,12 +121,6 @@ module Google
class SourceProvenance class SourceProvenance
include Google::Apis::Core::Hashable 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 `resolvedStorageSource`
# @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 # 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 # source integrity was maintained in the build. Note that FileHashes will
# only be populated if BuildOptions has requested a SourceProvenanceHash. # only be populated if BuildOptions has requested a SourceProvenanceHash.
@ -223,15 +139,21 @@ module Google
# @return [Google::Apis::CloudbuildV1::RepoSource] # @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :resolved_repo_source attr_accessor :resolved_repo_source
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
# Corresponds to the JSON property `resolvedStorageSource`
# @return [Google::Apis::CloudbuildV1::StorageSource]
attr_accessor :resolved_storage_source
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
@file_hashes = args[:file_hashes] if args.key?(:file_hashes) @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source) @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)
end end
end end
@ -248,38 +170,11 @@ module Google
end end
end end
# Response containing existing BuildTriggers.
class ListBuildTriggersResponse
include Google::Apis::Core::Hashable
# BuildTriggers for the project, sorted by create_time descending.
# Corresponds to the JSON property `triggers`
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
attr_accessor :triggers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@triggers = args[:triggers] if args.key?(:triggers)
end
end
# This resource represents a long-running operation that is the result of a # This resource represents a long-running operation that is the result of a
# network API call. # network API call.
class Operation class Operation
include Google::Apis::Core::Hashable 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 # 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 # method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard # `google.protobuf.Empty`. If the original method is standard
@ -350,17 +245,44 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata 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) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@done = args[:done] if args.key?(:done)
@response = args[:response] if args.key?(:response) @response = args[:response] if args.key?(:response)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@error = args[:error] if args.key?(:error) @error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata) @metadata = args[:metadata] if args.key?(:metadata)
@done = args[:done] if args.key?(:done)
end
end
# Response containing existing BuildTriggers.
class ListBuildTriggersResponse
include Google::Apis::Core::Hashable
# BuildTriggers for the project, sorted by create_time descending.
# Corresponds to the JSON property `triggers`
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
attr_accessor :triggers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@triggers = args[:triggers] if args.key?(:triggers)
end end
end end
@ -501,13 +423,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :dir attr_accessor :dir
# 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
# The ID(s) of the step(s) that this build step depends on. # 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 # 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 # have completed successfully. If wait_for is empty, this build step will
@ -517,6 +432,13 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :wait_for 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. # 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 # 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 # will be used as arguments to that entrypoint. If the image does not define
@ -536,8 +458,8 @@ module Google
@entrypoint = args[:entrypoint] if args.key?(:entrypoint) @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@dir = args[:dir] if args.key?(:dir) @dir = args[:dir] if args.key?(:dir)
@env = args[:env] if args.key?(:env)
@wait_for = args[:wait_for] if args.key?(:wait_for) @wait_for = args[:wait_for] if args.key?(:wait_for)
@env = args[:env] if args.key?(:env)
@args = args[:args] if args.key?(:args) @args = args[:args] if args.key?(:args)
end end
end end
@ -658,17 +580,11 @@ module Google
class BuildTrigger class BuildTrigger
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Time when the trigger was created. # Path, from the source root, to a file whose contents is used for the
# @OutputOnly # template.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `filename`
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :filename
# 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
# RepoSource describes the location of the source in a Google Cloud Source # RepoSource describes the location of the source in a Google Cloud Source
# Repository. # Repository.
@ -676,12 +592,6 @@ module Google
# @return [Google::Apis::CloudbuildV1::RepoSource] # @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :trigger_template attr_accessor :trigger_template
# Path, from the source root, to a file whose contents is used for the
# template.
# Corresponds to the JSON property `filename`
# @return [String]
attr_accessor :filename
# Unique identifier of the trigger. # Unique identifier of the trigger.
# @OutputOnly # @OutputOnly
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
@ -715,20 +625,32 @@ module Google
# @return [String] # @return [String]
attr_accessor :description 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) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@disabled = args[:disabled] if args.key?(:disabled)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@filename = args[:filename] if args.key?(:filename) @filename = args[:filename] if args.key?(:filename)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@build = args[:build] if args.key?(:build) @build = args[:build] if args.key?(:build)
@substitutions = args[:substitutions] if args.key?(:substitutions) @substitutions = args[:substitutions] if args.key?(:substitutions)
@description = args[:description] if args.key?(:description) @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
end end
@ -748,10 +670,58 @@ module Google
class Build class Build
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional arguments to enable specific features of builds. # Time at which execution of the build was started.
# Corresponds to the JSON property `options` # @OutputOnly
# @return [Google::Apis::CloudbuildV1::BuildOptions] # Corresponds to the JSON property `startTime`
attr_accessor :options # @return [String]
attr_accessor :start_time
# Substitutions data for Build resource.
# Corresponds to the JSON property `substitutions`
# @return [Hash<String,String>]
attr_accessor :substitutions
# Time at which the request to create the build was received.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Provenance of the source. Ways to find the original source, or verify that
# some source was used for this build.
# Corresponds to the JSON property `sourceProvenance`
# @return [Google::Apis::CloudbuildV1::SourceProvenance]
attr_accessor :source_provenance
# A list of images to be pushed upon the successful completion of all build
# steps.
# The images will be pushed using the builder service account's credentials.
# The digests of the pushed images will be stored in the Build resource's
# results field.
# If any of the images fail to be pushed, the build is marked FAILURE.
# Corresponds to the JSON property `images`
# @return [Array<String>]
attr_accessor :images
# ID of the project.
# @OutputOnly.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# Time at which execution of the build was finished.
# The difference between finish_time and start_time is the duration of the
# build's execution.
# @OutputOnly
# Corresponds to the JSON property `finishTime`
# @return [String]
attr_accessor :finish_time
# URL to logs for this build in Google Cloud Logging.
# @OutputOnly
# Corresponds to the JSON property `logUrl`
# @return [String]
attr_accessor :log_url
# Source describes the location of the source in a supported storage # Source describes the location of the source in a supported storage
# service. # service.
@ -759,6 +729,11 @@ module Google
# @return [Google::Apis::CloudbuildV1::Source] # @return [Google::Apis::CloudbuildV1::Source]
attr_accessor :source attr_accessor :source
# Optional arguments to enable specific features of builds.
# Corresponds to the JSON property `options`
# @return [Google::Apis::CloudbuildV1::BuildOptions]
attr_accessor :options
# Customer-readable message about the current status. # Customer-readable message about the current status.
# @OutputOnly # @OutputOnly
# Corresponds to the JSON property `statusDetail` # Corresponds to the JSON property `statusDetail`
@ -779,11 +754,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :timeout attr_accessor :timeout
# Results describes the artifacts created by the build pipeline.
# Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1::Results]
attr_accessor :results
# Google Cloud Storage bucket where logs should be written (see # Google Cloud Storage bucket where logs should be written (see
# [Bucket Name # [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
@ -793,6 +763,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :logs_bucket 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. # Describes the operations to be performed on the workspace.
# Corresponds to the JSON property `steps` # Corresponds to the JSON property `steps`
# @return [Array<Google::Apis::CloudbuildV1::BuildStep>] # @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
@ -816,84 +791,31 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# Time at which execution of the build was started.
# @OutputOnly
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Substitutions data for Build resource.
# Corresponds to the JSON property `substitutions`
# @return [Hash<String,String>]
attr_accessor :substitutions
# Provenance of the source. Ways to find the original source, or verify that
# some source was used for this build.
# Corresponds to the JSON property `sourceProvenance`
# @return [Google::Apis::CloudbuildV1::SourceProvenance]
attr_accessor :source_provenance
# Time at which the request to create the build was received.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# A list of images to be pushed upon the successful completion of all build
# steps.
# The images will be pushed using the builder service account's credentials.
# The digests of the pushed images will be stored in the Build resource's
# results field.
# If any of the images fail to be pushed, the build is marked FAILURE.
# Corresponds to the JSON property `images`
# @return [Array<String>]
attr_accessor :images
# ID of the project.
# @OutputOnly.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# URL to logs for this build in Google Cloud Logging.
# @OutputOnly
# Corresponds to the JSON property `logUrl`
# @return [String]
attr_accessor :log_url
# Time at which execution of the build was finished.
# The difference between finish_time and start_time is the duration of the
# build's execution.
# @OutputOnly
# Corresponds to the JSON property `finishTime`
# @return [String]
attr_accessor :finish_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@options = args[:options] if args.key?(:options) @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)
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
@images = args[:images] if args.key?(:images)
@project_id = args[:project_id] if args.key?(:project_id)
@finish_time = args[:finish_time] if args.key?(:finish_time)
@log_url = args[:log_url] if args.key?(:log_url)
@source = args[:source] if args.key?(:source) @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_detail = args[:status_detail] if args.key?(:status_detail)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout) @timeout = args[:timeout] if args.key?(:timeout)
@results = args[:results] if args.key?(:results)
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket) @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@results = args[:results] if args.key?(:results)
@steps = args[:steps] if args.key?(:steps) @steps = args[:steps] if args.key?(:steps)
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id) @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
@tags = args[:tags] if args.key?(:tags) @tags = args[:tags] if args.key?(:tags)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@start_time = args[:start_time] if args.key?(:start_time)
@substitutions = args[:substitutions] if args.key?(:substitutions)
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
@create_time = args[:create_time] if args.key?(:create_time)
@images = args[:images] if args.key?(:images)
@project_id = args[:project_id] if args.key?(:project_id)
@log_url = args[:log_url] if args.key?(:log_url)
@finish_time = args[:finish_time] if args.key?(:finish_time)
end end
end end
@ -934,6 +856,84 @@ module Google
@builds = args[:builds] if args.key?(:builds) @builds = args[:builds] if args.key?(:builds)
end end
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 end
end end
end end

View File

@ -22,24 +22,6 @@ module Google
module Apis module Apis
module CloudbuildV1 module CloudbuildV1
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Source
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StorageSource class StorageSource
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -70,13 +52,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListBuildTriggersResponse class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Operation class ListBuildTriggersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -149,38 +131,29 @@ module Google
end end
class ListOperationsResponse class ListOperationsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
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
end include Google::Apis::Core::JsonObjectSupport
end end
class Source class Source
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation include Google::Apis::Core::JsonObjectSupport
end
end end
class BuildOptions class BuildOptions
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :source_provenance_hash, as: 'sourceProvenanceHash' include Google::Apis::Core::JsonObjectSupport
property :requested_verify_option, as: 'requestedVerifyOption'
end
end end
class StorageSource class StorageSource
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :generation, :numeric_string => true, as: 'generation'
property :bucket, as: 'bucket' property :bucket, as: 'bucket'
property :object, as: 'object' property :object, as: 'object'
property :generation, :numeric_string => true, as: 'generation'
end end
end end
@ -204,12 +177,12 @@ module Google
class SourceProvenance class SourceProvenance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
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 hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation 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 end
end end
@ -219,23 +192,23 @@ module Google
end end
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 Operation class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
hash :response, as: 'response' hash :response, as: 'response'
property :name, as: 'name' property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
hash :metadata, as: 'metadata' hash :metadata, as: 'metadata'
property :done, as: 'done'
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
end end
@ -273,8 +246,8 @@ module Google
property :entrypoint, as: 'entrypoint' property :entrypoint, as: 'entrypoint'
property :id, as: 'id' property :id, as: 'id'
property :dir, as: 'dir' property :dir, as: 'dir'
collection :env, as: 'env'
collection :wait_for, as: 'waitFor' collection :wait_for, as: 'waitFor'
collection :env, as: 'env'
collection :args, as: 'args' collection :args, as: 'args'
end end
end end
@ -305,46 +278,46 @@ module Google
class BuildTrigger class BuildTrigger
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime' property :filename, as: 'filename'
property :disabled, as: 'disabled'
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
property :filename, as: 'filename'
property :id, as: 'id' property :id, as: 'id'
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
hash :substitutions, as: 'substitutions' hash :substitutions, as: 'substitutions'
property :description, as: 'description' property :description, as: 'description'
property :disabled, as: 'disabled'
property :create_time, as: 'createTime'
end end
end end
class Build class Build
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation 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 :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_detail, as: 'statusDetail'
property :status, as: 'status' property :status, as: 'status'
property :timeout, as: 'timeout' property :timeout, as: 'timeout'
property :logs_bucket, as: 'logsBucket'
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
property :logs_bucket, as: 'logsBucket'
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
property :build_trigger_id, as: 'buildTriggerId' property :build_trigger_id, as: 'buildTriggerId'
collection :tags, as: 'tags' collection :tags, as: 'tags'
property :id, as: 'id' property :id, as: 'id'
property :start_time, as: 'startTime'
hash :substitutions, as: 'substitutions'
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
property :create_time, as: 'createTime'
collection :images, as: 'images'
property :project_id, as: 'projectId'
property :log_url, as: 'logUrl'
property :finish_time, as: 'finishTime'
end end
end end
@ -362,6 +335,33 @@ module Google
end end
end end
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
end
end
class Source
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
end
end
class BuildOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :source_provenance_hash, as: 'sourceProvenanceHash'
property :requested_verify_option, as: 'requestedVerifyOption'
end
end
end end
end end
end end

View File

@ -32,21 +32,142 @@ module Google
# #
# @see https://cloud.google.com/container-builder/docs/ # @see https://cloud.google.com/container-builder/docs/
class CloudBuildService < Google::Apis::Core::BaseService class CloudBuildService < Google::Apis::Core::BaseService
# @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] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # 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. # quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key 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
def initialize def initialize
super('https://cloudbuild.googleapis.com/', '') super('https://cloudbuild.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
end 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. # Returns information about a previously requested build.
# The Build that is returned includes its status (e.g., success or failure, # The Build that is returned includes its status (e.g., success or failure,
# or in-progress), and timing information. # or in-progress), and timing information.
@ -87,12 +208,12 @@ module Google
# successfully or unsuccessfully. # successfully or unsuccessfully.
# @param [String] project_id # @param [String] project_id
# ID of the project. # ID of the project.
# @param [String] filter
# The raw filter text to constrain the results.
# @param [String] page_token # @param [String] page_token
# Token to provide to skip to a particular spot in the list. # Token to provide to skip to a particular spot in the list.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Number of results to return in the list. # Number of results to return in the list.
# @param [String] filter
# The raw filter text to constrain the results.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # arbitrary string assigned to a user, but should not exceed 40 characters.
@ -110,14 +231,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block) def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options) command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
command.params['projectId'] = project_id unless project_id.nil? 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['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -195,6 +316,40 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes an BuildTrigger by its project ID and trigger ID.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to delete.
# @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 delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
command.response_class = Google::Apis::CloudbuildV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_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
# Gets information about a BuildTrigger. # Gets information about a BuildTrigger.
# This API is experimental. # This API is experimental.
# @param [String] project_id # @param [String] project_id
@ -331,166 +486,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes an BuildTrigger by its project ID and trigger ID.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to delete.
# @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 delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
command.response_class = Google::Apis::CloudbuildV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_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
# 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 protected
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil? command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end end
end end
end end

View File

@ -26,7 +26,7 @@ module Google
# @see http://cloud.google.com/debugger # @see http://cloud.google.com/debugger
module ClouddebuggerV2 module ClouddebuggerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20170413' REVISION = '20170518'
# Manage cloud debugger # Manage cloud debugger
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger' AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'

View File

@ -83,54 +83,6 @@ module Google
class Breakpoint class Breakpoint
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a location in the source code.
# Corresponds to the JSON property `location`
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
attr_accessor :location
# Time this breakpoint was finalized as seen by the server in seconds
# resolution.
# Corresponds to the JSON property `finalTime`
# @return [String]
attr_accessor :final_time
# The `variable_table` exists to aid with computation, memory and network
# traffic optimization. It enables storing a variable once and reference
# it from multiple variables, including variables stored in the
# `variable_table` itself.
# For example, the same `this` object, which may appear at many levels of
# the stack, can have all of its data stored once in this table. The
# stack frame variables then would hold only a reference to it.
# The variable `var_table_index` field is an index into this repeated field.
# The stored objects are nameless and get their name from the referencing
# variable. The effective variable is a merge of the referencing variable
# and the referenced variable.
# Corresponds to the JSON property `variableTable`
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
attr_accessor :variable_table
# A set of custom breakpoint properties, populated by the agent, to be
# displayed to the user.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Only relevant when action is `LOG`. Defines the message to log when
# the breakpoint hits. The message may include parameter placeholders `$0`,
# `$1`, etc. These placeholders are replaced with the evaluated value
# of the appropriate expression. Expressions not referenced in
# `log_message_format` are not logged.
# Example: `Message received, id = $0, count = $1` with
# `expressions` = `[ message.id, message.count ]`.
# Corresponds to the JSON property `logMessageFormat`
# @return [String]
attr_accessor :log_message_format
# Time this breakpoint was created by the server in seconds resolution.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# List of read-only expressions to evaluate at the breakpoint location. # List of read-only expressions to evaluate at the breakpoint location.
# The expressions are composed using expressions in the programming language # The expressions are composed using expressions in the programming language
# at the source location. If the breakpoint action is `LOG`, the evaluated # at the source location. If the breakpoint action is `LOG`, the evaluated
@ -199,18 +151,60 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# Represents a location in the source code.
# Corresponds to the JSON property `location`
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
attr_accessor :location
# Time this breakpoint was finalized as seen by the server in seconds
# resolution.
# Corresponds to the JSON property `finalTime`
# @return [String]
attr_accessor :final_time
# The `variable_table` exists to aid with computation, memory and network
# traffic optimization. It enables storing a variable once and reference
# it from multiple variables, including variables stored in the
# `variable_table` itself.
# For example, the same `this` object, which may appear at many levels of
# the stack, can have all of its data stored once in this table. The
# stack frame variables then would hold only a reference to it.
# The variable `var_table_index` field is an index into this repeated field.
# The stored objects are nameless and get their name from the referencing
# variable. The effective variable is a merge of the referencing variable
# and the referenced variable.
# Corresponds to the JSON property `variableTable`
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
attr_accessor :variable_table
# A set of custom breakpoint properties, populated by the agent, to be
# displayed to the user.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Only relevant when action is `LOG`. Defines the message to log when
# the breakpoint hits. The message may include parameter placeholders `$0`,
# `$1`, etc. These placeholders are replaced with the evaluated value
# of the appropriate expression. Expressions not referenced in
# `log_message_format` are not logged.
# Example: `Message received, id = $0, count = $1` with
# `expressions` = `[ message.id, message.count ]`.
# Corresponds to the JSON property `logMessageFormat`
# @return [String]
attr_accessor :log_message_format
# Time this breakpoint was created by the server in seconds resolution.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@location = args[:location] if args.key?(:location)
@final_time = args[:final_time] if args.key?(:final_time)
@variable_table = args[:variable_table] if args.key?(:variable_table)
@labels = args[:labels] if args.key?(:labels)
@log_message_format = args[:log_message_format] if args.key?(:log_message_format)
@create_time = args[:create_time] if args.key?(:create_time)
@expressions = args[:expressions] if args.key?(:expressions) @expressions = args[:expressions] if args.key?(:expressions)
@evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions) @evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions)
@is_final_state = args[:is_final_state] if args.key?(:is_final_state) @is_final_state = args[:is_final_state] if args.key?(:is_final_state)
@ -221,6 +215,12 @@ module Google
@action = args[:action] if args.key?(:action) @action = args[:action] if args.key?(:action)
@log_level = args[:log_level] if args.key?(:log_level) @log_level = args[:log_level] if args.key?(:log_level)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@location = args[:location] if args.key?(:location)
@final_time = args[:final_time] if args.key?(:final_time)
@variable_table = args[:variable_table] if args.key?(:variable_table)
@labels = args[:labels] if args.key?(:labels)
@log_message_format = args[:log_message_format] if args.key?(:log_message_format)
@create_time = args[:create_time] if args.key?(:create_time)
end end
end end
@ -553,11 +553,6 @@ module Google
class Variable class Variable
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Members contained or pointed to by the variable.
# Corresponds to the JSON property `members`
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
attr_accessor :members
# Represents a contextual status message. # Represents a contextual status message.
# The message can indicate an error or informational status, and refer to # The message can indicate an error or informational status, and refer to
# specific parts of the containing object. # specific parts of the containing object.
@ -592,18 +587,23 @@ module Google
# @return [String] # @return [String]
attr_accessor :value attr_accessor :value
# Members contained or pointed to by the variable.
# Corresponds to the JSON property `members`
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
attr_accessor :members
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@members = args[:members] if args.key?(:members)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type) @type = args[:type] if args.key?(:type)
@var_table_index = args[:var_table_index] if args.key?(:var_table_index) @var_table_index = args[:var_table_index] if args.key?(:var_table_index)
@value = args[:value] if args.key?(:value) @value = args[:value] if args.key?(:value)
@members = args[:members] if args.key?(:members)
end end
end end
@ -611,16 +611,6 @@ module Google
class StackFrame class StackFrame
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a location in the source code.
# Corresponds to the JSON property `location`
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
attr_accessor :location
# Demangled function name at the call site.
# Corresponds to the JSON property `function`
# @return [String]
attr_accessor :function
# Set of arguments passed to this function. # Set of arguments passed to this function.
# Note that this might not be populated for all stack frames. # Note that this might not be populated for all stack frames.
# Corresponds to the JSON property `arguments` # Corresponds to the JSON property `arguments`
@ -633,16 +623,26 @@ module Google
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>] # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
attr_accessor :locals attr_accessor :locals
# Represents a location in the source code.
# Corresponds to the JSON property `location`
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
attr_accessor :location
# Demangled function name at the call site.
# Corresponds to the JSON property `function`
# @return [String]
attr_accessor :function
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@location = args[:location] if args.key?(:location)
@function = args[:function] if args.key?(:function)
@arguments = args[:arguments] if args.key?(:arguments) @arguments = args[:arguments] if args.key?(:arguments)
@locals = args[:locals] if args.key?(:locals) @locals = args[:locals] if args.key?(:locals)
@location = args[:location] if args.key?(:location)
@function = args[:function] if args.key?(:function)
end end
end end
@ -676,11 +676,6 @@ module Google
class FormatMessage class FormatMessage
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional parameters to be embedded into the message.
# Corresponds to the JSON property `parameters`
# @return [Array<String>]
attr_accessor :parameters
# Format template for the message. The `format` uses placeholders `$0`, # Format template for the message. The `format` uses placeholders `$0`,
# `$1`, etc. to reference parameters. `$$` can be used to denote the `$` # `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
# character. # character.
@ -692,14 +687,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :format attr_accessor :format
# Optional parameters to be embedded into the message.
# Corresponds to the JSON property `parameters`
# @return [Array<String>]
attr_accessor :parameters
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@parameters = args[:parameters] if args.key?(:parameters)
@format = args[:format] if args.key?(:format) @format = args[:format] if args.key?(:format)
@parameters = args[:parameters] if args.key?(:parameters)
end end
end end
@ -708,25 +708,25 @@ module Google
class ExtendedSourceContext class ExtendedSourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Labels with user defined metadata.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# A SourceContext is a reference to a tree of files. A SourceContext together # A SourceContext is a reference to a tree of files. A SourceContext together
# with a path point to a unique revision of a single file or directory. # with a path point to a unique revision of a single file or directory.
# Corresponds to the JSON property `context` # Corresponds to the JSON property `context`
# @return [Google::Apis::ClouddebuggerV2::SourceContext] # @return [Google::Apis::ClouddebuggerV2::SourceContext]
attr_accessor :context attr_accessor :context
# Labels with user defined metadata.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@context = args[:context] if args.key?(:context)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@context = args[:context] if args.key?(:context)
end end
end end
@ -801,24 +801,24 @@ module Google
class SourceLocation class SourceLocation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Path to the source file within the source context of the target binary.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
# Line inside the file. The first line in the file has the value `1`. # Line inside the file. The first line in the file has the value `1`.
# Corresponds to the JSON property `line` # Corresponds to the JSON property `line`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :line attr_accessor :line
# Path to the source file within the source context of the target binary.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@path = args[:path] if args.key?(:path)
@line = args[:line] if args.key?(:line) @line = args[:line] if args.key?(:line)
@path = args[:path] if args.key?(:path)
end end
end end
@ -830,6 +830,15 @@ module Google
class Debuggee class Debuggee
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# References to the locations and revisions of the source code used in the
# deployed application.
# Contexts describing a remote repo related to the source code
# have a `category` label of `remote_repo`. Source snapshot source
# contexts have a `category` of `snapshot`.
# Corresponds to the JSON property `extSourceContexts`
# @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
attr_accessor :ext_source_contexts
# A set of custom debuggee properties, populated by the agent, to be # A set of custom debuggee properties, populated by the agent, to be
# displayed to the user. # displayed to the user.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
@ -858,10 +867,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :project attr_accessor :project
# Unique identifier for the debuggee generated by the controller service. # If set to `true`, indicates that the agent should disable itself and
# Corresponds to the JSON property `id` # detach from the debuggee.
# @return [String] # Corresponds to the JSON property `isDisabled`
attr_accessor :id # @return [Boolean]
attr_accessor :is_disabled
alias_method :is_disabled?, :is_disabled
# Version ID of the agent release. The version ID is structured as # Version ID of the agent release. The version ID is structured as
# following: `domain/type/vmajor.minor` (for example # following: `domain/type/vmajor.minor` (for example
@ -870,19 +881,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :agent_version attr_accessor :agent_version
# If set to `true`, indicates that the agent should disable itself and # Unique identifier for the debuggee generated by the controller service.
# detach from the debuggee. # Corresponds to the JSON property `id`
# Corresponds to the JSON property `isDisabled`
# @return [Boolean]
attr_accessor :is_disabled
alias_method :is_disabled?, :is_disabled
# Debuggee uniquifier within the project.
# Any string that identifies the application within the project can be used.
# Including environment and version or build IDs is recommended.
# Corresponds to the JSON property `uniquifier`
# @return [String] # @return [String]
attr_accessor :uniquifier attr_accessor :id
# Human readable description of the debuggee. # Human readable description of the debuggee.
# Including a human-readable project name, environment name and version # Including a human-readable project name, environment name and version
@ -891,6 +893,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Debuggee uniquifier within the project.
# Any string that identifies the application within the project can be used.
# Including environment and version or build IDs is recommended.
# Corresponds to the JSON property `uniquifier`
# @return [String]
attr_accessor :uniquifier
# References to the locations and revisions of the source code used in the # References to the locations and revisions of the source code used in the
# deployed application. # deployed application.
# NOTE: This field is deprecated. Consumers should use # NOTE: This field is deprecated. Consumers should use
@ -900,32 +909,23 @@ module Google
# @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>] # @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>]
attr_accessor :source_contexts attr_accessor :source_contexts
# References to the locations and revisions of the source code used in the
# deployed application.
# Contexts describing a remote repo related to the source code
# have a `category` label of `remote_repo`. Source snapshot source
# contexts have a `category` of `snapshot`.
# Corresponds to the JSON property `extSourceContexts`
# @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
attr_accessor :ext_source_contexts
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@is_inactive = args[:is_inactive] if args.key?(:is_inactive) @is_inactive = args[:is_inactive] if args.key?(:is_inactive)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@project = args[:project] if args.key?(:project) @project = args[:project] if args.key?(:project)
@id = args[:id] if args.key?(:id)
@agent_version = args[:agent_version] if args.key?(:agent_version)
@is_disabled = args[:is_disabled] if args.key?(:is_disabled) @is_disabled = args[:is_disabled] if args.key?(:is_disabled)
@uniquifier = args[:uniquifier] if args.key?(:uniquifier) @agent_version = args[:agent_version] if args.key?(:agent_version)
@id = args[:id] if args.key?(:id)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@uniquifier = args[:uniquifier] if args.key?(:uniquifier)
@source_contexts = args[:source_contexts] if args.key?(:source_contexts) @source_contexts = args[:source_contexts] if args.key?(:source_contexts)
@ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
end end
end end
@ -1018,20 +1018,6 @@ module Google
end end
end end
# Response for updating an active breakpoint.
# The message is defined to allow future extensions.
class UpdateActiveBreakpointResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
class GerritSourceContext class GerritSourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1076,6 +1062,20 @@ module Google
@alias_context = args[:alias_context] if args.key?(:alias_context) @alias_context = args[:alias_context] if args.key?(:alias_context)
end end
end end
# Response for updating an active breakpoint.
# The message is defined to allow future extensions.
class UpdateActiveBreakpointResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
end end
end end
end end

View File

@ -172,13 +172,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UpdateActiveBreakpointResponse class GerritSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GerritSourceContext class UpdateActiveBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -205,14 +205,6 @@ module Google
class Breakpoint class Breakpoint
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
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'
collection :expressions, as: 'expressions' collection :expressions, as: 'expressions'
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
@ -226,6 +218,14 @@ module Google
property :action, as: 'action' property :action, as: 'action'
property :log_level, as: 'logLevel' property :log_level, as: 'logLevel'
property :id, as: 'id' 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 end
end end
@ -316,27 +316,27 @@ module Google
class Variable class Variable
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
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 :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :name, as: 'name' property :name, as: 'name'
property :type, as: 'type' property :type, as: 'type'
property :var_table_index, as: 'varTableIndex' property :var_table_index, as: 'varTableIndex'
property :value, as: 'value' property :value, as: 'value'
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
end end
end end
class StackFrame class StackFrame
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
property :function, as: 'function'
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation 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 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
end end
@ -352,17 +352,17 @@ module Google
class FormatMessage class FormatMessage
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :parameters, as: 'parameters'
property :format, as: 'format' property :format, as: 'format'
collection :parameters, as: 'parameters'
end end
end end
class ExtendedSourceContext class ExtendedSourceContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 property :context, as: 'context', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
hash :labels, as: 'labels'
end end
end end
@ -391,28 +391,28 @@ module Google
class SourceLocation class SourceLocation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :line, as: 'line' property :line, as: 'line'
property :path, as: 'path'
end end
end end
class Debuggee class Debuggee
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :is_inactive, as: 'isInactive' property :is_inactive, as: 'isInactive'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :project, as: 'project' property :project, as: 'project'
property :id, as: 'id'
property :agent_version, as: 'agentVersion'
property :is_disabled, as: 'isDisabled' property :is_disabled, as: 'isDisabled'
property :uniquifier, as: 'uniquifier' property :agent_version, as: 'agentVersion'
property :id, as: 'id'
property :description, as: 'description' property :description, as: 'description'
property :uniquifier, as: 'uniquifier'
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
end end
end end
@ -443,12 +443,6 @@ module Google
end end
end end
class UpdateActiveBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GerritSourceContext class GerritSourceContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -460,6 +454,12 @@ module Google
end end
end end
class UpdateActiveBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
end end
end end
end end

View File

@ -49,19 +49,19 @@ module Google
end end
# Lists all the debuggees that the user can set breakpoints to. # Lists all the debuggees that the user can set breakpoints to.
# @param [String] project
# Project number of a Google Cloud project whose debuggees to list.
# @param [String] client_version # @param [String] client_version
# The client version making the call. # The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [Boolean] include_inactive # @param [Boolean] include_inactive
# When set to `true`, the result includes all debuggees. Otherwise, the # When set to `true`, the result includes all debuggees. Otherwise, the
# result includes only debuggees that are active. # result includes only debuggees that are active.
# @param [String] fields # @param [String] project
# Selector specifying which fields to include in a partial response. # Project number of a Google Cloud project whose debuggees to list.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -74,15 +74,15 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_debugger_debuggees(project: nil, client_version: nil, include_inactive: nil, fields: nil, quota_user: nil, options: nil, &block) def list_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/debugger/debuggees', options) command = make_simple_command(:get, 'v2/debugger/debuggees', options)
command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
command.query['project'] = project unless project.nil?
command.query['clientVersion'] = client_version unless client_version.nil? command.query['clientVersion'] = client_version unless client_version.nil?
command.query['includeInactive'] = include_inactive unless include_inactive.nil? command.query['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['fields'] = fields unless fields.nil? command.query['project'] = project unless project.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -93,11 +93,11 @@ module Google
# @param [String] client_version # @param [String] client_version
# The client version making the call. # The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -110,7 +110,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options) command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
command.request_object = breakpoint_object command.request_object = breakpoint_object
@ -118,8 +118,8 @@ module Google
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['clientVersion'] = client_version unless client_version.nil? command.query['clientVersion'] = client_version unless client_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -131,11 +131,11 @@ module Google
# @param [String] client_version # @param [String] client_version
# The client version making the call. # The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -148,15 +148,15 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
command.response_class = Google::Apis::ClouddebuggerV2::Empty command.response_class = Google::Apis::ClouddebuggerV2::Empty
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.nil? command.query['clientVersion'] = client_version unless client_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -168,11 +168,11 @@ module Google
# @param [String] client_version # @param [String] client_version
# The client version making the call. # The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -185,21 +185,32 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options) command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.nil? command.query['clientVersion'] = client_version unless client_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all breakpoints for the debuggee. # Lists all breakpoints for the debuggee.
# @param [String] debuggee_id # @param [String] debuggee_id
# ID of the debuggee whose breakpoints to list. # 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] strip_results # @param [Boolean] strip_results
# This field is deprecated. The following fields are always stripped out of # This field is deprecated. The following fields are always stripped out of
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`. # the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
@ -209,22 +220,11 @@ module Google
# should be set from the last response. The error code # should be set from the last response. The error code
# `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which # `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
# should be called again with the same `wait_token`. # should be called again with the same `wait_token`.
# @param [String] action_value
# Only breakpoints with the specified action will pass the filter.
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -237,19 +237,19 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_debugger_debuggee_breakpoints(debuggee_id, strip_results: nil, wait_token: nil, action_value: nil, client_version: nil, include_inactive: nil, include_all_users: nil, fields: nil, quota_user: nil, options: nil, &block) 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)
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options) command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['stripResults'] = strip_results unless strip_results.nil?
command.query['waitToken'] = wait_token unless wait_token.nil?
command.query['action.value'] = action_value unless action_value.nil?
command.query['clientVersion'] = client_version unless client_version.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['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil? command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
command.query['fields'] = fields unless fields.nil? command.query['stripResults'] = strip_results unless strip_results.nil?
command.query['waitToken'] = wait_token unless wait_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -262,11 +262,11 @@ module Google
# data loss. If the debuggee is disabled by the server, the response will # data loss. If the debuggee is disabled by the server, the response will
# have `is_disabled` set to `true`. # have `is_disabled` set to `true`.
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object # @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -279,14 +279,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def register_debuggee(register_debuggee_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def register_debuggee(register_debuggee_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/controller/debuggees/register', options) command = make_simple_command(:post, 'v2/controller/debuggees/register', options)
command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
command.request_object = register_debuggee_request_object command.request_object = register_debuggee_request_object
command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -303,21 +303,21 @@ module Google
# setting those breakpoints again. # setting those breakpoints again.
# @param [String] debuggee_id # @param [String] debuggee_id
# Identifies the debuggee. # Identifies the debuggee.
# @param [String] wait_token
# A wait token that, if specified, blocks the method call until the list
# of active breakpoints has changed, or a server selected timeout has
# expired. The value should be set from the last returned response.
# @param [Boolean] success_on_timeout # @param [Boolean] success_on_timeout
# If set to `true`, returns `google.rpc.Code.OK` status and sets the # If set to `true`, returns `google.rpc.Code.OK` status and sets the
# `wait_expired` response field to `true` when the server-selected timeout # `wait_expired` response field to `true` when the server-selected timeout
# has expired (recommended). # has expired (recommended).
# If set to `false`, returns `google.rpc.Code.ABORTED` status when the # If set to `false`, returns `google.rpc.Code.ABORTED` status when the
# server-selected timeout has expired (deprecated). # server-selected timeout has expired (deprecated).
# @param [String] fields # @param [String] wait_token
# Selector specifying which fields to include in a partial response. # A wait token that, if specified, blocks the method call until the list
# of active breakpoints has changed, or a server selected timeout has
# expired. The value should be set from the last returned response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -330,15 +330,15 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_controller_debuggee_breakpoints(debuggee_id, wait_token: nil, success_on_timeout: nil, fields: nil, quota_user: nil, options: nil, &block) def list_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options) command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['waitToken'] = wait_token unless wait_token.nil?
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil? command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
command.query['fields'] = fields unless fields.nil? command.query['waitToken'] = wait_token unless wait_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -355,11 +355,11 @@ module Google
# @param [String] id # @param [String] id
# Breakpoint identifier, unique in the scope of the debuggee. # Breakpoint identifier, unique in the scope of the debuggee.
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object # @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -372,7 +372,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) 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 = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
command.request_object = update_active_breakpoint_request_object command.request_object = update_active_breakpoint_request_object
@ -380,8 +380,8 @@ module Google
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['id'] = id unless id.nil? command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end

View File

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

View File

@ -22,10 +22,115 @@ module Google
module Apis module Apis
module ClouderrorreportingV1beta1 module ClouderrorreportingV1beta1
# A reference to a particular snapshot of the source tree used to build and
# deploy an application.
class SourceReference
include Google::Apis::Core::Hashable
# Optional. A URI string identifying the repository.
# Example: "https://github.com/GoogleCloudPlatform/kubernetes.git"
# Corresponds to the JSON property `repository`
# @return [String]
attr_accessor :repository
# The canonical and persistent identifier of the deployed revision.
# Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b"
# Corresponds to the JSON property `revisionId`
# @return [String]
attr_accessor :revision_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@repository = args[:repository] if args.key?(:repository)
@revision_id = args[:revision_id] if args.key?(:revision_id)
end
end
# Response message for deleting error events.
class DeleteEventsResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# An error event which is returned by the Error Reporting system.
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.
# 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
# The stack trace that was reported or logged by the service.
# 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)
@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. # An error event which is reported to the Error Reporting system.
class ReportedErrorEvent class ReportedErrorEvent
include Google::Apis::Core::Hashable 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
# 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
# [Required] The error message. # [Required] The error message.
# If no `context.reportLocation` is provided, the message must contain a # If no `context.reportLocation` is provided, the message must contain a
# header (typically consisting of the exception type name and an error # header (typically consisting of the exception type name and an error
@ -54,37 +159,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :message 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) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@message = args[:message] if args.key?(:message)
@service_context = args[:service_context] if args.key?(:service_context) @service_context = args[:service_context] if args.key?(:service_context)
@event_time = args[:event_time] if args.key?(:event_time) @event_time = args[:event_time] if args.key?(:event_time)
@context = args[:context] if args.key?(:context) @context = args[:context] if args.key?(:context)
@message = args[:message] if args.key?(:message)
end end
end end
@ -95,6 +179,18 @@ module Google
class ErrorContext class ErrorContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The user who caused or was affected by the crash.
# This can be a user ID, an email address, or an arbitrary token that
# uniquely identifies the user.
# When sending an error report, leave this field empty if the user was not
# logged in. In this case the
# Error Reporting system will use other data, such as remote IP address, to
# distinguish affected users. See `affected_users_count` in
# `ErrorGroupStats`.
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
# Indicates a location in the source code of the service for which errors are # Indicates a location in the source code of the service for which errors are
# reported. `functionName` must be provided by the application when reporting # reported. `functionName` must be provided by the application when reporting
# an error, unless the error report contains a `message` with a supported # an error, unless the error report contains a `message` with a supported
@ -117,28 +213,16 @@ module Google
# @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext] # @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext]
attr_accessor :http_request attr_accessor :http_request
# The user who caused or was affected by the crash.
# This can be a user ID, an email address, or an arbitrary token that
# uniquely identifies the user.
# When sending an error report, leave this field empty if the user was not
# logged in. In this case the
# Error Reporting system will use other data, such as remote IP address, to
# distinguish affected users. See `affected_users_count` in
# `ErrorGroupStats`.
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@user = args[:user] if args.key?(:user)
@report_location = args[:report_location] if args.key?(:report_location) @report_location = args[:report_location] if args.key?(:report_location)
@source_references = args[:source_references] if args.key?(:source_references) @source_references = args[:source_references] if args.key?(:source_references)
@http_request = args[:http_request] if args.key?(:http_request) @http_request = args[:http_request] if args.key?(:http_request)
@user = args[:user] if args.key?(:user)
end end
end end
@ -167,11 +251,6 @@ module Google
class ErrorGroupStats class ErrorGroupStats
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An error event which is returned by the Error Reporting system.
# Corresponds to the JSON property `representative`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent]
attr_accessor :representative
# Approximate number of occurrences over time. # Approximate number of occurrences over time.
# Timed counts returned by ListGroups are guaranteed to be: # Timed counts returned by ListGroups are guaranteed to be:
# - Inside the requested time interval # - Inside the requested time interval
@ -199,13 +278,6 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :count attr_accessor :count
# Approximate last 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 `lastSeenTime`
# @return [String]
attr_accessor :last_seen_time
# Approximate number of affected users in the given group that # Approximate number of affected users in the given group that
# match the filter criteria. # match the filter criteria.
# Users are distinguished by data in the `ErrorContext` of the # Users are distinguished by data in the `ErrorContext` of the
@ -222,11 +294,12 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :affected_users_count attr_accessor :affected_users_count
# The total number of services with a non-zero error count for the given # Approximate last occurrence that was ever seen for this group and
# filter criteria. # which matches the given filter criteria, ignoring the time_range
# Corresponds to the JSON property `numAffectedServices` # that was specified in the request.
# @return [Fixnum] # Corresponds to the JSON property `lastSeenTime`
attr_accessor :num_affected_services # @return [String]
attr_accessor :last_seen_time
# Service contexts with a non-zero error count for the given filter # Service contexts with a non-zero error count for the given filter
# criteria. This list can be truncated if multiple services are affected. # criteria. This list can be truncated if multiple services are affected.
@ -235,21 +308,32 @@ module Google
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ServiceContext>] # @return [Array<Google::Apis::ClouderrorreportingV1beta1::ServiceContext>]
attr_accessor :affected_services attr_accessor :affected_services
# The total number of services with a non-zero error count for the given
# filter criteria.
# Corresponds to the JSON property `numAffectedServices`
# @return [Fixnum]
attr_accessor :num_affected_services
# An error event which is returned by the Error Reporting system.
# Corresponds to the JSON property `representative`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent]
attr_accessor :representative
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@representative = args[:representative] if args.key?(:representative)
@timed_counts = args[:timed_counts] if args.key?(:timed_counts) @timed_counts = args[:timed_counts] if args.key?(:timed_counts)
@group = args[:group] if args.key?(:group) @group = args[:group] if args.key?(:group)
@first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time) @first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time)
@count = args[:count] if args.key?(:count) @count = args[:count] if args.key?(:count)
@last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time)
@affected_users_count = args[:affected_users_count] if args.key?(:affected_users_count) @affected_users_count = args[:affected_users_count] if args.key?(:affected_users_count)
@num_affected_services = args[:num_affected_services] if args.key?(:num_affected_services) @last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time)
@affected_services = args[:affected_services] if args.key?(:affected_services) @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)
end end
end end
@ -257,13 +341,6 @@ module Google
class ListEventsResponse class ListEventsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# 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
# The timestamp specifies the start time to which the request was restricted. # The timestamp specifies the start time to which the request was restricted.
# Corresponds to the JSON property `timeRangeBegin` # Corresponds to the JSON property `timeRangeBegin`
# @return [String] # @return [String]
@ -274,15 +351,22 @@ module Google
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorEvent>] # @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorEvent>]
attr_accessor :error_events attr_accessor :error_events
# 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) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@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) @time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
@error_events = args[:error_events] if args.key?(:error_events) @error_events = args[:error_events] if args.key?(:error_events)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end end
end end
@ -292,6 +376,11 @@ module Google
class TimedCount class TimedCount
include Google::Apis::Core::Hashable 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. # Approximate number of occurrences in the given time period.
# Corresponds to the JSON property `count` # Corresponds to the JSON property `count`
# @return [Fixnum] # @return [Fixnum]
@ -302,20 +391,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :start_time 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) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@count = args[:count] if args.key?(:count) @count = args[:count] if args.key?(:count)
@start_time = args[:start_time] if args.key?(:start_time) @start_time = args[:start_time] if args.key?(:start_time)
@end_time = args[:end_time] if args.key?(:end_time)
end end
end end
@ -323,6 +407,12 @@ module Google
class ErrorGroup class ErrorGroup
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The group resource name.
# Example: <code>projects/my-project-123/groups/my-groupid</code>
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Group IDs are unique for a given project. If the same kind of error # Group IDs are unique for a given project. If the same kind of error
# occurs in different service contexts, it will receive the same group ID. # occurs in different service contexts, it will receive the same group ID.
# Corresponds to the JSON property `groupId` # Corresponds to the JSON property `groupId`
@ -334,21 +424,15 @@ module Google
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TrackingIssue>] # @return [Array<Google::Apis::ClouderrorreportingV1beta1::TrackingIssue>]
attr_accessor :tracking_issues attr_accessor :tracking_issues
# The group resource name.
# Example: <code>projects/my-project-123/groups/my-groupid</code>
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@name = args[:name] if args.key?(:name)
@group_id = args[:group_id] if args.key?(:group_id) @group_id = args[:group_id] if args.key?(:group_id)
@tracking_issues = args[:tracking_issues] if args.key?(:tracking_issues) @tracking_issues = args[:tracking_issues] if args.key?(:tracking_issues)
@name = args[:name] if args.key?(:name)
end end
end end
@ -394,14 +478,6 @@ module Google
class ServiceContext class ServiceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Type of the MonitoredResource. List of possible values:
# https://cloud.google.com/monitoring/api/resources
# Value is set automatically for incoming errors and must not be set when
# reporting errors.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
# Represents the source code version that the developer provided, # Represents the source code version that the developer provided,
# which could represent a version label or a Git SHA-1 hash, for example. # which could represent a version label or a Git SHA-1 hash, for example.
# For App Engine standard environment, the version is set to the version of # For App Engine standard environment, the version is set to the version of
@ -420,15 +496,23 @@ module Google
# @return [String] # @return [String]
attr_accessor :service attr_accessor :service
# Type of the MonitoredResource. List of possible values:
# https://cloud.google.com/monitoring/api/resources
# Value is set automatically for incoming errors and must not be set when
# reporting errors.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@resource_type = args[:resource_type] if args.key?(:resource_type)
@version = args[:version] if args.key?(:version) @version = args[:version] if args.key?(:version)
@service = args[:service] if args.key?(:service) @service = args[:service] if args.key?(:service)
@resource_type = args[:resource_type] if args.key?(:resource_type)
end end
end end
@ -505,13 +589,6 @@ module Google
class ListGroupStatsResponse class ListGroupStatsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# 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
# The timestamp specifies the start time to which the request was restricted. # 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 # 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 # to a later time if a project has exceeded the storage quota and older data
@ -525,99 +602,22 @@ module Google
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>] # @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>]
attr_accessor :error_group_stats 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) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@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) @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) @error_group_stats = args[:error_group_stats] if args.key?(:error_group_stats)
end @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
# Response message for deleting error events.
class DeleteEventsResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A reference to a particular snapshot of the source tree used to build and
# deploy an application.
class SourceReference
include Google::Apis::Core::Hashable
# Optional. A URI string identifying the repository.
# Example: "https://github.com/GoogleCloudPlatform/kubernetes.git"
# Corresponds to the JSON property `repository`
# @return [String]
attr_accessor :repository
# The canonical and persistent identifier of the deployed revision.
# Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b"
# Corresponds to the JSON property `revisionId`
# @return [String]
attr_accessor :revision_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@repository = args[:repository] if args.key?(:repository)
@revision_id = args[:revision_id] if args.key?(:revision_id)
end
end
# An error event which is returned by the Error Reporting system.
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.
# 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
# The stack trace that was reported or logged by the service.
# 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)
@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
end end
end end

View File

@ -22,6 +22,24 @@ module Google
module Apis module Apis
module ClouderrorreportingV1beta1 module ClouderrorreportingV1beta1
class SourceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeleteEventsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ErrorEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportedErrorEvent class ReportedErrorEvent
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -94,46 +112,54 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DeleteEventsResponse class SourceReference
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :repository, as: 'repository'
property :revision_id, as: 'revisionId'
end
end end
class SourceReference class DeleteEventsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport end
end end
class ErrorEvent class ErrorEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportedErrorEvent
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
property :event_time, as: 'eventTime' property :event_time, as: 'eventTime'
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
property :message, as: 'message'
end
end
class ReportedErrorEvent
# @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'
end end
end end
class ErrorContext class ErrorContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :user, as: 'user'
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
collection :source_references, as: 'sourceReferences', class: Google::Apis::ClouderrorreportingV1beta1::SourceReference, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceReference::Representation collection :source_references, as: 'sourceReferences', class: Google::Apis::ClouderrorreportingV1beta1::SourceReference, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceReference::Representation
property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
property :user, as: 'user'
end end
end end
@ -147,48 +173,48 @@ module Google
class ErrorGroupStats class ErrorGroupStats
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
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 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 :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
property :first_seen_time, as: 'firstSeenTime' property :first_seen_time, as: 'firstSeenTime'
property :count, :numeric_string => true, as: 'count' property :count, :numeric_string => true, as: 'count'
property :last_seen_time, as: 'lastSeenTime'
property :affected_users_count, :numeric_string => true, as: 'affectedUsersCount' property :affected_users_count, :numeric_string => true, as: 'affectedUsersCount'
property :num_affected_services, as: 'numAffectedServices' property :last_seen_time, as: 'lastSeenTime'
collection :affected_services, as: 'affectedServices', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation collection :affected_services, as: 'affectedServices', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
property :num_affected_services, as: 'numAffectedServices'
property :representative, as: 'representative', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
end end
end end
class ListEventsResponse class ListEventsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :time_range_begin, as: 'timeRangeBegin' property :time_range_begin, as: 'timeRangeBegin'
collection :error_events, as: 'errorEvents', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation collection :error_events, as: 'errorEvents', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
class TimedCount class TimedCount
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :count, :numeric_string => true, as: 'count' property :count, :numeric_string => true, as: 'count'
property :start_time, as: 'startTime' property :start_time, as: 'startTime'
property :end_time, as: 'endTime'
end end
end end
class ErrorGroup class ErrorGroup
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :group_id, as: 'groupId' property :group_id, as: 'groupId'
collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation
property :name, as: 'name'
end end
end end
@ -204,9 +230,9 @@ module Google
class ServiceContext class ServiceContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :resource_type, as: 'resourceType'
property :version, as: 'version' property :version, as: 'version'
property :service, as: 'service' property :service, as: 'service'
property :resource_type, as: 'resourceType'
end end
end end
@ -231,36 +257,10 @@ module Google
class ListGroupStatsResponse class ListGroupStatsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :time_range_begin, as: 'timeRangeBegin' property :time_range_begin, as: 'timeRangeBegin'
collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation
end property :next_page_token, as: 'nextPageToken'
end
class DeleteEventsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SourceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repository, as: 'repository'
property :revision_id, as: 'revisionId'
end
end
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'
end end
end end
end end

View File

@ -55,11 +55,11 @@ module Google
# [Google Cloud Platform project # [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840). # ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`. # Example: `projects/my-project-123`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -72,118 +72,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_events(project_name, quota_user: nil, fields: nil, options: nil, &block) def delete_project_events(project_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+projectName}/events', options) command = make_simple_command(:delete, 'v1beta1/{+projectName}/events', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse::Representation command.response_representation = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse command.response_class = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse
command.params['projectName'] = project_name unless project_name.nil? command.params['projectName'] = project_name unless project_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Report an individual error event.
# This endpoint accepts <strong>either</strong> an OAuth token,
# <strong>or</strong> an
# <a href="https://support.google.com/cloud/answer/6158862">API key</a>
# for authentication. To use an API key, append it to the URL as the value of
# a `key` parameter. For example:
# <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
# project/events:report?key=123ABC456</pre>
# @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 [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_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::ClouderrorreportingV1beta1::ReportErrorEventResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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, 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['quotaUser'] = quota_user unless quota_user.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] 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] 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] 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, service_filter_resource_type: nil, time_range_period: nil, group_id: nil, page_token: nil, service_filter_service: nil, page_size: nil, service_filter_version: 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['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['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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -196,11 +91,11 @@ module Google
# <code>groupStats.list</code></a> to return a list of groups belonging to # <code>groupStats.list</code></a> to return a list of groups belonging to
# this project. # this project.
# Example: <code>projects/my-project-123/groups/my-group</code> # 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 # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -213,13 +108,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_group(group_name, quota_user: nil, fields: nil, options: nil, &block) def get_project_group(group_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+groupName}', options) command = make_simple_command(:get, 'v1beta1/{+groupName}', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup
command.params['groupName'] = group_name unless group_name.nil? command.params['groupName'] = group_name unless group_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -229,11 +124,11 @@ module Google
# The group resource name. # The group resource name.
# Example: <code>projects/my-project-123/groups/my-groupid</code> # Example: <code>projects/my-project-123/groups/my-groupid</code>
# @param [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup] error_group_object # @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 # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -246,15 +141,15 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project_group(name, error_group_object = nil, quota_user: nil, fields: nil, options: nil, &block) def update_project_group(name, error_group_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options) command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
command.request_object = error_group_object command.request_object = error_group_object
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup
command.params['name'] = name unless name.nil? command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -286,13 +181,13 @@ module Google
# @param [Fixnum] page_size # @param [Fixnum] page_size
# [Optional] The maximum number of results to return per response. # [Optional] The maximum number of results to return per response.
# Default is 20. # Default is 20.
# @param [String] order
# [Optional] The sort order in which the results are returned.
# Default is `COUNT_DESC`.
# @param [String] service_filter_version # @param [String] service_filter_version
# [Optional] The exact value to match against # [Optional] The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ # [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version). # ServiceContext#FIELDS.version).
# @param [String] order
# [Optional] The sort order in which the results are returned.
# Default is `COUNT_DESC`.
# @param [String] service_filter_resource_type # @param [String] service_filter_resource_type
# [Optional] The exact value to match against # [Optional] The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ # [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
@ -300,11 +195,11 @@ module Google
# @param [String] alignment_time # @param [String] alignment_time
# [Optional] Time where the timed counts shall be aligned if rounded # [Optional] Time where the timed counts shall be aligned if rounded
# alignment is chosen. Default is 00:00 UTC. # 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 # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -317,7 +212,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @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, service_filter_version: nil, order: nil, service_filter_resource_type: nil, alignment_time: nil, quota_user: nil, fields: nil, options: nil, &block) 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)
command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options) command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse
@ -329,12 +224,117 @@ module Google
command.query['groupId'] = group_id unless group_id.nil? command.query['groupId'] = group_id unless group_id.nil?
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil? command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
command.query['order'] = order unless order.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['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
command.query['alignmentTime'] = alignment_time unless alignment_time.nil? command.query['alignmentTime'] = alignment_time unless alignment_time.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Report an individual error event.
# This endpoint accepts <strong>either</strong> an OAuth token,
# <strong>or</strong> an
# <a href="https://support.google.com/cloud/answer/6158862">API key</a>
# for authentication. To use an API key, append it to the URL as the value of
# a `key` parameter. For example:
# <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
# project/events:report?key=123ABC456</pre>
# @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 [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 [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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)
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) execute_or_queue_command(command, &block)
end end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/functions # @see https://cloud.google.com/functions
module CloudfunctionsV1 module CloudfunctionsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170520' REVISION = '20170529'
end end
end end
end end

View File

@ -33,16 +33,16 @@ module Google
# #
# @see https://cloud.google.com/functions # @see https://cloud.google.com/functions
class CloudFunctionsService < Google::Apis::Core::BaseService class CloudFunctionsService < 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] # @return [String]
# Available to use for quota purposes for server-side applications. Can be any # 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. # arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user 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 def initialize
super('https://cloudfunctions.googleapis.com/', '') super('https://cloudfunctions.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
@ -51,8 +51,8 @@ module Google
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil?
end end
end end
end end

View File

@ -20,13 +20,13 @@ module Google
module Apis module Apis
# Google Cloud Key Management Service (KMS) API # Google Cloud Key Management Service (KMS) API
# #
# Manages encryption for your cloud services the same way you do on-premise. You # Manages encryption for your cloud services the same way you do on-premises.
# can generate, use, rotate, and destroy AES256 encryption keys. # You can generate, use, rotate, and destroy AES256 encryption keys.
# #
# @see https://cloud.google.com/kms/ # @see https://cloud.google.com/kms/
module CloudkmsV1 module CloudkmsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170515' REVISION = '20170523'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,74 +22,6 @@ module Google
module Apis module Apis
module CloudkmsV1 module CloudkmsV1
# Options for counters
class CounterOptions
include Google::Apis::Core::Hashable
# The metric to update.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The field value to attribute.
# Corresponds to the JSON property `field`
# @return [String]
attr_accessor :field
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metric = args[:metric] if args.key?(:metric)
@field = args[:field] if args.key?(:field)
end
end
# Provides the configuration for logging a type of permissions.
# Example:
# `
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `
# ]
# `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
# foo@gmail.com from DATA_READ logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of
# permission.
# Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@log_type = args[:log_type] if args.key?(:log_type)
end
end
# Response message for KeyManagementService.Decrypt. # Response message for KeyManagementService.Decrypt.
class DecryptResponse class DecryptResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -132,6 +64,83 @@ module Google
end end
end end
# A KeyRing is a toplevel logical grouping of CryptoKeys.
class KeyRing
include Google::Apis::Core::Hashable
# Output only. The time at which this KeyRing was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. The resource name for the KeyRing in the format
# `projects/*/locations/*/keyRings/*`.
# 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)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name)
end
end
# Response message for KeyManagementService.Encrypt.
class EncryptResponse
include Google::Apis::Core::Hashable
# The encrypted data.
# Corresponds to the JSON property `ciphertext`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :ciphertext
# The resource name of the CryptoKeyVersion used in encryption.
# 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)
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
@name = args[:name] if args.key?(:name)
end
end
# The response message for Locations.ListLocations.
class ListLocationsResponse
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 locations that matches the specified filter in the request.
# Corresponds to the JSON property `locations`
# @return [Array<Google::Apis::CloudkmsV1::Location>]
attr_accessor :locations
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)
@locations = args[:locations] if args.key?(:locations)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to # Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources. # specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@ -161,18 +170,6 @@ module Google
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::CloudkmsV1::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::CloudkmsV1::Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help # `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a policy from overwriting each other. # prevent simultaneous updates of a policy from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the # It is strongly suggested that systems make use of the `etag` in the
@ -211,95 +208,30 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::CloudkmsV1::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::CloudkmsV1::Binding>]
attr_accessor :bindings
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag) @etag = args[:etag] if args.key?(:etag)
@iam_owned = args[:iam_owned] if args.key?(:iam_owned) @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
@rules = args[:rules] if args.key?(:rules) @rules = args[:rules] if args.key?(:rules)
@version = args[:version] if args.key?(:version) @version = args[:version] if args.key?(:version)
end @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
end @bindings = args[:bindings] if args.key?(:bindings)
# Response message for KeyManagementService.Encrypt.
class EncryptResponse
include Google::Apis::Core::Hashable
# The resource name of the CryptoKeyVersion used in encryption.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The encrypted data.
# Corresponds to the JSON property `ciphertext`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :ciphertext
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
end
end
# A KeyRing is a toplevel logical grouping of CryptoKeys.
class KeyRing
include Google::Apis::Core::Hashable
# Output only. The time at which this KeyRing was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. The resource name for the KeyRing in the format
# `projects/*/locations/*/keyRings/*`.
# 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)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name)
end
end
# The response message for Locations.ListLocations.
class ListLocationsResponse
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 locations that matches the specified filter in the request.
# Corresponds to the JSON property `locations`
# @return [Array<Google::Apis::CloudkmsV1::Location>]
attr_accessor :locations
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)
@locations = args[:locations] if args.key?(:locations)
end end
end end
@ -430,13 +362,6 @@ module Google
class AuditConfig class AuditConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# 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.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# The configuration for logging of each type of permission. # The configuration for logging of each type of permission.
# Next ID: 4 # Next ID: 4
# Corresponds to the JSON property `auditLogConfigs` # Corresponds to the JSON property `auditLogConfigs`
@ -448,15 +373,22 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :exempted_members attr_accessor :exempted_members
# 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.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@service = args[:service] if args.key?(:service)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members) @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@service = args[:service] if args.key?(:service)
end end
end end
@ -468,6 +400,11 @@ module Google
class CryptoKeyVersion class CryptoKeyVersion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. The time at which this CryptoKeyVersion was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The current state of the CryptoKeyVersion. # The current state of the CryptoKeyVersion.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
@ -493,22 +430,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :destroy_time attr_accessor :destroy_time
# Output only. The time at which this CryptoKeyVersion was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time) @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
@destroy_time = args[:destroy_time] if args.key?(:destroy_time) @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
@create_time = args[:create_time] if args.key?(:create_time)
end end
end end
@ -575,6 +507,12 @@ module Google
class EncryptRequest class EncryptRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The data to encrypt. Must be no larger than 64KiB.
# Corresponds to the JSON property `plaintext`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :plaintext
# Optional data that, if specified, must also be provided during decryption # Optional data that, if specified, must also be provided during decryption
# through DecryptRequest.additional_authenticated_data. Must be no # through DecryptRequest.additional_authenticated_data. Must be no
# larger than 64KiB. # larger than 64KiB.
@ -583,20 +521,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :additional_authenticated_data attr_accessor :additional_authenticated_data
# Required. The data to encrypt. Must be no larger than 64KiB.
# Corresponds to the JSON property `plaintext`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :plaintext
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
@plaintext = args[:plaintext] if args.key?(:plaintext) @plaintext = args[:plaintext] if args.key?(:plaintext)
@additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
end end
end end
@ -604,11 +536,6 @@ module Google
class ListCryptoKeyVersionsResponse class ListCryptoKeyVersionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The list of CryptoKeyVersions.
# Corresponds to the JSON property `cryptoKeyVersions`
# @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
attr_accessor :crypto_key_versions
# A token to retrieve next page of results. Pass this value in # A token to retrieve next page of results. Pass this value in
# ListCryptoKeyVersionsRequest.page_token to retrieve the next page of # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
# results. # results.
@ -622,15 +549,20 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :total_size attr_accessor :total_size
# The list of CryptoKeyVersions.
# Corresponds to the JSON property `cryptoKeyVersions`
# @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
attr_accessor :crypto_key_versions
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token) @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size) @total_size = args[:total_size] if args.key?(:total_size)
@crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
end end
end end
@ -736,23 +668,6 @@ module Google
class CryptoKey class CryptoKey
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The immutable purpose of this CryptoKey. Currently, the only acceptable
# purpose is ENCRYPT_DECRYPT.
# Corresponds to the JSON property `purpose`
# @return [String]
attr_accessor :purpose
# At next_rotation_time, the Key Management Service will automatically:
# 1. Create a new version of this CryptoKey.
# 2. Mark the new version as primary.
# Key rotations performed manually via
# CreateCryptoKeyVersion and
# UpdateCryptoKeyPrimaryVersion
# do not affect next_rotation_time.
# Corresponds to the JSON property `nextRotationTime`
# @return [String]
attr_accessor :next_rotation_time
# Output only. The time at which this CryptoKey was created. # Output only. The time at which this CryptoKey was created.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
@ -780,18 +695,35 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The immutable purpose of this CryptoKey. Currently, the only acceptable
# purpose is ENCRYPT_DECRYPT.
# Corresponds to the JSON property `purpose`
# @return [String]
attr_accessor :purpose
# At next_rotation_time, the Key Management Service will automatically:
# 1. Create a new version of this CryptoKey.
# 2. Mark the new version as primary.
# Key rotations performed manually via
# CreateCryptoKeyVersion and
# UpdateCryptoKeyPrimaryVersion
# do not affect next_rotation_time.
# Corresponds to the JSON property `nextRotationTime`
# @return [String]
attr_accessor :next_rotation_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@purpose = args[:purpose] if args.key?(:purpose)
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
@create_time = args[:create_time] if args.key?(:create_time) @create_time = args[:create_time] if args.key?(:create_time)
@rotation_period = args[:rotation_period] if args.key?(:rotation_period) @rotation_period = args[:rotation_period] if args.key?(:rotation_period)
@primary = args[:primary] if args.key?(:primary) @primary = args[:primary] if args.key?(:primary)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@purpose = args[:purpose] if args.key?(:purpose)
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
end end
end end
@ -830,15 +762,6 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
# Defines an Identity and Access Management (IAM) policy. It is used to # Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources. # specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@ -869,14 +792,23 @@ module Google
# @return [Google::Apis::CloudkmsV1::Policy] # @return [Google::Apis::CloudkmsV1::Policy]
attr_accessor :policy attr_accessor :policy
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@update_mask = args[:update_mask] if args.key?(:update_mask)
@policy = args[:policy] if args.key?(:policy) @policy = args[:policy] if args.key?(:policy)
@update_mask = args[:update_mask] if args.key?(:update_mask)
end end
end end
@ -913,17 +845,6 @@ module Google
class Location class Location
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The canonical id for this location. For example: `"us-east1"`.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
# Service-specific metadata. For example the available capacity at the given
# location.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# Cross-service attributes for the location. For example # Cross-service attributes for the location. For example
# `"cloud.googleapis.com/region": "us-east1"` # `"cloud.googleapis.com/region": "us-east1"`
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
@ -936,16 +857,27 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The canonical id for this location. For example: `"us-east1"`.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
# Service-specific metadata. For example the available capacity at the given
# location.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@location_id = args[:location_id] if args.key?(:location_id)
@metadata = args[:metadata] if args.key?(:metadata)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@location_id = args[:location_id] if args.key?(:location_id)
@metadata = args[:metadata] if args.key?(:metadata)
end end
end end
@ -985,17 +917,6 @@ module Google
class Condition class Condition
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Trusted attributes supplied by any service that owns resources and uses
# the IAM system for access control.
# Corresponds to the JSON property `sys`
# @return [String]
attr_accessor :sys
# DEPRECATED. Use 'values' instead.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
# The objects of the condition. This is mutually exclusive with 'value'. # The objects of the condition. This is mutually exclusive with 'value'.
# Corresponds to the JSON property `values` # Corresponds to the JSON property `values`
# @return [Array<String>] # @return [Array<String>]
@ -1016,18 +937,97 @@ module Google
# @return [String] # @return [String]
attr_accessor :svc attr_accessor :svc
# DEPRECATED. Use 'values' instead.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
# Trusted attributes supplied by any service that owns resources and uses
# the IAM system for access control.
# Corresponds to the JSON property `sys`
# @return [String]
attr_accessor :sys
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@sys = args[:sys] if args.key?(:sys)
@value = args[:value] if args.key?(:value)
@values = args[:values] if args.key?(:values) @values = args[:values] if args.key?(:values)
@iam = args[:iam] if args.key?(:iam) @iam = args[:iam] if args.key?(:iam)
@op = args[:op] if args.key?(:op) @op = args[:op] if args.key?(:op)
@svc = args[:svc] if args.key?(:svc) @svc = args[:svc] if args.key?(:svc)
@value = args[:value] if args.key?(:value)
@sys = args[:sys] if args.key?(:sys)
end
end
# Options for counters
class CounterOptions
include Google::Apis::Core::Hashable
# The metric to update.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The field value to attribute.
# Corresponds to the JSON property `field`
# @return [String]
attr_accessor :field
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metric = args[:metric] if args.key?(:metric)
@field = args[:field] if args.key?(:field)
end
end
# Provides the configuration for logging a type of permissions.
# Example:
# `
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `
# ]
# `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
# foo@gmail.com from DATA_READ logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
# Specifies the identities that do not cause logging for this type of
# permission.
# Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@log_type = args[:log_type] if args.key?(:log_type)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
end end
end end
end end

View File

@ -22,18 +22,6 @@ module Google
module Apis module Apis
module CloudkmsV1 module CloudkmsV1
class CounterOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DecryptResponse class DecryptResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -46,7 +34,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Policy class KeyRing
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -58,13 +46,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class KeyRing class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListLocationsResponse class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -191,19 +179,15 @@ module Google
end end
class CounterOptions class CounterOptions
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :metric, as: 'metric' include Google::Apis::Core::JsonObjectSupport
property :field, as: 'field'
end
end end
class AuditLogConfig class AuditLogConfig
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers' include Google::Apis::Core::JsonObjectSupport
property :log_type, as: 'logType'
end
end end
class DecryptResponse class DecryptResponse
@ -220,33 +204,18 @@ module Google
end end
end end
class Policy class KeyRing
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation property :create_time, as: 'createTime'
property :name, as: 'name'
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
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'
end end
end end
class EncryptResponse class EncryptResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :ciphertext, :base64 => true, as: 'ciphertext' 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' property :name, as: 'name'
end end
end end
@ -260,6 +229,21 @@ module Google
end end
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 RestoreCryptoKeyVersionRequest class RestoreCryptoKeyVersionRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -292,21 +276,21 @@ module Google
class AuditConfig class AuditConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers' collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end end
end end
class CryptoKeyVersion class CryptoKeyVersion
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :state, as: 'state' property :state, as: 'state'
property :name, as: 'name' property :name, as: 'name'
property :destroy_event_time, as: 'destroyEventTime' property :destroy_event_time, as: 'destroyEventTime'
property :destroy_time, as: 'destroyTime' property :destroy_time, as: 'destroyTime'
property :create_time, as: 'createTime'
end end
end end
@ -328,18 +312,18 @@ module Google
class EncryptRequest class EncryptRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
property :plaintext, :base64 => true, as: 'plaintext' property :plaintext, :base64 => true, as: 'plaintext'
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
end end
end end
class ListCryptoKeyVersionsResponse class ListCryptoKeyVersionsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize' property :total_size, as: 'totalSize'
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
end end
end end
@ -374,13 +358,13 @@ module Google
class CryptoKey class CryptoKey
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :purpose, as: 'purpose'
property :next_rotation_time, as: 'nextRotationTime'
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
property :rotation_period, as: 'rotationPeriod' property :rotation_period, as: 'rotationPeriod'
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
property :name, as: 'name' property :name, as: 'name'
property :purpose, as: 'purpose'
property :next_rotation_time, as: 'nextRotationTime'
end end
end end
@ -399,9 +383,9 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :update_mask, as: 'updateMask'
property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
property :update_mask, as: 'updateMask'
end end
end end
@ -416,10 +400,10 @@ module Google
class Location class Location
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :name, as: 'name' property :name, as: 'name'
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
end end
end end
@ -436,12 +420,28 @@ module Google
class Condition class Condition
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :sys, as: 'sys'
property :value, as: 'value'
collection :values, as: 'values' collection :values, as: 'values'
property :iam, as: 'iam' property :iam, as: 'iam'
property :op, as: 'op' property :op, as: 'op'
property :svc, as: 'svc' property :svc, as: 'svc'
property :value, as: 'value'
property :sys, as: 'sys'
end
end
class CounterOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric, as: 'metric'
property :field, as: 'field'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_type, as: 'logType'
collection :exempted_members, as: 'exemptedMembers'
end end
end end
end end

View File

@ -22,8 +22,8 @@ module Google
module CloudkmsV1 module CloudkmsV1
# Google Cloud Key Management Service (KMS) API # Google Cloud Key Management Service (KMS) API
# #
# Manages encryption for your cloud services the same way you do on-premise. You # Manages encryption for your cloud services the same way you do on-premises.
# can generate, use, rotate, and destroy AES256 encryption keys. # You can generate, use, rotate, and destroy AES256 encryption keys.
# #
# @example # @example
# require 'google/apis/cloudkms_v1' # require 'google/apis/cloudkms_v1'
@ -117,39 +117,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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. # Returns metadata for a given KeyRing.
# @param [String] name # @param [String] name
# The name of the KeyRing to get. # The name of the KeyRing to get.
@ -333,190 +300,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists CryptoKeys.
# @param [String] parent
# Required. The resource name of the KeyRing to list, in the format
# `projects/*/locations/*/keyRings/*`.
# @param [String] page_token
# Optional pagination token, returned earlier via
# ListCryptoKeysResponse.next_page_token.
# @param [Fixnum] page_size
# Optional limit on the number of CryptoKeys to include in the
# response. Further CryptoKeys can subsequently be obtained by
# including the ListCryptoKeysResponse.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::ListCryptoKeysResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::ListCryptoKeysResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_keys(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options)
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse
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
# Encrypt 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.
# If a CryptoKey is specified, the server will use its
# primary version.
# @param [Google::Apis::CloudkmsV1::EncryptRequest] encrypt_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::EncryptResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::EncryptResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def encrypt_crypto_key(name, encrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:encrypt', options)
command.request_representation = Google::Apis::CloudkmsV1::EncryptRequest::Representation
command.request_object = encrypt_request_object
command.response_representation = Google::Apis::CloudkmsV1::EncryptResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::EncryptResponse
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 CryptoKey within a KeyRing.
# CryptoKey.purpose is required.
# @param [String] parent
# Required. The name of the KeyRing associated with the
# CryptoKeys.
# @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
# @param [String] crypto_key_id
# Required. It must be unique within a KeyRing and match the regular
# expression `[a-zA-Z0-9_-]`1,63``
# @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 create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', 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['parent'] = parent unless parent.nil?
command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_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
# 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.
# @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_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::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 update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:updatePrimaryVersion', options)
command.request_representation = Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest::Representation
command.request_object = update_crypto_key_primary_version_request_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['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 a resource. # Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy # Returns an empty policy if the resource exists and does not have a policy
# set. # set.
@ -540,7 +323,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) 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 = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
command.response_class = Google::Apis::CloudkmsV1::Policy command.response_class = Google::Apis::CloudkmsV1::Policy
@ -550,37 +333,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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
# Update a CryptoKey. # Update a CryptoKey.
# @param [String] name # @param [String] name
# Output only. The resource name for this CryptoKey in the format # Output only. The resource name for this CryptoKey in the format
@ -618,6 +370,37 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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. # Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of # If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error. # permissions, not a NOT_FOUND error.
@ -691,6 +474,223 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists CryptoKeys.
# @param [String] parent
# Required. The resource name of the KeyRing to list, in the format
# `projects/*/locations/*/keyRings/*`.
# @param [String] page_token
# Optional pagination token, returned earlier via
# ListCryptoKeysResponse.next_page_token.
# @param [Fixnum] page_size
# Optional limit on the number of CryptoKeys to include in the
# response. Further CryptoKeys can subsequently be obtained by
# including the ListCryptoKeysResponse.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::ListCryptoKeysResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::ListCryptoKeysResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_keys(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options)
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse
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
# Encrypt 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.
# If a CryptoKey is specified, the server will use its
# primary version.
# @param [Google::Apis::CloudkmsV1::EncryptRequest] encrypt_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::EncryptResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::EncryptResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def encrypt_crypto_key(name, encrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:encrypt', options)
command.request_representation = Google::Apis::CloudkmsV1::EncryptRequest::Representation
command.request_object = encrypt_request_object
command.response_representation = Google::Apis::CloudkmsV1::EncryptResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::EncryptResponse
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
# 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
# Required. The name of the KeyRing associated with the
# CryptoKeys.
# @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
# @param [String] crypto_key_id
# Required. It must be unique within a KeyRing and match the regular
# expression `[a-zA-Z0-9_-]`1,63``
# @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 create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', 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['parent'] = parent unless parent.nil?
command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_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
# Update the version of a CryptoKey that will be used in Encrypt
# @param [String] name
# The resource name of the CryptoKey to update.
# @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_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::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 update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:updatePrimaryVersion', options)
command.request_representation = Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest::Representation
command.request_object = update_crypto_key_primary_version_request_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['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 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_crypto_key_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
# Lists CryptoKeyVersions. # Lists CryptoKeyVersions.
# @param [String] parent # @param [String] parent
# Required. The resource name of the CryptoKey to list, in the format # Required. The resource name of the CryptoKey to list, in the format
@ -733,43 +733,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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. # Schedule a CryptoKeyVersion for destruction.
# Upon calling this method, CryptoKeyVersion.state will be set to # Upon calling this method, CryptoKeyVersion.state will be set to
# DESTROY_SCHEDULED # DESTROY_SCHEDULED
@ -812,6 +775,43 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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 # Restore a CryptoKeyVersion in the
# DESTROY_SCHEDULED, # DESTROY_SCHEDULED,
# state. # state.
@ -850,6 +850,36 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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
# Update a CryptoKeyVersion's metadata. # Update a CryptoKeyVersion's metadata.
# state may be changed between # state may be changed between
# ENABLED and # ENABLED and
@ -892,36 +922,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

@ -1,35 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/cloudkms_v1beta1/service.rb'
require 'google/apis/cloudkms_v1beta1/classes.rb'
require 'google/apis/cloudkms_v1beta1/representations.rb'
module Google
module Apis
# Google Cloud Key Management Service (KMS) API
#
# Manages encryption for your cloud services the same way you do on-premise. You
# can generate, use, rotate, and destroy AES256 encryption keys.
#
# @see https://cloud.google.com/kms/
module CloudkmsV1beta1
VERSION = 'V1beta1'
REVISION = '20170301'
# 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

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