class Google::Apis::ServicenetworkingV1::Subnetwork

Represents a subnet that was created or discovered by a private access management service.

Attributes

ip_cidr_range[RW]

Subnetwork CIDR range in `10.x.x.x/y` format. Corresponds to the JSON property `ipCidrRange` @return [String]

name[RW]

Subnetwork name. See cloud.google.com/compute/docs/vpc/ Corresponds to the JSON property `name` @return [String]

network[RW]

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]

outside_allocation[RW]

This is a discovered subnet that is not within the current consumer allocated ranges. Corresponds to the JSON property `outsideAllocation` @return [Boolean]

outside_allocation?[RW]

This is a discovered subnet that is not within the current consumer allocated ranges. Corresponds to the JSON property `outsideAllocation` @return [Boolean]

region[RW]

GCP region where the subnetwork is located. Corresponds to the JSON property `region` @return [String]

secondary_ip_ranges[RW]

List of secondary IP ranges in this subnetwork. Corresponds to the JSON property `secondaryIpRanges` @return [Array<Google::Apis::ServicenetworkingV1::SecondaryIpRange>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicenetworking_v1/classes.rb, line 3904
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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