Class: Google::Apis::NotebooksV1::UpgradeInstanceInternalRequest
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::UpgradeInstanceInternalRequest
- 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
-
#type ⇒ String
Optional.
-
#vm_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpgradeInstanceInternalRequest
constructor
A new instance of UpgradeInstanceInternalRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpgradeInstanceInternalRequest
Returns a new instance of UpgradeInstanceInternalRequest.
2867 2868 2869 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2867 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
Optional. The optional UpgradeType. Setting this field will search for
additional compute images to upgrade this instance.
Corresponds to the JSON property type
2859 2860 2861 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2859 def type @type end |
#vm_id ⇒ String
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
2865 2866 2867 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2865 def vm_id @vm_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2872 2873 2874 2875 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2872 def update!(**args) @type = args[:type] if args.key?(:type) @vm_id = args[:vm_id] if args.key?(:vm_id) end |