Class: Google::Apis::NetworkconnectivityV1::ConsumerPscConnection

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

PSC connection details on consumer side.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConsumerPscConnection

Returns a new instance of ConsumerPscConnection.



438
439
440
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 438

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

Instance Attribute Details

#errorGoogle::Apis::NetworkconnectivityV1::GoogleRpcStatus

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property error



360
361
362
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 360

def error
  @error
end

#error_infoGoogle::Apis::NetworkconnectivityV1::GoogleRpcErrorInfo

Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: " reason": "API_DISABLED" "domain": "googleapis.com" "metadata": "resource": " projects/123", "service": "pubsub.googleapis.com" This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata" : "availableRegions": "us-central1,us-east2" Corresponds to the JSON property errorInfo



372
373
374
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 372

def error_info
  @error_info
end

#error_typeString

The error type indicates whether the error is consumer facing, producer facing or system internal. Corresponds to the JSON property errorType

Returns:

  • (String)


378
379
380
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 378

def error_type
  @error_type
end

#forwarding_ruleString

The URI of the consumer forwarding rule created. Example: projects/ projectNumOrId/regions/us-east1/networks/resourceId. Corresponds to the JSON property forwardingRule

Returns:

  • (String)


384
385
386
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 384

def forwarding_rule
  @forwarding_rule
end

#gce_operationString

The last Compute Engine operation to setup PSC connection. Corresponds to the JSON property gceOperation

Returns:

  • (String)


389
390
391
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 389

def gce_operation
  @gce_operation
end

#ipString

The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map. Corresponds to the JSON property ip

Returns:

  • (String)


396
397
398
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 396

def ip
  @ip
end

#networkString

The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC). Corresponds to the JSON property network

Returns:

  • (String)


403
404
405
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 403

def network
  @network
end

#producer_instance_idString

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

Returns:

  • (String)


408
409
410
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 408

def producer_instance_id
  @producer_instance_id
end

#projectString

The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map. Corresponds to the JSON property project

Returns:

  • (String)


414
415
416
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 414

def project
  @project
end

#psc_connection_idString

The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map. Corresponds to the JSON property pscConnectionId

Returns:

  • (String)


420
421
422
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 420

def psc_connection_id
  @psc_connection_id
end

#selected_subnetworkString

Output only. The URI of the selected subnetwork selected to allocate IP address for this connection. Corresponds to the JSON property selectedSubnetwork

Returns:

  • (String)


426
427
428
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 426

def selected_subnetwork
  @selected_subnetwork
end

#service_attachment_uriString

The URI of a service attachment which is the target of the PSC connection. Corresponds to the JSON property serviceAttachmentUri

Returns:

  • (String)


431
432
433
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 431

def service_attachment_uri
  @service_attachment_uri
end

#stateString

The state of the PSC connection. Corresponds to the JSON property state

Returns:

  • (String)


436
437
438
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 436

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 443

def update!(**args)
  @error = args[:error] if args.key?(:error)
  @error_info = args[:error_info] if args.key?(:error_info)
  @error_type = args[:error_type] if args.key?(:error_type)
  @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
  @gce_operation = args[:gce_operation] if args.key?(:gce_operation)
  @ip = args[:ip] if args.key?(:ip)
  @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)
  @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
  @selected_subnetwork = args[:selected_subnetwork] if args.key?(:selected_subnetwork)
  @service_attachment_uri = args[:service_attachment_uri] if args.key?(:service_attachment_uri)
  @state = args[:state] if args.key?(:state)
end