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.



714
715
716
# File 'lib/google/apis/dataplex_v1/classes.rb', line 714

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)


711
712
713
# File 'lib/google/apis/dataplex_v1/classes.rb', line 711

def required
  @required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



719
720
721
# File 'lib/google/apis/dataplex_v1/classes.rb', line 719

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