class Google::Apis::ContentV2::AccountsBatchRequestEntry

A batch entry encoding a single non-batch accounts request.

Attributes

account[RW]

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::Account]

account_id[RW]

The ID of the targeted account. Only defined if the method is not `insert`. Corresponds to the JSON property `accountId` @return [Fixnum]

batch_id[RW]

An entry ID, unique within the batch request. Corresponds to the JSON property `batchId` @return [Fixnum]

force[RW]

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]

force?[RW]

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[RW]

Label IDs for the 'updatelabels' request. Corresponds to the JSON property `labelIds` @return [Array<Fixnum>]

merchant_id[RW]

The ID of the managing account. Corresponds to the JSON property `merchantId` @return [Fixnum]

overwrite[RW]

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]

overwrite?[RW]

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]

request_method[RW]

The method of the batch entry. Acceptable values are: - “`claimWebsite`” - “` delete`” - “`get`” - “`insert`” - “`link`” - “`update`” Corresponds to the JSON property `method` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 978
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 983
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)
  @request_method = args[:request_method] if args.key?(:request_method)
  @overwrite = args[:overwrite] if args.key?(:overwrite)
end