Class: Google::Apis::NotebooksV1::UpgradeInstanceInternalRequest

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 upgrading a notebook instance from within the VM

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeInstanceInternalRequest

Returns a new instance of UpgradeInstanceInternalRequest.



3085
3086
3087
# File 'lib/google/apis/notebooks_v1/classes.rb', line 3085

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

Instance Attribute Details

#typeString

Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance. Corresponds to the JSON property type

Returns:

  • (String)


3077
3078
3079
# File 'lib/google/apis/notebooks_v1/classes.rb', line 3077

def type
  @type
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)


3083
3084
3085
# File 'lib/google/apis/notebooks_v1/classes.rb', line 3083

def vm_id
  @vm_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3090
3091
3092
3093
# File 'lib/google/apis/notebooks_v1/classes.rb', line 3090

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