Class: Google::Apis::SqlV1beta4::Tier
- Inherits:
-
Object
- Object
- Google::Apis::SqlV1beta4::Tier
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sql_v1beta4/classes.rb,
generated/google/apis/sql_v1beta4/representations.rb,
generated/google/apis/sql_v1beta4/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-n1-standard-1.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tier
constructor
A new instance of Tier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Tier
Returns a new instance of Tier.
2782 2783 2784 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2782 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
2759 2760 2761 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2759 def disk_quota @disk_quota end |
#kind ⇒ String
This is always sql#tier
.
Corresponds to the JSON property kind
2769 2770 2771 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2769 def kind @kind end |
#ram ⇒ Fixnum
The maximum RAM usage of this tier in bytes.
Corresponds to the JSON property RAM
2764 2765 2766 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2764 def ram @ram end |
#region ⇒ Array<String>
The applicable regions for this tier.
Corresponds to the JSON property region
2774 2775 2776 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2774 def region @region end |
#tier ⇒ String
An identifier for the machine type, for example, db-n1-standard-1. For
related information, see Pricing.
Corresponds to the JSON property tier
2780 2781 2782 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2780 def tier @tier end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2787 2788 2789 2790 2791 2792 2793 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2787 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 |