Class: Google::Apis::SqladminV1beta3::CloneContext
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta3::CloneContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sqladmin_v1beta3/classes.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb
Overview
Database instance clone context.
Instance Attribute Summary collapse
-
#bin_log_coordinates ⇒ Google::Apis::SqladminV1beta3::BinLogCoordinates
Binary log coordinates.
-
#destination_instance_name ⇒ String
Name of the Cloud SQL instance to be created as a clone.
-
#kind ⇒ String
This is always sql#cloneContext.
-
#pitr_timestamp_ms ⇒ Fixnum
The epoch timestamp, in milliseconds, of the time to which a point-in-time recovery (PITR) is performed.
-
#source_instance_name ⇒ String
Name of the Cloud SQL instance to be cloned.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloneContext
constructor
A new instance of CloneContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CloneContext
Returns a new instance of CloneContext
247 248 249 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 247 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bin_log_coordinates ⇒ Google::Apis::SqladminV1beta3::BinLogCoordinates
Binary log coordinates.
Corresponds to the JSON property binLogCoordinates
223 224 225 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 223 def bin_log_coordinates @bin_log_coordinates end |
#destination_instance_name ⇒ String
Name of the Cloud SQL instance to be created as a clone.
Corresponds to the JSON property destinationInstanceName
228 229 230 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 228 def destination_instance_name @destination_instance_name end |
#kind ⇒ String
This is always sql#cloneContext.
Corresponds to the JSON property kind
233 234 235 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 233 def kind @kind end |
#pitr_timestamp_ms ⇒ Fixnum
The epoch timestamp, in milliseconds, of the time to which a point-in-time
recovery (PITR) is performed. PostgreSQL instances only. For MySQL instances,
use the binLogCoordinates property.
Corresponds to the JSON property pitrTimestampMs
240 241 242 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 240 def @pitr_timestamp_ms end |
#source_instance_name ⇒ String
Name of the Cloud SQL instance to be cloned.
Corresponds to the JSON property sourceInstanceName
245 246 247 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 245 def source_instance_name @source_instance_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
252 253 254 255 256 257 258 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 252 def update!(**args) @bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates) @destination_instance_name = args[:destination_instance_name] if args.key?(:destination_instance_name) @kind = args[:kind] if args.key?(:kind) @pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms) @source_instance_name = args[:source_instance_name] if args.key?(:source_instance_name) end |