Class: Google::Apis::NotebooksV1::ReportInstanceInfoRequest

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

Overview

Request for notebook instances to report information to Notebooks API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportInstanceInfoRequest

Returns a new instance of ReportInstanceInfoRequest.



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

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

Instance Attribute Details

#metadataHash<String,String>

The metadata reported to Notebooks API. This will be merged to the instance metadata store Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


2063
2064
2065
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2063

def 
  @metadata
end

#vm_idString

Required. The VM hardware token for authenticating the VM. https://cloud. google.com/compute/docs/instances/verifying-instance-identity Corresponds to the JSON property vmId

Returns:

  • (String)


2069
2070
2071
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2069

def vm_id
  @vm_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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