Class: Google::Apis::SqladminV1::Tier

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Tier

Returns a new instance of Tier.



6307
6308
6309
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6307

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)


6284
6285
6286
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6284

def disk_quota
  @disk_quota
end

#kindString

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

Returns:

  • (String)


6294
6295
6296
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6294

def kind
  @kind
end

#ramFixnum

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

Returns:

  • (Fixnum)


6289
6290
6291
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6289

def ram
  @ram
end

#regionArray<String>

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

Returns:

  • (Array<String>)


6299
6300
6301
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6299

def region
  @region
end

#tierString

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

Returns:

  • (String)


6305
6306
6307
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6305

def tier
  @tier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6312
6313
6314
6315
6316
6317
6318
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 6312

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