Class: Google::Apis::ComputeAlpha::UsableSubnetwork
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::UsableSubnetwork
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Subnetwork which the current user has compute.subnetworks.use permission on.
Instance Attribute Summary collapse
-
#ip_cidr_range ⇒ String
The range of internal addresses that are owned by this subnetwork.
-
#network ⇒ String
Network URL.
-
#secondary_ip_ranges ⇒ Array<Google::Apis::ComputeAlpha::UsableSubnetworkSecondaryRange>
Secondary IP ranges.
-
#subnetwork ⇒ String
Subnetwork URL.
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
36777 36778 36779 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 36777 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
36760 36761 36762 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 36760 def ip_cidr_range @ip_cidr_range end |
#network ⇒ String
Network URL.
Corresponds to the JSON property network
36765 36766 36767 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 36765 def network @network end |
#secondary_ip_ranges ⇒ Array<Google::Apis::ComputeAlpha::UsableSubnetworkSecondaryRange>
Secondary IP ranges.
Corresponds to the JSON property secondaryIpRanges
36770 36771 36772 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 36770 def secondary_ip_ranges @secondary_ip_ranges end |
#subnetwork ⇒ String
Subnetwork URL.
Corresponds to the JSON property subnetwork
36775 36776 36777 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 36775 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
36782 36783 36784 36785 36786 36787 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 36782 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) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |