Class: Google::Apis::NotebooksV1::Runtime

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 definition of a Runtime for a managed notebook instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Runtime

Returns a new instance of Runtime.



1748
1749
1750
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1748

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

Instance Attribute Details

#access_configGoogle::Apis::NotebooksV1::RuntimeAccessConfig

Specifies the login configuration for Runtime Corresponds to the JSON property accessConfig



1701
1702
1703
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1701

def access_config
  @access_config
end

#create_timeString

Output only. Runtime creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


1706
1707
1708
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1706

def create_time
  @create_time
end

#health_stateString

Output only. Runtime health_state. Corresponds to the JSON property healthState

Returns:

  • (String)


1711
1712
1713
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1711

def health_state
  @health_state
end

#metricsGoogle::Apis::NotebooksV1::RuntimeMetrics

Contains runtime daemon metrics, such as OS and kernels and sessions stats. Corresponds to the JSON property metrics



1716
1717
1718
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1716

def metrics
  @metrics
end

#nameString

Output only. The resource name of the runtime. Format: projects/project/ locations/location/runtimes/runtime` Corresponds to the JSON propertyname`

Returns:

  • (String)


1722
1723
1724
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1722

def name
  @name
end

#software_configGoogle::Apis::NotebooksV1::RuntimeSoftwareConfig

Specifies the selection and config of software inside the runtime. / The properties to set on runtime. Properties keys are specified in key:value format, for example: * idle_shutdown: idle_shutdown=true * idle_shutdown_timeout: idle_shutdown_timeout=180 * report-system-health: report-system-health=true Corresponds to the JSON property softwareConfig



1731
1732
1733
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1731

def software_config
  @software_config
end

#stateString

Output only. Runtime state. Corresponds to the JSON property state

Returns:

  • (String)


1736
1737
1738
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1736

def state
  @state
end

#update_timeString

Output only. Runtime update time. Corresponds to the JSON property updateTime

Returns:

  • (String)


1741
1742
1743
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1741

def update_time
  @update_time
end

#virtual_machineGoogle::Apis::NotebooksV1::VirtualMachine

Runtime using Virtual Machine for computing. Corresponds to the JSON property virtualMachine



1746
1747
1748
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1746

def virtual_machine
  @virtual_machine
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1753

def update!(**args)
  @access_config = args[:access_config] if args.key?(:access_config)
  @create_time = args[:create_time] if args.key?(:create_time)
  @health_state = args[:health_state] if args.key?(:health_state)
  @metrics = args[:metrics] if args.key?(:metrics)
  @name = args[:name] if args.key?(:name)
  @software_config = args[:software_config] if args.key?(:software_config)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
  @virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine)
end