Skip to main content

user_workloads_config_maps

Creates, updates, deletes, gets or lists a user_workloads_config_maps resource.

Overview

Nameuser_workloads_config_maps
TypeResource
Idgoogle.composer.user_workloads_config_maps

Fields

NameDatatypeDescription
namestringIdentifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
dataobjectOptional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/

Methods

NameAccessible byRequired ParamsDescription
getSELECTenvironmentsId, locationsId, projectsId, userWorkloadsConfigMapsIdGets an existing user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.
listSELECTenvironmentsId, locationsId, projectsIdLists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.
createINSERTenvironmentsId, locationsId, projectsIdCreates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.
deleteDELETEenvironmentsId, locationsId, projectsId, userWorkloadsConfigMapsIdDeletes a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.
updateREPLACEenvironmentsId, locationsId, projectsId, userWorkloadsConfigMapsIdUpdates 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.

/*+ create */
INSERT INTO google.composer.user_workloads_config_maps (
environmentsId,
locationsId,
projectsId,
name,
data
)
SELECT
'{{ environmentsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ data }}'
;

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 }}';