v1

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

Creates a new repository in a given project and location. The Repository.Instance field is required in the request body for requests using the securesourcemanager.googleapis.com endpoint.

post/v1/{+parent}/repositories

Path parameters

parentstring required

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

Query parameters

repositoryIdstring

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-/.

Request body

createTimestring google-datetime

Output only. Create timestamp.

descriptionstring

Optional. Description of the repository, which cannot exceed 500 characters.

uidstring

Output only. Unique identifier of the repository.

instancestring

Optional. The name of the instance in which the repository is hosted, formatted as projects/{project_number}/locations/{location_id}/instances/{instance_id} When creating repository via securesourcemanager.googleapis.com, this field is used as input. When creating repository via *.sourcemanager.dev, this field is output only.

serviceAccountstring

Optional. Repository level service account (BYOSA).

namestring

Identifier. A unique identifier for a repository. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}

updateTimestring google-datetime

Output only. Update timestamp.

etagstring

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

Response

Successful response