Class: Google::Apis::DataprocV1::InstanceReference

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/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.



2078
2079
2080
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2078

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)


2061
2062
2063
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2061

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)


2066
2067
2068
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2066

def instance_name
  @instance_name
end

#public_ecies_keyString

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

Returns:

  • (String)


2071
2072
2073
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2071

def public_ecies_key
  @public_ecies_key
end

#public_keyString

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

Returns:

  • (String)


2076
2077
2078
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2076

def public_key
  @public_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2083
2084
2085
2086
2087
2088
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2083

def update!(**args)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @instance_name = args[:instance_name] if args.key?(:instance_name)
  @public_ecies_key = args[:public_ecies_key] if args.key?(:public_ecies_key)
  @public_key = args[:public_key] if args.key?(:public_key)
end