Class: Google::Apis::AlloydbV1beta::IntegerRestrictions

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 INTEGER type values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IntegerRestrictions

Returns a new instance of IntegerRestrictions.



1428
1429
1430
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1428

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

Returns:

  • (Fixnum)


1421
1422
1423
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1421

def max_value
  @max_value
end

#min_value ⇒ Fixnum

The minimum value that can be specified, if applicable. Corresponds to the JSON property minValue

Returns:

  • (Fixnum)


1426
1427
1428
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1426

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1433
1434
1435
1436
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1433

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