class Google::Apis::ContentV2_1::AccountsCustomBatchRequestEntry
A batch entry encoding a single non-batch accounts request.
Attributes
Account
data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role. Corresponds to the JSON property `account` @return [Google::Apis::ContentV2_1::Account]
The ID of the targeted account. Only defined if the method is not `insert`. Corresponds to the JSON property `accountId` @return [Fixnum]
An entry ID, unique within the batch request. Corresponds to the JSON property `batchId` @return [Fixnum]
Whether the account should be deleted if the account has offers. Only applicable if the method is `delete`. Corresponds to the JSON property `force` @return [Boolean]
Whether the account should be deleted if the account has offers. Only applicable if the method is `delete`. Corresponds to the JSON property `force` @return [Boolean]
Label IDs for the 'updatelabels' request. Corresponds to the JSON property `labelIds` @return [Array<Fixnum>]
Details about the `link` request. Corresponds to the JSON property `linkRequest` @return [Google::Apis::ContentV2_1::AccountsCustomBatchRequestEntryLinkRequest]
The ID of the managing account. Corresponds to the JSON property `merchantId` @return [Fixnum]
The method of the batch entry. Acceptable values are: - “`claimWebsite`” - “` delete`” - “`get`” - “`insert`” - “`link`” - “`update`” Corresponds to the JSON property `method` @return [String]
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]
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]
Controls which fields are visible. Only applicable if the method is 'get'. Corresponds to the JSON property `view` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 1003 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 1008 def update!(**args) @account = args[:account] if args.key?(:account) @account_id = args[:account_id] if args.key?(:account_id) @batch_id = args[:batch_id] if args.key?(:batch_id) @force = args[:force] if args.key?(:force) @label_ids = args[:label_ids] if args.key?(:label_ids) @link_request = args[:link_request] if args.key?(:link_request) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @method_prop = args[:method_prop] if args.key?(:method_prop) @overwrite = args[:overwrite] if args.key?(:overwrite) @view = args[:view] if args.key?(:view) end