class ProjectsLocationsServices extends Resource (View source)

The "services" collection of methods.

Typical usage is:

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

Methods

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

Creates a new Service in a given project and location. (services.create)

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

Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions. (services.delete)

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

Gets information about a Service. (services.get)

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

Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies.

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

Lists Services. Results are sorted by creation time, descending.

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

Updates a Service. (services.patch)

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

Sets the IAM Access control policy for the specified Service. Overwrites any existing policy. (services.setIamPolicy)

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

Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. (services.testIamPermissions)

Details

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

Creates a new Service in a given project and location. (services.create)

Parameters

string $parent

Required. The location and project in which this service should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Only lowercase characters, digits, and hyphens.

GoogleCloudRunV2Service $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions. (services.delete)

Parameters

string $name

Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}, where {project} can be project id or number.

array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Gets information about a Service. (services.get)

Parameters

string $name

Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}, where {project} can be project id or number.

array $optParams

Optional parameters.

Return Value

GoogleCloudRunV2Service

Exceptions

Exception

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

Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies.

(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.

array $optParams

Optional parameters.

Return Value

GoogleIamV1Policy

Exceptions

Exception

GoogleCloudRunV2ListServicesResponse listProjectsLocationsServices(string $parent, array $optParams = [])

Lists Services. Results are sorted by creation time, descending.

(services.listProjectsLocationsServices)

Parameters

string $parent

Required. The location and project to list resources on. Location must be a valid Google Cloud region, and cannot be the "-" wildcard. Format: projects/{project}/locations/{location}, where {project} can be project id or number.

array $optParams

Optional parameters.

Return Value

GoogleCloudRunV2ListServicesResponse

Exceptions

Exception

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

Updates a Service. (services.patch)

Parameters

string $name

The fully qualified name of this Service. In CreateServiceRequest, this field is ignored, and instead composed from CreateServiceRequest.parent and CreateServiceRequest.service_id. Format: projects/{project}/locations/{location}/services/{service_id}

GoogleCloudRunV2Service $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Sets the IAM Access control policy for the specified Service. Overwrites any existing policy. (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.

GoogleIamV1SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1Policy

Exceptions

Exception

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

Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. (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.

GoogleIamV1TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1TestIamPermissionsResponse

Exceptions

Exception