class NamespacesServices extends Resource (View source)

The "services" collection of methods.

Typical usage is:

 $runService = new Google\Service\CloudRun(...);
 $services = $runService->services;

Methods

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

Create a service. (services.create)

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

Delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions.

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

Get information about a service. (services.get)

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

List services. (services.listNamespacesServices)

replaceService(string $name, Service $postBody, array $optParams = [])

Replace a service. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.

Details

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

Create a service. (services.create)

Parameters

string $parent

The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

Service $postBody
array $optParams

Optional parameters.

Return Value

Service

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

Delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions.

(services.delete)

Parameters

string $name

The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

array $optParams

Optional parameters.

Return Value

Status

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

Get information about a service. (services.get)

Parameters

string $name

The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

array $optParams

Optional parameters.

Return Value

Service

ListServicesResponse listNamespacesServices(string $parent, array $optParams = [])

List services. (services.listNamespacesServices)

Parameters

string $parent

The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

array $optParams

Optional parameters.

Return Value

ListServicesResponse

Service replaceService(string $name, Service $postBody, array $optParams = [])

Replace a service. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.

(services.replaceService)

Parameters

string $name

The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.

Service $postBody
array $optParams

Optional parameters.

Return Value

Service