Class: Google::Apis::DeploymentmanagerV2beta::Options

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/deploymentmanager_v2beta/classes.rb,
lib/google/apis/deploymentmanager_v2beta/representations.rb,
lib/google/apis/deploymentmanager_v2beta/representations.rb

Overview

Options allows customized resource handling by Deployment Manager.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Options

Returns a new instance of Options.



1422
1423
1424
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 1422

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

Instance Attribute Details

#async_optionsArray<Google::Apis::DeploymentmanagerV2beta::AsyncOptions>

Options regarding how to thread async requests. Corresponds to the JSON property asyncOptions



1399
1400
1401
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 1399

def async_options
  @async_options
end

#input_mappingsArray<Google::Apis::DeploymentmanagerV2beta::InputMapping>

The mappings that apply for requests. Corresponds to the JSON property inputMappings



1404
1405
1406
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 1404

def input_mappings
  @input_mappings
end

#validation_optionsGoogle::Apis::DeploymentmanagerV2beta::ValidationOptions

Options for how to validate and process properties on a resource. Corresponds to the JSON property validationOptions



1409
1410
1411
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 1409

def validation_options
  @validation_options
end

#virtual_propertiesString

Additional properties block described as a jsonSchema, these properties will never be part of the json payload, but they can be consumed by InputMappings, this must be a valid json schema draft-04. The properties specified here will be decouple in a different section. This schema will be merged to the schema validation, and properties here will be extracted From the payload and consumed explicitly by InputMappings. ex: field1: type: string field2: type: number Corresponds to the JSON property virtualProperties

Returns:

  • (String)


1420
1421
1422
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 1420

def virtual_properties
  @virtual_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1427
1428
1429
1430
1431
1432
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 1427

def update!(**args)
  @async_options = args[:async_options] if args.key?(:async_options)
  @input_mappings = args[:input_mappings] if args.key?(:input_mappings)
  @validation_options = args[:validation_options] if args.key?(:validation_options)
  @virtual_properties = args[:virtual_properties] if args.key?(:virtual_properties)
end