Google_Service_Devprojects_Resource_Projects
extends Google_Service_Resource
in package
The "projects" collection of methods.
Typical usage is:
$devprojectsService = new Google_Service_Devprojects(...);
$projects = $devprojectsService->projects;
Table of Contents
- $client : Google_Client
- $methods : array<string|int, mixed>
- $resourceName : string
- $rootUrl : string
- $serviceName : string
- $servicePath : string
- $stackParameters : mixed
- __construct() : mixed
- call() : Google_Http_Request|expectedClass
- TODO: This function needs simplifying.
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- delete() : mixed
- Deletes a resource. (projects.delete)
- developerkeytoprojectid() : Google_Service_Devprojects_ProjectsDeveloperKeyToProjectIdResponse
- Converts a developer key into a project id.
- get() : Google_Service_Devprojects_ProjectData
- Get a project. (projects.get)
- getprojectclientstructure() : Google_Service_Devprojects_ProjectsGetProjectClientStructureResponse
- Obtain the structure of clients within the project for use in abuse control and takedowns. (projects.getprojectclientstructure)
- insert() : Google_Service_Devprojects_ProjectData
- Create a new project. Note that only the base data of a project will be transferred. Everything else needs to go through an update request.
- listProjects() : Google_Service_Devprojects_ProjectsListResponse
- Query projects (projects.listProjects)
- notifyowners() : Google_Service_Devprojects_ProjectsNotifyOwnersResponse
- Uses DevConsole notification endpoint to notify project owners of important events, such as quota breaching. Currently only supports emailing the users of a project who fill the OWNER role, though there's been talk of adding support for other notification formats as well. (projects.notifyowners)
- patch() : Google_Service_Devprojects_ProjectData
- Update a project. This method supports patch semantics. (projects.patch)
- stringidtonumericid() : Google_Service_Devprojects_ProjectsStringIdToNumericIdResponse
- Looks-up a project specified via a string ID in app-engine app ID form and if found returns its numeric ID. Note: in the case of Dasher-based projects the string ID is in the form "domain:appId" (e.g., "google.com:cohesive- bonbon-301") If the lookup fails a PROJECT_NOT_FOUND error is returned.
- undelete() : mixed
- Undelete a project (projects.undelete)
- update() : Google_Service_Devprojects_ProjectData
- Update a project. (projects.update)
- convertToArrayAndStripNulls() : mixed
Properties
$client
private
Google_Client
$client
$methods
private
array<string|int, mixed>
$methods
$resourceName
private
string
$resourceName
$rootUrl
private
string
$rootUrl
$serviceName
private
string
$serviceName
$servicePath
private
string
$servicePath
$stackParameters
private
mixed
$stackParameters
= array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))
Methods
__construct()
public
__construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
- $service : mixed
- $serviceName : mixed
- $resourceName : mixed
- $resource : mixed
Return values
mixed —call()
TODO: This function needs simplifying.
public
call( $name, $arguments[, $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
Tags
Return values
Google_Http_Request|expectedClass —createRequestUri()
Parse/expand request parameters and create a fully qualified request uri.
public
createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
- $restPath : string
- $params : array<string|int, mixed>
Tags
Return values
string —$requestUrl
delete()
Deletes a resource. (projects.delete)
public
delete(string $projectId[, array<string|int, mixed> $optParams = array() ]) : mixed
Parameters
- $projectId : string
-
The Devconsole project ID.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
mixed —developerkeytoprojectid()
Converts a developer key into a project id.
public
developerkeytoprojectid(string $developerKey[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Devprojects_ProjectsDeveloperKeyToProjectIdResponse
(projects.developerkeytoprojectid)
Parameters
- $developerKey : string
-
The developer key
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Devprojects_ProjectsDeveloperKeyToProjectIdResponse —get()
Get a project. (projects.get)
public
get(string $projectId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Devprojects_ProjectData
Parameters
- $projectId : string
-
The Devconsole project ID.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Devprojects_ProjectData —getprojectclientstructure()
Obtain the structure of clients within the project for use in abuse control and takedowns. (projects.getprojectclientstructure)
public
getprojectclientstructure(Google_Service_Devprojects_ProjectsGetProjectClientStructureRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Devprojects_ProjectsGetProjectClientStructureResponse
Parameters
- $postBody : Google_Service_Devprojects_ProjectsGetProjectClientStructureRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Devprojects_ProjectsGetProjectClientStructureResponse —insert()
Create a new project. Note that only the base data of a project will be transferred. Everything else needs to go through an update request.
public
insert(Google_Service_Devprojects_ProjectData $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Devprojects_ProjectData
(projects.insert)
Parameters
- $postBody : Google_Service_Devprojects_ProjectData
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Devprojects_ProjectData —listProjects()
Query projects (projects.listProjects)
public
listProjects([array<string|int, mixed> $optParams = array() ]) : Google_Service_Devprojects_ProjectsListResponse
Parameters
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Devprojects_ProjectsListResponse —notifyowners()
Uses DevConsole notification endpoint to notify project owners of important events, such as quota breaching. Currently only supports emailing the users of a project who fill the OWNER role, though there's been talk of adding support for other notification formats as well. (projects.notifyowners)
public
notifyowners(string $projectsId, Google_Service_Devprojects_ProjectsNotifyOwnersRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Devprojects_ProjectsNotifyOwnersResponse
Parameters
- $projectsId : string
-
The resource ID.
- $postBody : Google_Service_Devprojects_ProjectsNotifyOwnersRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Devprojects_ProjectsNotifyOwnersResponse —patch()
Update a project. This method supports patch semantics. (projects.patch)
public
patch(string $projectId, Google_Service_Devprojects_ProjectData $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Devprojects_ProjectData
Parameters
- $projectId : string
-
The Devconsole project ID.
- $postBody : Google_Service_Devprojects_ProjectData
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Devprojects_ProjectData —stringidtonumericid()
Looks-up a project specified via a string ID in app-engine app ID form and if found returns its numeric ID. Note: in the case of Dasher-based projects the string ID is in the form "domain:appId" (e.g., "google.com:cohesive- bonbon-301") If the lookup fails a PROJECT_NOT_FOUND error is returned.
public
stringidtonumericid(string $project[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Devprojects_ProjectsStringIdToNumericIdResponse
(projects.stringidtonumericid)
Parameters
- $project : string
-
The string project id to lookup
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Devprojects_ProjectsStringIdToNumericIdResponse —undelete()
Undelete a project (projects.undelete)
public
undelete(string $projectId, Google_Service_Devprojects_ProjectsUndeleteRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : mixed
Parameters
- $projectId : string
-
The resource ID.
- $postBody : Google_Service_Devprojects_ProjectsUndeleteRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
mixed —update()
Update a project. (projects.update)
public
update(string $projectId, Google_Service_Devprojects_ProjectData $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Devprojects_ProjectData
Parameters
- $projectId : string
-
The Devconsole project ID.
- $postBody : Google_Service_Devprojects_ProjectData
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Devprojects_ProjectData —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed