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.



4959
4960
4961
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4959

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


4951
4952
4953
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4951

def allowed_values
  @allowed_values
end

#case_agnosticBoolean Also known as: case_agnostic?

Output only. Whether the allowed values are case agnostic. Corresponds to the JSON property caseAgnostic

Returns:

  • (Boolean)


4956
4957
4958
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4956

def case_agnostic
  @case_agnostic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4964
4965
4966
4967
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4964

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