Class: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceProperties

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

Overview

CloudSqlInstanceDataSourceProperties represents the properties of a Cloud SQL resource that are stored in the DataSource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlInstanceDataSourceProperties

Returns a new instance of CloudSqlInstanceDataSourceProperties.



1959
1960
1961
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1959

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

Instance Attribute Details

#database_installed_versionString

Output only. The installed database version of the Cloud SQL instance. Corresponds to the JSON property databaseInstalledVersion

Returns:

  • (String)


1940
1941
1942
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1940

def database_installed_version
  @database_installed_version
end

#instance_create_timeString

Output only. The instance creation timestamp. Corresponds to the JSON property instanceCreateTime

Returns:

  • (String)


1945
1946
1947
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1945

def instance_create_time
  @instance_create_time
end

#instance_tierString

Output only. The tier (or machine type) for this instance. Example: db-custom- 1-3840 Corresponds to the JSON property instanceTier

Returns:

  • (String)


1951
1952
1953
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1951

def instance_tier
  @instance_tier
end

#nameString

Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/project/instances/instance Corresponds to the JSON property name

Returns:

  • (String)


1957
1958
1959
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1957

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1964
1965
1966
1967
1968
1969
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1964

def update!(**args)
  @database_installed_version = args[:database_installed_version] if args.key?(:database_installed_version)
  @instance_create_time = args[:instance_create_time] if args.key?(:instance_create_time)
  @instance_tier = args[:instance_tier] if args.key?(:instance_tier)
  @name = args[:name] if args.key?(:name)
end