Class: Google::Apis::DataprocV1beta2::InstanceReference
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::InstanceReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1beta2/classes.rb,
lib/google/apis/dataproc_v1beta2/representations.rb,
lib/google/apis/dataproc_v1beta2/representations.rb
Overview
A reference to a Compute Engine instance.
Instance Attribute Summary collapse
-
#instance_id ⇒ String
The unique identifier of the Compute Engine instance.
-
#instance_name ⇒ String
The user-friendly name of the Compute Engine instance.
-
#public_key ⇒ String
The public key used for sharing data with this instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceReference
constructor
A new instance of InstanceReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceReference
Returns a new instance of InstanceReference.
1448 1449 1450 |
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1448 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance_id ⇒ String
The unique identifier of the Compute Engine instance.
Corresponds to the JSON property instanceId
1436 1437 1438 |
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1436 def instance_id @instance_id end |
#instance_name ⇒ String
The user-friendly name of the Compute Engine instance.
Corresponds to the JSON property instanceName
1441 1442 1443 |
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1441 def instance_name @instance_name end |
#public_key ⇒ String
The public key used for sharing data with this instance.
Corresponds to the JSON property publicKey
1446 1447 1448 |
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1446 def public_key @public_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1453 1454 1455 1456 1457 |
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1453 def update!(**args) @instance_id = args[:instance_id] if args.key?(:instance_id) @instance_name = args[:instance_name] if args.key?(:instance_name) @public_key = args[:public_key] if args.key?(:public_key) end |