Class: Google::Apis::SqladminV1beta4::IpConfiguration

Inherits:
Object
  • Object
show all
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

IP Management configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IpConfiguration

Returns a new instance of IpConfiguration.



1865
1866
1867
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1865

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorized_networksArray<Google::Apis::SqladminV1beta4::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: 192.168.100.0/24). Corresponds to the JSON property authorizedNetworks



1843
1844
1845
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1843

def authorized_networks
  @authorized_networks
end

#ipv4_enabledBoolean Also known as: ipv4_enabled?

Whether the instance is assigned a public IP address or not. Corresponds to the JSON property ipv4Enabled

Returns:

  • (Boolean)


1848
1849
1850
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1848

def ipv4_enabled
  @ipv4_enabled
end

#private_networkString

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

Returns:

  • (String)


1857
1858
1859
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1857

def private_network
  @private_network
end

#require_sslBoolean Also known as: require_ssl?

Whether SSL connections over IP are enforced or not. Corresponds to the JSON property requireSsl

Returns:

  • (Boolean)


1862
1863
1864
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1862

def require_ssl
  @require_ssl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1870
1871
1872
1873
1874
1875
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1870

def update!(**args)
  @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
  @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
  @private_network = args[:private_network] if args.key?(:private_network)
  @require_ssl = args[:require_ssl] if args.key?(:require_ssl)
end