Class: Google::Apis::ContentV2sandbox::OrdersCreateTestOrderRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/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) ⇒ OrdersCreateTestOrderRequest

Returns a new instance of OrdersCreateTestOrderRequest



1355
1356
1357
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1355

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

Instance Attribute Details

#template_nameString

The test order template to use. Specify as an alternative to testOrder as a shortcut for retrieving a template and then creating an order using that template. Corresponds to the JSON property templateName

Returns:

  • (String)


1348
1349
1350
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1348

def template_name
  @template_name
end

#test_orderGoogle::Apis::ContentV2sandbox::TestOrder

The test order to create. Corresponds to the JSON property testOrder



1353
1354
1355
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1353

def test_order
  @test_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1360
1361
1362
1363
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1360

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