Class: Google::Apis::HypercomputeclusterV1::NetworkReference

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

Overview

A reference to a VPC network in Google Compute Engine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkReference

Returns a new instance of NetworkReference.



1010
1011
1012
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1010

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

Instance Attribute Details

#networkString

Output only. Name of the network, in the format projects/project/global/ networks/network`. Corresponds to the JSON propertynetwork`

Returns:

  • (String)


1002
1003
1004
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1002

def network
  @network
end

#subnetworkString

Output only. Name of the particular subnetwork being used by the cluster, in the format projects/project/regions/region/subnetworks/subnetwork`. Corresponds to the JSON propertysubnetwork`

Returns:

  • (String)


1008
1009
1010
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1008

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1015
1016
1017
1018
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1015

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