Class: Google::Apis::NetworkconnectivityV1::PscConnection

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

Information about a specific Private Service Connect connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PscConnection

Returns a new instance of PscConnection.



1371
1372
1373
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1371

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

Instance Attribute Details

#consumer_addressString

The resource reference of the consumer address. Corresponds to the JSON property consumerAddress

Returns:

  • (String)


1328
1329
1330
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1328

def consumer_address
  @consumer_address
end

#consumer_forwarding_ruleString

The resource reference of the PSC Forwarding Rule within the consumer VPC. Corresponds to the JSON property consumerForwardingRule

Returns:

  • (String)


1333
1334
1335
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1333

def consumer_forwarding_rule
  @consumer_forwarding_rule
end

#consumer_target_projectString

The project where the PSC connection is created. Corresponds to the JSON property consumerTargetProject

Returns:

  • (String)


1338
1339
1340
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1338

def consumer_target_project
  @consumer_target_project
end

#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



1348
1349
1350
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1348

def error
  @error
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)


1354
1355
1356
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1354

def error_type
  @error_type
end

#gce_operationString

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

Returns:

  • (String)


1359
1360
1361
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1359

def gce_operation
  @gce_operation
end

#psc_connection_idString

The PSC connection id of the PSC forwarding rule. Corresponds to the JSON property pscConnectionId

Returns:

  • (String)


1364
1365
1366
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1364

def psc_connection_id
  @psc_connection_id
end

#stateString

State of the PSC Connection Corresponds to the JSON property state

Returns:

  • (String)


1369
1370
1371
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1369

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1376

def update!(**args)
  @consumer_address = args[:consumer_address] if args.key?(:consumer_address)
  @consumer_forwarding_rule = args[:consumer_forwarding_rule] if args.key?(:consumer_forwarding_rule)
  @consumer_target_project = args[:consumer_target_project] if args.key?(:consumer_target_project)
  @error = args[:error] if args.key?(:error)
  @error_type = args[:error_type] if args.key?(:error_type)
  @gce_operation = args[:gce_operation] if args.key?(:gce_operation)
  @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
  @state = args[:state] if args.key?(:state)
end