class ProjectsLocationsApplicationsWorkloads extends Resource (View source)

The "workloads" collection of methods.

Typical usage is:

 $apphubService = new Google\Service\AppHub(...);
 $workloads = $apphubService->projects_locations_applications_workloads;

Methods

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

Creates a Workload in an Application. (workloads.create)

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

Deletes a Workload from an Application. (workloads.delete)

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

Gets a Workload in an Application. (workloads.get)

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

Lists Workloads in an Application.

patch(string $name, Workload $postBody, array $optParams = [])

Updates a Workload in an Application. (workloads.patch)

Details

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

Creates a Workload in an Application. (workloads.create)

Parameters

string $parent

Required. Fully qualified name of the Application to create Workload in. Expected format: projects/{project}/locations/{location}/applications/{application}.

Workload $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a Workload from an Application. (workloads.delete)

Parameters

string $name

Required. Fully qualified name of the Workload to delete from an Application. Expected format: projects/{project}/locations/{location }/applications/{application}/workloads/{workload}.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets a Workload in an Application. (workloads.get)

Parameters

string $name

Required. Fully qualified name of the Workload to fetch. Expected format: projects/{project}/locations/{location}/applications/{appli cation}/workloads/{workload}.

array $optParams

Optional parameters.

Return Value

Workload

Exceptions

Exception

ListWorkloadsResponse listProjectsLocationsApplicationsWorkloads(string $parent, array $optParams = [])

Lists Workloads in an Application.

(workloads.listProjectsLocationsApplicationsWorkloads)

Parameters

string $parent

Required. Fully qualified name of the parent Application to list Workloads for. Expected format: projects/{project}/locations/{location}/applications/{application}.

array $optParams

Optional parameters.

Return Value

ListWorkloadsResponse

Exceptions

Exception

Operation patch(string $name, Workload $postBody, array $optParams = [])

Updates a Workload in an Application. (workloads.patch)

Parameters

string $name

Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application- id}/workloads/{workload-id}"

Workload $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception