Bump version, regen APIs

This commit is contained in:
Steve Bazyl committed 2017-05-26 10:44:32 -06:00
1 parent b8f6f7c2fe
commit 9237ba59cb
241 files changed
+53894 -50212

No files matched your search

+37 -2
View File
@@ -176,6 +176,12 @@ module Google
# @return [String]
attr_accessor :kind
# Whether the account's website is claimed or not.
# Corresponds to the JSON property `websiteClaimed`
# @return [Boolean]
attr_accessor :website_claimed
alias_method :website_claimed?, :website_claimed
def initialize(**args)
update!(**args)
end
@@ -185,6 +191,7 @@ module Google
@account_id = args[:account_id] if args.key?(:account_id)
@data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues)
@kind = args[:kind] if args.key?(:kind)
@website_claimed = args[:website_claimed] if args.key?(:website_claimed)
end
end
@@ -441,6 +448,26 @@ module Google
end
end
#
class AccountsClaimWebsiteResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountsClaimWebsiteResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class BatchAccountsRequest
include Google::Apis::Core::Hashable
@@ -469,8 +496,8 @@ module Google
# @return [Google::Apis::ContentV2::Account]
attr_accessor :account
# The ID of the account to get or delete. Only defined if the method is get or
# delete.
# The ID of the targeted account. Only defined if the method is get, delete or
# claimwebsite.
# Corresponds to the JSON property `accountId`
# @return [Fixnum]
attr_accessor :account_id
@@ -490,6 +517,13 @@ module Google
# @return [String]
attr_accessor :request_method
# Only applicable if the method is claimwebsite. Indicates whether or not to
# take the claim from another account in case there is a conflict.
# Corresponds to the JSON property `overwrite`
# @return [Boolean]
attr_accessor :overwrite
alias_method :overwrite?, :overwrite
def initialize(**args)
update!(**args)
end
@@ -501,6 +535,7 @@ module Google
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@request_method = args[:request_method] if args.key?(:request_method)
@overwrite = args[:overwrite] if args.key?(:overwrite)
end
end
@@ -82,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AccountsClaimWebsiteResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchAccountsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -980,6 +986,7 @@ module Google
collection :data_quality_issues, as: 'dataQualityIssues', class: Google::Apis::ContentV2::AccountStatusDataQualityIssue, decorator: Google::Apis::ContentV2::AccountStatusDataQualityIssue::Representation
property :kind, as: 'kind'
property :website_claimed, as: 'websiteClaimed'
end
end
@@ -1049,6 +1056,13 @@ module Google
end
end
class AccountsClaimWebsiteResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
class BatchAccountsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1066,6 +1080,7 @@ module Google
property :batch_id, as: 'batchId'
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :request_method, as: 'method'
property :overwrite, as: 'overwrite'
end
end
+58 -3
View File
@@ -86,6 +86,49 @@ module Google
execute_or_queue_command(command, &block)
end
# Claims the website of a Merchant Center sub-account. This method can only be
# called for multi-client accounts.
# @param [Fixnum] merchant_id
# The ID of the managing account.
# @param [Fixnum] account_id
# The ID of the account whose website is claimed.
# @param [Boolean] overwrite
# Flag to remove any existing claim on the requested website by another account
# and replace it with a claim from this account.
# @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::ContentV2::AccountsClaimWebsiteResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::AccountsClaimWebsiteResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/claimwebsite', options)
command.response_representation = Google::Apis::ContentV2::AccountsClaimWebsiteResponse::Representation
command.response_class = Google::Apis::ContentV2::AccountsClaimWebsiteResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['accountId'] = account_id unless account_id.nil?
command.query['overwrite'] = overwrite unless overwrite.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, inserts, updates, and deletes multiple Merchant Center (sub-)
# accounts in a single request.
# @param [Google::Apis::ContentV2::BatchAccountsRequest] batch_accounts_request_object
@@ -2053,6 +2096,9 @@ module Google
# Gets the statuses of multiple products in a single request. This method can
# only be called for non-multi-client accounts.
# @param [Google::Apis::ContentV2::BatchProductStatusesRequest] batch_product_statuses_request_object
# @param [Boolean] include_attributes
# Flag to include full product data in the results of this request. The default
# value is false.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -2074,12 +2120,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_product_status(batch_product_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def batch_product_status(batch_product_statuses_request_object = nil, include_attributes: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'productstatuses/batch', options)
command.request_representation = Google::Apis::ContentV2::BatchProductStatusesRequest::Representation
command.request_object = batch_product_statuses_request_object
command.response_representation = Google::Apis::ContentV2::BatchProductStatusesResponse::Representation
command.response_class = Google::Apis::ContentV2::BatchProductStatusesResponse
command.query['includeAttributes'] = include_attributes unless include_attributes.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2092,6 +2139,9 @@ module Google
# The ID of the managing account.
# @param [String] product_id
# The ID of the product.
# @param [Boolean] include_attributes
# Flag to include full product data in the result of this get request. The
# default value is false.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -2113,12 +2163,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_product_status(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_product_status(merchant_id, product_id, include_attributes: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
command.response_representation = Google::Apis::ContentV2::ProductStatus::Representation
command.response_class = Google::Apis::ContentV2::ProductStatus
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['productId'] = product_id unless product_id.nil?
command.query['includeAttributes'] = include_attributes unless include_attributes.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2129,6 +2180,9 @@ module Google
# method can only be called for non-multi-client accounts.
# @param [Fixnum] merchant_id
# The ID of the managing account.
# @param [Boolean] include_attributes
# Flag to include full product data in the results of the list request. The
# default value is false.
# @param [Boolean] include_invalid_inserted_items
# Flag to include the invalid inserted items in the result of the list request.
# By default the invalid items are not shown (the default value is false).
@@ -2158,11 +2212,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_product_statuses(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_product_statuses(merchant_id, include_attributes: nil, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/productstatuses', options)
command.response_representation = Google::Apis::ContentV2::ListProductStatusesResponse::Representation
command.response_class = Google::Apis::ContentV2::ListProductStatusesResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.query['includeAttributes'] = include_attributes unless include_attributes.nil?
command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?