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.



1936
1937
1938
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1936

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

Instance Attribute Details

#disk_quotaString

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

Returns:

  • (String)


1912
1913
1914
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1912

def disk_quota
  @disk_quota
end

#kindString

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

Returns:

  • (String)


1922
1923
1924
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1922

def kind
  @kind
end

#ramString

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

Returns:

  • (String)


1917
1918
1919
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1917

def ram
  @ram
end

#regionArray<String>

The applicable regions for this tier. Can be us-east1, europe-west1 or asia- east1. Corresponds to the JSON property region

Returns:

  • (Array<String>)


1928
1929
1930
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1928

def region
  @region
end

#tierString

An identifier for the service tier, for example D1, D2 etc. For related information, see Pricing. Corresponds to the JSON property tier

Returns:

  • (String)


1934
1935
1936
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1934

def tier
  @tier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1941
1942
1943
1944
1945
1946
1947
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1941

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