Class: Google::Apis::DataprocV1::SessionTemplate
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::SessionTemplate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb
Overview
A representation of a session template.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#creator ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#environment_config ⇒ Google::Apis::DataprocV1::EnvironmentConfig
Environment configuration for a workload.
-
#jupyter_session ⇒ Google::Apis::DataprocV1::JupyterConfig
Jupyter configuration for an interactive session.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Required.
-
#runtime_config ⇒ Google::Apis::DataprocV1::RuntimeConfig
Runtime configuration for a workload.
-
#update_time ⇒ String
Output only.
-
#uuid ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SessionTemplate
constructor
A new instance of SessionTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SessionTemplate
Returns a new instance of SessionTemplate.
5162 5163 5164 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the template was created.
Corresponds to the JSON property createTime
5110 5111 5112 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5110 def create_time @create_time end |
#creator ⇒ String
Output only. The email address of the user who created the template.
Corresponds to the JSON property creator
5115 5116 5117 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5115 def creator @creator end |
#description ⇒ String
Optional. Brief description of the template.
Corresponds to the JSON property description
5120 5121 5122 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5120 def description @description end |
#environment_config ⇒ Google::Apis::DataprocV1::EnvironmentConfig
Environment configuration for a workload.
Corresponds to the JSON property environmentConfig
5125 5126 5127 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5125 def environment_config @environment_config end |
#jupyter_session ⇒ Google::Apis::DataprocV1::JupyterConfig
Jupyter configuration for an interactive session.
Corresponds to the JSON property jupyterSession
5130 5131 5132 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5130 def jupyter_session @jupyter_session end |
#labels ⇒ Hash<String,String>
Optional. Labels to associate with sessions created using this template. Label
keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://
www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if present,
must contain 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/
rfc/rfc1035.txt). No more than 32 labels can be associated with a session.
Corresponds to the JSON property labels
5139 5140 5141 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5139 def labels @labels end |
#name ⇒ String
Required. The resource name of the session template.
Corresponds to the JSON property name
5144 5145 5146 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5144 def name @name end |
#runtime_config ⇒ Google::Apis::DataprocV1::RuntimeConfig
Runtime configuration for a workload.
Corresponds to the JSON property runtimeConfig
5149 5150 5151 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5149 def runtime_config @runtime_config end |
#update_time ⇒ String
Output only. The time the template was last updated.
Corresponds to the JSON property updateTime
5154 5155 5156 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5154 def update_time @update_time end |
#uuid ⇒ String
Output only. A session template UUID (Unique Universal Identifier). The
service generates this value when it creates the session template.
Corresponds to the JSON property uuid
5160 5161 5162 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5160 def uuid @uuid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5167 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @creator = args[:creator] if args.key?(:creator) @description = args[:description] if args.key?(:description) @environment_config = args[:environment_config] if args.key?(:environment_config) @jupyter_session = args[:jupyter_session] if args.key?(:jupyter_session) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @runtime_config = args[:runtime_config] if args.key?(:runtime_config) @update_time = args[:update_time] if args.key?(:update_time) @uuid = args[:uuid] if args.key?(:uuid) end |