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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

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



24916
24917
24918
# File 'generated/google/apis/compute_alpha/classes.rb', line 24916

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)


24904
24905
24906
# File 'generated/google/apis/compute_alpha/classes.rb', line 24904

def ip_cidr_range
  @ip_cidr_range
end

#networkString

Network URL. Corresponds to the JSON property network

Returns:

  • (String)


24909
24910
24911
# File 'generated/google/apis/compute_alpha/classes.rb', line 24909

def network
  @network
end

#subnetworkString

Subnetwork URL. Corresponds to the JSON property subnetwork

Returns:

  • (String)


24914
24915
24916
# File 'generated/google/apis/compute_alpha/classes.rb', line 24914

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24921
24922
24923
24924
24925
# File 'generated/google/apis/compute_alpha/classes.rb', line 24921

def update!(**args)
  @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
  @network = args[:network] if args.key?(:network)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end