Class: Google::Apis::ComputeAlpha::UsableSubnetwork

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

Overview

Subnetwork which the current user has compute.subnetworks.use permission on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UsableSubnetwork

Returns a new instance of UsableSubnetwork.



46173
46174
46175
# File 'lib/google/apis/compute_alpha/classes.rb', line 46173

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)


46156
46157
46158
# File 'lib/google/apis/compute_alpha/classes.rb', line 46156

def ip_cidr_range
  @ip_cidr_range
end

#networkString

Network URL. Corresponds to the JSON property network

Returns:

  • (String)


46161
46162
46163
# File 'lib/google/apis/compute_alpha/classes.rb', line 46161

def network
  @network
end

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

Secondary IP ranges. Corresponds to the JSON property secondaryIpRanges



46166
46167
46168
# File 'lib/google/apis/compute_alpha/classes.rb', line 46166

def secondary_ip_ranges
  @secondary_ip_ranges
end

#subnetworkString

Subnetwork URL. Corresponds to the JSON property subnetwork

Returns:

  • (String)


46171
46172
46173
# File 'lib/google/apis/compute_alpha/classes.rb', line 46171

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46178
46179
46180
46181
46182
46183
# File 'lib/google/apis/compute_alpha/classes.rb', line 46178

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