Documentation

Google_Service_CloudSourceRepositories_Resource_ProjectsRepos extends Google_Service_Resource
in package

The "repos" collection of methods.

Typical usage is: $sourcerepoService = new Google_Service_CloudSourceRepositories(...); $repos = $sourcerepoService->repos;

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_CloudSourceRepositories_Repo
Creates a repo in the given project with the given name. If the named repository already exists, `CreateRepo` returns `ALREADY_EXISTS`.
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
delete()  : Google_Service_CloudSourceRepositories_SourcerepoEmpty
Deletes a repo. (repos.delete)
get()  : Google_Service_CloudSourceRepositories_Repo
Returns information about a repo. (repos.get)
getIamPolicy()  : Google_Service_CloudSourceRepositories_Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (repos.getIamPolicy)
listProjectsRepos()  : Google_Service_CloudSourceRepositories_ListReposResponse
Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo.
patch()  : Google_Service_CloudSourceRepositories_Repo
Updates information about a repo. (repos.patch)
setIamPolicy()  : Google_Service_CloudSourceRepositories_Policy
Sets the access control policy on the specified resource. Replaces any existing policy. (repos.setIamPolicy)
sync()  : Google_Service_CloudSourceRepositories_Operation
Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field. (repos.sync)
testIamPermissions()  : Google_Service_CloudSourceRepositories_TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. (repos.testIamPermissions)
convertToArrayAndStripNulls()  : mixed

Properties

$methods

private array<string|int, mixed> $methods

$resourceName

private string $resourceName

$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
$name :
$arguments :
$expectedClass : = null
  • optional, the expected class name
Tags
throws
Google_Exception
Return values
Google_Http_Request|expectedClass

create()

Creates a repo in the given project with the given name. If the named repository already exists, `CreateRepo` returns `ALREADY_EXISTS`.

public create(string $parent, Google_Service_CloudSourceRepositories_Repo $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudSourceRepositories_Repo

(repos.create)

Parameters
$parent : string

The project in which to create the repo. Values are of the form projects/.

$postBody : Google_Service_CloudSourceRepositories_Repo
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudSourceRepositories_Repo

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
static
Return values
string

$requestUrl

getIamPolicy()

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

public getIamPolicy(string $resource[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudSourceRepositories_Policy
Parameters
$resource : string

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

int options.requestedPolicyVersion Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- policies).

Return values
Google_Service_CloudSourceRepositories_Policy

listProjectsRepos()

Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo.

public listProjectsRepos(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudSourceRepositories_ListReposResponse

(repos.listProjectsRepos)

Parameters
$name : string

The project ID whose repos should be listed. Values are of the form projects/.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

int pageSize Maximum number of repositories to return; between 1 and 500. If not set or zero, defaults to 100 at the server.

opt_param

string pageToken Resume listing repositories where a prior ListReposResponse left off. This is an opaque token that must be obtained from a recent, prior ListReposResponse's next_page_token field.

Return values
Google_Service_CloudSourceRepositories_ListReposResponse

patch()

Updates information about a repo. (repos.patch)

public patch(string $name, Google_Service_CloudSourceRepositories_UpdateRepoRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudSourceRepositories_Repo
Parameters
$name : string

The name of the requested repository. Values are of the form projects//repos/.

$postBody : Google_Service_CloudSourceRepositories_UpdateRepoRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudSourceRepositories_Repo

setIamPolicy()

Sets the access control policy on the specified resource. Replaces any existing policy. (repos.setIamPolicy)

public setIamPolicy(string $resource, Google_Service_CloudSourceRepositories_SetIamPolicyRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudSourceRepositories_Policy
Parameters
$resource : string

REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.

$postBody : Google_Service_CloudSourceRepositories_SetIamPolicyRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudSourceRepositories_Policy

sync()

Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field. (repos.sync)

public sync(string $name, Google_Service_CloudSourceRepositories_SyncRepoRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudSourceRepositories_Operation
Parameters
$name : string

The name of the repo to synchronize. Values are of the form projects//repos/.

$postBody : Google_Service_CloudSourceRepositories_SyncRepoRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudSourceRepositories_Operation

testIamPermissions()

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. (repos.testIamPermissions)

public testIamPermissions(string $resource, Google_Service_CloudSourceRepositories_TestIamPermissionsRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudSourceRepositories_TestIamPermissionsResponse
Parameters
$resource : string

REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

$postBody : Google_Service_CloudSourceRepositories_TestIamPermissionsRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudSourceRepositories_TestIamPermissionsResponse

convertToArrayAndStripNulls()

protected convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
$o : mixed
Return values
mixed

Search results