Class: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceProperties
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceProperties
- 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
-
#database_installed_version ⇒ String
Output only.
-
#instance_create_time ⇒ String
Output only.
-
#instance_tier ⇒ String
Output only.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudSqlInstanceDataSourceProperties
constructor
A new instance of CloudSqlInstanceDataSourceProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_version ⇒ String
Output only. The installed database version of the Cloud SQL instance.
Corresponds to the JSON property databaseInstalledVersion
1940 1941 1942 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1940 def database_installed_version @database_installed_version end |
#instance_create_time ⇒ String
Output only. The instance creation timestamp.
Corresponds to the JSON property instanceCreateTime
1945 1946 1947 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1945 def instance_create_time @instance_create_time end |
#instance_tier ⇒ String
Output only. The tier (or machine type) for this instance. Example: db-custom-
1-3840
Corresponds to the JSON property instanceTier
1951 1952 1953 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1951 def instance_tier @instance_tier end |
#name ⇒ String
Output only. Name of the Cloud SQL instance backed up by the datasource.
Format: projects/project/instances/instance
Corresponds to the JSON property name
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 |