v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1352131166.0 KB
projects

Creates a new Repository in a given project and location.

post/v1/{+parent}/repositories

Path parameters

parentstring required

Required. The location in which to create the repository. Must be in the format projects/*/locations/*.

Query parameters

repositoryIdstring

Required. The ID to use for the repository, which will become the final component of the repository's resource name.

Request body

kmsKeyNamestring

Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example: projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}

namestring

Identifier. The repository's name.

createTimestring google-datetime

Output only. The timestamp of when the repository was created.

containingFolderstring

Optional. The name of the containing folder of the repository. The field is immutable and it can be modified via a MoveRepository operation. Format: projects/*/locations/*/folders/*. or projects/*/locations/*/teamFolders/*.

labelsobject

Optional. Repository user labels.

setAuthenticatedUserAdminboolean

Optional. Input only. If set to true, the authenticated user will be granted the roles/dataform.admin role on the created repository.

internalMetadatastring

Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.

displayNamestring

Optional. The repository's user-friendly name.

serviceAccountstring

Optional. The service account to run workflow invocations under.

teamFolderNamestring

Output only. The resource name of the TeamFolder that this Repository is associated with. This should take the format: projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this is not set, the Repository is not associated with a TeamFolder.

npmrcEnvironmentVariablesSecretVersionstring

Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.

Response

Successful response