Class: Google::Apis::NotebooksV1::UpgradeHistoryEntry

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

The entry of VM image upgrade history.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeHistoryEntry

Returns a new instance of UpgradeHistoryEntry.



2663
2664
2665
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2663

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

Instance Attribute Details

#actionString

Action. Rolloback or Upgrade. Corresponds to the JSON property action

Returns:

  • (String)


2616
2617
2618
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2616

def action
  @action
end

#container_imageString

The container image before this instance upgrade. Corresponds to the JSON property containerImage

Returns:

  • (String)


2621
2622
2623
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2621

def container_image
  @container_image
end

#create_timeString

The time that this instance upgrade history entry is created. Corresponds to the JSON property createTime

Returns:

  • (String)


2626
2627
2628
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2626

def create_time
  @create_time
end

#frameworkString

The framework of this notebook instance. Corresponds to the JSON property framework

Returns:

  • (String)


2631
2632
2633
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2631

def framework
  @framework
end

#snapshotString

The snapshot of the boot disk of this notebook instance before upgrade. Corresponds to the JSON property snapshot

Returns:

  • (String)


2636
2637
2638
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2636

def snapshot
  @snapshot
end

#stateString

The state of this instance upgrade history entry. Corresponds to the JSON property state

Returns:

  • (String)


2641
2642
2643
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2641

def state
  @state
end

#target_imageString

Target VM Image. Format: ainotebooks-vm/project/image-name/name. Corresponds to the JSON property targetImage

Returns:

  • (String)


2646
2647
2648
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2646

def target_image
  @target_image
end

#target_versionString

Target VM Version, like m63. Corresponds to the JSON property targetVersion

Returns:

  • (String)


2651
2652
2653
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2651

def target_version
  @target_version
end

#versionString

The version of the notebook instance before this upgrade. Corresponds to the JSON property version

Returns:

  • (String)


2656
2657
2658
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2656

def version
  @version
end

#vm_imageString

The VM image before this instance upgrade. Corresponds to the JSON property vmImage

Returns:

  • (String)


2661
2662
2663
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2661

def vm_image
  @vm_image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2668

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @container_image = args[:container_image] if args.key?(:container_image)
  @create_time = args[:create_time] if args.key?(:create_time)
  @framework = args[:framework] if args.key?(:framework)
  @snapshot = args[:snapshot] if args.key?(:snapshot)
  @state = args[:state] if args.key?(:state)
  @target_image = args[:target_image] if args.key?(:target_image)
  @target_version = args[:target_version] if args.key?(:target_version)
  @version = args[:version] if args.key?(:version)
  @vm_image = args[:vm_image] if args.key?(:vm_image)
end