python_packages
Creates, updates, deletes, gets or lists a python_packages
resource.
Overview
Name | python_packages |
Type | Resource |
Id | google.artifactregistry.python_packages |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
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 (google-datetime) | Output only. Time the package was created. |
packageName | string | Package for the artifact. |
updateTime | string (google-datetime) | 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. |
Successful response
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 (google-datetime) | Output only. Time the package was created. |
packageName | string | Package for the artifact. |
updateTime | string (google-datetime) | 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
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , repositoriesId , pythonPackagesId | Gets a python package. | |
list | select | projectsId , locationsId , repositoriesId | pageSize , pageToken | Lists python packages. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
pythonPackagesId | string | |
repositoriesId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
Gets a python package.
SELECT
name,
createTime,
packageName,
updateTime,
uri,
version
FROM google.artifactregistry.python_packages
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND pythonPackagesId = '{{ pythonPackagesId }}' -- required;
Lists python packages.
SELECT
name,
createTime,
packageName,
updateTime,
uri,
version
FROM google.artifactregistry.python_packages
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';