Class: Google::Apis::ServicenetworkingV1::Connection
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::Connection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicenetworking_v1/classes.rb,
generated/google/apis/servicenetworking_v1/representations.rb,
generated/google/apis/servicenetworking_v1/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) ⇒ Connection
constructor
A new instance of Connection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Connection
Returns a new instance of Connection.
658 659 660 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 658 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`
630 631 632 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 630 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
637 638 639 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 637 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 CreateConnection method with a different range when
connection is already established will not modify already provisioned
service producer subnetworks.
If CreateConnection method is invoked repeatedly to reconnect when peering
connection had been disconnected on the consumer side, leaving this field
empty will restore previously allocated IP ranges.
Corresponds to the JSON property reservedPeeringRanges
649 650 651 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 649 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`
656 657 658 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 656 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
663 664 665 666 667 668 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 663 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 |