Class: Google::Apis::ServicenetworkingV1::GoogleCloudServicenetworkingV1betaSubnetwork
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::GoogleCloudServicenetworkingV1betaSubnetwork
- 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 subnet that was created or discovered by a private access management service.
Instance Attribute Summary collapse
-
#ip_cidr_range ⇒ String
Subnetwork CIDR range in
10.x.x.x/y
format. -
#name ⇒ String
Subnetwork name.
-
#network ⇒ String
In the Shared VPC host project, the VPC network that's peered with the consumer network.
-
#outside_allocation ⇒ Boolean
(also: #outside_allocation?)
This is a discovered subnet that is not within the current consumer allocated ranges.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudServicenetworkingV1betaSubnetwork
constructor
A new instance of GoogleCloudServicenetworkingV1betaSubnetwork.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudServicenetworkingV1betaSubnetwork
Returns a new instance of GoogleCloudServicenetworkingV1betaSubnetwork.
1652 1653 1654 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 1652 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_cidr_range ⇒ String
Subnetwork CIDR range in 10.x.x.x/y
format.
Corresponds to the JSON property ipCidrRange
1632 1633 1634 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 1632 def ip_cidr_range @ip_cidr_range end |
#name ⇒ String
Subnetwork name. See https://cloud.google.com/compute/docs/vpc/
Corresponds to the JSON property name
1637 1638 1639 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 1637 def name @name end |
#network ⇒ String
In the Shared VPC host project, the VPC network that's peered with the
consumer network. For example: projects/1234321/global/networks/host-network
Corresponds to the JSON property network
1643 1644 1645 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 1643 def network @network end |
#outside_allocation ⇒ Boolean Also known as: outside_allocation?
This is a discovered subnet that is not within the current consumer allocated
ranges.
Corresponds to the JSON property outsideAllocation
1649 1650 1651 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 1649 def outside_allocation @outside_allocation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1657 1658 1659 1660 1661 1662 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 1657 def update!(**args) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @outside_allocation = args[:outside_allocation] if args.key?(:outside_allocation) end |