Class: Google::Apis::SqladminV1::IpConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::IpConfiguration
- 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
IP Management configuration.
Instance Attribute Summary collapse
-
#allocated_ip_range ⇒ String
The name of the allocated ip range for the private ip Cloud SQL instance.
-
#authorized_networks ⇒ Array<Google::Apis::SqladminV1::AclEntry>
The list of external networks that are allowed to connect to the instance using the IP.
-
#enable_private_path_for_google_cloud_services ⇒ Boolean
(also: #enable_private_path_for_google_cloud_services?)
Controls connectivity to private IP instances from Google services, such as BigQuery.
-
#ipv4_enabled ⇒ Boolean
(also: #ipv4_enabled?)
Whether the instance is assigned a public IP address or not.
-
#private_network ⇒ String
The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP.
-
#psc_config ⇒ Google::Apis::SqladminV1::PscConfig
PSC settings for a Cloud SQL instance.
-
#require_ssl ⇒ Boolean
(also: #require_ssl?)
Use
ssl_modeinstead for MySQL and PostgreSQL. -
#ssl_mode ⇒ String
SQL Server uses the
require_sslflag.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IpConfiguration
constructor
A new instance of IpConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IpConfiguration
Returns a new instance of IpConfiguration.
2357 2358 2359 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2357 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 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]([-a-z0-9]*[a-z0-9])?.
Corresponds to the JSON property allocatedIpRange
2304 2305 2306 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2304 def allocated_ip_range @allocated_ip_range end |
#authorized_networks ⇒ Array<Google::Apis::SqladminV1::AclEntry>
The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for example:
157.197.200.0/24).
Corresponds to the JSON property authorizedNetworks
2311 2312 2313 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2311 def @authorized_networks end |
#enable_private_path_for_google_cloud_services ⇒ Boolean Also known as: enable_private_path_for_google_cloud_services?
Controls connectivity to private IP instances from Google services, such as
BigQuery.
Corresponds to the JSON property enablePrivatePathForGoogleCloudServices
2317 2318 2319 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2317 def enable_private_path_for_google_cloud_services @enable_private_path_for_google_cloud_services end |
#ipv4_enabled ⇒ Boolean Also known as: ipv4_enabled?
Whether the instance is assigned a public IP address or not.
Corresponds to the JSON property ipv4Enabled
2323 2324 2325 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2323 def ipv4_enabled @ipv4_enabled end |
#private_network ⇒ String
The resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example, /projects/myProject/global/networks/
default. This setting can be updated, but it cannot be removed after it is
set.
Corresponds to the JSON property privateNetwork
2332 2333 2334 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2332 def private_network @private_network end |
#psc_config ⇒ Google::Apis::SqladminV1::PscConfig
PSC settings for a Cloud SQL instance.
Corresponds to the JSON property pscConfig
2337 2338 2339 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2337 def psc_config @psc_config end |
#require_ssl ⇒ Boolean Also known as: require_ssl?
Use ssl_mode instead for MySQL and PostgreSQL. SQL Server uses this flag.
Whether SSL/TLS connections over IP are enforced. If set to false, then allow
both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the
client certificate won't be verified. If set to true, then only allow
connections encrypted with SSL/TLS and with valid client certificates. If you
want to enforce SSL/TLS without enforcing the requirement for valid client
certificates, then use the ssl_mode flag instead of the require_ssl flag.
Corresponds to the JSON property requireSsl
2348 2349 2350 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2348 def require_ssl @require_ssl end |
#ssl_mode ⇒ String
SQL Server uses the require_ssl flag. You can set the value for this flag to
'true' or 'false'.
Corresponds to the JSON property sslMode
2355 2356 2357 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2355 def ssl_mode @ssl_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2362 def update!(**args) @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range) @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks) @enable_private_path_for_google_cloud_services = args[:enable_private_path_for_google_cloud_services] if args.key?(:enable_private_path_for_google_cloud_services) @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled) @private_network = args[:private_network] if args.key?(:private_network) @psc_config = args[:psc_config] if args.key?(:psc_config) @require_ssl = args[:require_ssl] if args.key?(:require_ssl) @ssl_mode = args[:ssl_mode] if args.key?(:ssl_mode) end |