Class: Google::Apis::MigrationcenterV1alpha1::CloudSqlForPostgreSqlShape

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

Overview

Cloud SQL for PostgreSQL database shape.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlForPostgreSqlShape

Returns a new instance of CloudSqlForPostgreSqlShape.



1965
1966
1967
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1965

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

Instance Attribute Details

#backup_storage_gbFixnum

Output only. Predicted backup storage size in GiB. Corresponds to the JSON property backupStorageGb

Returns:

  • (Fixnum)


1927
1928
1929
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1927

def backup_storage_gb
  @backup_storage_gb
end

#editionString

Output only. Cloud SQL edition. Corresponds to the JSON property edition

Returns:

  • (String)


1932
1933
1934
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1932

def edition
  @edition
end

#egress_gb_per_monthFixnum

Output only. Predicted Network Out traffic GiB per month. Corresponds to the JSON property egressGbPerMonth

Returns:

  • (Fixnum)


1937
1938
1939
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1937

def egress_gb_per_month
  @egress_gb_per_month
end

#logical_core_countFixnum

Output only. Number of logical cores. Corresponds to the JSON property logicalCoreCount

Returns:

  • (Fixnum)


1942
1943
1944
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1942

def logical_core_count
  @logical_core_count
end

#memory_mbFixnum

Output only. Predicted amount of memory in MiB. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


1947
1948
1949
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1947

def memory_mb
  @memory_mb
end

#storageGoogle::Apis::MigrationcenterV1alpha1::ComputeStorageDescriptor

Compute Engine storage option descriptor. Corresponds to the JSON property storage



1952
1953
1954
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1952

def storage
  @storage
end

#versionString

Output only. PostgreSql version to be used on the Cloud SQL for PostgreSql instance. Corresponds to the JSON property version

Returns:

  • (String)


1958
1959
1960
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1958

def version
  @version
end

#zone_availabilityString

Output only. Cloud SQL zone availability. Corresponds to the JSON property zoneAvailability

Returns:

  • (String)


1963
1964
1965
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1963

def zone_availability
  @zone_availability
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1970

def update!(**args)
  @backup_storage_gb = args[:backup_storage_gb] if args.key?(:backup_storage_gb)
  @edition = args[:edition] if args.key?(:edition)
  @egress_gb_per_month = args[:egress_gb_per_month] if args.key?(:egress_gb_per_month)
  @logical_core_count = args[:logical_core_count] if args.key?(:logical_core_count)
  @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
  @storage = args[:storage] if args.key?(:storage)
  @version = args[:version] if args.key?(:version)
  @zone_availability = args[:zone_availability] if args.key?(:zone_availability)
end