Class: Google::Apis::ContainerV1beta1::UsableSubnetwork

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UsableSubnetwork

Returns a new instance of UsableSubnetwork.



4674
4675
4676
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4674

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ip_cidr_rangeString

The range of internal addresses that are owned by this subnetwork. Corresponds to the JSON property ipCidrRange

Returns:

  • (String)


4647
4648
4649
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4647

def ip_cidr_range
  @ip_cidr_range
end

#networkString

Network Name. Example: projects/my-project/global/networks/my-network Corresponds to the JSON property network

Returns:

  • (String)


4653
4654
4655
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4653

def network
  @network
end

#secondary_ip_rangesArray<Google::Apis::ContainerV1beta1::UsableSubnetworkSecondaryRange>

Secondary IP ranges. Corresponds to the JSON property secondaryIpRanges



4658
4659
4660
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4658

def secondary_ip_ranges
  @secondary_ip_ranges
end

#status_messageString

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

Returns:

  • (String)


4666
4667
4668
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4666

def status_message
  @status_message
end

#subnetworkString

Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet Corresponds to the JSON property subnetwork

Returns:

  • (String)


4672
4673
4674
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4672

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4679
4680
4681
4682
4683
4684
4685
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4679

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