Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints

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

Overview

Definition of the constraints of a field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints

Returns a new instance of GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints.



682
683
684
# File 'lib/google/apis/dataplex_v1/classes.rb', line 682

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

Instance Attribute Details

#requiredBoolean Also known as: required?

Optional. Marks this field as optional or required. Corresponds to the JSON property required

Returns:

  • (Boolean)


679
680
681
# File 'lib/google/apis/dataplex_v1/classes.rb', line 679

def required
  @required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



687
688
689
# File 'lib/google/apis/dataplex_v1/classes.rb', line 687

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