Definitions for @turbot/gcp-dataproc

AcceleratorConfig

{
"description": "Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).",
"properties": {
"acceleratorCount": {
"description": "The number of the accelerator cards of this type exposed to this instance.",
"format": "int32",
"type": "integer"
},
"acceleratorTypeUri": {
"description": "Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80 projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80 nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/AcceleratorConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

AutoscalingConfig

{
"description": "Autoscaling Policy config associated with the cluster.",
"properties": {
"policyUri": {
"description": "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.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/AutoscalingConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

AuxiliaryNodeGroup

{
"description": "Node group identification and configuration information.",
"properties": {
"nodeGroup": {
"$ref": "#/definitions/NodeGroup",
"description": "Required. Node group configuration."
},
"nodeGroupId": {
"description": "Optional. A node group ID. Generated if not specified.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 from 3 to 33 characters.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/AuxiliaryNodeGroup",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

AuxiliaryServicesConfig

{
"description": "Auxiliary services configuration for a Cluster.",
"properties": {
"metastoreConfig": {
"$ref": "#/definitions/MetastoreConfig",
"description": "Optional. The Hive Metastore configuration for this workload."
},
"sparkHistoryServerConfig": {
"$ref": "#/definitions/SparkHistoryServerConfig",
"description": "Optional. The Spark History Server configuration for the workload."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/AuxiliaryServicesConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

Binding

{
"description": "Associates members, or principals, with a role.",
"properties": {
"condition": {
"$ref": "#/definitions/Expr",
"description": "The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies)."
},
"members": {
"description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workforce identity pool. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}: All workforce identities in a group. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All workforce identities with a specific attribute value. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*: All identities in a workforce identity pool. principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workload identity pool. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool group. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All identities in a workload identity pool with a certain attribute. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*: All identities in a workload identity pool. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: Deleted single identity in a workforce identity pool. For example, deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value.",
"items": {
"type": "string"
},
"type": "array"
},
"role": {
"description": "Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles).",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/Binding",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

cluster

{
"type": "object",
"properties": {
"clusterName": {
"$ref": "#/definitions/clusterName"
},
"labels": {
"$ref": "gcp#/definitions/labels"
},
"encryptionConfig": {
"$ref": "#/definitions/encryptionConfig"
},
"iamPolicy": {
"$ref": "gcp-iam#/definitions/projectIamPolicy"
},
"status": {
"type": "object",
"properties": {
"state": {
"$ref": "#/definitions/clusterStatus"
}
}
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/clusterAka"
}
},
"tags": {
"$ref": "gcp#/definitions/labels"
},
"title": {
"$ref": "#/definitions/clusterName"
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"gcp": {
"$ref": "gcp#/definitions/gcpMetadata"
}
}
}
}
}
},
"required": [
"clusterName"
],
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"clusterName": "testfunction01",
"title": "testfunctiontesting01",
"labels": {
"foo": "bar",
"foo1": "bar1"
},
"turbot": {
"akas": [
"gcp://dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/clusters/test01"
],
"tags": {
"foo": "bar",
"foo1": "bar1"
},
"title": "test01",
"custom": {
"createTimestamp": "2017-03-05T13:58:05.590Z",
"gcp": {
"projectId": "cse-legolas-2"
}
}
}
}
},
{
"description": "Invalid - Missing clusterName",
"input": {
"title": "testfunctiontesting01",
"labels": {
"foo": "bar",
"foo1": "bar1"
},
"turbot": {
"akas": [
"gcp://dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/clusters/test01"
],
"tags": {
"foo": "bar",
"foo1": "bar1"
},
"title": "test01",
"custom": {
"createTimestamp": "2017-03-05T13:58:05.590Z",
"gcp": {
"projectId": "cse-legolas-2"
}
}
}
},
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/cluster",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

Cluster

{
"description": "Describes the identifying information, config, and status of a Dataproc cluster",
"properties": {
"clusterName": {
"description": "Required. The cluster name, which must be unique within a project. The name must start with a lowercase letter, and can contain up to 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The name of a deleted cluster can be reused.",
"type": "string"
},
"clusterUuid": {
"description": "Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster.",
"readOnly": true,
"type": "string"
},
"config": {
"$ref": "#/definitions/ClusterConfig",
"description": "Optional. The cluster config for a cluster of Compute Engine Instances. Note that Dataproc may set default values, and values may change when clusters are updated.Exactly one of ClusterConfig or VirtualClusterConfig must be specified."
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.",
"type": "object"
},
"metrics": {
"$ref": "#/definitions/ClusterMetrics",
"description": "Output only. Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.",
"readOnly": true
},
"projectId": {
"description": "Required. The Google Cloud Platform project ID that the cluster belongs to.",
"type": "string"
},
"status": {
"$ref": "#/definitions/ClusterStatus",
"description": "Output only. Cluster status.",
"readOnly": true
},
"statusHistory": {
"description": "Output only. The previous cluster status.",
"items": {
"$ref": "#/definitions/ClusterStatus"
},
"readOnly": true,
"type": "array"
},
"virtualClusterConfig": {
"$ref": "#/definitions/VirtualClusterConfig",
"description": "Optional. The virtual cluster config is used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/Cluster",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

clusterAka

{
"type": "string",
"pattern": "^gcp://dataproc.googleapis.com/projects/[a-z0-9-]{5,29}[a-z0-9]{1}/regions/[a-z](?:[-a-z0-9]{0,86}[a-z0-9])?/clusters/[a-z][a-z0-9-]{2,53}[a-z0-9]$",
"tests": [
{
"descritpion": "base case",
"input": "gcp://dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/clusters/test01"
},
{
"description": "invalid - invalid arn",
"input": "i.dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/clusters/test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/clusterAka",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ClusterConfig

{
"description": "The cluster config.",
"properties": {
"autoscalingConfig": {
"$ref": "#/definitions/AutoscalingConfig",
"description": "Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset."
},
"auxiliaryNodeGroups": {
"description": "Optional. The node group settings.",
"items": {
"$ref": "#/definitions/AuxiliaryNodeGroup"
},
"type": "array"
},
"configBucket": {
"description": "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 and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.",
"type": "string"
},
"dataprocMetricConfig": {
"$ref": "#/definitions/DataprocMetricConfig",
"description": "Optional. The config for Dataproc metrics."
},
"encryptionConfig": {
"$ref": "#/definitions/EncryptionConfig",
"description": "Optional. Encryption settings for the cluster."
},
"endpointConfig": {
"$ref": "#/definitions/EndpointConfig",
"description": "Optional. Port/endpoint configuration for this cluster"
},
"gceClusterConfig": {
"$ref": "#/definitions/GceClusterConfig",
"description": "Optional. The shared Compute Engine config settings for all instances in a cluster."
},
"gkeClusterConfig": {
"$ref": "#/definitions/GkeClusterConfig",
"deprecated": true,
"description": "Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. These config settings are mutually exclusive with Compute Engine-based options, such as gce_cluster_config, master_config, worker_config, secondary_worker_config, and autoscaling_config."
},
"initializationActions": {
"description": "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 ",
"items": {
"$ref": "#/definitions/NodeInitializationAction"
},
"type": "array"
},
"lifecycleConfig": {
"$ref": "#/definitions/LifecycleConfig",
"description": "Optional. Lifecycle setting for the cluster."
},
"masterConfig": {
"$ref": "#/definitions/InstanceGroupConfig",
"description": "Optional. The Compute Engine config settings for the cluster's master instance."
},
"metastoreConfig": {
"$ref": "#/definitions/MetastoreConfig",
"description": "Optional. Metastore configuration."
},
"secondaryWorkerConfig": {
"$ref": "#/definitions/InstanceGroupConfig",
"description": "Optional. The Compute Engine config settings for a cluster's secondary worker instances"
},
"securityConfig": {
"$ref": "#/definitions/SecurityConfig",
"description": "Optional. Security settings for the cluster."
},
"softwareConfig": {
"$ref": "#/definitions/SoftwareConfig",
"description": "Optional. The config settings for cluster software."
},
"tempBucket": {
"description": "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 (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.",
"type": "string"
},
"workerConfig": {
"$ref": "#/definitions/InstanceGroupConfig",
"description": "Optional. The Compute Engine config settings for the cluster's worker instances."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ClusterConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

clusterencryptkmskey

{
"type": "string",
"tests": [
{
"input": "jvuyfv6#tr"
},
{
"input": "7ff#65tg_"
},
{
"description": "valid case",
"input": "projects/cse-legolas/locations/global/keyRings/test/cryptoKeys/disk/cryptoKeyVersions/1"
},
{
"description": "invalid - encryption cannot contains array",
"input": [],
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/clusterencryptkmskey",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ClusterMetrics

{
"description": "Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. It may be changed before final release.",
"properties": {
"hdfsMetrics": {
"additionalProperties": {
"format": "int64",
"type": "string"
},
"description": "The HDFS metrics.",
"type": "object"
},
"yarnMetrics": {
"additionalProperties": {
"format": "int64",
"type": "string"
},
"description": "YARN metrics.",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ClusterMetrics",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

clusterName

{
"type": "string",
"pattern": "^[a-z][a-z0-9-]{2,53}[a-z0-9]$",
"tests": [
{
"description": "valid case",
"input": "test-00123"
},
{
"description": "invalid - cannot end with a hyphen",
"input": "testName01-",
"expected": false
},
{
"description": "invalid - too long",
"input": "test555testtstststststsststest555testtstststststsststest555testtstststststsststest555testtstststststsststest555testtstststststssts",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/clusterName",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ClusterSelector

{
"description": "A selector that chooses target cluster for jobs based on metadata.",
"properties": {
"clusterLabels": {
"additionalProperties": {
"type": "string"
},
"description": "Required. The cluster labels. Cluster must have all labels to match.",
"type": "object"
},
"zone": {
"description": "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.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ClusterSelector",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

clusterServiceNow

{
"defaultColumns": {
"autoscaling_config": {
"column": "enabled",
"path": "data.config.autoscalingConfig"
},
"auxiliary_node_groups": {
"column": "enabled",
"path": "data.config.auxiliaryNodeGroups"
},
"cluster_name": {
"column": "enabled"
},
"cluster_uuid": {
"column": "enabled",
"label": "Cluster UUID",
"path": "data.clusterUuid"
},
"encryption_config": {
"column": "enabled",
"path": "data.config.encryptionConfig"
},
"kubernetes_cluster_config": {
"column": "enabled",
"path": "data.virtualClusterConfig.kubernetesClusterConfig"
},
"labels": {
"column": "enabled",
"type": "string",
"size": 1000
},
"project_id": {
"column": "enabled",
"label": "Project ID",
"path": "metadata.gcp.ProjectId"
},
"region_name": {
"column": "enabled",
"path": "metadata.gcp.regionName"
},
"staging_bucket": {
"column": "enabled",
"path": "data.virtualClusterConfig.stagingBucket"
},
"status": {
"column": "enabled"
}
},
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/clusterServiceNow",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

clusterStatus

{
"type": "string",
"enum": [
"CREATING",
"RUNNING",
"ERROR",
"DELETING",
"UPDATING"
],
"tests": [
{
"input": "CREATING"
},
{
"input": "ERROR"
},
{
"description": "invalid - not listed in options",
"input": "Reactive",
"expected": false
},
{
"description": "invalid - null value",
"input": null,
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/clusterStatus",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ClusterStatus

{
"description": "The status of a cluster and its instances.",
"properties": {
"detail": {
"description": "Optional. Output only. Details of cluster's state.",
"readOnly": true,
"type": "string"
},
"state": {
"description": "Output only. The cluster's state.",
"enum": [
"UNKNOWN",
"CREATING",
"RUNNING",
"ERROR",
"ERROR_DUE_TO_UPDATE",
"DELETING",
"UPDATING",
"STOPPING",
"STOPPED",
"STARTING",
"REPAIRING"
],
"readOnly": true,
"type": "string"
},
"stateStartTime": {
"description": "Output only. Time when this state was entered (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"substate": {
"description": "Output only. Additional state information that includes status reported by the agent.",
"enum": [
"UNSPECIFIED",
"UNHEALTHY",
"STALE_STATUS"
],
"readOnly": true,
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ClusterStatus",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ConfidentialInstanceConfig

{
"description": "Confidential Instance Config for clusters using Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs)",
"properties": {
"enableConfidentialCompute": {
"description": "Optional. Defines whether the instance should have confidential compute enabled.",
"type": "boolean"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ConfidentialInstanceConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

dataproc

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/dataprocName"
},
"state": {
"$ref": "gcp#/definitions/state"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/dataprocAka"
}
},
"title": {
"const": "Dataproc"
},
"custom": {
"type": "object",
"properties": {
"gcp": {
"$ref": "gcp#/definitions/gcpMetadata"
}
}
}
}
}
},
"required": [
"name",
"turbot"
],
"additionalProperties": true,
"tests": [
{
"description": "Valid - base test",
"input": {
"name": "projects/932405488407/services/dataproc.googleapis.com",
"turbot": {
"akas": [
"gcp://serviceusage.googleapis.com/projects/932405488407/services/dataproc.googleapis.com"
],
"title": "BigQuery",
"custom": {
"gcp": {
"projectId": "cse-legolas-2"
}
}
}
}
},
{
"description": "Invalid - service provider name prefixed",
"input": {
"name": "GCP Bigquery",
"turbot": {
"akas": [
"gcp://serviceusage.googleapis.com/projects/932405488407/services/dataproc.googleapis.com"
],
"title": "BigQuery",
"custom": {
"gcp": {
"projectId": "cse-legolas-2"
}
}
}
},
"expected": false
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/dataproc",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

dataprocAka

{
"type": "string",
"pattern": "^gcp://serviceusage.googleapis.com/projects/[0-9]{12}/services/dataproc.googleapis.com",
"tests": [
{
"description": "base",
"input": "gcp://serviceusage.googleapis.com/projects/932405488407/services/dataproc.googleapis.com"
},
{
"description": "invalid aka",
"input": "gcp://serviceusage.googleapis.com/projects/cse-legolas-2/services/dataproc.googleapis.com",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/dataprocAka",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

DataprocMetricConfig

{
"description": "Dataproc metric config.",
"properties": {
"metrics": {
"description": "Required. Metrics sources to enable.",
"items": {
"$ref": "#/definitions/Metric"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/DataprocMetricConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

dataprocName

{
"type": "string",
"pattern": "^projects/[0-9]{12}/services/dataproc.googleapis.com",
"tests": [
{
"description": "base",
"input": "projects/932405488407/services/dataproc.googleapis.com"
},
{
"description": "invalid aka",
"input": "gcp://serviceusage.googleapis.com/projects/cse-legolas-2/services/dataproc.googleapis.com",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/dataprocName",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

DiskConfig

{
"description": "Specifies the config of disk options for a group of VM instances.",
"properties": {
"bootDiskSizeGb": {
"description": "Optional. Size in GB of the boot disk (default is 500GB).",
"format": "int32",
"type": "integer"
},
"bootDiskType": {
"description": "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 (https://cloud.google.com/compute/docs/disks#disk-types).",
"type": "string"
},
"localSsdInterface": {
"description": "Optional. Interface type of local SSDs (default is \"scsi\"). Valid values: \"scsi\" (Small Computer System Interface), \"nvme\" (Non-Volatile Memory Express). See local SSD performance (https://cloud.google.com/compute/docs/disks/local-ssd#performance).",
"type": "string"
},
"numLocalSsds": {
"description": "Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) 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.Note: Local SSD options may vary by machine type and number of vCPUs selected.",
"format": "int32",
"type": "integer"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/DiskConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

DriverSchedulingConfig

{
"description": "Driver scheduling configuration.",
"properties": {
"memoryMb": {
"description": "Required. The amount of memory in MB the driver is requesting.",
"format": "int32",
"type": "integer"
},
"vcores": {
"description": "Required. The number of vCPUs the driver is requesting.",
"format": "int32",
"type": "integer"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/DriverSchedulingConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

encryptionConfig

{
"type": "object",
"properties": {
"gcePdKmsKeyName": {
"$ref": "#/definitions/clusterencryptkmskey"
}
},
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/encryptionConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

EncryptionConfig

{
"description": "Encryption settings for the cluster.",
"properties": {
"gcePdKmsKeyName": {
"description": "Optional. The Cloud KMS key resource name to use for persistent disk encryption for all instances in the cluster. See Use CMEK with cluster data (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more information.",
"type": "string"
},
"kmsKey": {
"description": "Optional. The Cloud KMS key resource name to use for cluster persistent disk and job argument encryption. See Use CMEK with cluster data (https://cloud.google.com//dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_cluster_data) for more information.When this key resource name is provided, the following job arguments of the following job types submitted to the cluster are encrypted using CMEK: FlinkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) HadoopJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) SparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) SparkRJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) PySparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) SparkSqlJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) scriptVariables and queryList.queries HiveJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) scriptVariables and queryList.queries PigJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) scriptVariables and queryList.queries PrestoJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) scriptVariables and queryList.queries",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/EncryptionConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

EndpointConfig

{
"description": "Endpoint config for this cluster",
"properties": {
"enableHttpPortAccess": {
"description": "Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.",
"type": "boolean"
},
"httpPorts": {
"additionalProperties": {
"type": "string"
},
"description": "Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.",
"readOnly": true,
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/EndpointConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

Expr

{
"description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() < 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.",
"properties": {
"description": {
"description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.",
"type": "string"
},
"expression": {
"description": "Textual representation of an expression in Common Expression Language syntax.",
"type": "string"
},
"location": {
"description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.",
"type": "string"
},
"title": {
"description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/Expr",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

FlinkJob

{
"description": "A Dataproc job for running Apache Flink applications on YARN.",
"properties": {
"args": {
"description": "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 might occur that causes an incorrect job submission.",
"items": {
"type": "string"
},
"type": "array"
},
"jarFileUris": {
"description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Flink driver and tasks.",
"items": {
"type": "string"
},
"type": "array"
},
"loggingConfig": {
"$ref": "#/definitions/LoggingConfig",
"description": "Optional. The runtime log config for job execution."
},
"mainClass": {
"description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jarFileUris.",
"type": "string"
},
"mainJarFileUri": {
"description": "The HCFS URI of the jar file that contains the main class.",
"type": "string"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. A mapping of property names to values, used to configure Flink. Properties that conflict with values set by the Dataproc API might beoverwritten. Can include properties set in/etc/flink/conf/flink-defaults.conf and classes in user code.",
"type": "object"
},
"savepointUri": {
"description": "Optional. HCFS URI of the savepoint, which contains the last saved progress for starting the current job.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/FlinkJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

GceClusterConfig

{
"description": "Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster.",
"properties": {
"confidentialInstanceConfig": {
"$ref": "#/definitions/ConfidentialInstanceConfig",
"description": "Optional. Confidential Instance Config for clusters using Confidential VMs (https://cloud.google.com/compute/confidential-vm/docs)."
},
"internalIpOnly": {
"description": "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.",
"type": "boolean"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).",
"type": "object"
},
"networkUri": {
"description": "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 (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default projects/[project_id]/global/networks/default default",
"type": "string"
},
"nodeGroupAffinity": {
"$ref": "#/definitions/NodeGroupAffinity",
"description": "Optional. Node Group Affinity for sole-tenant clusters."
},
"privateIpv6GoogleAccess": {
"description": "Optional. The type of IPv6 access for a cluster.",
"enum": [
"PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED",
"INHERIT_FROM_SUBNETWORK",
"OUTBOUND",
"BIDIRECTIONAL"
],
"type": "string"
},
"reservationAffinity": {
"$ref": "#/definitions/ReservationAffinity",
"description": "Optional. Reservation Affinity for consuming Zonal reservation."
},
"serviceAccount": {
"description": "Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.",
"type": "string"
},
"serviceAccountScopes": {
"description": "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.writeIf 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",
"items": {
"type": "string"
},
"type": "array"
},
"shieldedInstanceConfig": {
"$ref": "#/definitions/ShieldedInstanceConfig",
"description": "Optional. Shielded Instance Config for clusters using Compute Engine Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-vm)."
},
"subnetworkUri": {
"description": "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/[region]/subnetworks/sub0 projects/[project_id]/regions/[region]/subnetworks/sub0 sub0",
"type": "string"
},
"tags": {
"description": "The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).",
"items": {
"type": "string"
},
"type": "array"
},
"zoneUri": {
"description": "Optional. The Compute Engine zone where the Dataproc cluster will be located. If omitted, the service will pick a zone in the cluster's 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] [zone]",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/GceClusterConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

GkeClusterConfig

{
"description": "The cluster's GKE config.",
"properties": {
"gkeClusterTarget": {
"description": "Optional. A target GKE cluster to deploy to. It must be in the same project and region as the Dataproc cluster (the GKE cluster can be zonal or regional). Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'",
"type": "string"
},
"namespacedGkeDeploymentTarget": {
"$ref": "#/definitions/NamespacedGkeDeploymentTarget",
"deprecated": true,
"description": "Optional. Deprecated. Use gkeClusterTarget. Used only for the deprecated beta. A target for the deployment."
},
"nodePoolTarget": {
"description": "Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.",
"items": {
"$ref": "#/definitions/GkeNodePoolTarget"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/GkeClusterConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

GkeNodeConfig

{
"description": "Parameters that describe cluster nodes.",
"properties": {
"accelerators": {
"description": "Optional. A list of hardware accelerators (https://cloud.google.com/compute/docs/gpus) to attach to each node.",
"items": {
"$ref": "#/definitions/GkeNodePoolAcceleratorConfig"
},
"type": "array"
},
"bootDiskKmsKey": {
"description": "Optional. The Customer Managed Encryption Key (CMEK) (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}",
"type": "string"
},
"localSsdCount": {
"description": "Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs (https://cloud.google.com/compute/docs/disks/local-ssd)).",
"format": "int32",
"type": "integer"
},
"machineType": {
"description": "Optional. The name of a Compute Engine machine type (https://cloud.google.com/compute/docs/machine-types).",
"type": "string"
},
"minCpuPlatform": {
"description": "Optional. Minimum CPU platform (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as \"Intel Haswell\"` or Intel Sandy Bridge\".",
"type": "string"
},
"preemptible": {
"description": "Optional. Whether the nodes are created as legacy preemptible VM instances (https://cloud.google.com/compute/docs/instances/preemptible). Also see Spot VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).",
"type": "boolean"
},
"spot": {
"description": "Optional. Whether the nodes are created as Spot VM instances (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy preemptible VMs. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).",
"type": "boolean"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/GkeNodeConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

GkeNodePoolAcceleratorConfig

{
"description": "A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request for a node pool.",
"properties": {
"acceleratorCount": {
"description": "The number of accelerator cards exposed to an instance.",
"format": "int64",
"type": "string"
},
"acceleratorType": {
"description": "The accelerator type resource namename (see GPUs on Compute Engine).",
"type": "string"
},
"gpuPartitionSize": {
"description": "Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/GkeNodePoolAcceleratorConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

GkeNodePoolAutoscalingConfig

{
"description": "GkeNodePoolAutoscaling contains information the cluster autoscaler needs to adjust the size of the node pool to the current cluster usage.",
"properties": {
"maxNodeCount": {
"description": "The maximum number of nodes in the node pool. Must be >= min_node_count, and must be > 0. Note: Quota must be sufficient to scale up the cluster.",
"format": "int32",
"type": "integer"
},
"minNodeCount": {
"description": "The minimum number of nodes in the node pool. Must be >= 0 and <= max_node_count.",
"format": "int32",
"type": "integer"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/GkeNodePoolAutoscalingConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

GkeNodePoolConfig

{
"description": "The configuration of a GKE node pool used by a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).",
"properties": {
"autoscaling": {
"$ref": "#/definitions/GkeNodePoolAutoscalingConfig",
"description": "Optional. The autoscaler configuration for this node pool. The autoscaler is enabled only when a valid configuration is present."
},
"config": {
"$ref": "#/definitions/GkeNodeConfig",
"description": "Optional. The node pool configuration."
},
"locations": {
"description": "Optional. The list of Compute Engine zones (https://cloud.google.com/compute/docs/zones#available) where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.If a location is not specified during node pool creation, Dataproc on GKE will choose the zone.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/GkeNodePoolConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

GkeNodePoolTarget

{
"description": "GKE node pools that Dataproc workloads run on.",
"properties": {
"nodePool": {
"description": "Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'",
"type": "string"
},
"nodePoolConfig": {
"$ref": "#/definitions/GkeNodePoolConfig",
"description": "Input only. The configuration for the GKE node pool.If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail.If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values.This is an input only field. It will not be returned by the API."
},
"roles": {
"description": "Required. The roles associated with the GKE node pool.",
"items": {
"enum": [
"ROLE_UNSPECIFIED",
"DEFAULT",
"CONTROLLER",
"SPARK_DRIVER",
"SPARK_EXECUTOR"
],
"type": "string"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/GkeNodePoolTarget",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig

{
"description": "Encryption settings for encrypting workflow template job arguments.",
"properties": {
"kmsKey": {
"description": "Optional. The Cloud KMS key name to use for encrypting workflow template job arguments.When this this key is provided, the following workflow template job arguments (https://cloud.google.com/dataproc/docs/concepts/workflows/use-workflows#adding_jobs_to_a_template), if present, are CMEK encrypted (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/customer-managed-encryption#use_cmek_with_workflow_template_data): FlinkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/FlinkJob) HadoopJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/HadoopJob) SparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkJob) SparkRJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkRJob) PySparkJob args (https://cloud.google.com/dataproc/docs/reference/rest/v1/PySparkJob) SparkSqlJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/SparkSqlJob) scriptVariables and queryList.queries HiveJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/HiveJob) scriptVariables and queryList.queries PigJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PigJob) scriptVariables and queryList.queries PrestoJob (https://cloud.google.com/dataproc/docs/reference/rest/v1/PrestoJob) scriptVariables and queryList.queries",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

HadoopJob

{
"description": "A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).",
"properties": {
"archiveUris": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"args": {
"description": "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 might occur that causes an incorrect job submission.",
"items": {
"type": "string"
},
"type": "array"
},
"fileUris": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"jarFileUris": {
"description": "Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.",
"items": {
"type": "string"
},
"type": "array"
},
"loggingConfig": {
"$ref": "#/definitions/LoggingConfig",
"description": "Optional. The runtime log config for job execution."
},
"mainClass": {
"description": "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.",
"type": "string"
},
"mainJarFileUri": {
"description": "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'",
"type": "string"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/HadoopJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

HiveJob

{
"description": "A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN.",
"properties": {
"continueOnFailure": {
"description": "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.",
"type": "boolean"
},
"jarFileUris": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.",
"type": "object"
},
"queryFileUri": {
"description": "The HCFS URI of the script that contains Hive queries.",
"type": "string"
},
"queryList": {
"$ref": "#/definitions/QueryList",
"description": "A list of queries."
},
"scriptVariables": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=\"value\";).",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/HiveJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

IdentityConfig

{
"description": "Identity related configuration, including service account based secure multi-tenancy user mappings.",
"properties": {
"userServiceAccountMapping": {
"additionalProperties": {
"type": "string"
},
"description": "Required. Map of user to service account.",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/IdentityConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

InstanceFlexibilityPolicy

{
"description": "Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.",
"properties": {
"instanceSelectionList": {
"description": "Optional. List of instance selection options that the group will use when creating new VMs.",
"items": {
"$ref": "#/definitions/InstanceSelection"
},
"type": "array"
},
"instanceSelectionResults": {
"description": "Output only. A list of instance selection results in the group.",
"items": {
"$ref": "#/definitions/InstanceSelectionResult"
},
"readOnly": true,
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/InstanceFlexibilityPolicy",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

InstanceGroupConfig

{
"description": "The config settings for Compute Engine resources in an instance group, such as a master or worker group.",
"properties": {
"accelerators": {
"description": "Optional. The Compute Engine accelerator configuration for these instances.",
"items": {
"$ref": "#/definitions/AcceleratorConfig"
},
"type": "array"
},
"diskConfig": {
"$ref": "#/definitions/DiskConfig",
"description": "Optional. Disk option config settings."
},
"imageUri": {
"description": "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/v1/projects/[project_id]/global/images/[image-id] projects/[project_id]/global/images/[image-id] image-idImage family examples. Dataproc will use the most recent image from the family: https://www.googleapis.com/compute/v1/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.",
"type": "string"
},
"instanceFlexibilityPolicy": {
"$ref": "#/definitions/InstanceFlexibilityPolicy",
"description": "Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models."
},
"instanceNames": {
"description": "Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.",
"items": {
"type": "string"
},
"readOnly": true,
"type": "array"
},
"instanceReferences": {
"description": "Output only. List of references to Compute Engine instances.",
"items": {
"$ref": "#/definitions/InstanceReference"
},
"readOnly": true,
"type": "array"
},
"isPreemptible": {
"description": "Output only. Specifies that this instance group contains preemptible instances.",
"readOnly": true,
"type": "boolean"
},
"machineTypeUri": {
"description": "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/[zone]/machineTypes/n1-standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, n1-standard-2.",
"type": "string"
},
"managedGroupConfig": {
"$ref": "#/definitions/ManagedGroupConfig",
"description": "Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.",
"readOnly": true
},
"minCpuPlatform": {
"description": "Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).",
"type": "string"
},
"minNumInstances": {
"description": "Optional. The minimum number of primary worker instances to create. If min_num_instances is set, cluster creation will succeed if the number of primary workers created is at least equal to the min_num_instances number.Example: Cluster creation request with num_instances = 5 and min_num_instances = 3: If 4 VMs are created and 1 instance fails, the failed VM is deleted. The cluster is resized to 4 instances and placed in a RUNNING state. If 2 instances are created and 3 instances fail, the cluster in placed in an ERROR state. The failed VMs are not deleted.",
"format": "int32",
"type": "integer"
},
"numInstances": {
"description": "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.",
"format": "int32",
"type": "integer"
},
"preemptibility": {
"description": "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.",
"enum": [
"PREEMPTIBILITY_UNSPECIFIED",
"NON_PREEMPTIBLE",
"PREEMPTIBLE",
"SPOT"
],
"type": "string"
},
"startupConfig": {
"$ref": "#/definitions/StartupConfig",
"description": "Optional. Configuration to handle the startup of instances during cluster create and update process."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/InstanceGroupConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

InstanceReference

{
"description": "A reference to a Compute Engine instance.",
"properties": {
"instanceId": {
"description": "The unique identifier of the Compute Engine instance.",
"type": "string"
},
"instanceName": {
"description": "The user-friendly name of the Compute Engine instance.",
"type": "string"
},
"publicEciesKey": {
"description": "The public ECIES key used for sharing data with this instance.",
"type": "string"
},
"publicKey": {
"description": "The public RSA key used for sharing data with this instance.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/InstanceReference",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

InstanceSelection

{
"description": "Defines machines types and a rank to which the machines types belong.",
"properties": {
"machineTypes": {
"description": "Optional. Full machine-type names, e.g. \"n1-standard-16\".",
"items": {
"type": "string"
},
"type": "array"
},
"rank": {
"description": "Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference.",
"format": "int32",
"type": "integer"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/InstanceSelection",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

InstanceSelectionResult

{
"description": "Defines a mapping from machine types to the number of VMs that are created with each machine type.",
"properties": {
"machineType": {
"description": "Output only. Full machine-type names, e.g. \"n1-standard-16\".",
"readOnly": true,
"type": "string"
},
"vmCount": {
"description": "Output only. Number of VM provisioned with the machine_type.",
"format": "int32",
"readOnly": true,
"type": "integer"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/InstanceSelectionResult",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

job

{
"type": "object",
"properties": {
"jobId": {
"$ref": "#/definitions/jobId"
},
"labels": {
"$ref": "gcp#/definitions/labels"
},
"iamPolicy": {
"$ref": "gcp-iam#/definitions/projectIamPolicy"
},
"status": {
"type": "object",
"properties": {
"state": {
"$ref": "#/definitions/jobStatus"
}
}
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/jobAka"
}
},
"tags": {
"$ref": "gcp#/definitions/labels"
},
"title": {
"$ref": "#/definitions/jobId"
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"gcp": {
"$ref": "gcp#/definitions/gcpMetadata"
}
}
}
}
}
},
"required": [
"jobId"
],
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"jobId": "test01",
"labels": {
"foo": "bar",
"foo1": "bar1"
},
"turbot": {
"akas": [
"gcp://dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/jobs/test0123"
],
"tags": {
"foo": "bar",
"foo1": "bar1"
},
"title": "test01",
"custom": {
"createTimestamp": "2017-03-05T13:58:05.590Z",
"gcp": {
"projectId": "cse-legolas-2",
"regionName": "asia-south1"
}
}
}
}
},
{
"description": "Invalid - Missing jobId",
"input": {
"labels": {
"foo": "bar",
"foo1": "bar1"
},
"turbot": {
"akas": [
"gcp://dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/jobs/test0123"
],
"tags": {
"foo": "bar",
"foo1": "bar1"
},
"title": "test01",
"custom": {
"createTimestamp": "2017-03-05T13:58:05.590Z",
"gcp": {
"projectId": "cse-legolas-2",
"regionName": "asia-south1"
}
}
}
},
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/job",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

Job

{
"description": "A Dataproc job resource.",
"properties": {
"done": {
"description": "Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.",
"readOnly": true,
"type": "boolean"
},
"driverControlFilesUri": {
"description": "Output only. If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri.",
"readOnly": true,
"type": "string"
},
"driverOutputResourceUri": {
"description": "Output only. A URI pointing to the location of the stdout of the job's driver program.",
"readOnly": true,
"type": "string"
},
"driverSchedulingConfig": {
"$ref": "#/definitions/DriverSchedulingConfig",
"description": "Optional. Driver scheduling configuration."
},
"flinkJob": {
"$ref": "#/definitions/FlinkJob",
"description": "Optional. Job is a Flink job."
},
"hadoopJob": {
"$ref": "#/definitions/HadoopJob",
"description": "Optional. Job is a Hadoop job."
},
"hiveJob": {
"$ref": "#/definitions/HiveJob",
"description": "Optional. Job is a Hive job."
},
"jobUuid": {
"description": "Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time.",
"readOnly": true,
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.",
"type": "object"
},
"pigJob": {
"$ref": "#/definitions/PigJob",
"description": "Optional. Job is a Pig job."
},
"placement": {
"$ref": "#/definitions/JobPlacement",
"description": "Required. Job information, including how, when, and where to run the job."
},
"prestoJob": {
"$ref": "#/definitions/PrestoJob",
"description": "Optional. Job is a Presto job."
},
"pysparkJob": {
"$ref": "#/definitions/PySparkJob",
"description": "Optional. Job is a PySpark job."
},
"reference": {
"$ref": "#/definitions/JobReference",
"description": "Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a job_id."
},
"scheduling": {
"$ref": "#/definitions/JobScheduling",
"description": "Optional. Job scheduling configuration."
},
"sparkJob": {
"$ref": "#/definitions/SparkJob",
"description": "Optional. Job is a Spark job."
},
"sparkRJob": {
"$ref": "#/definitions/SparkRJob",
"description": "Optional. Job is a SparkR job."
},
"sparkSqlJob": {
"$ref": "#/definitions/SparkSqlJob",
"description": "Optional. Job is a SparkSql job."
},
"status": {
"$ref": "#/definitions/JobStatus",
"description": "Output only. The job status. Additional application-specific status information might be contained in the type_job and yarn_applications fields.",
"readOnly": true
},
"statusHistory": {
"description": "Output only. The previous job status.",
"items": {
"$ref": "#/definitions/JobStatus"
},
"readOnly": true,
"type": "array"
},
"trinoJob": {
"$ref": "#/definitions/TrinoJob",
"description": "Optional. Job is a Trino job."
},
"yarnApplications": {
"description": "Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It might be changed before final release.",
"items": {
"$ref": "#/definitions/YarnApplication"
},
"readOnly": true,
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/Job",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

jobAka

{
"type": "string",
"pattern": "^gcp://dataproc.googleapis.com/projects/[a-z0-9-]{5,29}[a-z0-9]{1}/regions/[a-z](?:[-a-z0-9]{0,86}[a-z0-9])?/jobs/[a-zA-Z0-9]([a-zA-Z0-9-_]){0,98}[a-zA-Z0-9]$",
"tests": [
{
"descritpion": "base case",
"input": "gcp://dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/jobs/test0123"
},
{
"description": "invalid - invalid arn",
"input": "i.dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/jobs/test0123",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/jobAka",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

jobId

{
"type": "string",
"pattern": "^[a-zA-Z0-9]([a-zA-Z0-9-_]){0,98}[a-zA-Z0-9]$",
"tests": [
{
"description": "valid case",
"input": "test-00123"
},
{
"description": "invalid - cannot end with a hyphen",
"input": "testName01-",
"expected": false
},
{
"description": "invalid - too long",
"input": "abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeadsfhsbhrerhjsnkznfeuhtwu[ieojifsjdnfsdnfsdjghbbsdnfbbruuyjilokgjjhophgtyhaoljgtjuilopfg",
"expected": false
},
{
"description": "valid - min length must be 1",
"input": "jj"
},
{
"description": "invalid - name cannot be empty",
"input": "",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/jobId",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

JobPlacement

{
"description": "Dataproc job config.",
"properties": {
"clusterLabels": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. Cluster labels to identify a cluster where the job will be submitted.",
"type": "object"
},
"clusterName": {
"description": "Required. The name of the cluster where the job will be submitted.",
"type": "string"
},
"clusterUuid": {
"description": "Output only. A cluster UUID generated by the Dataproc service when the job is submitted.",
"readOnly": true,
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/JobPlacement",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

JobReference

{
"description": "Encapsulates the full scoping used to reference a job.",
"properties": {
"jobId": {
"description": "Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.",
"type": "string"
},
"projectId": {
"description": "Optional. The ID of the Google Cloud Platform project that the job belongs to. If specified, must match the request project ID.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/JobReference",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

JobScheduling

{
"description": "Job scheduling options.",
"properties": {
"maxFailuresPerHour": {
"description": "Optional. Maximum number of times per hour a driver can be restarted as a result of driver exiting with non-zero code before job is reported failed.A job might be reported as thrashing if the driver exits with a non-zero code four times within a 10-minute window.Maximum value is 10.Note: This restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).",
"format": "int32",
"type": "integer"
},
"maxFailuresTotal": {
"description": "Optional. Maximum total number of times a driver can be restarted as a result of the driver exiting with a non-zero code. After the maximum number is reached, the job will be reported as failed.Maximum value is 240.Note: Currently, this restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).",
"format": "int32",
"type": "integer"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/JobScheduling",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

jobServiceNow

{
"defaultColumns": {
"done": {
"column": "enabled",
"type": "boolean"
},
"driver_control_files_uri": {
"column": "enabled",
"label": "Driver Control Files URI",
"path": "data.driverControlFilesUri"
},
"driver_output_resource_uri": {
"column": "enabled",
"label": "Driver Output Resource URI",
"path": "data.driverOutputResourceUri"
},
"driver_scheduling_config": {
"column": "enabled"
},
"job_uuid": {
"column": "enabled",
"label": "Job UUID",
"path": "data.jobUuid"
},
"labels": {
"column": "enabled",
"type": "string",
"size": 1000
},
"placement": {
"column": "enabled",
"type": "object",
"size": 1000
},
"project_id": {
"column": "enabled",
"label": "Project ID",
"path": "metadata.gcp.projectId"
},
"reference": {
"column": "enabled",
"type": "object",
"size": 1000
},
"region_name": {
"column": "enabled",
"path": "metadata.gcp.regionName"
},
"scheduling": {
"column": "enabled",
"type": "object",
"size": 1000
},
"status": {
"column": "enabled",
"type": "object",
"size": 1000
},
"status_history": {
"column": "enabled",
"type": "object",
"size": 1000
},
"yarn_applications": {
"column": "enabled",
"type": "object",
"size": 1000
}
},
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/jobServiceNow",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

jobStatus

{
"type": "string",
"enum": [
"STATE_UNSPECIFIED",
"PENDING",
"SETUP_DONE",
"RUNNING",
"CANCEL_PENDING",
"CANCEL_STARTED",
"CANCELLED",
"DONE",
"ERROR",
"ATTEMPT_FAILURE"
],
"tests": [
{
"input": "STATE_UNSPECIFIED"
},
{
"input": "ERROR"
},
{
"description": "invalid - not listed in options",
"input": "Reactive",
"expected": false
},
{
"description": "invalid - null value",
"input": null,
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/jobStatus",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

JobStatus

{
"description": "Dataproc job status.",
"properties": {
"details": {
"description": "Optional. Output only. Job state details, such as an error description if the state is ERROR.",
"readOnly": true,
"type": "string"
},
"state": {
"description": "Output only. A state message specifying the overall job state.",
"enum": [
"STATE_UNSPECIFIED",
"PENDING",
"SETUP_DONE",
"RUNNING",
"CANCEL_PENDING",
"CANCEL_STARTED",
"CANCELLED",
"DONE",
"ERROR",
"ATTEMPT_FAILURE"
],
"readOnly": true,
"type": "string"
},
"stateStartTime": {
"description": "Output only. The time when this state was entered.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"substate": {
"description": "Output only. Additional state information, which includes status reported by the agent.",
"enum": [
"UNSPECIFIED",
"SUBMITTED",
"QUEUED",
"STALE_STATUS"
],
"readOnly": true,
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/JobStatus",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

KerberosConfig

{
"description": "Specifies Kerberos related configuration.",
"properties": {
"crossRealmTrustAdminServer": {
"description": "Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.",
"type": "string"
},
"crossRealmTrustKdc": {
"description": "Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.",
"type": "string"
},
"crossRealmTrustRealm": {
"description": "Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.",
"type": "string"
},
"crossRealmTrustSharedPasswordUri": {
"description": "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.",
"type": "string"
},
"enableKerberos": {
"description": "Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.",
"type": "boolean"
},
"kdcDbKeyUri": {
"description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.",
"type": "string"
},
"keyPasswordUri": {
"description": "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.",
"type": "string"
},
"keystorePasswordUri": {
"description": "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.",
"type": "string"
},
"keystoreUri": {
"description": "Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.",
"type": "string"
},
"kmsKeyUri": {
"description": "Optional. The URI of the KMS key used to encrypt sensitive files.",
"type": "string"
},
"realm": {
"description": "Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.",
"type": "string"
},
"rootPrincipalPasswordUri": {
"description": "Optional. The Cloud Storage URI of a KMS encrypted file containing the root principal password.",
"type": "string"
},
"tgtLifetimeHours": {
"description": "Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.",
"format": "int32",
"type": "integer"
},
"truststorePasswordUri": {
"description": "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.",
"type": "string"
},
"truststoreUri": {
"description": "Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/KerberosConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

KubernetesClusterConfig

{
"description": "The configuration for running the Dataproc cluster on Kubernetes.",
"properties": {
"gkeClusterConfig": {
"$ref": "#/definitions/GkeClusterConfig",
"description": "Required. The configuration for running the Dataproc cluster on GKE."
},
"kubernetesNamespace": {
"description": "Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used.",
"type": "string"
},
"kubernetesSoftwareConfig": {
"$ref": "#/definitions/KubernetesSoftwareConfig",
"description": "Optional. The software configuration for this Dataproc cluster running on Kubernetes."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/KubernetesClusterConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

KubernetesSoftwareConfig

{
"description": "The software configuration for this Dataproc cluster running on Kubernetes.",
"properties": {
"componentVersion": {
"additionalProperties": {
"type": "string"
},
"description": "The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.",
"type": "object"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "The properties to set on daemon config files.Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings: spark: spark-defaults.confFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/KubernetesSoftwareConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

LifecycleConfig

{
"description": "Specifies the cluster auto-delete schedule configuration.",
"properties": {
"autoDeleteTime": {
"description": "Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).",
"format": "google-datetime",
"type": "string"
},
"autoDeleteTtl": {
"description": "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 (https://developers.google.com/protocol-buffers/docs/proto3#json)).",
"format": "google-duration",
"type": "string"
},
"idleDeleteTtl": {
"description": "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 (https://developers.google.com/protocol-buffers/docs/proto3#json)).",
"format": "google-duration",
"type": "string"
},
"idleStartTime": {
"description": "Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).",
"format": "google-datetime",
"readOnly": true,
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/LifecycleConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

LoggingConfig

{
"description": "The runtime logging config of the job.",
"properties": {
"driverLogLevels": {
"additionalProperties": {
"enum": [
"LEVEL_UNSPECIFIED",
"ALL",
"TRACE",
"DEBUG",
"INFO",
"WARN",
"ERROR",
"FATAL",
"OFF"
],
"type": "string"
},
"description": "The per-package log levels for the driver. This can include \"root\" package name to configure rootLogger. Examples: - 'com.google = FATAL' - 'root = INFO' - 'org.apache = DEBUG'",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/LoggingConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ManagedCluster

{
"description": "Cluster that is managed by the workflow.",
"properties": {
"clusterName": {
"description": "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.",
"type": "string"
},
"config": {
"$ref": "#/definitions/ClusterConfig",
"description": "Required. The cluster configuration."
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "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.",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ManagedCluster",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ManagedGroupConfig

{
"description": "Specifies the resources used to actively manage an instance group.",
"properties": {
"instanceGroupManagerName": {
"description": "Output only. The name of the Instance Group Manager for this group.",
"readOnly": true,
"type": "string"
},
"instanceGroupManagerUri": {
"description": "Output only. The partial URI to the instance group manager for this group. E.g. projects/my-project/regions/us-central1/instanceGroupManagers/my-igm.",
"readOnly": true,
"type": "string"
},
"instanceTemplateName": {
"description": "Output only. The name of the Instance Template used for the Managed Instance Group.",
"readOnly": true,
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ManagedGroupConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

MetastoreConfig

{
"description": "Specifies a Metastore configuration.",
"properties": {
"dataprocMetastoreService": {
"description": "Required. Resource name of an existing Dataproc Metastore service.Example: projects/[project_id]/locations/[dataproc_region]/services/[service-name]",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/MetastoreConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

Metric

{
"description": "A Dataproc custom metric.",
"properties": {
"metricOverrides": {
"description": "Optional. Specify one or more Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) to collect for the metric course (for the SPARK metric source (any Spark metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be specified).Provide metrics in the following format: METRIC_SOURCE: INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified overridden metrics are collected for the metric source. For example, if one or more spark:executive metrics are listed as metric overrides, other SPARK metrics are not collected. The collection of the metrics for other enabled custom metric sources is unaffected. For example, if both SPARK andd YARN metric sources are enabled, and overrides are provided for Spark metrics only, all YARN metrics are collected.",
"items": {
"type": "string"
},
"type": "array"
},
"metricSource": {
"description": "Required. A standard set of metrics is collected unless metricOverrides are specified for the metric source (see Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) for more information).",
"enum": [
"METRIC_SOURCE_UNSPECIFIED",
"MONITORING_AGENT_DEFAULTS",
"HDFS",
"SPARK",
"YARN",
"SPARK_HISTORY_SERVER",
"HIVESERVER2",
"HIVEMETASTORE",
"FLINK"
],
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/Metric",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

NamespacedGkeDeploymentTarget

{
"deprecated": true,
"description": "Deprecated. Used only for the deprecated beta. A full, namespace-isolated deployment target for an existing GKE cluster.",
"properties": {
"clusterNamespace": {
"description": "Optional. A namespace within the GKE cluster to deploy into.",
"type": "string"
},
"targetGkeCluster": {
"description": "Optional. The target GKE cluster to deploy to. Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/NamespacedGkeDeploymentTarget",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

NodeGroup

{
"description": "Dataproc Node Group. The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity resource.",
"properties": {
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn.",
"type": "object"
},
"name": {
"description": "The Node group resource name (https://aip.dev/122).",
"type": "string"
},
"nodeGroupConfig": {
"$ref": "#/definitions/InstanceGroupConfig",
"description": "Optional. The node group instance group configuration."
},
"roles": {
"description": "Required. Node group roles.",
"items": {
"enum": [
"ROLE_UNSPECIFIED",
"DRIVER"
],
"type": "string"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/NodeGroup",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

NodeGroupAffinity

{
"description": "Node Group Affinity for clusters using sole-tenant node groups. The Dataproc NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource.",
"properties": {
"nodeGroupUri": {
"description": "Required. The URI of a sole-tenant node group resource (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) 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/[zone]/nodeGroups/node-group-1 projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 node-group-1",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/NodeGroupAffinity",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

NodeInitializationAction

{
"description": "Specifies an executable to run on a fully configured node and a timeout period for executable completion.",
"properties": {
"executableFile": {
"description": "Required. Cloud Storage URI of executable file.",
"type": "string"
},
"executionTimeout": {
"description": "Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).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.",
"format": "google-duration",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/NodeInitializationAction",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

OrderedJob

{
"description": "A job executed by the workflow.",
"properties": {
"flinkJob": {
"$ref": "#/definitions/FlinkJob",
"description": "Optional. Job is a Flink job."
},
"hadoopJob": {
"$ref": "#/definitions/HadoopJob",
"description": "Optional. Job is a Hadoop job."
},
"hiveJob": {
"$ref": "#/definitions/HiveJob",
"description": "Optional. Job is a Hive job."
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "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.",
"type": "object"
},
"pigJob": {
"$ref": "#/definitions/PigJob",
"description": "Optional. Job is a Pig job."
},
"prerequisiteStepIds": {
"description": "Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.",
"items": {
"type": "string"
},
"type": "array"
},
"prestoJob": {
"$ref": "#/definitions/PrestoJob",
"description": "Optional. Job is a Presto job."
},
"pysparkJob": {
"$ref": "#/definitions/PySparkJob",
"description": "Optional. Job is a PySpark job."
},
"scheduling": {
"$ref": "#/definitions/JobScheduling",
"description": "Optional. Job scheduling configuration."
},
"sparkJob": {
"$ref": "#/definitions/SparkJob",
"description": "Optional. Job is a Spark job."
},
"sparkRJob": {
"$ref": "#/definitions/SparkRJob",
"description": "Optional. Job is a SparkR job."
},
"sparkSqlJob": {
"$ref": "#/definitions/SparkSqlJob",
"description": "Optional. Job is a SparkSql job."
},
"stepId": {
"description": "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.",
"type": "string"
},
"trinoJob": {
"$ref": "#/definitions/TrinoJob",
"description": "Optional. Job is a Trino job."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/OrderedJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ParameterValidation

{
"description": "Configuration for parameter validation.",
"properties": {
"regex": {
"$ref": "#/definitions/RegexValidation",
"description": "Validation based on regular expressions."
},
"values": {
"$ref": "#/definitions/ValueValidation",
"description": "Validation based on a list of allowed values."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ParameterValidation",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

PigJob

{
"description": "A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN.",
"properties": {
"continueOnFailure": {
"description": "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.",
"type": "boolean"
},
"jarFileUris": {
"description": "Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.",
"items": {
"type": "string"
},
"type": "array"
},
"loggingConfig": {
"$ref": "#/definitions/LoggingConfig",
"description": "Optional. The runtime log config for job execution."
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.",
"type": "object"
},
"queryFileUri": {
"description": "The HCFS URI of the script that contains the Pig queries.",
"type": "string"
},
"queryList": {
"$ref": "#/definitions/QueryList",
"description": "A list of queries."
},
"scriptVariables": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/PigJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

Policy

{
"description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } YAML example: bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).",
"properties": {
"bindings": {
"description": "Associates a list of members, or principals, with a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one principal.The bindings in a Policy can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the bindings grant 50 different roles to user:alice@example.com, and not to any other principal, then you can add another 1,450 principals to the bindings in the Policy.",
"items": {
"$ref": "#/definitions/Binding"
},
"type": "array"
},
"etag": {
"description": "etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.",
"format": "byte",
"type": "string"
},
"version": {
"description": "Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations: Getting a policy that includes a conditional role binding Adding a conditional role binding to a policy Changing a conditional role binding in a policy Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).",
"format": "int32",
"type": "integer"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/Policy",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

PrestoJob

{
"description": "A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster.",
"properties": {
"clientTags": {
"description": "Optional. Presto client tags to attach to this query",
"items": {
"type": "string"
},
"type": "array"
},
"continueOnFailure": {
"description": "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.",
"type": "boolean"
},
"loggingConfig": {
"$ref": "#/definitions/LoggingConfig",
"description": "Optional. The runtime log config for job execution."
},
"outputFormat": {
"description": "Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats",
"type": "string"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI",
"type": "object"
},
"queryFileUri": {
"description": "The HCFS URI of the script that contains SQL queries.",
"type": "string"
},
"queryList": {
"$ref": "#/definitions/QueryList",
"description": "A list of queries."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/PrestoJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

PySparkJob

{
"description": "A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN.",
"properties": {
"archiveUris": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"args": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"fileUris": {
"description": "Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.",
"items": {
"type": "string"
},
"type": "array"
},
"jarFileUris": {
"description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.",
"items": {
"type": "string"
},
"type": "array"
},
"loggingConfig": {
"$ref": "#/definitions/LoggingConfig",
"description": "Optional. The runtime log config for job execution."
},
"mainPythonFileUri": {
"description": "Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.",
"type": "string"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.",
"type": "object"
},
"pythonFileUris": {
"description": "Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/PySparkJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

QueryList

{
"description": "A list of queries to run on a cluster.",
"properties": {
"queries": {
"description": "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\", ] } } ",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/QueryList",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

RegexValidation

{
"description": "Validation based on regular expressions.",
"properties": {
"regexes": {
"description": "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).",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/RegexValidation",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ReservationAffinity

{
"description": "Reservation Affinity for consuming Zonal reservation.",
"properties": {
"consumeReservationType": {
"description": "Optional. Type of reservation to consume",
"enum": [
"TYPE_UNSPECIFIED",
"NO_RESERVATION",
"ANY_RESERVATION",
"SPECIFIC_RESERVATION"
],
"type": "string"
},
"key": {
"description": "Optional. Corresponds to the label key of reservation resource.",
"type": "string"
},
"values": {
"description": "Optional. Corresponds to the label values of reservation resource.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ReservationAffinity",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

SecurityConfig

{
"description": "Security related configuration, including encryption, Kerberos, etc.",
"properties": {
"identityConfig": {
"$ref": "#/definitions/IdentityConfig",
"description": "Optional. Identity related configuration, including service account based secure multi-tenancy user mappings."
},
"kerberosConfig": {
"$ref": "#/definitions/KerberosConfig",
"description": "Optional. Kerberos related configuration."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/SecurityConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ShieldedInstanceConfig

{
"description": "Shielded Instance Config for clusters using Compute Engine Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-vm).",
"properties": {
"enableIntegrityMonitoring": {
"description": "Optional. Defines whether instances have integrity monitoring enabled.",
"type": "boolean"
},
"enableSecureBoot": {
"description": "Optional. Defines whether instances have Secure Boot enabled.",
"type": "boolean"
},
"enableVtpm": {
"description": "Optional. Defines whether instances have the vTPM enabled.",
"type": "boolean"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ShieldedInstanceConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

SoftwareConfig

{
"description": "Specifies the selection and config of software inside the cluster.",
"properties": {
"imageVersion": {
"description": "Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), such as \"1.2\" (including a subminor version, such as \"1.2.29\"), or the \"preview\" version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.",
"type": "string"
},
"optionalComponents": {
"description": "Optional. The set of components to activate on the cluster.",
"items": {
"enum": [
"COMPONENT_UNSPECIFIED",
"ANACONDA",
"DOCKER",
"DRUID",
"FLINK",
"HBASE",
"HIVE_WEBHCAT",
"HUDI",
"JUPYTER",
"PRESTO",
"TRINO",
"RANGER",
"SOLR",
"ZEPPELIN",
"ZOOKEEPER"
],
"type": "string"
},
"type": "array"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "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.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/SoftwareConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

SparkHistoryServerConfig

{
"description": "Spark History Server configuration for the workload.",
"properties": {
"dataprocCluster": {
"description": "Optional. Resource name of an existing Dataproc Cluster to act as a Spark History Server for the workload.Example: projects/[project_id]/regions/[region]/clusters/[cluster_name]",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/SparkHistoryServerConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

SparkJob

{
"description": "A Dataproc job for running Apache Spark (https://spark.apache.org/) applications on YARN.",
"properties": {
"archiveUris": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"args": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"fileUris": {
"description": "Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.",
"items": {
"type": "string"
},
"type": "array"
},
"jarFileUris": {
"description": "Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.",
"items": {
"type": "string"
},
"type": "array"
},
"loggingConfig": {
"$ref": "#/definitions/LoggingConfig",
"description": "Optional. The runtime log config for job execution."
},
"mainClass": {
"description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in SparkJob.jar_file_uris.",
"type": "string"
},
"mainJarFileUri": {
"description": "The HCFS URI of the jar file that contains the main class.",
"type": "string"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/SparkJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

SparkRJob

{
"description": "A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN.",
"properties": {
"archiveUris": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"args": {
"description": "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.",
"items": {
"type": "string"
},
"type": "array"
},
"fileUris": {
"description": "Optional. HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.",
"items": {
"type": "string"
},
"type": "array"
},
"loggingConfig": {
"$ref": "#/definitions/LoggingConfig",
"description": "Optional. The runtime log config for job execution."
},
"mainRFileUri": {
"description": "Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.",
"type": "string"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/SparkRJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

SparkSqlJob

{
"description": "A Dataproc job for running Apache Spark SQL (https://spark.apache.org/sql/) queries.",
"properties": {
"jarFileUris": {
"description": "Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.",
"items": {
"type": "string"
},
"type": "array"
},
"loggingConfig": {
"$ref": "#/definitions/LoggingConfig",
"description": "Optional. The runtime log config for job execution."
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "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 might be overwritten.",
"type": "object"
},
"queryFileUri": {
"description": "The HCFS URI of the script that contains SQL queries.",
"type": "string"
},
"queryList": {
"$ref": "#/definitions/QueryList",
"description": "A list of queries."
},
"scriptVariables": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";).",
"type": "object"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/SparkSqlJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

StartupConfig

{
"description": "Configuration to handle the startup of instances during cluster create and update process.",
"properties": {
"requiredRegistrationFraction": {
"description": "Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled).",
"format": "double",
"type": "number"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/StartupConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

TemplateParameter

{
"description": "A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)",
"properties": {
"description": {
"description": "Optional. Brief description of the parameter. Must not exceed 1024 characters.",
"type": "string"
},
"fields": {
"description": "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.jarFileUris0 jobs'step-id'.hadoopJob.archiveUris0 jobs'step-id'.hadoopJob.fileUris0 jobs'step-id'.pySparkJob.pythonFileUris0 Items in repeated fields can be referenced by a zero-based index: jobs'step-id'.sparkJob.args0 Other examples: jobs'step-id'.hadoopJob.properties'key' jobs'step-id'.hadoopJob.args0 jobs'step-id'.hiveJob.scriptVariables'key' jobs'step-id'.hadoopJob.mainJarFileUri placement.clusterSelector.zoneIt 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",
"items": {
"type": "string"
},
"type": "array"
},
"name": {
"description": "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.",
"type": "string"
},
"validation": {
"$ref": "#/definitions/ParameterValidation",
"description": "Optional. Validation rules to be applied to this parameter's value."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/TemplateParameter",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

TrinoJob

{
"description": "A Dataproc job for running Trino (https://trino.io/) queries. IMPORTANT: The Dataproc Trino Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/trino) must be enabled when the cluster is created to submit a Trino job to the cluster.",
"properties": {
"clientTags": {
"description": "Optional. Trino client tags to attach to this query",
"items": {
"type": "string"
},
"type": "array"
},
"continueOnFailure": {
"description": "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.",
"type": "boolean"
},
"loggingConfig": {
"$ref": "#/definitions/LoggingConfig",
"description": "Optional. The runtime log config for job execution."
},
"outputFormat": {
"description": "Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats",
"type": "string"
},
"properties": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. A mapping of property names to values. Used to set Trino session properties (https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI",
"type": "object"
},
"queryFileUri": {
"description": "The HCFS URI of the script that contains SQL queries.",
"type": "string"
},
"queryList": {
"$ref": "#/definitions/QueryList",
"description": "A list of queries."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/TrinoJob",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

ValueValidation

{
"description": "Validation based on a list of allowed values.",
"properties": {
"values": {
"description": "Required. List of allowed values for the parameter.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/ValueValidation",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

version

{
"type": "integer",
"pattern": "^[0-9]+$",
"tests": [
{
"description": "valid case",
"input": 1
},
{
"description": "invalid - cannot be a string",
"input": "test",
"expected": false
},
{
"description": "invalid - min length must be 1",
"input": "",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/version",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

VirtualClusterConfig

{
"description": "The Dataproc cluster config for a cluster that does not directly control the underlying compute resources, such as a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).",
"properties": {
"auxiliaryServicesConfig": {
"$ref": "#/definitions/AuxiliaryServicesConfig",
"description": "Optional. Configuration of auxiliary services used by this cluster."
},
"kubernetesClusterConfig": {
"$ref": "#/definitions/KubernetesClusterConfig",
"description": "Required. The configuration for running the Dataproc cluster on Kubernetes."
},
"stagingBucket": {
"description": "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 and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/VirtualClusterConfig",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

workflowTemplate

{
"type": "object",
"properties": {
"labels": {
"$ref": "gcp#/definitions/labels"
},
"version": {
"$ref": "#/definitions/version"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/workflowTemplateAka"
}
},
"tags": {
"$ref": "gcp#/definitions/labels"
},
"title": {
"$ref": "#/definitions/workflowTemplateId"
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"lastUsedTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"gcp": {
"$ref": "gcp#/definitions/gcpMetadata"
},
"id": {
"$ref": "#/definitions/workflowTemplateId"
}
}
}
}
}
},
"required": [
"id",
"turbot"
],
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"id": "test01",
"labels": {
"foo": "bar",
"foo1": "bar1"
},
"turbot": {
"akas": [
"gcp://dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/workflowTemplates/test-01"
],
"tags": {
"foo": "bar",
"foo1": "bar1"
},
"title": "test01",
"custom": {
"createTimestamp": "2017-03-05T13:58:05.590Z",
"id": "test01",
"gcp": {
"projectId": "function-test-01",
"regionName": "asia-south1"
}
}
}
}
},
{
"description": "Invalid - Missing Guardrails data",
"input": {
"id": "test01",
"labels": {
"foo": "bar",
"foo1": "bar1"
}
},
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/workflowTemplate",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

WorkflowTemplate

{
"description": "A Dataproc workflow template resource.",
"properties": {
"createTime": {
"description": "Output only. The time template was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"dagTimeout": {
"description": "Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). 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.",
"format": "google-duration",
"type": "string"
},
"encryptionConfig": {
"$ref": "#/components/schemas/GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig",
"description": "Optional. Encryption settings for encrypting workflow template job arguments."
},
"id": {
"type": "string"
},
"jobs": {
"description": "Required. The Directed Acyclic Graph of Jobs to submit.",
"items": {
"$ref": "#/definitions/OrderedJob"
},
"type": "array"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a template.",
"type": "object"
},
"name": {
"description": "Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}",
"readOnly": true,
"type": "string"
},
"parameters": {
"description": "Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.",
"items": {
"$ref": "#/definitions/TemplateParameter"
},
"type": "array"
},
"placement": {
"$ref": "#/definitions/WorkflowTemplatePlacement",
"description": "Required. WorkflowTemplate scheduling information."
},
"updateTime": {
"description": "Output only. The time template was last updated.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"version": {
"description": "Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.",
"format": "int32",
"type": "integer"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/WorkflowTemplate",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

workflowTemplateAka

{
"type": "string",
"pattern": "^gcp://dataproc.googleapis.com/projects/[a-z0-9-]{5,29}[a-z0-9]{1}/regions/[a-z](?:[-a-z0-9]{0,86}[a-z0-9])?/workflowTemplates/[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{1,48}[a-zA-Z0-9]{1}$",
"tests": [
{
"descritpion": "base case",
"input": "gcp://dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/workflowTemplates/test-01"
},
{
"description": "invalid - invalid arn",
"input": "i.dataproc.googleapis.com/projects/cse-legolas-2/regions/asia-south1/workflowTemplates/test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/workflowTemplateAka",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

workflowTemplateId

{
"type": "string",
"pattern": "^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{1,48}[a-zA-Z0-9]{1}$",
"tests": [
{
"description": "valid case",
"input": "test-00123"
},
{
"description": "invalid - cannot end with a hyphen",
"input": "testName01-",
"expected": false
},
{
"description": "invalid - too long",
"input": "abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdea",
"expected": false
},
{
"description": "invalid - min length must be 3",
"input": "ab",
"expected": false
},
{
"description": "invalid - name cannot be empty",
"input": "",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/workflowTemplateId",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

WorkflowTemplatePlacement

{
"description": "Specifies workflow execution target.Either managed_cluster or cluster_selector is required.",
"properties": {
"clusterSelector": {
"$ref": "#/definitions/ClusterSelector",
"description": "Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted."
},
"managedCluster": {
"$ref": "#/definitions/ManagedCluster",
"description": "A cluster that is managed by the workflow."
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/WorkflowTemplatePlacement",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

workflowTemplateServiceNow

{
"defaultColumns": {
"create_time": {
"column": "enabled"
},
"dag_timeout": {
"column": "enabled"
},
"encryption_config": {
"column": "enabled",
"type": "object",
"size": 1000
},
"id": {
"column": "enabled",
"label": "ID",
"path": "data.id"
},
"jobs": {
"column": "enabled",
"type": "object",
"size": 1000
},
"labels": {
"column": "enabled",
"type": "string",
"size": 1000
},
"parameters": {
"column": "enabled",
"type": "object",
"size": 1000
},
"placement": {
"column": "enabled",
"type": "object",
"size": 1000
},
"project_id": {
"column": "enabled",
"label": "Project ID",
"path": "metadata.gcp.ProjectId"
},
"region_name": {
"column": "enabled",
"path": "metadata.gcp.regionName"
},
"update_time": {
"column": "enabled"
},
"version": {
"column": "enabled"
},
"workflow_template_name": {
"column": "enabled",
"label": "Name",
"path": "data.name"
}
},
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/workflowTemplateServiceNow",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}

YarnApplication

{
"description": "A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta Feature: This report is available for testing purposes only. It may be changed before final release.",
"properties": {
"name": {
"description": "Required. The application name.",
"type": "string"
},
"progress": {
"description": "Required. The numerical progress of the application, from 1 to 100.",
"format": "float",
"type": "number"
},
"state": {
"description": "Required. The application state.",
"enum": [
"STATE_UNSPECIFIED",
"NEW",
"NEW_SAVING",
"SUBMITTED",
"ACCEPTED",
"RUNNING",
"FINISHED",
"FAILED",
"KILLED"
],
"type": "string"
},
"trackingUrl": {
"description": "Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.",
"type": "string"
}
},
"type": "object",
".turbot": {
"uri": "tmod:@turbot/gcp-dataproc#/definitions/YarnApplication",
"modUri": "tmod:@turbot/gcp-dataproc"
}
}