Class: Google::Apis::NetworkconnectivityV1::PscConfig

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

Overview

Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PscConfig

Returns a new instance of PscConfig.



1310
1311
1312
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1310

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

Instance Attribute Details

#limitFixnum

Max number of PSC connections for this policy. Corresponds to the JSON property limit

Returns:

  • (Fixnum)


1302
1303
1304
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1302

def limit
  @limit
end

#subnetworksArray<String>

The resource paths of subnetworks to use for IP address management. Example: projects/projectNumOrId/regions/region/subnetworks/resourceId. Corresponds to the JSON property subnetworks

Returns:

  • (Array<String>)


1308
1309
1310
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1308

def subnetworks
  @subnetworks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1315
1316
1317
1318
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1315

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