Class: Google::Apis::AlloydbV1beta::InstanceNetworkConfig

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

Overview

Metadata related to instance level network configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceNetworkConfig

Returns a new instance of InstanceNetworkConfig.



1393
1394
1395
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1393

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

Instance Attribute Details

#authorized_external_networks ⇒ Array<Google::Apis::AlloydbV1beta::AuthorizedNetwork>

Optional. A list of external network authorized to access this instance. Corresponds to the JSON property authorizedExternalNetworks



1385
1386
1387
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1385

def authorized_external_networks
  @authorized_external_networks
end

#enable_public_ip ⇒ Boolean Also known as: enable_public_ip?

Optional. Enabling public ip for the instance. Corresponds to the JSON property enablePublicIp

Returns:

  • (Boolean)


1390
1391
1392
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1390

def enable_public_ip
  @enable_public_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1398
1399
1400
1401
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1398

def update!(**args)
  @authorized_external_networks = args[:authorized_external_networks] if args.key?(:authorized_external_networks)
  @enable_public_ip = args[:enable_public_ip] if args.key?(:enable_public_ip)
end