Class: Google::Apis::ServicenetworkingV1beta::Connection

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicenetworking_v1beta/classes.rb,
generated/google/apis/servicenetworking_v1beta/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Connection

Returns a new instance of Connection



610
611
612
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 610

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#networkString

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 propertynetwork`

Returns:

  • (String)


585
586
587
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 585

def network
  @network
end

#peeringString

Output only. The name of the VPC Network Peering connection that was created by the service producer. Corresponds to the JSON property peering

Returns:

  • (String)


592
593
594
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 592

def peering
  @peering
end

#reserved_peering_rangesArray<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

Returns:

  • (Array<String>)


601
602
603
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 601

def reserved_peering_ranges
  @reserved_peering_ranges
end

#serviceString

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 propertyservice`

Returns:

  • (String)


608
609
610
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 608

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



615
616
617
618
619
620
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 615

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