Google_Service_CloudBuild_Resource_ProjectsTriggers
extends Google_Service_Resource
in package
The "triggers" collection of methods.
Typical usage is:
$cloudbuildService = new Google_Service_CloudBuild(...);
$triggers = $cloudbuildService->triggers;
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.
- create() : Google_Service_CloudBuild_BuildTrigger
- Creates a new `BuildTrigger`. This API is experimental. (triggers.create)
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- delete() : Google_Service_CloudBuild_CloudbuildEmpty
- Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental. (triggers.delete)
- get() : Google_Service_CloudBuild_BuildTrigger
- Returns information about a `BuildTrigger`. This API is experimental.
- listProjectsTriggers() : Google_Service_CloudBuild_ListBuildTriggersResponse
- Lists existing `BuildTrigger`s. This API is experimental.
- patch() : Google_Service_CloudBuild_BuildTrigger
- Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental. (triggers.patch)
- run() : Google_Service_CloudBuild_Operation
- Runs a `BuildTrigger` at a particular source revision. (triggers.run)
- 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 —create()
Creates a new `BuildTrigger`. This API is experimental. (triggers.create)
public
create(string $projectId, Google_Service_CloudBuild_BuildTrigger $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBuild_BuildTrigger
Parameters
- $projectId : string
-
Required. ID of the project for which to configure automatic builds.
- $postBody : Google_Service_CloudBuild_BuildTrigger
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_CloudBuild_BuildTrigger —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 `BuildTrigger` by its project ID and trigger ID. This API is experimental. (triggers.delete)
public
delete(string $projectId, string $triggerId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBuild_CloudbuildEmpty
Parameters
- $projectId : string
-
Required. ID of the project that owns the trigger.
- $triggerId : string
-
Required. ID of the
BuildTriggerto delete. - $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_CloudBuild_CloudbuildEmpty —get()
Returns information about a `BuildTrigger`. This API is experimental.
public
get(string $projectId, string $triggerId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBuild_BuildTrigger
(triggers.get)
Parameters
- $projectId : string
-
Required. ID of the project that owns the trigger.
- $triggerId : string
-
Required. Identifier (
idorname) of theBuildTriggerto get. - $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_CloudBuild_BuildTrigger —listProjectsTriggers()
Lists existing `BuildTrigger`s. This API is experimental.
public
listProjectsTriggers(string $projectId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBuild_ListBuildTriggersResponse
(triggers.listProjectsTriggers)
Parameters
- $projectId : string
-
Required. ID of the project for which to list BuildTriggers.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_CloudBuild_ListBuildTriggersResponse —patch()
Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental. (triggers.patch)
public
patch(string $projectId, string $triggerId, Google_Service_CloudBuild_BuildTrigger $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBuild_BuildTrigger
Parameters
- $projectId : string
-
Required. ID of the project that owns the trigger.
- $triggerId : string
-
Required. ID of the
BuildTriggerto update. - $postBody : Google_Service_CloudBuild_BuildTrigger
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_CloudBuild_BuildTrigger —run()
Runs a `BuildTrigger` at a particular source revision. (triggers.run)
public
run(string $projectId, string $triggerId, Google_Service_CloudBuild_RepoSource $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBuild_Operation
Parameters
- $projectId : string
-
Required. ID of the project.
- $triggerId : string
-
Required. ID of the trigger.
- $postBody : Google_Service_CloudBuild_RepoSource
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_CloudBuild_Operation —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed