Documentation

Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositories extends Google_Service_Resource
in package

The "repositories" collection of methods.

Typical usage is: $artifactregistryService = new Google_Service_ArtifactRegistry(...); $repositories = $artifactregistryService->repositories;

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_ArtifactRegistry_Operation
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
delete()  : Google_Service_ArtifactRegistry_Operation
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
get()  : Google_Service_ArtifactRegistry_Repository
Gets a repository. (repositories.get)
getIamPolicy()  : Google_Service_ArtifactRegistry_Policy
Gets the IAM policy for a given resource. (repositories.getIamPolicy)
listProjectsLocationsRepositories()  : Google_Service_ArtifactRegistry_ListRepositoriesResponse
Lists repositories. (repositories.listProjectsLocationsRepositories)
patch()  : Google_Service_ArtifactRegistry_Repository
Updates a repository. (repositories.patch)
setIamPolicy()  : Google_Service_ArtifactRegistry_Policy
Updates the IAM policy for a given resource. (repositories.setIamPolicy)
testIamPermissions()  : Google_Service_ArtifactRegistry_TestIamPermissionsResponse
Tests if the caller has a list of permissions on a resource.
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 repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.

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

(repositories.create)

Parameters
$parent : string

The name of the parent resource where the repository will be created.

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

Optional parameters.

Tags
opt_param

string repositoryId The repository id to use for this repository.

Return values
Google_Service_ArtifactRegistry_Operation

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

delete()

Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.

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

(repositories.delete)

Parameters
$name : string

The name of the repository to delete.

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

Optional parameters.

Return values
Google_Service_ArtifactRegistry_Operation

getIamPolicy()

Gets the IAM policy for a given resource. (repositories.getIamPolicy)

public getIamPolicy(string $resource[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ArtifactRegistry_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_ArtifactRegistry_Policy

listProjectsLocationsRepositories()

Lists repositories. (repositories.listProjectsLocationsRepositories)

public listProjectsLocationsRepositories(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ArtifactRegistry_ListRepositoriesResponse
Parameters
$parent : string

The name of the parent resource whose repositories will be listed.

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

Optional parameters.

Tags
opt_param

int pageSize The maximum number of repositories to return.

opt_param

string pageToken The next_page_token value returned from a previous list request, if any.

Return values
Google_Service_ArtifactRegistry_ListRepositoriesResponse

patch()

Updates a repository. (repositories.patch)

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

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

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

Optional parameters.

Tags
opt_param

string updateMask The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol- buffers/docs/reference/google.protobuf#fieldmask

Return values
Google_Service_ArtifactRegistry_Repository

setIamPolicy()

Updates the IAM policy for a given resource. (repositories.setIamPolicy)

public setIamPolicy(string $resource, Google_Service_ArtifactRegistry_SetIamPolicyRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_ArtifactRegistry_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_ArtifactRegistry_SetIamPolicyRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_ArtifactRegistry_Policy

testIamPermissions()

Tests if the caller has a list of permissions on a resource.

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

(repositories.testIamPermissions)

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_ArtifactRegistry_TestIamPermissionsRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_ArtifactRegistry_TestIamPermissionsResponse

convertToArrayAndStripNulls()

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

Search results