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.



4809
4810
4811
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4809

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)


4786
4787
4788
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4786

def disk_quota
  @disk_quota
end

#kindString

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

Returns:

  • (String)


4796
4797
4798
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4796

def kind
  @kind
end

#ramFixnum

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

Returns:

  • (Fixnum)


4791
4792
4793
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4791

def ram
  @ram
end

#regionArray<String>

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

Returns:

  • (Array<String>)


4801
4802
4803
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4801

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)


4807
4808
4809
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4807

def tier
  @tier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4814
4815
4816
4817
4818
4819
4820
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4814

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