Class: Google::Apis::SqladminV1beta4::CloneContext
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::CloneContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb
Overview
Database instance clone context.
Instance Attribute Summary collapse
-
#allocated_ip_range ⇒ String
The name of the allocated ip range for the private ip CloudSQL instance.
-
#bin_log_coordinates ⇒ Google::Apis::SqladminV1beta4::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
Reserved for future use.
-
#point_in_time ⇒ String
Timestamp, if specified, identifies the time to which the source instance is cloned.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloneContext
constructor
A new instance of CloneContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloneContext
Returns a new instance of CloneContext.
442 443 444 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 442 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allocated_ip_range ⇒ String
The name of the allocated ip range for the private ip CloudSQL instance. For
example: "google-managed-services-default". If set, the cloned instance ip
will be created in the allocated range. The range name must comply with RFC
1035. Specifically, the name must be 1-
63 characters long and match the regular expression a-z?.
Reserved for future use.
Corresponds to the JSON property allocatedIpRange
414 415 416 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 414 def allocated_ip_range @allocated_ip_range end |
#bin_log_coordinates ⇒ Google::Apis::SqladminV1beta4::BinLogCoordinates
Binary log coordinates.
Corresponds to the JSON property binLogCoordinates
419 420 421 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 419 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
424 425 426 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 424 def destination_instance_name @destination_instance_name end |
#kind ⇒ String
This is always sql#cloneContext.
Corresponds to the JSON property kind
429 430 431 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 429 def kind @kind end |
#pitr_timestamp_ms ⇒ Fixnum
Reserved for future use.
Corresponds to the JSON property pitrTimestampMs
434 435 436 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 434 def @pitr_timestamp_ms end |
#point_in_time ⇒ String
Timestamp, if specified, identifies the time to which the source instance is
cloned.
Corresponds to the JSON property pointInTime
440 441 442 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 440 def point_in_time @point_in_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
447 448 449 450 451 452 453 454 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 447 def update!(**args) @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range) @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) @point_in_time = args[:point_in_time] if args.key?(:point_in_time) end |