Class: Google::Apis::AlloydbV1::StringRestrictions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StringRestrictions

Returns a new instance of StringRestrictions.



2724
2725
2726
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2724

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>)


2722
2723
2724
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2722

def allowed_values
  @allowed_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2729
2730
2731
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2729

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