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

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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UsableSubnetwork

Returns a new instance of UsableSubnetwork.



29912
29913
29914
# File 'generated/google/apis/compute_v1/classes.rb', line 29912

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)


29895
29896
29897
# File 'generated/google/apis/compute_v1/classes.rb', line 29895

def ip_cidr_range
  @ip_cidr_range
end

#networkString

Network URL. Corresponds to the JSON property network

Returns:

  • (String)


29900
29901
29902
# File 'generated/google/apis/compute_v1/classes.rb', line 29900

def network
  @network
end

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

Secondary IP ranges. Corresponds to the JSON property secondaryIpRanges



29905
29906
29907
# File 'generated/google/apis/compute_v1/classes.rb', line 29905

def secondary_ip_ranges
  @secondary_ip_ranges
end

#subnetworkString

Subnetwork URL. Corresponds to the JSON property subnetwork

Returns:

  • (String)


29910
29911
29912
# File 'generated/google/apis/compute_v1/classes.rb', line 29910

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29917
29918
29919
29920
29921
29922
# File 'generated/google/apis/compute_v1/classes.rb', line 29917

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