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.



2054
2055
2056
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2054

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)


2046
2047
2048
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2046

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


2052
2053
2054
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2052

def subnetworks
  @subnetworks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2059
2060
2061
2062
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2059

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