Class: Google::Apis::DatamigrationV1beta1::SqlIpConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datamigration_v1beta1/classes.rb,
generated/google/apis/datamigration_v1beta1/representations.rb,
generated/google/apis/datamigration_v1beta1/representations.rb

Overview

IP Management configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlIpConfig

Returns a new instance of SqlIpConfig.



1382
1383
1384
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1382

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

Instance Attribute Details

#authorized_networksArray<Google::Apis::DatamigrationV1beta1::SqlAclEntry>

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24). Corresponds to the JSON property authorizedNetworks



1360
1361
1362
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1360

def authorized_networks
  @authorized_networks
end

#enable_ipv4Boolean Also known as: enable_ipv4?

Whether the instance should be assigned an IPv4 address or not. Corresponds to the JSON property enableIpv4

Returns:

  • (Boolean)


1365
1366
1367
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1365

def enable_ipv4
  @enable_ipv4
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)


1374
1375
1376
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1374

def private_network
  @private_network
end

#require_sslBoolean Also known as: require_ssl?

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

Returns:

  • (Boolean)


1379
1380
1381
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1379

def require_ssl
  @require_ssl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1387
1388
1389
1390
1391
1392
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1387

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