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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
↳ 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 | |
---|---|
Type | Description |
string |
setParent
Required. The project in which to create the repository. Values are of the
form projects/{project_number}/locations/{location_id}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getRepository
Required. The resource being created.
Returns | |
---|---|
Type | Description |
Google\Cloud\SecureSourceManager\V1\Repository|null |
hasRepository
clearRepository
setRepository
Required. The resource being created.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\SecureSourceManager\V1\Repository
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. The project in which to create the repository. Values are of the
form |
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 | |
---|---|
Type | Description |
Google\Cloud\SecureSourceManager\V1\CreateRepositoryRequest |