class Routines extends Resource (View source)

The "routines" collection of methods.

Typical usage is:

 $bigqueryService = new Google\Service\Bigquery(...);
 $routines = $bigqueryService->routines;

Methods

delete(string $projectId, string $datasetId, string $routineId, array $optParams = [])

Deletes the routine specified by routineId from the dataset.

get(string $projectId, string $datasetId, string $routineId, array $optParams = [])

Gets the specified routine resource by routine ID. (routines.get)

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

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (routines.getIamPolicy)

insert(string $projectId, string $datasetId, Routine $postBody, array $optParams = [])

Creates a new routine in the dataset. (routines.insert)

listRoutines(string $projectId, string $datasetId, array $optParams = [])

Lists all routines in the specified dataset. Requires the READER dataset role. (routines.listRoutines)

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

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (routines.setIamPolicy)

update(string $projectId, string $datasetId, string $routineId, Routine $postBody, array $optParams = [])

Updates information in an existing routine. The update method replaces the entire Routine resource. (routines.update)

Details

delete(string $projectId, string $datasetId, string $routineId, array $optParams = [])

Deletes the routine specified by routineId from the dataset.

(routines.delete)

Parameters

string $projectId

Required. Project ID of the routine to delete

string $datasetId

Required. Dataset ID of the routine to delete

string $routineId

Required. Routine ID of the routine to delete

array $optParams

Optional parameters.

Exceptions

Exception

Routine get(string $projectId, string $datasetId, string $routineId, array $optParams = [])

Gets the specified routine resource by routine ID. (routines.get)

Parameters

string $projectId

Required. Project ID of the requested routine

string $datasetId

Required. Dataset ID of the requested routine

string $routineId

Required. Routine ID of the requested routine

array $optParams

Optional parameters.

Return Value

Routine

Exceptions

Exception

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

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (routines.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

Routine insert(string $projectId, string $datasetId, Routine $postBody, array $optParams = [])

Creates a new routine in the dataset. (routines.insert)

Parameters

string $projectId

Required. Project ID of the new routine

string $datasetId

Required. Dataset ID of the new routine

Routine $postBody
array $optParams

Optional parameters.

Return Value

Routine

Exceptions

Exception

ListRoutinesResponse listRoutines(string $projectId, string $datasetId, array $optParams = [])

Lists all routines in the specified dataset. Requires the READER dataset role. (routines.listRoutines)

Parameters

string $projectId

Required. Project ID of the routines to list

string $datasetId

Required. Dataset ID of the routines to list

array $optParams

Optional parameters.

Return Value

ListRoutinesResponse

Exceptions

Exception

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

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (routines.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

Routine update(string $projectId, string $datasetId, string $routineId, Routine $postBody, array $optParams = [])

Updates information in an existing routine. The update method replaces the entire Routine resource. (routines.update)

Parameters

string $projectId

Required. Project ID of the routine to update

string $datasetId

Required. Dataset ID of the routine to update

string $routineId

Required. Routine ID of the routine to update

Routine $postBody
array $optParams

Optional parameters.

Return Value

Routine

Exceptions

Exception