Class: Google::Apis::DeploymentmanagerAlpha::ValidationOptions

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValidationOptions

Returns a new instance of ValidationOptions.



3180
3181
3182
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 3180

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)


3173
3174
3175
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 3173

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)


3178
3179
3180
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 3178

def undeclared_properties
  @undeclared_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3185
3186
3187
3188
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 3185

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