class ProjectsLocationsEnvironmentsUserWorkloadsSecrets extends Resource (View source)

The "userWorkloadsSecrets" collection of methods.

Typical usage is:

 $composerService = new Google\Service\CloudComposer(...);
 $userWorkloadsSecrets = $composerService->projects_locations_environments_userWorkloadsSecrets;

Methods

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

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

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

Deletes a user workloads Secret. 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 Secret. Values of the "data" field in the response are cleared. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

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

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

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

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

Details

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

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

(userWorkloadsSecrets.create)

Parameters

string $parent

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

UserWorkloadsSecret $postBody
array $optParams

Optional parameters.

Return Value

UserWorkloadsSecret

Exceptions

Exception

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

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

(userWorkloadsSecrets.delete)

Parameters

string $name

Required. The Secret to delete, in the form: "projects/{p rojectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSe crets/{userWorkloadsSecretId}"

array $optParams

Optional parameters.

Return Value

ComposerEmpty

Exceptions

Exception

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

Gets an existing user workloads Secret. Values of the "data" field in the response are cleared. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

(userWorkloadsSecrets.get)

Parameters

string $name

Required. The resource name of the Secret to get, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentI d}/userWorkloadsSecrets/{userWorkloadsSecretId}"

array $optParams

Optional parameters.

Return Value

UserWorkloadsSecret

Exceptions

Exception

ListUserWorkloadsSecretsResponse listProjectsLocationsEnvironmentsUserWorkloadsSecrets(string $parent, array $optParams = [])

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

(userWorkloadsSecrets.listProjectsLocationsEnvironmentsUserWorkloadsSecrets)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListUserWorkloadsSecretsResponse

Exceptions

Exception

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

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

(userWorkloadsSecrets.update)

Parameters

string $name

Identifier. The resource name of the Secret, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/use rWorkloadsSecrets/{userWorkloadsSecretId}"

UserWorkloadsSecret $postBody
array $optParams

Optional parameters.

Return Value

UserWorkloadsSecret

Exceptions

Exception