Class: Google::Apis::SqladminV1::CloneContext
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::CloneContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/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 Cloud SQL instance.
-
#bin_log_coordinates ⇒ Google::Apis::SqladminV1::BinLogCoordinates
Binary log coordinates.
-
#database_names ⇒ Array<String>
(SQL Server only) Clone only the specified databases from the source instance.
-
#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.
-
#preferred_zone ⇒ String
(Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone.
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.
482 483 484 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 482 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allocated_ip_range ⇒ String
The name of the allocated ip range for the private ip Cloud SQL 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
441 442 443 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 441 def allocated_ip_range @allocated_ip_range end |
#bin_log_coordinates ⇒ Google::Apis::SqladminV1::BinLogCoordinates
Binary log coordinates.
Corresponds to the JSON property binLogCoordinates
446 447 448 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 446 def bin_log_coordinates @bin_log_coordinates end |
#database_names ⇒ Array<String>
(SQL Server only) Clone only the specified databases from the source instance.
Clone all databases if empty.
Corresponds to the JSON property databaseNames
452 453 454 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 452 def database_names @database_names end |
#destination_instance_name ⇒ String
Name of the Cloud SQL instance to be created as a clone.
Corresponds to the JSON property destinationInstanceName
457 458 459 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 457 def destination_instance_name @destination_instance_name end |
#kind ⇒ String
This is always sql#cloneContext.
Corresponds to the JSON property kind
462 463 464 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 462 def kind @kind end |
#pitr_timestamp_ms ⇒ Fixnum
Reserved for future use.
Corresponds to the JSON property pitrTimestampMs
467 468 469 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 467 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
473 474 475 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 473 def point_in_time @point_in_time end |
#preferred_zone ⇒ String
(Point-in-time recovery for PostgreSQL only) Clone to an instance in the
specified zone. If no zone is specified, clone to the same zone as the source
instance.
Corresponds to the JSON property preferredZone
480 481 482 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 480 def preferred_zone @preferred_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
487 488 489 490 491 492 493 494 495 496 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 487 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) @database_names = args[:database_names] if args.key?(:database_names) @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) @preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone) end |