Class: Google::Apis::NetworkconnectivityV1::ConsumerPscConfig

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

Allow the producer to specify which consumers can connect to it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConsumerPscConfig

Returns a new instance of ConsumerPscConfig.



202
203
204
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 202

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

Instance Attribute Details

#disable_global_accessBoolean Also known as: disable_global_access?

This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region. Corresponds to the JSON property disableGlobalAccess

Returns:

  • (Boolean)


180
181
182
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 180

def disable_global_access
  @disable_global_access
end

#networkString

The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig. project in the case of SharedVPC. Example: projects/projectNumOrId/global/ networks/networkId. Corresponds to the JSON property network

Returns:

  • (String)


189
190
191
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 189

def network
  @network
end

#projectString

The consumer project where PSC connections are allowed to be created in. Corresponds to the JSON property project

Returns:

  • (String)


194
195
196
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 194

def project
  @project
end

#stateString

Output only. Overall state of PSC Connections management for this consumer psc config. Corresponds to the JSON property state

Returns:

  • (String)


200
201
202
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 200

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



207
208
209
210
211
212
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 207

def update!(**args)
  @disable_global_access = args[:disable_global_access] if args.key?(:disable_global_access)
  @network = args[:network] if args.key?(:network)
  @project = args[:project] if args.key?(:project)
  @state = args[:state] if args.key?(:state)
end