Class: Google::Apis::AlloydbV1::StringRestrictions
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1::StringRestrictions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb
Overview
Restrictions on STRING type values
Instance Attribute Summary collapse
-
#allowed_values ⇒ Array<String>
The list of allowed values, if bounded.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StringRestrictions
constructor
A new instance of StringRestrictions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StringRestrictions
Returns a new instance of StringRestrictions.
3325 3326 3327 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_values ⇒ Array<String>
The list of allowed values, if bounded. This field will be empty if there is a
unbounded number of allowed values.
Corresponds to the JSON property allowedValues
3323 3324 3325 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3323 def allowed_values @allowed_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3330 3331 3332 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3330 def update!(**args) @allowed_values = args[:allowed_values] if args.key?(:allowed_values) end |