Class: Google::Apis::AlloydbV1beta::StringRestrictions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb

Overview

Restrictions on STRING type values

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StringRestrictions

Returns a new instance of StringRestrictions.



3668
3669
3670
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3668

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowed_valuesArray<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

Returns:

  • (Array<String>)


3666
3667
3668
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3666

def allowed_values
  @allowed_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3673
3674
3675
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3673

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