Class: Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1betaConnection
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1betaConnection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1beta/classes.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb
Overview
Represents a private connection resource. A private connection is implemented as a VPC Network Peering connection between a service producer's VPC network and a service consumer's VPC network.
Instance Attribute Summary collapse
-
#network ⇒ String
The name of service consumer's VPC network that's connected with service producer network, in the following format:
projects/
project/global/networks/
network``. -
#peering ⇒ String
Output only.
-
#reserved_peering_ranges ⇒ Array<String>
The name of one or more allocated IP address ranges for this service producer of type
PEERING
. -
#service ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudServicenetworkingV1betaConnection
constructor
A new instance of GoogleCloudServicenetworkingV1betaConnection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudServicenetworkingV1betaConnection
Returns a new instance of GoogleCloudServicenetworkingV1betaConnection.
1479 1480 1481 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1479 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ String
The name of service consumer's VPC network that's connected with service
producer network, in the following format: projects/
project/global/networks/
network.
projectis a project number, such as in `12345` that includes
the VPC service consumer's VPC network.
network`is the name of the service
consumer's VPC network.
Corresponds to the JSON property
network`
1457 1458 1459 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1457 def network @network end |
#peering ⇒ String
Output only. The name of the VPC Network Peering connection that was created
by the service producer.
Corresponds to the JSON property peering
1463 1464 1465 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1463 def peering @peering end |
#reserved_peering_ranges ⇒ Array<String>
The name of one or more allocated IP address ranges for this service producer
of type PEERING
. Note that invoking this method with a different range when
connection is already established will not modify already provisioned service
producer subnetworks.
Corresponds to the JSON property reservedPeeringRanges
1471 1472 1473 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1471 def reserved_peering_ranges @reserved_peering_ranges end |
#service ⇒ String
Output only. The name of the peering service that's associated with this
connection, in the following format: services/
service name`.
Corresponds to the JSON property
service`
1477 1478 1479 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1477 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1484 1485 1486 1487 1488 1489 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1484 def update!(**args) @network = args[:network] if args.key?(:network) @peering = args[:peering] if args.key?(:peering) @reserved_peering_ranges = args[:reserved_peering_ranges] if args.key?(:reserved_peering_ranges) @service = args[:service] if args.key?(:service) end |