Class: Google::Apis::HypercomputeclusterV1::NetworkReference
- Inherits:
-
Object
- Object
- Google::Apis::HypercomputeclusterV1::NetworkReference
- 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
-
#network ⇒ String
Output only.
-
#subnetwork ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkReference
constructor
A new instance of NetworkReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#network ⇒ String
Output only. Name of the network, in the format projects/project/global/
networks/network`.
Corresponds to the JSON propertynetwork`
1002 1003 1004 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 1002 def network @network end |
#subnetwork ⇒ String
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`
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 |