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



23506
23507
23508
# File 'generated/google/apis/compute_alpha/classes.rb', line 23506

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#subnetworkString

Subnetwork URL. Corresponds to the JSON property subnetwork

Returns:

  • (String)


23504
23505
23506
# File 'generated/google/apis/compute_alpha/classes.rb', line 23504

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23511
23512
23513
# File 'generated/google/apis/compute_alpha/classes.rb', line 23511

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