class Google::Apis::ContainerV1::UsableSubnetwork

UsableSubnetwork resource returns the subnetwork name, its associated network and the primary CIDR range.

Attributes

ip_cidr_range[RW]

The range of internal addresses that are owned by this subnetwork. Corresponds to the JSON property `ipCidrRange` @return [String]

network[RW]

Network Name. Example: projects/my-project/global/networks/my-network Corresponds to the JSON property `network` @return [String]

secondary_ip_ranges[RW]

Secondary IP ranges. Corresponds to the JSON property `secondaryIpRanges` @return [Array<Google::Apis::ContainerV1::UsableSubnetworkSecondaryRange>]

status_message[RW]

A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message. Corresponds to the JSON property `statusMessage` @return [String]

subnetwork[RW]

Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/ my-subnet Corresponds to the JSON property `subnetwork` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/container_v1/classes.rb, line 4930
def update!(**args)
  @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
  @network = args[:network] if args.key?(:network)
  @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges)
  @status_message = args[:status_message] if args.key?(:status_message)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end