Class: Google::Apis::DeploymentmanagerV2beta::ValidationOptions

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

Overview

Options for how to validate and process properties on a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ValidationOptions

Returns a new instance of ValidationOptions.



2651
2652
2653
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2651

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

Instance Attribute Details

#schema_validationString

Customize how deployment manager will validate the resource against schema errors. Corresponds to the JSON property schemaValidation

Returns:

  • (String)


2644
2645
2646
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2644

def schema_validation
  @schema_validation
end

#undeclared_propertiesString

Specify what to do with extra properties when executing a request. Corresponds to the JSON property undeclaredProperties

Returns:

  • (String)


2649
2650
2651
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2649

def undeclared_properties
  @undeclared_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2656
2657
2658
2659
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2656

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