Class: Google::Apis::NetworkconnectivityV1::ConsumerPscConnection
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::ConsumerPscConnection
- 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
-
#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.
-
#forwarding_rule ⇒ String
The URI of the consumer forwarding rule created.
-
#gce_operation ⇒ String
The last Compute Engine operation to setup PSC connection.
-
#ip ⇒ String
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.
-
#network ⇒ String
The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map.
-
#project ⇒ String
The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.
-
#psc_connection_id ⇒ String
The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.
-
#service_attachment_uri ⇒ String
The URI of a service attachment which is the target of the PSC connection.
-
#state ⇒ String
The state of the PSC connection.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConsumerPscConnection
constructor
A new instance of ConsumerPscConnection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConsumerPscConnection
Returns a new instance of ConsumerPscConnection.
275 276 277 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 275 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
220 221 222 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 220 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
226 227 228 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 226 def error_type @error_type end |
#forwarding_rule ⇒ String
The URI of the consumer forwarding rule created. Example: projects/
projectNumOrId/regions/us-east1/networks/resourceId.
Corresponds to the JSON property forwardingRule
232 233 234 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 232 def forwarding_rule @forwarding_rule end |
#gce_operation ⇒ String
The last Compute Engine operation to setup PSC connection.
Corresponds to the JSON property gceOperation
237 238 239 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 237 def gce_operation @gce_operation end |
#ip ⇒ String
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
244 245 246 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 244 def ip @ip end |
#network ⇒ String
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
251 252 253 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 251 def network @network end |
#project ⇒ String
The consumer project whose PSC forwarding rule is connected to the service
attachments in this service connection map.
Corresponds to the JSON property project
257 258 259 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 257 def project @project end |
#psc_connection_id ⇒ String
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
263 264 265 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 263 def psc_connection_id @psc_connection_id end |
#service_attachment_uri ⇒ String
The URI of a service attachment which is the target of the PSC connection.
Corresponds to the JSON property serviceAttachmentUri
268 269 270 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 268 def @service_attachment_uri end |
#state ⇒ String
The state of the PSC connection.
Corresponds to the JSON property state
273 274 275 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 273 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 280 def update!(**args) @error = args[:error] if args.key?(:error) @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) @project = args[:project] if args.key?(:project) @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id) @service_attachment_uri = args[:service_attachment_uri] if args.key?(:service_attachment_uri) @state = args[:state] if args.key?(:state) end |