class Google::Apis::ServicenetworkingV1::Subnetwork
Represents a subnet that was created or discovered by a private access management service.
Attributes
Subnetwork
CIDR range in `10.x.x.x/y` format. Corresponds to the JSON property `ipCidrRange` @return [String]
Subnetwork
name. See cloud.google.com/compute/docs/vpc/ Corresponds to the JSON property `name` @return [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` @return [String]
This is a discovered subnet that is not within the current consumer allocated ranges. Corresponds to the JSON property `outsideAllocation` @return [Boolean]
This is a discovered subnet that is not within the current consumer allocated ranges. Corresponds to the JSON property `outsideAllocation` @return [Boolean]
GCP region where the subnetwork is located. Corresponds to the JSON property `region` @return [String]
List of secondary IP ranges in this subnetwork. Corresponds to the JSON property `secondaryIpRanges` @return [Array<Google::Apis::ServicenetworkingV1::SecondaryIpRange>]
Public Class Methods
# File lib/google/apis/servicenetworking_v1/classes.rb, line 3904 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/servicenetworking_v1/classes.rb, line 3909 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