user_workloads_config_maps
Creates, updates, deletes, gets or lists a user_workloads_config_maps
resource.
Overview
Name | user_workloads_config_maps |
Type | Resource |
Id | google.composer.user_workloads_config_maps |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" |
data | object | Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/ |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | environmentsId, locationsId, projectsId, userWorkloadsConfigMapsId | Gets an existing user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer. |
list | SELECT | environmentsId, locationsId, projectsId | Lists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer. |
create | INSERT | environmentsId, locationsId, projectsId | Creates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer. |
delete | DELETE | environmentsId, locationsId, projectsId, userWorkloadsConfigMapsId | Deletes a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer. |
update | REPLACE | environmentsId, locationsId, projectsId, userWorkloadsConfigMapsId | Updates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer. |
SELECT
examples
Lists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.
SELECT
name,
data
FROM google.composer.user_workloads_config_maps
WHERE environmentsId = '{{ environmentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new user_workloads_config_maps
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.composer.user_workloads_config_maps (
environmentsId,
locationsId,
projectsId,
name,
data
)
SELECT
'{{ environmentsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ data }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: data
value: object
REPLACE
example
Replaces all fields in the specified user_workloads_config_maps
resource.
/*+ update */
REPLACE google.composer.user_workloads_config_maps
SET
name = '{{ name }}',
data = '{{ data }}'
WHERE
environmentsId = '{{ environmentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND userWorkloadsConfigMapsId = '{{ userWorkloadsConfigMapsId }}';
DELETE
example
Deletes the specified user_workloads_config_maps
resource.
/*+ delete */
DELETE FROM google.composer.user_workloads_config_maps
WHERE environmentsId = '{{ environmentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND userWorkloadsConfigMapsId = '{{ userWorkloadsConfigMapsId }}';