Class: Google::Apis::SqladminV1::Tier
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::Tier
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb
Overview
A Google Cloud SQL service tier resource.
Instance Attribute Summary collapse
-
#disk_quota ⇒ Fixnum
The maximum disk size of this tier in bytes.
-
#kind ⇒ String
This is always
sql#tier. -
#ram ⇒ Fixnum
The maximum RAM usage of this tier in bytes.
-
#region ⇒ Array<String>
The applicable regions for this tier.
-
#tier ⇒ String
An identifier for the machine type, for example,
db-custom-1-3840.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tier
constructor
A new instance of Tier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Tier
Returns a new instance of Tier.
3524 3525 3526 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3524 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_quota ⇒ Fixnum
The maximum disk size of this tier in bytes.
Corresponds to the JSON property DiskQuota
3501 3502 3503 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3501 def disk_quota @disk_quota end |
#kind ⇒ String
This is always sql#tier.
Corresponds to the JSON property kind
3511 3512 3513 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3511 def kind @kind end |
#ram ⇒ Fixnum
The maximum RAM usage of this tier in bytes.
Corresponds to the JSON property RAM
3506 3507 3508 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3506 def ram @ram end |
#region ⇒ Array<String>
The applicable regions for this tier.
Corresponds to the JSON property region
3516 3517 3518 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3516 def region @region end |
#tier ⇒ String
An identifier for the machine type, for example, db-custom-1-3840. For
related information, see Pricing.
Corresponds to the JSON property tier
3522 3523 3524 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3522 def tier @tier end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3529 3530 3531 3532 3533 3534 3535 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3529 def update!(**args) @disk_quota = args[:disk_quota] if args.key?(:disk_quota) @ram = args[:ram] if args.key?(:ram) @kind = args[:kind] if args.key?(:kind) @region = args[:region] if args.key?(:region) @tier = args[:tier] if args.key?(:tier) end |