Class: Google::Apis::ContentV2::BatchProductsResponse

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) ⇒ BatchProductsResponse

Returns a new instance of BatchProductsResponse



7751
7752
7753
# File 'generated/google/apis/content_v2/classes.rb', line 7751

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

Instance Attribute Details

#entriesArray<Google::Apis::ContentV2::ProductsBatchResponseEntry>

The result of the execution of the batch requests. Corresponds to the JSON property entries



7743
7744
7745
# File 'generated/google/apis/content_v2/classes.rb', line 7743

def entries
  @entries
end

#kindString

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

Returns:

  • (String)


7749
7750
7751
# File 'generated/google/apis/content_v2/classes.rb', line 7749

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7756
7757
7758
7759
# File 'generated/google/apis/content_v2/classes.rb', line 7756

def update!(**args)
  @entries = args[:entries] if args.key?(:entries)
  @kind = args[:kind] if args.key?(:kind)
end