Google Cloud Secure Source Manager V1 Client - Class CreateRepositoryRequest (0.1.0)

Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class CreateRepositoryRequest.

CreateRepositoryRequest is the request for creating a repository.

Generated from protobuf message google.cloud.securesourcemanager.v1.CreateRepositoryRequest

Namespace

Google \ Cloud \ SecureSourceManager \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The project in which to create the repository. Values are of the form projects/{project_number}/locations/{location_id}

↳ repository Google\Cloud\SecureSourceManager\V1\Repository

Required. The resource being created.

↳ repository_id string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

getParent

Required. The project in which to create the repository. Values are of the form projects/{project_number}/locations/{location_id}

Returns
TypeDescription
string

setParent

Required. The project in which to create the repository. Values are of the form projects/{project_number}/locations/{location_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRepository

Required. The resource being created.

Returns
TypeDescription
Google\Cloud\SecureSourceManager\V1\Repository|null

hasRepository

clearRepository

setRepository

Required. The resource being created.

Parameter
NameDescription
var Google\Cloud\SecureSourceManager\V1\Repository
Returns
TypeDescription
$this

getRepositoryId

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Returns
TypeDescription
string

setRepositoryId

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The project in which to create the repository. Values are of the form projects/{project_number}/locations/{location_id} Please see Google\Cloud\SecureSourceManager\V1\SecureSourceManagerClient::locationName() for help formatting this field.

repository Google\Cloud\SecureSourceManager\V1\Repository

Required. The resource being created.

repositoryId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Returns
TypeDescription
Google\Cloud\SecureSourceManager\V1\CreateRepositoryRequest