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.
682 683 684 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 682 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
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 |