Policy types for @turbot/servicenow-gcp-dataproc

GCP > Dataproc > Cluster > ServiceNow

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/clusterServiceNow
Targets

GCP > Dataproc > Cluster > ServiceNow > Configuration Item

Synchronize the data for the GCP > Dataproc > Cluster based on the policies GCP > Dataproc > Cluster > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the GCP > Dataproc > Cluster information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/clusterServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Dataproc > Cluster > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an GCP > Dataproc > Cluster is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/clusterServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: cluster{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"autoscaling_config: {{ $.resource.data.config.autoscalingConfig | dump | safe }}\nauxiliary_node_groups: {{ $.resource.data.config.auxiliaryNodeGroups | dump | safe }}\ncluster_name: {{ $.resource.data.clusterName | dump | safe }}\ncluster_uuid: {{ $.resource.data.clusterUuid | dump | safe }}\nencryption_config: {{ $.resource.data.config.encryptionConfig | dump | safe }}\nkubernetes_cluster_config: {{ $.resource.data.virtualClusterConfig.kubernetesClusterConfig | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nproject_id: {{ $.resource.metadata.gcp.ProjectId | dump | safe }}\nregion_name: {{ $.resource.metadata.gcp.regionName | dump | safe }}\nstaging_bucket: {{ $.resource.data.virtualClusterConfig.stagingBucket | dump | safe }}\nstatus: {{ $.resource.data.status | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Dataproc > Cluster > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Dataproc > Cluster data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/clusterServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-gcp-dataproc#/policy/types/clusterServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Dataproc > Cluster > ServiceNow > Table

Configure a Table for GCP > Dataproc > Cluster resource type in ServiceNow via the GCP > Dataproc > Cluster > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/clusterServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Dataproc > Cluster > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing GCP > Dataproc > Cluster data.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/clusterServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_gcp_dataproc_cluster",
"label": "GCP > Dataproc > Cluster",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "autoscaling_config",
"label": "Autoscaling Config"
},
{
"name": "auxiliary_node_groups",
"label": "Auxiliary Node Groups"
},
{
"name": "cluster_name",
"label": "Cluster Name"
},
{
"name": "cluster_uuid",
"label": "Cluster UUID"
},
{
"name": "encryption_config",
"label": "Encryption Config"
},
{
"name": "kubernetes_cluster_config",
"label": "Kubernetes Cluster Config"
},
{
"name": "labels",
"label": "Labels",
"type": "string",
"size": 1000
},
{
"name": "project_id",
"label": "Project ID"
},
{
"name": "region_name",
"label": "Region Name"
},
{
"name": "staging_bucket",
"label": "Staging Bucket"
},
{
"name": "status",
"label": "Status"
}
]
}
}

GCP > Dataproc > Job > ServiceNow

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/jobServiceNow
Targets

GCP > Dataproc > Job > ServiceNow > Configuration Item

Synchronize the data for the GCP > Dataproc > Job based on the policies GCP > Dataproc > Job > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the GCP > Dataproc > Job information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/jobServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Dataproc > Job > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an GCP > Dataproc > Job is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/jobServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: job{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"done: {{ $.resource.data.done | dump | safe }}\ndriver_control_files_uri: {{ $.resource.data.driverControlFilesUri | dump | safe }}\ndriver_output_resource_uri: {{ $.resource.data.driverOutputResourceUri | dump | safe }}\ndriver_scheduling_config: {{ $.resource.data.driverSchedulingConfig | dump | safe }}\njob_uuid: {{ $.resource.data.jobUuid | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nplacement: {{ $.resource.data.placement | dump | safe }}\nproject_id: {{ $.resource.metadata.gcp.projectId | dump | safe }}\nreference: {{ $.resource.data.reference | dump | safe }}\nregion_name: {{ $.resource.metadata.gcp.regionName | dump | safe }}\nscheduling: {{ $.resource.data.scheduling | dump | safe }}\nstatus: {{ $.resource.data.status | dump | safe }}\nstatus_history: {{ $.resource.data.statusHistory | dump | safe }}\nyarn_applications: {{ $.resource.data.yarnApplications | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Dataproc > Job > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Dataproc > Job data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/jobServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-gcp-dataproc#/policy/types/jobServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Dataproc > Job > ServiceNow > Table

Configure a Table for GCP > Dataproc > Job resource type in ServiceNow via the GCP > Dataproc > Job > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/jobServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Dataproc > Job > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing GCP > Dataproc > Job data.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/jobServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_gcp_dataproc_job",
"label": "GCP > Dataproc > Job",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "done",
"label": "Done",
"type": "boolean"
},
{
"name": "driver_control_files_uri",
"label": "Driver Control Files URI"
},
{
"name": "driver_output_resource_uri",
"label": "Driver Output Resource URI"
},
{
"name": "driver_scheduling_config",
"label": "Driver Scheduling Config"
},
{
"name": "job_uuid",
"label": "Job UUID"
},
{
"name": "labels",
"label": "Labels",
"type": "string",
"size": 1000
},
{
"name": "placement",
"label": "Placement",
"type": "object",
"size": 1000
},
{
"name": "project_id",
"label": "Project ID"
},
{
"name": "reference",
"label": "Reference",
"type": "object",
"size": 1000
},
{
"name": "region_name",
"label": "Region Name"
},
{
"name": "scheduling",
"label": "Scheduling",
"type": "object",
"size": 1000
},
{
"name": "status",
"label": "Status",
"type": "object",
"size": 1000
},
{
"name": "status_history",
"label": "Status History",
"type": "object",
"size": 1000
},
{
"name": "yarn_applications",
"label": "Yarn Applications",
"type": "object",
"size": 1000
}
]
}
}

GCP > Dataproc > Workflow Template > ServiceNow

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/workflowTemplateServiceNow
Targets

GCP > Dataproc > Workflow Template > ServiceNow > Configuration Item

Synchronize the data for the GCP > Dataproc > Workflow Template based on the policies GCP > Dataproc > Workflow Template > ServiceNow > Configuration Item > *

The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the GCP > Dataproc > Workflow Template information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/workflowTemplateServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Dataproc > Workflow Template > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an GCP > Dataproc > Workflow Template is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/workflowTemplateServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: workflowTemplate{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"create_time: {{ $.resource.data.createTime | dump | safe }}\ndag_timeout: {{ $.resource.data.dagTimeout | dump | safe }}\nencryption_config: {{ $.resource.data.encryptionConfig | dump | safe }}\nid: {{ $.resource.data.id | dump | safe }}\njobs: {{ $.resource.data.jobs | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nparameters: {{ $.resource.data.parameters | dump | safe }}\nplacement: {{ $.resource.data.placement | dump | safe }}\nproject_id: {{ $.resource.metadata.gcp.ProjectId | dump | safe }}\nregion_name: {{ $.resource.metadata.gcp.regionName | dump | safe }}\nupdate_time: {{ $.resource.data.updateTime | dump | safe }}\nversion: {{ $.resource.data.version | dump | safe }}\nworkflow_template_name: {{ $.resource.data.name | dump | safe }}\n"
Schema
{
"type": "object"
}

GCP > Dataproc > Workflow Template > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Dataproc > Workflow Template data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/workflowTemplateServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-gcp-dataproc#/policy/types/workflowTemplateServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

GCP > Dataproc > Workflow Template > ServiceNow > Table

Configure a Table for GCP > Dataproc > Workflow Template resource type in ServiceNow via the GCP > Dataproc > Workflow Template > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/workflowTemplateServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

GCP > Dataproc > Workflow Template > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing GCP > Dataproc > Workflow Template data.

URI
tmod:@turbot/servicenow-gcp-dataproc#/policy/types/workflowTemplateServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_gcp_dataproc_workflowtemplate",
"label": "GCP > Dataproc > Workflow Template",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "create_time",
"label": "Create Time"
},
{
"name": "dag_timeout",
"label": "Dag Timeout"
},
{
"name": "encryption_config",
"label": "Encryption Config",
"type": "object",
"size": 1000
},
{
"name": "id",
"label": "ID"
},
{
"name": "jobs",
"label": "Jobs",
"type": "object",
"size": 1000
},
{
"name": "labels",
"label": "Labels",
"type": "string",
"size": 1000
},
{
"name": "parameters",
"label": "Parameters",
"type": "object",
"size": 1000
},
{
"name": "placement",
"label": "Placement",
"type": "object",
"size": 1000
},
{
"name": "project_id",
"label": "Project ID"
},
{
"name": "region_name",
"label": "Region Name"
},
{
"name": "update_time",
"label": "Update Time"
},
{
"name": "version",
"label": "Version"
},
{
"name": "workflow_template_name",
"label": "Name"
}
]
}
}