Class: Google::Apis::ComputeBeta::UsableSubnetwork
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::UsableSubnetwork
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/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::ComputeBeta::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.
Constructor Details
#initialize(**args) ⇒ UsableSubnetwork
Returns a new instance of UsableSubnetwork.
39378 39379 39380 |
# File 'lib/google/apis/compute_beta/classes.rb', line 39378 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
39361 39362 39363 |
# File 'lib/google/apis/compute_beta/classes.rb', line 39361 def ip_cidr_range @ip_cidr_range end |
#network ⇒ String
Network URL.
Corresponds to the JSON property network
39366 39367 39368 |
# File 'lib/google/apis/compute_beta/classes.rb', line 39366 def network @network end |
#secondary_ip_ranges ⇒ Array<Google::Apis::ComputeBeta::UsableSubnetworkSecondaryRange>
Secondary IP ranges.
Corresponds to the JSON property secondaryIpRanges
39371 39372 39373 |
# File 'lib/google/apis/compute_beta/classes.rb', line 39371 def secondary_ip_ranges @secondary_ip_ranges end |
#subnetwork ⇒ String
Subnetwork URL.
Corresponds to the JSON property subnetwork
39376 39377 39378 |
# File 'lib/google/apis/compute_beta/classes.rb', line 39376 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
39383 39384 39385 39386 39387 39388 |
# File 'lib/google/apis/compute_beta/classes.rb', line 39383 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 |