class ProjectsLocationsFleets extends Resource (View source)

The "fleets" collection of methods.

Typical usage is:

 $gkehubService = new Google\Service\GKEHub(...);
 $fleets = $gkehubService->projects_locations_fleets;

Methods

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

Creates a fleet. (fleets.create)

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

Removes a Fleet. There must be no memberships remaining in the Fleet.

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

Returns the details of a fleet. (fleets.get)

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

Returns all fleets within an organization or a project that the caller has access to. (fleets.listProjectsLocationsFleets)

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

Updates a fleet. (fleets.patch)

Details

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

Creates a fleet. (fleets.create)

Parameters

string $parent

Required. The parent (project and location) where the Fleet will be created. Specified in the format projects/locations.

Fleet $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Removes a Fleet. There must be no memberships remaining in the Fleet.

(fleets.delete)

Parameters

string $name

Required. The Fleet resource name in the format projects/locations/fleets.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns the details of a fleet. (fleets.get)

Parameters

string $name

Required. The Fleet resource name in the format projects/locations/fleets.

array $optParams

Optional parameters.

Return Value

Fleet

Exceptions

Exception

ListFleetsResponse listProjectsLocationsFleets(string $parent, array $optParams = [])

Returns all fleets within an organization or a project that the caller has access to. (fleets.listProjectsLocationsFleets)

Parameters

string $parent

Required. The organization or project to list for Fleets under, in the format organizations/locations or projects/locations.

array $optParams

Optional parameters.

Return Value

ListFleetsResponse

Exceptions

Exception

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

Updates a fleet. (fleets.patch)

Parameters

string $name

Output only. The full, unique resource name of this fleet in the format of projects/{project}/locations/{location}/fleets/{fleet}. Each Google Cloud project can have at most one fleet resource, named "default".

Fleet $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception