Class: Google::Apis::DataprocV1::SessionTemplate

Inherits:
Object
  • Object
show all
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 in the service. Next ID: 12

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SessionTemplate

Returns a new instance of SessionTemplate.



4745
4746
4747
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4745

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

Instance Attribute Details

#create_timeString

Output only. The time when the template was created. Corresponds to the JSON property createTime

Returns:

  • (String)


4698
4699
4700
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4698

def create_time
  @create_time
end

#creatorString

Output only. The email address of the user who created the template. Corresponds to the JSON property creator

Returns:

  • (String)


4703
4704
4705
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4703

def creator
  @creator
end

#descriptionString

Optional. Brief description of the template. Corresponds to the JSON property description

Returns:

  • (String)


4708
4709
4710
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4708

def description
  @description
end

#environment_configGoogle::Apis::DataprocV1::EnvironmentConfig

Environment configuration for a workload. Corresponds to the JSON property environmentConfig



4713
4714
4715
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4713

def environment_config
  @environment_config
end

#jupyter_sessionGoogle::Apis::DataprocV1::JupyterConfig

Jupyter configuration for an interactive session. Corresponds to the JSON property jupyterSession



4718
4719
4720
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4718

def jupyter_session
  @jupyter_session
end

#labelsHash<String,String>

Optional. The 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 may be empty, but, if present, must contain 1 to 63 characters, and must 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

Returns:

  • (Hash<String,String>)


4728
4729
4730
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4728

def labels
  @labels
end

#nameString

Required. The resource name of the session template. Corresponds to the JSON property name

Returns:

  • (String)


4733
4734
4735
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4733

def name
  @name
end

#runtime_configGoogle::Apis::DataprocV1::RuntimeConfig

Runtime configuration for a workload. Corresponds to the JSON property runtimeConfig



4738
4739
4740
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4738

def runtime_config
  @runtime_config
end

#update_timeString

Output only. The time template was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


4743
4744
4745
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4743

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4750

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)
end