Class: Google::Apis::NotebooksV2::UpgradeHistoryEntry

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

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.



1710
1711
1712
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1710

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

Instance Attribute Details

#actionString

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

Returns:

  • (String)


1667
1668
1669
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1667

def action
  @action
end

#container_imageString

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

Returns:

  • (String)


1672
1673
1674
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1672

def container_image
  @container_image
end

#create_timeString

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

Returns:

  • (String)


1677
1678
1679
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1677

def create_time
  @create_time
end

#frameworkString

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

Returns:

  • (String)


1682
1683
1684
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1682

def framework
  @framework
end

#snapshotString

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

Returns:

  • (String)


1688
1689
1690
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1688

def snapshot
  @snapshot
end

#stateString

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

Returns:

  • (String)


1693
1694
1695
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1693

def state
  @state
end

#target_versionString

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

Returns:

  • (String)


1698
1699
1700
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1698

def target_version
  @target_version
end

#versionString

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

Returns:

  • (String)


1703
1704
1705
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1703

def version
  @version
end

#vm_imageString

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

Returns:

  • (String)


1708
1709
1710
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1708

def vm_image
  @vm_image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1715

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_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