Skip to content

dataproc.v1beta1.dataprocWorkflowTemplate

Index

Fields

fn new

new(name)

new returns an instance of DataprocWorkflowTemplate

obj metadata

"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."

fn metadata.withAnnotations

withAnnotations(annotations)

"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"

fn metadata.withAnnotationsMixin

withAnnotationsMixin(annotations)

"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"

Note: This function appends passed data to existing values

fn metadata.withClusterName

withClusterName(clusterName)

"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."

fn metadata.withCreationTimestamp

withCreationTimestamp(creationTimestamp)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

fn metadata.withDeletionGracePeriodSeconds

withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)

"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."

fn metadata.withDeletionTimestamp

withDeletionTimestamp(deletionTimestamp)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

fn metadata.withFinalizers

withFinalizers(finalizers)

"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."

fn metadata.withFinalizersMixin

withFinalizersMixin(finalizers)

"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."

Note: This function appends passed data to existing values

fn metadata.withGenerateName

withGenerateName(generateName)

"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"

fn metadata.withGeneration

withGeneration(generation)

"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."

fn metadata.withLabels

withLabels(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"

fn metadata.withLabelsMixin

withLabelsMixin(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"

Note: This function appends passed data to existing values

fn metadata.withName

withName(name)

"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"

fn metadata.withNamespace

withNamespace(namespace)

"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"

fn metadata.withOwnerReferences

withOwnerReferences(ownerReferences)

"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."

fn metadata.withOwnerReferencesMixin

withOwnerReferencesMixin(ownerReferences)

"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."

Note: This function appends passed data to existing values

fn metadata.withResourceVersion

withResourceVersion(resourceVersion)

"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"

withSelfLink(selfLink)

"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."

fn metadata.withUid

withUid(uid)

"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"

obj spec

fn spec.withDagTimeout

withDagTimeout(dagTimeout)

"Immutable. Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes (\"600s\") to 24 hours (\"86400s\"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted."

fn spec.withJobs

withJobs(jobs)

"Immutable. Required. The Directed Acyclic Graph of Jobs to submit."

fn spec.withJobsMixin

withJobsMixin(jobs)

"Immutable. Required. The Directed Acyclic Graph of Jobs to submit."

Note: This function appends passed data to existing values

fn spec.withLocation

withLocation(location)

"Immutable. The location for the resource"

fn spec.withParameters

withParameters(parameters)

"Immutable. Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated."

fn spec.withParametersMixin

withParametersMixin(parameters)

"Immutable. Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated."

Note: This function appends passed data to existing values

fn spec.withResourceID

withResourceID(resourceID)

"Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of metadata.name is used as the default."

obj spec.jobs

"Immutable. Required. The Directed Acyclic Graph of Jobs to submit."

fn spec.jobs.withLabels

withLabels(labels)

"Immutable. Optional. The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: p{Ll}p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following regular expression: [p{Ll}p{Lo}p{N}_-]{0,63} No more than 32 labels can be associated with a given job."

fn spec.jobs.withLabelsMixin

withLabelsMixin(labels)

"Immutable. Optional. The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: p{Ll}p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following regular expression: [p{Ll}p{Lo}p{N}_-]{0,63} No more than 32 labels can be associated with a given job."

Note: This function appends passed data to existing values

fn spec.jobs.withPrerequisiteStepIds

withPrerequisiteStepIds(prerequisiteStepIds)

"Immutable. Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow."

fn spec.jobs.withPrerequisiteStepIdsMixin

withPrerequisiteStepIdsMixin(prerequisiteStepIds)

"Immutable. Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow."

Note: This function appends passed data to existing values

fn spec.jobs.withStepId

withStepId(stepId)

"Immutable. Required. The step id. The id must be unique among all jobs within the template. The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters."

obj spec.jobs.hadoopJob

"Immutable. Optional. Job is a Hadoop job."

fn spec.jobs.hadoopJob.withArchiveUris

withArchiveUris(archiveUris)

"Immutable. Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip."

fn spec.jobs.hadoopJob.withArchiveUrisMixin

withArchiveUrisMixin(archiveUris)

"Immutable. Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip."

Note: This function appends passed data to existing values

fn spec.jobs.hadoopJob.withArgs

withArgs(args)

"Immutable. Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission."

fn spec.jobs.hadoopJob.withArgsMixin

withArgsMixin(args)

"Immutable. Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission."

Note: This function appends passed data to existing values

fn spec.jobs.hadoopJob.withFileUris

withFileUris(fileUris)

"Immutable. Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks."

fn spec.jobs.hadoopJob.withFileUrisMixin

withFileUrisMixin(fileUris)

"Immutable. Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks."

Note: This function appends passed data to existing values

fn spec.jobs.hadoopJob.withJarFileUris

withJarFileUris(jarFileUris)

"Immutable. Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks."

fn spec.jobs.hadoopJob.withJarFileUrisMixin

withJarFileUrisMixin(jarFileUris)

"Immutable. Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks."

Note: This function appends passed data to existing values

fn spec.jobs.hadoopJob.withMainClass

withMainClass(mainClass)

"Immutable. The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris."

fn spec.jobs.hadoopJob.withMainJarFileUri

withMainJarFileUri(mainJarFileUri)

"Immutable. The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'"

fn spec.jobs.hadoopJob.withProperties

withProperties(properties)

"Immutable. Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code."

fn spec.jobs.hadoopJob.withPropertiesMixin

withPropertiesMixin(properties)

"Immutable. Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code."

Note: This function appends passed data to existing values

obj spec.jobs.hadoopJob.loggingConfig

"Immutable. Optional. The runtime log config for job execution."

fn spec.jobs.hadoopJob.loggingConfig.withDriverLogLevels

withDriverLogLevels(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

fn spec.jobs.hadoopJob.loggingConfig.withDriverLogLevelsMixin

withDriverLogLevelsMixin(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

Note: This function appends passed data to existing values

obj spec.jobs.hiveJob

"Immutable. Optional. Job is a Hive job."

fn spec.jobs.hiveJob.withContinueOnFailure

withContinueOnFailure(continueOnFailure)

"Immutable. Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries."

fn spec.jobs.hiveJob.withJarFileUris

withJarFileUris(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs."

fn spec.jobs.hiveJob.withJarFileUrisMixin

withJarFileUrisMixin(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs."

Note: This function appends passed data to existing values

fn spec.jobs.hiveJob.withProperties

withProperties(properties)

"Immutable. Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code."

fn spec.jobs.hiveJob.withPropertiesMixin

withPropertiesMixin(properties)

"Immutable. Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code."

Note: This function appends passed data to existing values

fn spec.jobs.hiveJob.withQueryFileUri

withQueryFileUri(queryFileUri)

"Immutable. The HCFS URI of the script that contains Hive queries."

fn spec.jobs.hiveJob.withScriptVariables

withScriptVariables(scriptVariables)

"Immutable. Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=\"value\";)."

fn spec.jobs.hiveJob.withScriptVariablesMixin

withScriptVariablesMixin(scriptVariables)

"Immutable. Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=\"value\";)."

Note: This function appends passed data to existing values

obj spec.jobs.hiveJob.queryList

"Immutable. A list of queries."

fn spec.jobs.hiveJob.queryList.withQueries

withQueries(queries)

"Immutable. Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } }"

fn spec.jobs.hiveJob.queryList.withQueriesMixin

withQueriesMixin(queries)

"Immutable. Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } }"

Note: This function appends passed data to existing values

obj spec.jobs.pigJob

"Immutable. Optional. Job is a Pig job."

fn spec.jobs.pigJob.withContinueOnFailure

withContinueOnFailure(continueOnFailure)

"Immutable. Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries."

fn spec.jobs.pigJob.withJarFileUris

withJarFileUris(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs."

fn spec.jobs.pigJob.withJarFileUrisMixin

withJarFileUrisMixin(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs."

Note: This function appends passed data to existing values

fn spec.jobs.pigJob.withProperties

withProperties(properties)

"Immutable. Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code."

fn spec.jobs.pigJob.withPropertiesMixin

withPropertiesMixin(properties)

"Immutable. Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code."

Note: This function appends passed data to existing values

fn spec.jobs.pigJob.withQueryFileUri

withQueryFileUri(queryFileUri)

"Immutable. The HCFS URI of the script that contains the Pig queries."

fn spec.jobs.pigJob.withScriptVariables

withScriptVariables(scriptVariables)

"Immutable. Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value])."

fn spec.jobs.pigJob.withScriptVariablesMixin

withScriptVariablesMixin(scriptVariables)

"Immutable. Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value])."

Note: This function appends passed data to existing values

obj spec.jobs.pigJob.loggingConfig

"Immutable. Optional. The runtime log config for job execution."

fn spec.jobs.pigJob.loggingConfig.withDriverLogLevels

withDriverLogLevels(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

fn spec.jobs.pigJob.loggingConfig.withDriverLogLevelsMixin

withDriverLogLevelsMixin(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

Note: This function appends passed data to existing values

obj spec.jobs.pigJob.queryList

"Immutable. A list of queries."

fn spec.jobs.pigJob.queryList.withQueries

withQueries(queries)

"Immutable. Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } }"

fn spec.jobs.pigJob.queryList.withQueriesMixin

withQueriesMixin(queries)

"Immutable. Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } }"

Note: This function appends passed data to existing values

obj spec.jobs.prestoJob

"Immutable. Optional. Job is a Presto job."

fn spec.jobs.prestoJob.withClientTags

withClientTags(clientTags)

"Immutable. Optional. Presto client tags to attach to this query"

fn spec.jobs.prestoJob.withClientTagsMixin

withClientTagsMixin(clientTags)

"Immutable. Optional. Presto client tags to attach to this query"

Note: This function appends passed data to existing values

fn spec.jobs.prestoJob.withContinueOnFailure

withContinueOnFailure(continueOnFailure)

"Immutable. Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries."

fn spec.jobs.prestoJob.withOutputFormat

withOutputFormat(outputFormat)

"Immutable. Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats"

fn spec.jobs.prestoJob.withProperties

withProperties(properties)

"Immutable. Optional. A mapping of property names to values. Used to set Presto session properties Equivalent to using the --session flag in the Presto CLI"

fn spec.jobs.prestoJob.withPropertiesMixin

withPropertiesMixin(properties)

"Immutable. Optional. A mapping of property names to values. Used to set Presto session properties Equivalent to using the --session flag in the Presto CLI"

Note: This function appends passed data to existing values

fn spec.jobs.prestoJob.withQueryFileUri

withQueryFileUri(queryFileUri)

"Immutable. The HCFS URI of the script that contains SQL queries."

obj spec.jobs.prestoJob.loggingConfig

"Immutable. Optional. The runtime log config for job execution."

fn spec.jobs.prestoJob.loggingConfig.withDriverLogLevels

withDriverLogLevels(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

fn spec.jobs.prestoJob.loggingConfig.withDriverLogLevelsMixin

withDriverLogLevelsMixin(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

Note: This function appends passed data to existing values

obj spec.jobs.prestoJob.queryList

"Immutable. A list of queries."

fn spec.jobs.prestoJob.queryList.withQueries

withQueries(queries)

"Immutable. Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } }"

fn spec.jobs.prestoJob.queryList.withQueriesMixin

withQueriesMixin(queries)

"Immutable. Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } }"

Note: This function appends passed data to existing values

obj spec.jobs.pysparkJob

"Immutable. Optional. Job is a PySpark job."

fn spec.jobs.pysparkJob.withArchiveUris

withArchiveUris(archiveUris)

"Immutable. Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip."

fn spec.jobs.pysparkJob.withArchiveUrisMixin

withArchiveUrisMixin(archiveUris)

"Immutable. Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip."

Note: This function appends passed data to existing values

fn spec.jobs.pysparkJob.withArgs

withArgs(args)

"Immutable. Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission."

fn spec.jobs.pysparkJob.withArgsMixin

withArgsMixin(args)

"Immutable. Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission."

Note: This function appends passed data to existing values

fn spec.jobs.pysparkJob.withFileUris

withFileUris(fileUris)

"Immutable. Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks."

fn spec.jobs.pysparkJob.withFileUrisMixin

withFileUrisMixin(fileUris)

"Immutable. Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks."

Note: This function appends passed data to existing values

fn spec.jobs.pysparkJob.withJarFileUris

withJarFileUris(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks."

fn spec.jobs.pysparkJob.withJarFileUrisMixin

withJarFileUrisMixin(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks."

Note: This function appends passed data to existing values

fn spec.jobs.pysparkJob.withMainPythonFileUri

withMainPythonFileUri(mainPythonFileUri)

"Immutable. Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file."

fn spec.jobs.pysparkJob.withProperties

withProperties(properties)

"Immutable. Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code."

fn spec.jobs.pysparkJob.withPropertiesMixin

withPropertiesMixin(properties)

"Immutable. Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code."

Note: This function appends passed data to existing values

fn spec.jobs.pysparkJob.withPythonFileUris

withPythonFileUris(pythonFileUris)

"Immutable. Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip."

fn spec.jobs.pysparkJob.withPythonFileUrisMixin

withPythonFileUrisMixin(pythonFileUris)

"Immutable. Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip."

Note: This function appends passed data to existing values

obj spec.jobs.pysparkJob.loggingConfig

"Immutable. Optional. The runtime log config for job execution."

fn spec.jobs.pysparkJob.loggingConfig.withDriverLogLevels

withDriverLogLevels(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

fn spec.jobs.pysparkJob.loggingConfig.withDriverLogLevelsMixin

withDriverLogLevelsMixin(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

Note: This function appends passed data to existing values

obj spec.jobs.scheduling

"Immutable. Optional. Job scheduling configuration."

fn spec.jobs.scheduling.withMaxFailuresPerHour

withMaxFailuresPerHour(maxFailuresPerHour)

"Immutable. Optional. Maximum number of times per hour a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window. Maximum value is 10."

fn spec.jobs.scheduling.withMaxFailuresTotal

withMaxFailuresTotal(maxFailuresTotal)

"Immutable. Optional. Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240."

obj spec.jobs.sparkJob

"Immutable. Optional. Job is a Spark job."

fn spec.jobs.sparkJob.withArchiveUris

withArchiveUris(archiveUris)

"Immutable. Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip."

fn spec.jobs.sparkJob.withArchiveUrisMixin

withArchiveUrisMixin(archiveUris)

"Immutable. Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip."

Note: This function appends passed data to existing values

fn spec.jobs.sparkJob.withArgs

withArgs(args)

"Immutable. Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission."

fn spec.jobs.sparkJob.withArgsMixin

withArgsMixin(args)

"Immutable. Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission."

Note: This function appends passed data to existing values

fn spec.jobs.sparkJob.withFileUris

withFileUris(fileUris)

"Immutable. Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks."

fn spec.jobs.sparkJob.withFileUrisMixin

withFileUrisMixin(fileUris)

"Immutable. Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks."

Note: This function appends passed data to existing values

fn spec.jobs.sparkJob.withJarFileUris

withJarFileUris(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks."

fn spec.jobs.sparkJob.withJarFileUrisMixin

withJarFileUrisMixin(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks."

Note: This function appends passed data to existing values

fn spec.jobs.sparkJob.withMainClass

withMainClass(mainClass)

"Immutable. The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris."

fn spec.jobs.sparkJob.withMainJarFileUri

withMainJarFileUri(mainJarFileUri)

"Immutable. The HCFS URI of the jar file that contains the main class."

fn spec.jobs.sparkJob.withProperties

withProperties(properties)

"Immutable. Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code."

fn spec.jobs.sparkJob.withPropertiesMixin

withPropertiesMixin(properties)

"Immutable. Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code."

Note: This function appends passed data to existing values

obj spec.jobs.sparkJob.loggingConfig

"Immutable. Optional. The runtime log config for job execution."

fn spec.jobs.sparkJob.loggingConfig.withDriverLogLevels

withDriverLogLevels(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

fn spec.jobs.sparkJob.loggingConfig.withDriverLogLevelsMixin

withDriverLogLevelsMixin(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

Note: This function appends passed data to existing values

obj spec.jobs.sparkRJob

"Immutable. Optional. Job is a SparkR job."

fn spec.jobs.sparkRJob.withArchiveUris

withArchiveUris(archiveUris)

"Immutable. Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip."

fn spec.jobs.sparkRJob.withArchiveUrisMixin

withArchiveUrisMixin(archiveUris)

"Immutable. Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip."

Note: This function appends passed data to existing values

fn spec.jobs.sparkRJob.withArgs

withArgs(args)

"Immutable. Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission."

fn spec.jobs.sparkRJob.withArgsMixin

withArgsMixin(args)

"Immutable. Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission."

Note: This function appends passed data to existing values

fn spec.jobs.sparkRJob.withFileUris

withFileUris(fileUris)

"Immutable. Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks."

fn spec.jobs.sparkRJob.withFileUrisMixin

withFileUrisMixin(fileUris)

"Immutable. Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks."

Note: This function appends passed data to existing values

fn spec.jobs.sparkRJob.withMainRFileUri

withMainRFileUri(mainRFileUri)

"Immutable. Required. The HCFS URI of the main R file to use as the driver. Must be a .R file."

fn spec.jobs.sparkRJob.withProperties

withProperties(properties)

"Immutable. Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code."

fn spec.jobs.sparkRJob.withPropertiesMixin

withPropertiesMixin(properties)

"Immutable. Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code."

Note: This function appends passed data to existing values

obj spec.jobs.sparkRJob.loggingConfig

"Immutable. Optional. The runtime log config for job execution."

fn spec.jobs.sparkRJob.loggingConfig.withDriverLogLevels

withDriverLogLevels(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

fn spec.jobs.sparkRJob.loggingConfig.withDriverLogLevelsMixin

withDriverLogLevelsMixin(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

Note: This function appends passed data to existing values

obj spec.jobs.sparkSqlJob

"Immutable. Optional. Job is a SparkSql job."

fn spec.jobs.sparkSqlJob.withJarFileUris

withJarFileUris(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH."

fn spec.jobs.sparkSqlJob.withJarFileUrisMixin

withJarFileUrisMixin(jarFileUris)

"Immutable. Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH."

Note: This function appends passed data to existing values

fn spec.jobs.sparkSqlJob.withProperties

withProperties(properties)

"Immutable. Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten."

fn spec.jobs.sparkSqlJob.withPropertiesMixin

withPropertiesMixin(properties)

"Immutable. Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten."

Note: This function appends passed data to existing values

fn spec.jobs.sparkSqlJob.withQueryFileUri

withQueryFileUri(queryFileUri)

"Immutable. The HCFS URI of the script that contains SQL queries."

fn spec.jobs.sparkSqlJob.withScriptVariables

withScriptVariables(scriptVariables)

"Immutable. Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";)."

fn spec.jobs.sparkSqlJob.withScriptVariablesMixin

withScriptVariablesMixin(scriptVariables)

"Immutable. Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";)."

Note: This function appends passed data to existing values

obj spec.jobs.sparkSqlJob.loggingConfig

"Immutable. Optional. The runtime log config for job execution."

fn spec.jobs.sparkSqlJob.loggingConfig.withDriverLogLevels

withDriverLogLevels(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

fn spec.jobs.sparkSqlJob.loggingConfig.withDriverLogLevelsMixin

withDriverLogLevelsMixin(driverLogLevels)

"Immutable. The per-package log levels for the driver. This may include \"root\" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'"

Note: This function appends passed data to existing values

obj spec.jobs.sparkSqlJob.queryList

"Immutable. A list of queries."

fn spec.jobs.sparkSqlJob.queryList.withQueries

withQueries(queries)

"Immutable. Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } }"

fn spec.jobs.sparkSqlJob.queryList.withQueriesMixin

withQueriesMixin(queries)

"Immutable. Required. The queries to execute. You do not need to end a query expression with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of a Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } }"

Note: This function appends passed data to existing values

obj spec.parameters

"Immutable. Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated."

fn spec.parameters.withDescription

withDescription(description)

"Immutable. Optional. Brief description of the parameter. Must not exceed 1024 characters."

fn spec.parameters.withFields

withFields(fields)

"Immutable. Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths. A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone. Also, field paths can reference fields using the following syntax: * Values in maps can be referenced by key: * labels['key'] * placement.clusterSelector.clusterLabels['key'] * placement.managedCluster.labels['key'] * placement.clusterSelector.clusterLabels['key'] * jobs['step-id'].labels['key'] * Jobs in the jobs list can be referenced by step-id: * jobs['step-id'].hadoopJob.mainJarFileUri * jobs['step-id'].hiveJob.queryFileUri * jobs['step-id'].pySparkJob.mainPythonFileUri * jobs['step-id'].hadoopJob.jarFileUris[0] * jobs['step-id'].hadoopJob.archiveUris[0] * jobs['step-id'].hadoopJob.fileUris[0] * jobs['step-id'].pySparkJob.pythonFileUris[0] * Items in repeated fields can be referenced by a zero-based index: * jobs['step-id'].sparkJob.args[0] * Other examples: * jobs['step-id'].hadoopJob.properties['key'] * jobs['step-id'].hadoopJob.args[0] * jobs['step-id'].hiveJob.scriptVariables['key'] * jobs['step-id'].hadoopJob.mainJarFileUri * placement.clusterSelector.zone It may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: - placement.clusterSelector.clusterLabels - jobs['step-id'].sparkJob.args"

fn spec.parameters.withFieldsMixin

withFieldsMixin(fields)

"Immutable. Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter's list of field paths. A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template's cluster selector would be specified as placement.clusterSelector.zone. Also, field paths can reference fields using the following syntax: * Values in maps can be referenced by key: * labels['key'] * placement.clusterSelector.clusterLabels['key'] * placement.managedCluster.labels['key'] * placement.clusterSelector.clusterLabels['key'] * jobs['step-id'].labels['key'] * Jobs in the jobs list can be referenced by step-id: * jobs['step-id'].hadoopJob.mainJarFileUri * jobs['step-id'].hiveJob.queryFileUri * jobs['step-id'].pySparkJob.mainPythonFileUri * jobs['step-id'].hadoopJob.jarFileUris[0] * jobs['step-id'].hadoopJob.archiveUris[0] * jobs['step-id'].hadoopJob.fileUris[0] * jobs['step-id'].pySparkJob.pythonFileUris[0] * Items in repeated fields can be referenced by a zero-based index: * jobs['step-id'].sparkJob.args[0] * Other examples: * jobs['step-id'].hadoopJob.properties['key'] * jobs['step-id'].hadoopJob.args[0] * jobs['step-id'].hiveJob.scriptVariables['key'] * jobs['step-id'].hadoopJob.mainJarFileUri * placement.clusterSelector.zone It may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid: - placement.clusterSelector.clusterLabels - jobs['step-id'].sparkJob.args"

Note: This function appends passed data to existing values

fn spec.parameters.withName

withName(name)

"Immutable. Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters."

obj spec.parameters.validation

"Immutable. Optional. Validation rules to be applied to this parameter's value."

obj spec.parameters.validation.regex

"Immutable. Validation based on regular expressions."

fn spec.parameters.validation.regex.withRegexes

withRegexes(regexes)

"Immutable. Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient)."

fn spec.parameters.validation.regex.withRegexesMixin

withRegexesMixin(regexes)

"Immutable. Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient)."

Note: This function appends passed data to existing values

obj spec.parameters.validation.values

"Immutable. Validation based on a list of allowed values."

fn spec.parameters.validation.values.withValues

withValues(values)

"Immutable. Required. List of allowed values for the parameter."

fn spec.parameters.validation.values.withValuesMixin

withValuesMixin(values)

"Immutable. Required. List of allowed values for the parameter."

Note: This function appends passed data to existing values

obj spec.placement

"Immutable. Required. WorkflowTemplate scheduling information."

obj spec.placement.clusterSelector

"Immutable. Optional. A selector that chooses target cluster for jobs based on metadata. The selector is evaluated at the time each job is submitted."

fn spec.placement.clusterSelector.withClusterLabels

withClusterLabels(clusterLabels)

"Immutable. Required. The cluster labels. Cluster must have all labels to match."

fn spec.placement.clusterSelector.withClusterLabelsMixin

withClusterLabelsMixin(clusterLabels)

"Immutable. Required. The cluster labels. Cluster must have all labels to match."

Note: This function appends passed data to existing values

fn spec.placement.clusterSelector.withZone

withZone(zone)

"Immutable. Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster. If unspecified, the zone of the first cluster matching the selector is used."

obj spec.placement.managedCluster

"Immutable. A cluster that is managed by the workflow."

fn spec.placement.managedCluster.withClusterName

withClusterName(clusterName)

"Immutable. Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix. The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters."

fn spec.placement.managedCluster.withLabels

withLabels(labels)

"Immutable. Optional. The labels to associate with this cluster. Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: p{Ll}p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [p{Ll}p{Lo}p{N}_-]{0,63} No more than 32 labels can be associated with a given cluster."

fn spec.placement.managedCluster.withLabelsMixin

withLabelsMixin(labels)

"Immutable. Optional. The labels to associate with this cluster. Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: p{Ll}p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [p{Ll}p{Lo}p{N}_-]{0,63} No more than 32 labels can be associated with a given cluster."

Note: This function appends passed data to existing values

obj spec.placement.managedCluster.config

"Immutable. Required. The cluster configuration."

fn spec.placement.managedCluster.config.withInitializationActions

withInitializationActions(initializationActions)

"Immutable. Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ \"${ROLE}\" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi"

fn spec.placement.managedCluster.config.withInitializationActionsMixin

withInitializationActionsMixin(initializationActions)

"Immutable. Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ \"${ROLE}\" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi"

Note: This function appends passed data to existing values

obj spec.placement.managedCluster.config.autoscalingConfig

"Immutable. Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset."

obj spec.placement.managedCluster.config.autoscalingConfig.policyRef

"Immutable."

fn spec.placement.managedCluster.config.autoscalingConfig.policyRef.withExternal

withExternal(external)

"Optional. The autoscaling policy used by the cluster. Only resource names including projectid and location (region) are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] * projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] Note that the policy must be in the same project and Dataproc region.\n\nAllowed value: The Google Cloud resource name of a DataprocAutoscalingPolicy resource (format: projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{name}})."

fn spec.placement.managedCluster.config.autoscalingConfig.policyRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.autoscalingConfig.policyRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.encryptionConfig

"Immutable. Optional. Encryption settings for the cluster."

obj spec.placement.managedCluster.config.encryptionConfig.gcePdKmsKeyRef

"Immutable."

fn spec.placement.managedCluster.config.encryptionConfig.gcePdKmsKeyRef.withExternal

withExternal(external)

"Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.\n\nAllowed value: The selfLink field of a KMSCryptoKey resource."

fn spec.placement.managedCluster.config.encryptionConfig.gcePdKmsKeyRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.encryptionConfig.gcePdKmsKeyRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.endpointConfig

"Immutable. Optional. Port/endpoint configuration for this cluster"

fn spec.placement.managedCluster.config.endpointConfig.withEnableHttpPortAccess

withEnableHttpPortAccess(enableHttpPortAccess)

"Immutable. Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false."

obj spec.placement.managedCluster.config.gceClusterConfig

"Immutable. Optional. The shared Compute Engine config settings for all instances in a cluster."

fn spec.placement.managedCluster.config.gceClusterConfig.withInternalIPOnly

withInternalIPOnly(internalIPOnly)

"Immutable. Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses."

fn spec.placement.managedCluster.config.gceClusterConfig.withMetadata

withMetadata(metadata)

"Immutable. The Compute Engine metadata entries to add to all instances (see Project and instance metadata)."

fn spec.placement.managedCluster.config.gceClusterConfig.withMetadataMixin

withMetadataMixin(metadata)

"Immutable. The Compute Engine metadata entries to add to all instances (see Project and instance metadata)."

Note: This function appends passed data to existing values

fn spec.placement.managedCluster.config.gceClusterConfig.withPrivateIPv6GoogleAccess

withPrivateIPv6GoogleAccess(privateIPv6GoogleAccess)

"Immutable. Optional. The type of IPv6 access for a cluster. Possible values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK, OUTBOUND, BIDIRECTIONAL"

fn spec.placement.managedCluster.config.gceClusterConfig.withServiceAccountScopes

withServiceAccountScopes(serviceAccountScopes)

"Immutable. Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control"

fn spec.placement.managedCluster.config.gceClusterConfig.withServiceAccountScopesMixin

withServiceAccountScopesMixin(serviceAccountScopes)

"Immutable. Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control"

Note: This function appends passed data to existing values

fn spec.placement.managedCluster.config.gceClusterConfig.withTags

withTags(tags)

"Immutable. The Compute Engine tags to add to all instances (see Tagging instances)."

fn spec.placement.managedCluster.config.gceClusterConfig.withTagsMixin

withTagsMixin(tags)

"Immutable. The Compute Engine tags to add to all instances (see Tagging instances)."

Note: This function appends passed data to existing values

fn spec.placement.managedCluster.config.gceClusterConfig.withZone

withZone(zone)

"Immutable. Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the \"global\" region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] * projects/[project_id]/zones/[zone] * us-central1-f"

obj spec.placement.managedCluster.config.gceClusterConfig.networkRef

"Immutable."

fn spec.placement.managedCluster.config.gceClusterConfig.networkRef.withExternal

withExternal(external)

"Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see Using Subnetworks for more information). A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default * projects/[project_id]/regions/global/default * default\n\nAllowed value: The selfLink field of a ComputeNetwork resource."

fn spec.placement.managedCluster.config.gceClusterConfig.networkRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.gceClusterConfig.networkRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.gceClusterConfig.nodeGroupAffinity

"Immutable. Optional. Node Group Affinity for sole-tenant clusters."

obj spec.placement.managedCluster.config.gceClusterConfig.nodeGroupAffinity.nodeGroupRef

"Immutable."

fn spec.placement.managedCluster.config.gceClusterConfig.nodeGroupAffinity.nodeGroupRef.withExternal

withExternal(external)

"Required. The URI of a sole-tenant node group resource that the cluster will be created on. A full URL, partial URI, or node group name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 * projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 * node-group-1\n\nAllowed value: The selfLink field of a ComputeNodeGroup resource."

fn spec.placement.managedCluster.config.gceClusterConfig.nodeGroupAffinity.nodeGroupRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.gceClusterConfig.nodeGroupAffinity.nodeGroupRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.gceClusterConfig.reservationAffinity

"Immutable. Optional. Reservation Affinity for consuming Zonal reservation."

fn spec.placement.managedCluster.config.gceClusterConfig.reservationAffinity.withConsumeReservationType

withConsumeReservationType(consumeReservationType)

"Immutable. Optional. Type of reservation to consume Possible values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION, SPECIFIC_RESERVATION"

fn spec.placement.managedCluster.config.gceClusterConfig.reservationAffinity.withKey

withKey(key)

"Immutable. Optional. Corresponds to the label key of reservation resource."

fn spec.placement.managedCluster.config.gceClusterConfig.reservationAffinity.withValues

withValues(values)

"Immutable. Optional. Corresponds to the label values of reservation resource."

fn spec.placement.managedCluster.config.gceClusterConfig.reservationAffinity.withValuesMixin

withValuesMixin(values)

"Immutable. Optional. Corresponds to the label values of reservation resource."

Note: This function appends passed data to existing values

obj spec.placement.managedCluster.config.gceClusterConfig.serviceAccountRef

"Immutable."

fn spec.placement.managedCluster.config.gceClusterConfig.serviceAccountRef.withExternal

withExternal(external)

"Optional. The Dataproc service account (also see VM Data Plane identity) used by Dataproc cluster VM instances to access Google Cloud Platform services. If not specified, the Compute Engine default service account is used.\n\nAllowed value: The email field of an IAMServiceAccount resource."

fn spec.placement.managedCluster.config.gceClusterConfig.serviceAccountRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.gceClusterConfig.serviceAccountRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.gceClusterConfig.shieldedInstanceConfig

"Immutable. Optional. Shielded Instance Config for clusters using Compute Engine Shielded VMs."

fn spec.placement.managedCluster.config.gceClusterConfig.shieldedInstanceConfig.withEnableIntegrityMonitoring

withEnableIntegrityMonitoring(enableIntegrityMonitoring)

"Immutable. Optional. Defines whether instances have integrity monitoring enabled. Integrity monitoring compares the most recent boot measurements to the integrity policy baseline and returns a pair of pass/fail results depending on whether they match or not."

fn spec.placement.managedCluster.config.gceClusterConfig.shieldedInstanceConfig.withEnableSecureBoot

withEnableSecureBoot(enableSecureBoot)

"Immutable. Optional. Defines whether the instances have Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails."

fn spec.placement.managedCluster.config.gceClusterConfig.shieldedInstanceConfig.withEnableVtpm

withEnableVtpm(enableVtpm)

"Immutable. Optional. Defines whether the instance have the vTPM enabled. Virtual Trusted Platform Module protects objects like keys, certificates and enables Measured Boot by performing the measurements needed to create a known good boot baseline, called the integrity policy baseline."

obj spec.placement.managedCluster.config.gceClusterConfig.subnetworkRef

"Immutable."

fn spec.placement.managedCluster.config.gceClusterConfig.subnetworkRef.withExternal

withExternal(external)

"Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 * projects/[project_id]/regions/us-east1/subnetworks/sub0 * sub0\n\nAllowed value: The selfLink field of a ComputeSubnetwork resource."

fn spec.placement.managedCluster.config.gceClusterConfig.subnetworkRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.gceClusterConfig.subnetworkRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.initializationActions

"Immutable. Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ \"${ROLE}\" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi"

fn spec.placement.managedCluster.config.initializationActions.withExecutableFile

withExecutableFile(executableFile)

"Immutable. Required. Cloud Storage URI of executable file."

fn spec.placement.managedCluster.config.initializationActions.withExecutionTimeout

withExecutionTimeout(executionTimeout)

"Immutable. Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration). Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period."

obj spec.placement.managedCluster.config.lifecycleConfig

"Immutable. Optional. Lifecycle setting for the cluster."

fn spec.placement.managedCluster.config.lifecycleConfig.withAutoDeleteTime

withAutoDeleteTime(autoDeleteTime)

"Immutable. Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp)."

fn spec.placement.managedCluster.config.lifecycleConfig.withAutoDeleteTtl

withAutoDeleteTtl(autoDeleteTtl)

"Immutable. Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration)."

fn spec.placement.managedCluster.config.lifecycleConfig.withIdleDeleteTtl

withIdleDeleteTtl(idleDeleteTtl)

"Immutable. Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration)."

obj spec.placement.managedCluster.config.masterConfig

"Immutable. Optional. The Compute Engine config settings for the master instance in a cluster."

fn spec.placement.managedCluster.config.masterConfig.withAccelerators

withAccelerators(accelerators)

"Immutable. Optional. The Compute Engine accelerator configuration for these instances."

fn spec.placement.managedCluster.config.masterConfig.withAcceleratorsMixin

withAcceleratorsMixin(accelerators)

"Immutable. Optional. The Compute Engine accelerator configuration for these instances."

Note: This function appends passed data to existing values

fn spec.placement.managedCluster.config.masterConfig.withMachineType

withMachineType(machineType)

"Immutable. Optional. The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 * projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 * n1-standard-2 Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2."

fn spec.placement.managedCluster.config.masterConfig.withMinCpuPlatform

withMinCpuPlatform(minCpuPlatform)

"Immutable. Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform."

fn spec.placement.managedCluster.config.masterConfig.withNumInstances

withNumInstances(numInstances)

"Immutable. Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1."

fn spec.placement.managedCluster.config.masterConfig.withPreemptibility

withPreemptibility(preemptibility)

"Immutable. Optional. Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE"

obj spec.placement.managedCluster.config.masterConfig.accelerators

"Immutable. Optional. The Compute Engine accelerator configuration for these instances."

fn spec.placement.managedCluster.config.masterConfig.accelerators.withAcceleratorCount

withAcceleratorCount(acceleratorCount)

"Immutable. The number of the accelerator cards of this type exposed to this instance."

fn spec.placement.managedCluster.config.masterConfig.accelerators.withAcceleratorType

withAcceleratorType(acceleratorType)

"Immutable. Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes. Examples: * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80 Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80."

obj spec.placement.managedCluster.config.masterConfig.diskConfig

"Immutable. Optional. Disk option config settings."

fn spec.placement.managedCluster.config.masterConfig.diskConfig.withBootDiskSizeGb

withBootDiskSizeGb(bootDiskSizeGb)

"Immutable. Optional. Size in GB of the boot disk (default is 500GB)."

fn spec.placement.managedCluster.config.masterConfig.diskConfig.withBootDiskType

withBootDiskType(bootDiskType)

"Immutable. Optional. Type of the boot disk (default is \"pd-standard\"). Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive), or \"pd-standard\" (Persistent Disk Hard Disk Drive). See Disk types."

fn spec.placement.managedCluster.config.masterConfig.diskConfig.withNumLocalSsds

withNumLocalSsds(numLocalSsds)

"Immutable. Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries."

obj spec.placement.managedCluster.config.masterConfig.imageRef

"Immutable."

fn spec.placement.managedCluster.config.masterConfig.imageRef.withExternal

withExternal(external)

"Optional. The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id] * projects/[project_id]/global/images/[image-id] * image-id Image family examples. Dataproc will use the most recent image from the family: * https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name] * projects/[project_id]/global/images/family/[custom-image-family-name] If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.\n\nAllowed value: The selfLink field of a ComputeImage resource."

fn spec.placement.managedCluster.config.masterConfig.imageRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.masterConfig.imageRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.secondaryWorkerConfig

"Immutable. Optional. The Compute Engine config settings for additional worker instances in a cluster."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.withAccelerators

withAccelerators(accelerators)

"Immutable. Optional. The Compute Engine accelerator configuration for these instances."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.withAcceleratorsMixin

withAcceleratorsMixin(accelerators)

"Immutable. Optional. The Compute Engine accelerator configuration for these instances."

Note: This function appends passed data to existing values

fn spec.placement.managedCluster.config.secondaryWorkerConfig.withMachineType

withMachineType(machineType)

"Immutable. Optional. The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 * projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 * n1-standard-2 Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.withMinCpuPlatform

withMinCpuPlatform(minCpuPlatform)

"Immutable. Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.withNumInstances

withNumInstances(numInstances)

"Immutable. Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.withPreemptibility

withPreemptibility(preemptibility)

"Immutable. Optional. Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE"

obj spec.placement.managedCluster.config.secondaryWorkerConfig.accelerators

"Immutable. Optional. The Compute Engine accelerator configuration for these instances."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.accelerators.withAcceleratorCount

withAcceleratorCount(acceleratorCount)

"Immutable. The number of the accelerator cards of this type exposed to this instance."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.accelerators.withAcceleratorType

withAcceleratorType(acceleratorType)

"Immutable. Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes. Examples: * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80 Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80."

obj spec.placement.managedCluster.config.secondaryWorkerConfig.diskConfig

"Immutable. Optional. Disk option config settings."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.diskConfig.withBootDiskSizeGb

withBootDiskSizeGb(bootDiskSizeGb)

"Immutable. Optional. Size in GB of the boot disk (default is 500GB)."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.diskConfig.withBootDiskType

withBootDiskType(bootDiskType)

"Immutable. Optional. Type of the boot disk (default is \"pd-standard\"). Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive), or \"pd-standard\" (Persistent Disk Hard Disk Drive). See Disk types."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.diskConfig.withNumLocalSsds

withNumLocalSsds(numLocalSsds)

"Immutable. Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries."

obj spec.placement.managedCluster.config.secondaryWorkerConfig.imageRef

"Immutable."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.imageRef.withExternal

withExternal(external)

"Optional. The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id] * projects/[project_id]/global/images/[image-id] * image-id Image family examples. Dataproc will use the most recent image from the family: * https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name] * projects/[project_id]/global/images/family/[custom-image-family-name] If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.\n\nAllowed value: The selfLink field of a ComputeImage resource."

fn spec.placement.managedCluster.config.secondaryWorkerConfig.imageRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.secondaryWorkerConfig.imageRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.securityConfig

"Immutable. Optional. Security settings for the cluster."

obj spec.placement.managedCluster.config.securityConfig.kerberosConfig

"Immutable. Optional. Kerberos related configuration."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withCrossRealmTrustAdminServer

withCrossRealmTrustAdminServer(crossRealmTrustAdminServer)

"Immutable. Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withCrossRealmTrustKdc

withCrossRealmTrustKdc(crossRealmTrustKdc)

"Immutable. Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withCrossRealmTrustRealm

withCrossRealmTrustRealm(crossRealmTrustRealm)

"Immutable. Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withCrossRealmTrustSharedPassword

withCrossRealmTrustSharedPassword(crossRealmTrustSharedPassword)

"Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withEnableKerberos

withEnableKerberos(enableKerberos)

"Immutable. Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withKdcDbKey

withKdcDbKey(kdcDbKey)

"Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withKeyPassword

withKeyPassword(keyPassword)

"Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withKeystore

withKeystore(keystore)

"Immutable. Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withKeystorePassword

withKeystorePassword(keystorePassword)

"Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withRealm

withRealm(realm)

"Immutable. Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withRootPrincipalPassword

withRootPrincipalPassword(rootPrincipalPassword)

"Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the root principal password."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withTgtLifetimeHours

withTgtLifetimeHours(tgtLifetimeHours)

"Immutable. Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withTruststore

withTruststore(truststore)

"Immutable. Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.withTruststorePassword

withTruststorePassword(truststorePassword)

"Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc."

obj spec.placement.managedCluster.config.securityConfig.kerberosConfig.kmsKeyRef

"Immutable."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.kmsKeyRef.withExternal

withExternal(external)

"Optional. The uri of the KMS key used to encrypt various sensitive files.\n\nAllowed value: The selfLink field of a KMSCryptoKey resource."

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.kmsKeyRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.securityConfig.kerberosConfig.kmsKeyRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.softwareConfig

"Immutable. Optional. The config settings for software inside the cluster."

fn spec.placement.managedCluster.config.softwareConfig.withImageVersion

withImageVersion(imageVersion)

"Immutable. Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions, such as \"1.2\" (including a subminor version, such as \"1.2.29\"), or the \"preview\" version. If unspecified, it defaults to the latest Debian version."

fn spec.placement.managedCluster.config.softwareConfig.withOptionalComponents

withOptionalComponents(optionalComponents)

"Immutable. Optional. The set of components to activate on the cluster."

fn spec.placement.managedCluster.config.softwareConfig.withOptionalComponentsMixin

withOptionalComponentsMixin(optionalComponents)

"Immutable. Optional. The set of components to activate on the cluster."

Note: This function appends passed data to existing values

fn spec.placement.managedCluster.config.softwareConfig.withProperties

withProperties(properties)

"Immutable. Optional. The properties to set on daemon config files. Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings: * capacity-scheduler: capacity-scheduler.xml * core: core-site.xml * distcp: distcp-default.xml * hdfs: hdfs-site.xml * hive: hive-site.xml * mapred: mapred-site.xml * pig: pig.properties * spark: spark-defaults.conf * yarn: yarn-site.xml For more information, see Cluster properties."

fn spec.placement.managedCluster.config.softwareConfig.withPropertiesMixin

withPropertiesMixin(properties)

"Immutable. Optional. The properties to set on daemon config files. Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings: * capacity-scheduler: capacity-scheduler.xml * core: core-site.xml * distcp: distcp-default.xml * hdfs: hdfs-site.xml * hive: hive-site.xml * mapred: mapred-site.xml * pig: pig.properties * spark: spark-defaults.conf * yarn: yarn-site.xml For more information, see Cluster properties."

Note: This function appends passed data to existing values

obj spec.placement.managedCluster.config.stagingBucketRef

"Immutable."

fn spec.placement.managedCluster.config.stagingBucketRef.withExternal

withExternal(external)

"Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket). This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.\n\nAllowed value: The Google Cloud resource name of a StorageBucket resource (format: {{name}})."

fn spec.placement.managedCluster.config.stagingBucketRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.stagingBucketRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.tempBucketRef

"Immutable."

fn spec.placement.managedCluster.config.tempBucketRef.withExternal

withExternal(external)

"Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket. This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.\n\nAllowed value: The Google Cloud resource name of a StorageBucket resource (format: {{name}})."

fn spec.placement.managedCluster.config.tempBucketRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.tempBucketRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.placement.managedCluster.config.workerConfig

"Immutable. Optional. The Compute Engine config settings for worker instances in a cluster."

fn spec.placement.managedCluster.config.workerConfig.withAccelerators

withAccelerators(accelerators)

"Immutable. Optional. The Compute Engine accelerator configuration for these instances."

fn spec.placement.managedCluster.config.workerConfig.withAcceleratorsMixin

withAcceleratorsMixin(accelerators)

"Immutable. Optional. The Compute Engine accelerator configuration for these instances."

Note: This function appends passed data to existing values

fn spec.placement.managedCluster.config.workerConfig.withMachineType

withMachineType(machineType)

"Immutable. Optional. The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 * projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 * n1-standard-2 Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2."

fn spec.placement.managedCluster.config.workerConfig.withMinCpuPlatform

withMinCpuPlatform(minCpuPlatform)

"Immutable. Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform."

fn spec.placement.managedCluster.config.workerConfig.withNumInstances

withNumInstances(numInstances)

"Immutable. Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1."

fn spec.placement.managedCluster.config.workerConfig.withPreemptibility

withPreemptibility(preemptibility)

"Immutable. Optional. Specifies the preemptibility of the instance group. The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed. The default value for secondary instances is PREEMPTIBLE. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE"

obj spec.placement.managedCluster.config.workerConfig.accelerators

"Immutable. Optional. The Compute Engine accelerator configuration for these instances."

fn spec.placement.managedCluster.config.workerConfig.accelerators.withAcceleratorCount

withAcceleratorCount(acceleratorCount)

"Immutable. The number of the accelerator cards of this type exposed to this instance."

fn spec.placement.managedCluster.config.workerConfig.accelerators.withAcceleratorType

withAcceleratorType(acceleratorType)

"Immutable. Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes. Examples: * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80 Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80."

obj spec.placement.managedCluster.config.workerConfig.diskConfig

"Immutable. Optional. Disk option config settings."

fn spec.placement.managedCluster.config.workerConfig.diskConfig.withBootDiskSizeGb

withBootDiskSizeGb(bootDiskSizeGb)

"Immutable. Optional. Size in GB of the boot disk (default is 500GB)."

fn spec.placement.managedCluster.config.workerConfig.diskConfig.withBootDiskType

withBootDiskType(bootDiskType)

"Immutable. Optional. Type of the boot disk (default is \"pd-standard\"). Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive), or \"pd-standard\" (Persistent Disk Hard Disk Drive). See Disk types."

fn spec.placement.managedCluster.config.workerConfig.diskConfig.withNumLocalSsds

withNumLocalSsds(numLocalSsds)

"Immutable. Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries."

obj spec.placement.managedCluster.config.workerConfig.imageRef

"Immutable."

fn spec.placement.managedCluster.config.workerConfig.imageRef.withExternal

withExternal(external)

"Optional. The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id] * projects/[project_id]/global/images/[image-id] * image-id Image family examples. Dataproc will use the most recent image from the family: * https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name] * projects/[project_id]/global/images/family/[custom-image-family-name] If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.\n\nAllowed value: The selfLink field of a ComputeImage resource."

fn spec.placement.managedCluster.config.workerConfig.imageRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.placement.managedCluster.config.workerConfig.imageRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

obj spec.projectRef

"Immutable. The Project that this resource belongs to."

fn spec.projectRef.withExternal

withExternal(external)

"The project for the resource\n\nAllowed value: The Google Cloud resource name of a Project resource (format: projects/{{name}})."

fn spec.projectRef.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.projectRef.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"