Class: Google::Apis::SqladminV1::MySqlReplicaConfiguration
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SqladminV1::MySqlReplicaConfiguration
 
 
- 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
Read-replica configuration specific to MySQL databases.
Instance Attribute Summary collapse
- 
  
    
      #ca_certificate  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
PEM representation of the trusted CA's x509 certificate.
 - 
  
    
      #client_certificate  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
PEM representation of the replica's x509 certificate.
 - 
  
    
      #client_key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
PEM representation of the replica's private key.
 - 
  
    
      #connect_retry_interval  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Seconds to wait between connect retries.
 - 
  
    
      #dump_file_path  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This is always
sql#mysqlReplicaConfiguration. - 
  
    
      #master_heartbeat_period  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Interval in milliseconds between replication heartbeats.
 - 
  
    
      #password  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The password for the replication connection.
 - 
  
    
      #ssl_cipher  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of permissible ciphers to use for SSL encryption.
 - 
  
    
      #username  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The username for the replication connection.
 - 
  
    
      #verify_server_certificate  ⇒ Boolean 
    
    
      (also: #verify_server_certificate?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MySqlReplicaConfiguration 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of MySqlReplicaConfiguration.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ MySqlReplicaConfiguration
Returns a new instance of MySqlReplicaConfiguration.
      2999 3000 3001  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2999 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#ca_certificate ⇒ String
PEM representation of the trusted CA's x509 certificate.
Corresponds to the JSON property caCertificate
      2940 2941 2942  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2940 def ca_certificate @ca_certificate end  | 
  
#client_certificate ⇒ String
PEM representation of the replica's x509 certificate.
Corresponds to the JSON property clientCertificate
      2945 2946 2947  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2945 def client_certificate @client_certificate end  | 
  
#client_key ⇒ String
PEM representation of the replica's private key. The corresponsing public key
is encoded in the client's certificate.
Corresponds to the JSON property clientKey
      2951 2952 2953  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2951 def client_key @client_key end  | 
  
#connect_retry_interval ⇒ Fixnum
Seconds to wait between connect retries. MySQL's default is 60 seconds.
Corresponds to the JSON property connectRetryInterval
      2956 2957 2958  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2956 def connect_retry_interval @connect_retry_interval end  | 
  
#dump_file_path ⇒ String
Path to a SQL dump file in Google Cloud Storage from which the replica
instance is to be created. The URI is in the form gs://bucketName/fileName.
Compressed gzip files (.gz) are also supported. Dumps have the binlog co-
ordinates from which replication begins. This can be accomplished by setting --
master-data to 1 when using mysqldump.
Corresponds to the JSON property dumpFilePath
      2965 2966 2967  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2965 def dump_file_path @dump_file_path end  | 
  
#kind ⇒ String
This is always sql#mysqlReplicaConfiguration.
Corresponds to the JSON property kind
      2970 2971 2972  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2970 def kind @kind end  | 
  
#master_heartbeat_period ⇒ Fixnum
Interval in milliseconds between replication heartbeats.
Corresponds to the JSON property masterHeartbeatPeriod
      2975 2976 2977  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2975 def master_heartbeat_period @master_heartbeat_period end  | 
  
#password ⇒ String
The password for the replication connection.
Corresponds to the JSON property password
      2980 2981 2982  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2980 def password @password end  | 
  
#ssl_cipher ⇒ String
A list of permissible ciphers to use for SSL encryption.
Corresponds to the JSON property sslCipher
      2985 2986 2987  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2985 def ssl_cipher @ssl_cipher end  | 
  
#username ⇒ String
The username for the replication connection.
Corresponds to the JSON property username
      2990 2991 2992  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2990 def username @username end  | 
  
#verify_server_certificate ⇒ Boolean Also known as: verify_server_certificate?
Whether or not to check the primary instance's Common Name value in the
certificate that it sends during the SSL handshake.
Corresponds to the JSON property verifyServerCertificate
      2996 2997 2998  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 2996 def verify_server_certificate @verify_server_certificate end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 3004 def update!(**args) @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate) @client_certificate = args[:client_certificate] if args.key?(:client_certificate) @client_key = args[:client_key] if args.key?(:client_key) @connect_retry_interval = args[:connect_retry_interval] if args.key?(:connect_retry_interval) @dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path) @kind = args[:kind] if args.key?(:kind) @master_heartbeat_period = args[:master_heartbeat_period] if args.key?(:master_heartbeat_period) @password = args[:password] if args.key?(:password) @ssl_cipher = args[:ssl_cipher] if args.key?(:ssl_cipher) @username = args[:username] if args.key?(:username) @verify_server_certificate = args[:verify_server_certificate] if args.key?(:verify_server_certificate) end  |