Class: Google::Apis::ComputeV1::UsableSubnetwork

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.



36566
36567
36568
# File 'lib/google/apis/compute_v1/classes.rb', line 36566

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)


36549
36550
36551
# File 'lib/google/apis/compute_v1/classes.rb', line 36549

def ip_cidr_range
  @ip_cidr_range
end

#networkString

Network URL. Corresponds to the JSON property network

Returns:

  • (String)


36554
36555
36556
# File 'lib/google/apis/compute_v1/classes.rb', line 36554

def network
  @network
end

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

Secondary IP ranges. Corresponds to the JSON property secondaryIpRanges



36559
36560
36561
# File 'lib/google/apis/compute_v1/classes.rb', line 36559

def secondary_ip_ranges
  @secondary_ip_ranges
end

#subnetworkString

Subnetwork URL. Corresponds to the JSON property subnetwork

Returns:

  • (String)


36564
36565
36566
# File 'lib/google/apis/compute_v1/classes.rb', line 36564

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36571
36572
36573
36574
36575
36576
# File 'lib/google/apis/compute_v1/classes.rb', line 36571

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