class ProjectsLocationsScopesNamespaces extends Resource (View source)

The "namespaces" collection of methods.

Typical usage is:

 $gkehubService = new Google\Service\GKEHub(...);
 $namespaces = $gkehubService->projects_locations_scopes_namespaces;

Methods

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

Creates a fleet namespace. (namespaces.create)

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

Deletes a fleet namespace. (namespaces.delete)

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

Returns the details of a fleet namespace. (namespaces.get)

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

Lists fleet namespaces. (namespaces.listProjectsLocationsScopesNamespaces)

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

Updates a fleet namespace. (namespaces.patch)

Details

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

Creates a fleet namespace. (namespaces.create)

Parameters

string $parent

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

GkehubNamespace $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a fleet namespace. (namespaces.delete)

Parameters

string $name

Required. The Namespace resource name in the format projects/locations/scopes/namespaces.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns the details of a fleet namespace. (namespaces.get)

Parameters

string $name

Required. The Namespace resource name in the format projects/locations/scopes/namespaces.

array $optParams

Optional parameters.

Return Value

GkehubNamespace

Exceptions

Exception

ListScopeNamespacesResponse listProjectsLocationsScopesNamespaces(string $parent, array $optParams = [])

Lists fleet namespaces. (namespaces.listProjectsLocationsScopesNamespaces)

Parameters

string $parent

Required. The parent (project and location) where the Features will be listed. Specified in the format projects/locations/scopes.

array $optParams

Optional parameters.

Return Value

ListScopeNamespacesResponse

Exceptions

Exception

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

Updates a fleet namespace. (namespaces.patch)

Parameters

string $name

The resource name for the namespace projects/{project}/locations/{location}/namespaces/{namespace}

GkehubNamespace $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception