class Google::Apis::ServicenetworkingV1beta::Connection

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.

Attributes

network[RW]

The name of service consumer's VPC network that's connected with service producer network, in the following format: `projects/`project`/global/networks/ `network“. “project“ is 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` @return [String]

peering[RW]

Output only. The name of the VPC Network Peering connection that was created by the service producer. Corresponds to the JSON property `peering` @return [String]

reserved_peering_ranges[RW]

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` @return [Array<String>]

service[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicenetworking_v1beta/classes.rb, line 673
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicenetworking_v1beta/classes.rb, line 678
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