Class: Google::Apis::NetworkconnectivityV1::PscConnection
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::PscConnection
- 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
-
#consumer_address ⇒ String
The resource reference of the consumer address.
-
#consumer_forwarding_rule ⇒ String
The resource reference of the PSC Forwarding Rule within the consumer VPC.
-
#consumer_target_project ⇒ String
The project where the PSC connection is created.
-
#error ⇒ Google::Apis::NetworkconnectivityV1::GoogleRpcStatus
The
Statustype defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. -
#error_type ⇒ String
The error type indicates whether the error is consumer facing, producer facing or system internal.
-
#gce_operation ⇒ String
The last Compute Engine operation to setup PSC connection.
-
#psc_connection_id ⇒ String
The PSC connection id of the PSC forwarding rule.
-
#state ⇒ String
State of the PSC Connection Corresponds to the JSON property
state.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PscConnection
constructor
A new instance of PscConnection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PscConnection
Returns a new instance of PscConnection.
1569 1570 1571 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1569 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer_address ⇒ String
The resource reference of the consumer address.
Corresponds to the JSON property consumerAddress
1526 1527 1528 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1526 def consumer_address @consumer_address end |
#consumer_forwarding_rule ⇒ String
The resource reference of the PSC Forwarding Rule within the consumer VPC.
Corresponds to the JSON property consumerForwardingRule
1531 1532 1533 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1531 def consumer_forwarding_rule @consumer_forwarding_rule end |
#consumer_target_project ⇒ String
The project where the PSC connection is created.
Corresponds to the JSON property consumerTargetProject
1536 1537 1538 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1536 def consumer_target_project @consumer_target_project end |
#error ⇒ Google::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
1546 1547 1548 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1546 def error @error end |
#error_type ⇒ String
The error type indicates whether the error is consumer facing, producer facing
or system internal.
Corresponds to the JSON property errorType
1552 1553 1554 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1552 def error_type @error_type end |
#gce_operation ⇒ String
The last Compute Engine operation to setup PSC connection.
Corresponds to the JSON property gceOperation
1557 1558 1559 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1557 def gce_operation @gce_operation end |
#psc_connection_id ⇒ String
The PSC connection id of the PSC forwarding rule.
Corresponds to the JSON property pscConnectionId
1562 1563 1564 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1562 def psc_connection_id @psc_connection_id end |
#state ⇒ String
State of the PSC Connection
Corresponds to the JSON property state
1567 1568 1569 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1567 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1574 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 |