Class: Google::Apis::NotebooksV2::CheckInstanceUpgradabilityResponse

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

Overview

Response for checking if a notebook instance is upgradeable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CheckInstanceUpgradabilityResponse

Returns a new instance of CheckInstanceUpgradabilityResponse.



261
262
263
# File 'lib/google/apis/notebooks_v2/classes.rb', line 261

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

Instance Attribute Details

#upgrade_imageString

The new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true. Corresponds to the JSON property upgradeImage

Returns:

  • (String)


242
243
244
# File 'lib/google/apis/notebooks_v2/classes.rb', line 242

def upgrade_image
  @upgrade_image
end

#upgrade_infoString

Additional information about upgrade. Corresponds to the JSON property upgradeInfo

Returns:

  • (String)


247
248
249
# File 'lib/google/apis/notebooks_v2/classes.rb', line 247

def upgrade_info
  @upgrade_info
end

#upgrade_versionString

The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true. Corresponds to the JSON property upgradeVersion

Returns:

  • (String)


253
254
255
# File 'lib/google/apis/notebooks_v2/classes.rb', line 253

def upgrade_version
  @upgrade_version
end

#upgradeableBoolean Also known as: upgradeable?

If an instance is upgradeable. Corresponds to the JSON property upgradeable

Returns:

  • (Boolean)


258
259
260
# File 'lib/google/apis/notebooks_v2/classes.rb', line 258

def upgradeable
  @upgradeable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



266
267
268
269
270
271
# File 'lib/google/apis/notebooks_v2/classes.rb', line 266

def update!(**args)
  @upgrade_image = args[:upgrade_image] if args.key?(:upgrade_image)
  @upgrade_info = args[:upgrade_info] if args.key?(:upgrade_info)
  @upgrade_version = args[:upgrade_version] if args.key?(:upgrade_version)
  @upgradeable = args[:upgradeable] if args.key?(:upgradeable)
end