Class: Google::Apis::MetastoreV1::CloudSqlConnectionConfig
- Inherits:
-
Object
- Object
- Google::Apis::MetastoreV1::CloudSqlConnectionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/metastore_v1/classes.rb,
lib/google/apis/metastore_v1/representations.rb,
lib/google/apis/metastore_v1/representations.rb
Overview
Configuration information to establish customer database connection before the cutover phase of migration
Instance Attribute Summary collapse
-
#hive_database_name ⇒ String
Required.
-
#instance_connection_name ⇒ String
Required.
-
#ip_address ⇒ String
Required.
-
#nat_subnet ⇒ String
Required.
-
#password ⇒ String
Required.
-
#port ⇒ Fixnum
Required.
-
#proxy_subnet ⇒ String
Required.
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudSqlConnectionConfig
constructor
A new instance of CloudSqlConnectionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudSqlConnectionConfig
Returns a new instance of CloudSqlConnectionConfig.
583 584 585 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 583 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hive_database_name ⇒ String
Required. The hive database name.
Corresponds to the JSON property hiveDatabaseName
534 535 536 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 534 def hive_database_name @hive_database_name end |
#instance_connection_name ⇒ String
Required. Cloud SQL database connection name (project_id:region:instance_name)
Corresponds to the JSON property instanceConnectionName
539 540 541 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 539 def instance_connection_name @instance_connection_name end |
#ip_address ⇒ String
Required. The private IP address of the Cloud SQL instance.
Corresponds to the JSON property ipAddress
544 545 546 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 544 def ip_address @ip_address end |
#nat_subnet ⇒ String
Required. The relative resource name of the subnetwork to be used for Private
Service Connect. Note that this cannot be a regular subnet and is used only
for NAT. (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-
subnets) This subnet is used to publish the SOCKS5 proxy service. The subnet
size must be at least /29 and it should reside in a network through which the
Cloud SQL instance is accessible. The resource name should be in the format,
projects/project_id/regions/region_id/subnetworks/subnetwork_id
Corresponds to the JSON property natSubnet
555 556 557 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 555 def nat_subnet @nat_subnet end |
#password ⇒ String
Required. Input only. The password for the user that Dataproc Metastore
service will be using to connect to the database. This field is not returned
on request.
Corresponds to the JSON property password
562 563 564 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 562 def password @password end |
#port ⇒ Fixnum
Required. The network port of the database.
Corresponds to the JSON property port
567 568 569 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 567 def port @port end |
#proxy_subnet ⇒ String
Required. The relative resource name of the subnetwork to deploy the SOCKS5
proxy service in. The subnetwork should reside in a network through which the
Cloud SQL instance is accessible. The resource name should be in the format,
projects/project_id/regions/region_id/subnetworks/subnetwork_id
Corresponds to the JSON property proxySubnet
575 576 577 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 575 def proxy_subnet @proxy_subnet end |
#username ⇒ String
Required. The username that Dataproc Metastore service will use to connect to
the database.
Corresponds to the JSON property username
581 582 583 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 581 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
588 589 590 591 592 593 594 595 596 597 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 588 def update!(**args) @hive_database_name = args[:hive_database_name] if args.key?(:hive_database_name) @instance_connection_name = args[:instance_connection_name] if args.key?(:instance_connection_name) @ip_address = args[:ip_address] if args.key?(:ip_address) @nat_subnet = args[:nat_subnet] if args.key?(:nat_subnet) @password = args[:password] if args.key?(:password) @port = args[:port] if args.key?(:port) @proxy_subnet = args[:proxy_subnet] if args.key?(:proxy_subnet) @username = args[:username] if args.key?(:username) end |