Class: Google::Apis::ServicenetworkingV1beta::Connection
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1beta::Connection
- 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
Message returning the created service connection.
Instance Attribute Summary collapse
-
#network ⇒ String
Name of VPC network connected with service producer network.
-
#peering ⇒ String
Output only.
-
#reserved_peering_ranges ⇒ Array<String>
Named IP address range(s) of PEERING type allocated for this service provider.
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
587 588 589 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 587 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ String
Name of VPC network connected with service producer network.
Must be in a form 'projects/project/global/networks/network'.
project is a project number, as in '12345'
network is a network name.
Corresponds to the JSON property network
570 571 572 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 570 def network @network end |
#peering ⇒ String
Output only.
Name of the peering connection that is created by the peering service.
Corresponds to the JSON property peering
576 577 578 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 576 def peering @peering end |
#reserved_peering_ranges ⇒ Array<String>
Named IP address range(s) of PEERING type allocated for this service
provider.
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
585 586 587 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 585 def reserved_peering_ranges @reserved_peering_ranges end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
592 593 594 595 596 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 592 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) end |