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.



2124
2125
2126
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2124

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



2068
2069
2070
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2068

def access_config
  @access_config
end

#create_timeString

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

Returns:

  • (String)


2073
2074
2075
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2073

def create_time
  @create_time
end

#health_stateString

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

Returns:

  • (String)


2078
2079
2080
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2078

def health_state
  @health_state
end

#labelsHash<String,String>

Optional. The labels to associate with this Managed Notebook or Runtime. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a cluster. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2088
2089
2090
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2088

def labels
  @labels
end

#metricsGoogle::Apis::NotebooksV1::RuntimeMetrics

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



2093
2094
2095
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2093

def metrics
  @metrics
end

#nameString

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

Returns:

  • (String)


2099
2100
2101
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2099

def name
  @name
end

#software_configGoogle::Apis::NotebooksV1::RuntimeSoftwareConfig

Specifies the selection and configuration of software inside the runtime. The properties to set on runtime. Properties keys are specified in key:value format, for example: * idle_shutdown: true * idle_shutdown_timeout: 180 * enable_health_monitoring: true Corresponds to the JSON property softwareConfig



2107
2108
2109
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2107

def software_config
  @software_config
end

#stateString

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

Returns:

  • (String)


2112
2113
2114
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2112

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


2117
2118
2119
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2117

def update_time
  @update_time
end

#virtual_machineGoogle::Apis::NotebooksV1::VirtualMachine

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



2122
2123
2124
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2122

def virtual_machine
  @virtual_machine
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2129

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