Class: Google::Apis::ServicenetworkingV1::Subnetwork
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::Subnetwork
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/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/yformat. -
#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.
-
#region ⇒ String
GCP region where the subnetwork is located.
-
#secondary_ip_ranges ⇒ Array<Google::Apis::ServicenetworkingV1::SecondaryIpRange>
List of secondary IP ranges in this subnetwork.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subnetwork
constructor
A new instance of Subnetwork.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subnetwork
Returns a new instance of Subnetwork.
3884 3885 3886 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3884 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
3854 3855 3856 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3854 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
3859 3860 3861 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3859 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
3865 3866 3867 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3865 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
3871 3872 3873 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3871 def outside_allocation @outside_allocation end |
#region ⇒ String
GCP region where the subnetwork is located.
Corresponds to the JSON property region
3877 3878 3879 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3877 def region @region end |
#secondary_ip_ranges ⇒ Array<Google::Apis::ServicenetworkingV1::SecondaryIpRange>
List of secondary IP ranges in this subnetwork.
Corresponds to the JSON property secondaryIpRanges
3882 3883 3884 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3882 def secondary_ip_ranges @secondary_ip_ranges end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3889 3890 3891 3892 3893 3894 3895 3896 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3889 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) @region = args[:region] if args.key?(:region) @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) end |