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.



674
675
676
# File 'lib/google/apis/dataplex_v1/classes.rb', line 674

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)


671
672
673
# File 'lib/google/apis/dataplex_v1/classes.rb', line 671

def required
  @required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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