class Projects extends Resource (View source)

The "projects" collection of methods.

Typical usage is:

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

Methods

getServiceAccount(string $projectId, array $optParams = [])

RPC to get the service account for a project used for interactions with Google Cloud KMS (projects.getServiceAccount)

listProjects(array $optParams = [])

RPC to list projects to which the user has been granted any project role.

Details

GetServiceAccountResponse getServiceAccount(string $projectId, array $optParams = [])

RPC to get the service account for a project used for interactions with Google Cloud KMS (projects.getServiceAccount)

Parameters

string $projectId

Required. ID of the project.

array $optParams

Optional parameters.

Return Value

GetServiceAccountResponse

Exceptions

Exception

ProjectList listProjects(array $optParams = [])

RPC to list projects to which the user has been granted any project role.

Users of this method are encouraged to consider the Resource Manager API, which provides the underlying data for this method and has more capabilities. (projects.listProjects)

Parameters

array $optParams

Optional parameters.

Return Value

ProjectList

Exceptions

Exception