Skip to main content

repositories

Overview

Namerepositories
TypeResource
Idgoogle.dataform.repositories

Fields

NameDatatypeDescription
namestringOutput only. The repository's name.
labelsobjectOptional. Repository user labels.
npmrcEnvironmentVariablesSecretVersionstringOptional. 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.
serviceAccountstringOptional. The service account to run workflow invocations under.
setAuthenticatedUserAdminbooleanOptional. Input only. If set to true, the authenticated user will be granted the roles/dataform.admin role on the created repository. To modify access to the created repository later apply setIamPolicy from https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories
workspaceCompilationOverridesobjectConfigures workspace compilation overrides for a repository. Primarily used by the UI (console.cloud.google.com). schema_suffix and table_prefix can have a special expression - ${workspaceName}, which refers to the workspace name from which the compilation results will be created. API callers are expected to resolve the expression in these overrides and provide them explicitly in code_compilation_config (https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories.compilationResults#codecompilationconfig) when creating workspace-scoped compilation results.
displayNamestringOptional. The repository's user-friendly name.
gitRemoteSettingsobjectControls Git remote configuration for a repository.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, repositoriesIdFetches a single Repository.
listSELECTlocationsId, projectsIdLists Repositories in a given project and location.
createINSERTlocationsId, projectsIdCreates a new Repository in a given project and location.
deleteDELETElocationsId, projectsId, repositoriesIdDeletes a single Repository.
_listEXEClocationsId, projectsIdLists Repositories in a given project and location.
commitEXEClocationsId, projectsId, repositoriesIdApplies a Git commit to a Repository. The Repository must not have a value for git_remote_settings.url.
compute_access_token_statusEXEClocationsId, projectsId, repositoriesIdComputes a Repository's Git access token status.
patchEXEClocationsId, projectsId, repositoriesIdUpdates a single Repository.
query_directory_contentsEXEClocationsId, projectsId, repositoriesIdReturns the contents of a given Repository directory. The Repository must not have a value for git_remote_settings.url.
read_fileEXEClocationsId, projectsId, repositoriesIdReturns the contents of a file (inside a Repository). The Repository must not have a value for git_remote_settings.url.