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.



1934
1935
1936
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1934

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)


1926
1927
1928
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1926

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


1932
1933
1934
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1932

def subnetworks
  @subnetworks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1939
1940
1941
1942
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1939

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