class ProjectsLocationsEnvironmentsUserWorkloadsConfigMaps extends Resource (View source)

The "userWorkloadsConfigMaps" collection of methods.

Typical usage is:

 $composerService = new Google\Service\CloudComposer(...);
 $userWorkloadsConfigMaps = $composerService->projects_locations_environments_userWorkloadsConfigMaps;

Methods

create(string $parent, UserWorkloadsConfigMap $postBody, array $optParams = [])

Creates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

delete(string $name, array $optParams = [])

Deletes a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

get(string $name, array $optParams = [])

Gets an existing user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

listProjectsLocationsEnvironmentsUserWorkloadsConfigMaps(string $parent, array $optParams = [])

Lists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer. (userWorkloa dsConfigMaps.listProjectsLocationsEnvironmentsUserWorkloadsConfigMaps)

update(string $name, UserWorkloadsConfigMap $postBody, array $optParams = [])

Updates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

Details

UserWorkloadsConfigMap create(string $parent, UserWorkloadsConfigMap $postBody, array $optParams = [])

Creates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

(userWorkloadsConfigMaps.create)

Parameters

string $parent

Required. The environment name to create a ConfigMap for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

UserWorkloadsConfigMap $postBody
array $optParams

Optional parameters.

Return Value

UserWorkloadsConfigMap

Exceptions

Exception

ComposerEmpty delete(string $name, array $optParams = [])

Deletes a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

(userWorkloadsConfigMaps.delete)

Parameters

string $name

Required. The ConfigMap to delete, in the form: "projects /{projectId}/locations/{locationId}/environments/{environmentId}/userWorkload sConfigMaps/{userWorkloadsConfigMapId}"

array $optParams

Optional parameters.

Return Value

ComposerEmpty

Exceptions

Exception

UserWorkloadsConfigMap get(string $name, array $optParams = [])

Gets an existing user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

(userWorkloadsConfigMaps.get)

Parameters

string $name

Required. The resource name of the ConfigMap to get, in the form: "projects/{projectId}/locations/{locationId}/environments/{environm entId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"

array $optParams

Optional parameters.

Return Value

UserWorkloadsConfigMap

Exceptions

Exception

ListUserWorkloadsConfigMapsResponse listProjectsLocationsEnvironmentsUserWorkloadsConfigMaps(string $parent, array $optParams = [])

Lists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer. (userWorkloa dsConfigMaps.listProjectsLocationsEnvironmentsUserWorkloadsConfigMaps)

Parameters

string $parent

Required. List ConfigMaps in the given environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

array $optParams

Optional parameters.

Return Value

ListUserWorkloadsConfigMapsResponse

Exceptions

Exception

UserWorkloadsConfigMap update(string $name, UserWorkloadsConfigMap $postBody, array $optParams = [])

Updates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

(userWorkloadsConfigMaps.update)

Parameters

string $name

Identifier. The resource name of the ConfigMap, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentI d}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"

UserWorkloadsConfigMap $postBody
array $optParams

Optional parameters.

Return Value

UserWorkloadsConfigMap

Exceptions

Exception