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.



2167
2168
2169
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2167

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

Instance Attribute Details

#limitFixnum

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

Returns:

  • (Fixnum)


2159
2160
2161
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2159

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>)


2165
2166
2167
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2165

def subnetworks
  @subnetworks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2172
2173
2174
2175
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2172

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