Class: Google::Apis::ContentV2::OrdersCustomBatchResponseEntry

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrdersCustomBatchResponseEntry

Returns a new instance of OrdersCustomBatchResponseEntry



6860
6861
6862
# File 'generated/google/apis/content_v2/classes.rb', line 6860

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#batch_idFixnum

The ID of the request entry this entry responds to. Corresponds to the JSON property batchId

Returns:

  • (Fixnum)


6835
6836
6837
# File 'generated/google/apis/content_v2/classes.rb', line 6835

def batch_id
  @batch_id
end

#errorsGoogle::Apis::ContentV2::Errors

A list of errors returned by a failed batch entry. Corresponds to the JSON property errors



6840
6841
6842
# File 'generated/google/apis/content_v2/classes.rb', line 6840

def errors
  @errors
end

#execution_statusString

The status of the execution. Only defined if

  • the request was successful; and
  • the method is not get, getByMerchantOrderId, or one of the test methods. Corresponds to the JSON property executionStatus

Returns:

  • (String)


6847
6848
6849
# File 'generated/google/apis/content_v2/classes.rb', line 6847

def execution_status
  @execution_status
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# ordersCustomBatchResponseEntry". Corresponds to the JSON property kind

Returns:

  • (String)


6853
6854
6855
# File 'generated/google/apis/content_v2/classes.rb', line 6853

def kind
  @kind
end

#orderGoogle::Apis::ContentV2::Order

Order. All methods require the order manager role. Corresponds to the JSON property order



6858
6859
6860
# File 'generated/google/apis/content_v2/classes.rb', line 6858

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6865
6866
6867
6868
6869
6870
6871
# File 'generated/google/apis/content_v2/classes.rb', line 6865

def update!(**args)
  @batch_id = args[:batch_id] if args.key?(:batch_id)
  @errors = args[:errors] if args.key?(:errors)
  @execution_status = args[:execution_status] if args.key?(:execution_status)
  @kind = args[:kind] if args.key?(:kind)
  @order = args[:order] if args.key?(:order)
end