class ProjectsLocationsNamespacesServices extends Resource (View source)

The "services" collection of methods.

Typical usage is:

 $servicedirectoryService = new Google\Service\ServiceDirectory(...);
 $services = $servicedirectoryService->projects_locations_namespaces_services;

Methods

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

Creates a service, and returns the new service. (services.create)

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

Deletes a service. This also deletes all endpoints associated with the service. (services.delete)

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

Gets a service. (services.get)

getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

Gets the IAM Policy for a resource (namespace or service only).

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

Lists all services belonging to a namespace.

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

Updates a service. (services.patch)

resolve(string $name, ResolveServiceRequest $postBody, array $optParams = [])

Returns a service and its associated endpoints. Resolving a service is not considered an active developer method. (services.resolve)

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the IAM Policy for a resource (namespace or service only).

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Tests IAM permissions for a resource (namespace or service only).

Details

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

Creates a service, and returns the new service. (services.create)

Parameters

string $parent

Required. The resource name of the namespace this service will belong to.

Service $postBody
array $optParams

Optional parameters.

Return Value

Service

Exceptions

Exception

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

Deletes a service. This also deletes all endpoints associated with the service. (services.delete)

Parameters

string $name

Required. The name of the service to delete.

array $optParams

Optional parameters.

Return Value

ServicedirectoryEmpty

Exceptions

Exception

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

Gets a service. (services.get)

Parameters

string $name

Required. The name of the service to get.

array $optParams

Optional parameters.

Return Value

Service

Exceptions

Exception

Policy getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

Gets the IAM Policy for a resource (namespace or service only).

(services.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

GetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

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

Lists all services belonging to a namespace.

(services.listProjectsLocationsNamespacesServices)

Parameters

string $parent

Required. The resource name of the namespace whose services you'd like to list.

array $optParams

Optional parameters.

Return Value

ListServicesResponse

Exceptions

Exception

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

Updates a service. (services.patch)

Parameters

string $name

Immutable. The resource name for the service in the format projects/locations/namespaces/services.

Service $postBody
array $optParams

Optional parameters.

Return Value

Service

Exceptions

Exception

ResolveServiceResponse resolve(string $name, ResolveServiceRequest $postBody, array $optParams = [])

Returns a service and its associated endpoints. Resolving a service is not considered an active developer method. (services.resolve)

Parameters

string $name

Required. The name of the service to resolve.

ResolveServiceRequest $postBody
array $optParams

Optional parameters.

Return Value

ResolveServiceResponse

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the IAM Policy for a resource (namespace or service only).

(services.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Tests IAM permissions for a resource (namespace or service only).

(services.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception