Class: Google::Apis::DataprocV1::EncryptionConfig

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

Encryption settings for the cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionConfig

Returns a new instance of EncryptionConfig.



2076
2077
2078
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2076

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

Instance Attribute Details

#gce_pd_kms_key_nameString

Optional. The Cloud KMS key resource name to use for persistent disk encryption for all instances in the cluster. See Use CMEK with cluster data ( https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer- managed-encryption#use_cmek_with_cluster_data) for more information. Corresponds to the JSON property gcePdKmsKeyName

Returns:

  • (String)


2052
2053
2054
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2052

def gce_pd_kms_key_name
  @gce_pd_kms_key_name
end

#kms_keyString

Optional. The Cloud KMS key resource name to use for cluster persistent disk and job argument encryption. See Use CMEK with cluster data (https://cloud. google.com//dataproc/docs/concepts/configuring-clusters/customer-managed- encryption#use_cmek_with_cluster_data) for more information.When this key resource name is provided, the following job arguments of the following job types submitted to the cluster are encrypted using CMEK: FlinkJob args (https:/ /cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) HadoopJob args ( https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) SparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) SparkRJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/ SparkRJob) PySparkJob args (https://cloud.google.com/dataproc/docs/reference/ rest/v1/PySparkJob) SparkSqlJob (https://cloud.google.com/dataproc/docs/ reference/rest/v1/SparkSqlJob) scriptVariables and queryList.queries HiveJob ( https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) scriptVariables and queryList.queries PigJob (https://cloud.google.com/ dataproc/docs/reference/rest/v1/PigJob) scriptVariables and queryList.queries PrestoJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) scriptVariables and queryList.queries Corresponds to the JSON property kmsKey

Returns:

  • (String)


2074
2075
2076
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2074

def kms_key
  @kms_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2081
2082
2083
2084
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2081

def update!(**args)
  @gce_pd_kms_key_name = args[:gce_pd_kms_key_name] if args.key?(:gce_pd_kms_key_name)
  @kms_key = args[:kms_key] if args.key?(:kms_key)
end