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.



1812
1813
1814
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1812

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

Instance Attribute Details

#actionString

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

Returns:

  • (String)


1770
1771
1772
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1770

def action
  @action
end

#container_imageString

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

Returns:

  • (String)


1775
1776
1777
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1775

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)


1780
1781
1782
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1780

def create_time
  @create_time
end

#frameworkString

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

Returns:

  • (String)


1785
1786
1787
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1785

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)


1790
1791
1792
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1790

def snapshot
  @snapshot
end

#stateString

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

Returns:

  • (String)


1795
1796
1797
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1795

def state
  @state
end

#target_imageString

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

Returns:

  • (String)


1800
1801
1802
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1800

def target_image
  @target_image
end

#versionString

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

Returns:

  • (String)


1805
1806
1807
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1805

def version
  @version
end

#vm_imageString

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

Returns:

  • (String)


1810
1811
1812
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1810

def vm_image
  @vm_image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1817

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)
  @version = args[:version] if args.key?(:version)
  @vm_image = args[:vm_image] if args.key?(:vm_image)
end