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.



332
333
334
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 332

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

Instance Attribute Details

#consumer_instance_projectString

Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/' Eg. ' projects/consumer-project' or 'projects/1234' Corresponds to the JSON property consumerInstanceProject

Returns:

  • (String)


292
293
294
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 292

def consumer_instance_project
  @consumer_instance_project
end

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


298
299
300
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 298

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)


307
308
309
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 307

def network
  @network
end

#producer_instance_idString

Immutable. An immutable identifier for the producer instance. Corresponds to the JSON property producerInstanceId

Returns:

  • (String)


312
313
314
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 312

def producer_instance_id
  @producer_instance_id
end

#projectString

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

Returns:

  • (String)


317
318
319
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 317

def project
  @project
end

#service_attachment_ip_address_mapHash<String,String>

Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here. Corresponds to the JSON property serviceAttachmentIpAddressMap

Returns:

  • (Hash<String,String>)


324
325
326
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 324

def service_attachment_ip_address_map
  @service_attachment_ip_address_map
end

#stateString

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

Returns:

  • (String)


330
331
332
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 330

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



337
338
339
340
341
342
343
344
345
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 337

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