Class: Google::Apis::SqladminV1beta4::Tier

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb

Overview

A Google Cloud SQL service tier resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Tier

Returns a new instance of Tier



2317
2318
2319
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2317

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#disk_quotaFixnum

The maximum disk size of this tier in bytes. Corresponds to the JSON property DiskQuota

Returns:

  • (Fixnum)


2294
2295
2296
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2294

def disk_quota
  @disk_quota
end

#kindString

This is always sql#tier. Corresponds to the JSON property kind

Returns:

  • (String)


2304
2305
2306
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2304

def kind
  @kind
end

#ramFixnum

The maximum RAM usage of this tier in bytes. Corresponds to the JSON property RAM

Returns:

  • (Fixnum)


2299
2300
2301
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2299

def ram
  @ram
end

#regionArray<String>

The applicable regions for this tier. Corresponds to the JSON property region

Returns:

  • (Array<String>)


2309
2310
2311
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2309

def region
  @region
end

#tierString

An identifier for the machine type, for example, db-n1-standard-1. For related information, see Pricing. Corresponds to the JSON property tier

Returns:

  • (String)


2315
2316
2317
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2315

def tier
  @tier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2322
2323
2324
2325
2326
2327
2328
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2322

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