Class: Google::Apis::ContainerV1beta1::UsableSubnetwork
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::UsableSubnetwork
- 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
-
#ip_cidr_range ⇒ String
The range of internal addresses that are owned by this subnetwork.
-
#network ⇒ String
Network Name.
-
#secondary_ip_ranges ⇒ Array<Google::Apis::ContainerV1beta1::UsableSubnetworkSecondaryRange>
Secondary IP ranges.
-
#status_message ⇒ String
A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet.
-
#subnetwork ⇒ String
Subnetwork Name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UsableSubnetwork
constructor
A new instance of UsableSubnetwork.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UsableSubnetwork
Returns a new instance of UsableSubnetwork
3649 3650 3651 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3649 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_cidr_range ⇒ String
The range of internal addresses that are owned by this subnetwork.
Corresponds to the JSON property ipCidrRange
3622 3623 3624 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3622 def ip_cidr_range @ip_cidr_range end |
#network ⇒ String
Network Name.
Example: projects/my-project/global/networks/my-network
Corresponds to the JSON property network
3628 3629 3630 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3628 def network @network end |
#secondary_ip_ranges ⇒ Array<Google::Apis::ContainerV1beta1::UsableSubnetworkSecondaryRange>
Secondary IP ranges.
Corresponds to the JSON property secondaryIpRanges
3633 3634 3635 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3633 def secondary_ip_ranges @secondary_ip_ranges end |
#status_message ⇒ String
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
3641 3642 3643 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3641 def @status_message end |
#subnetwork ⇒ String
Subnetwork Name.
Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
Corresponds to the JSON property subnetwork
3647 3648 3649 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3647 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3654 3655 3656 3657 3658 3659 3660 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3654 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 |