python_packages
Creates, updates, deletes, gets or lists a python_packages
resource.
Overview
Name | python_packages |
Type | Resource |
Id | google.artifactregistry.python_packages |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. registry_location, project_id, repository_name and python_package forms a unique package name:projects//locations//repository//pythonPackages/ . For example, "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ python_package:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and python_package:1.0.0" is the python package. |
createTime | string | Output only. Time the package was created. |
packageName | string | Package for the artifact. |
updateTime | string | Output only. Time the package was updated. |
uri | string | Required. URL to access the package. Example: us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz |
version | string | Version of this package. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, pythonPackagesId, repositoriesId | Gets a python package. |
list | SELECT | locationsId, projectsId, repositoriesId | Lists python packages. |
SELECT
examples
Lists python packages.
SELECT
name,
createTime,
packageName,
updateTime,
uri,
version
FROM google.artifactregistry.python_packages
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';