Class: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceReferenceProperties

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

CloudSqlInstanceDataSourceReferenceProperties represents the properties of a Cloud SQL resource that are stored in the DataSourceReference.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlInstanceDataSourceReferenceProperties

Returns a new instance of CloudSqlInstanceDataSourceReferenceProperties.



1999
2000
2001
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1999

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)


1980
1981
1982
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1980

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)


1985
1986
1987
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1985

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)


1991
1992
1993
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1991

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)


1997
1998
1999
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1997

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2004
2005
2006
2007
2008
2009
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2004

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