Class: Google::Apis::DataprocV1beta2::InstanceReference

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

Overview

A reference to a Compute Engine instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceReference

Returns a new instance of InstanceReference.



1443
1444
1445
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1443

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

Instance Attribute Details

#instance_idString

The unique identifier of the Compute Engine instance. Corresponds to the JSON property instanceId

Returns:

  • (String)


1431
1432
1433
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1431

def instance_id
  @instance_id
end

#instance_nameString

The user-friendly name of the Compute Engine instance. Corresponds to the JSON property instanceName

Returns:

  • (String)


1436
1437
1438
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1436

def instance_name
  @instance_name
end

#public_keyString

The public key used for sharing data with this instance. Corresponds to the JSON property publicKey

Returns:

  • (String)


1441
1442
1443
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1441

def public_key
  @public_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1448
1449
1450
1451
1452
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1448

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