Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints
- 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
-
#required ⇒ Boolean
(also: #required?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints
constructor
A new instance of GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#required ⇒ Boolean Also known as: required?
Optional. Marks this field as optional or required.
Corresponds to the JSON property required
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 |