Class: Google::Apis::AlloydbV1alpha::IntegerRestrictions
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::IntegerRestrictions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
Restrictions on INTEGER type values.
Instance Attribute Summary collapse
-
#max_value ⇒ Fixnum
The maximum value that can be specified, if applicable.
-
#min_value ⇒ Fixnum
The minimum value that can be specified, if applicable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IntegerRestrictions
constructor
A new instance of IntegerRestrictions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IntegerRestrictions
Returns a new instance of IntegerRestrictions.
1379 1380 1381 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_value ⇒ Fixnum
The maximum value that can be specified, if applicable.
Corresponds to the JSON property maxValue
1372 1373 1374 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1372 def max_value @max_value end |
#min_value ⇒ Fixnum
The minimum value that can be specified, if applicable.
Corresponds to the JSON property minValue
1377 1378 1379 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1377 def min_value @min_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1384 1385 1386 1387 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1384 def update!(**args) @max_value = args[:max_value] if args.key?(:max_value) @min_value = args[:min_value] if args.key?(:min_value) end |