Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class PythonPackage.
PythonPackage represents a python artifact.
Generated from protobuf messagegoogle.devtools.artifactregistry.v1.PythonPackage
Namespace
Google \ Cloud \ ArtifactRegistry \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. registry_location, project_id, repository_name and python_package forms a unique package name:projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>. 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.
↳ 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
Required. registry_location, project_id, repository_name and python_package
forms a unique package
name:projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>.
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.
Returns
Type
Description
string
setName
Required. registry_location, project_id, repository_name and python_package
forms a unique package
name:projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Artifact Registry V1 Client - Class PythonPackage (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-artifact-registry/latest/V1.PythonPackage)\n- [1.2.0](/php/docs/reference/cloud-artifact-registry/1.2.0/V1.PythonPackage)\n- [1.1.3](/php/docs/reference/cloud-artifact-registry/1.1.3/V1.PythonPackage)\n- [1.0.0](/php/docs/reference/cloud-artifact-registry/1.0.0/V1.PythonPackage)\n- [0.6.5](/php/docs/reference/cloud-artifact-registry/0.6.5/V1.PythonPackage)\n- [0.5.1](/php/docs/reference/cloud-artifact-registry/0.5.1/V1.PythonPackage)\n- [0.4.4](/php/docs/reference/cloud-artifact-registry/0.4.4/V1.PythonPackage)\n- [0.3.13](/php/docs/reference/cloud-artifact-registry/0.3.13/V1.PythonPackage) \nReference documentation and code samples for the Google Cloud Artifact Registry V1 Client class PythonPackage.\n\nPythonPackage represents a python artifact.\n\nGenerated from protobuf message `google.devtools.artifactregistry.v1.PythonPackage`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ArtifactRegistry \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. registry_location, project_id, repository_name and python_package\nforms a unique package\nname:`projects/\u003cproject_id\u003e/locations/\u003clocation\u003e/repository/\u003crepository_name\u003e/pythonPackages/\u003cpython_package\u003e`.\n\nFor example,\n\"projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/\npython_package:1.0.0\",\nwhere \"us-west4\" is the registry_location, \"test-project\" is the\nproject_id, \"test-repo\" is the repository_name and\npython_package:1.0.0\" is the python package.\n\n### setName\n\nRequired. registry_location, project_id, repository_name and python_package\nforms a unique package\nname:`projects/\u003cproject_id\u003e/locations/\u003clocation\u003e/repository/\u003crepository_name\u003e/pythonPackages/\u003cpython_package\u003e`.\n\nFor example,\n\"projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/\npython_package:1.0.0\",\nwhere \"us-west4\" is the registry_location, \"test-project\" is the\nproject_id, \"test-repo\" is the repository_name and\npython_package:1.0.0\" is the python package.\n\n### getUri\n\nRequired. URL to access the package.\n\nExample:\nus-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz\n\n### setUri\n\nRequired. URL to access the package.\n\nExample:\nus-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz\n\n### getPackageName\n\nPackage for the artifact.\n\n### setPackageName\n\nPackage for the artifact.\n\n### getVersion\n\nVersion of this package.\n\n### setVersion\n\nVersion of this package.\n\n### getCreateTime\n\nOutput only. Time the package was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Time the package was created.\n\n### getUpdateTime\n\nOutput only. Time the package was updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Time the package was updated."]]