Class: Google::Apis::ArtifactregistryV1::PythonPackage
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::PythonPackage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb
Overview
PythonPackage represents a python artifact.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Required.
-
#package_name ⇒ String
Package for the artifact.
-
#update_time ⇒ String
Output only.
-
#uri ⇒ String
Required.
-
#version ⇒ String
Version of this package.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PythonPackage
constructor
A new instance of PythonPackage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PythonPackage
Returns a new instance of PythonPackage.
1862 1863 1864 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1862 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time the package was created.
Corresponds to the JSON property createTime
1829 1830 1831 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1829 def create_time @create_time end |
#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.
Corresponds to the JSON property name
1839 1840 1841 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1839 def name @name end |
#package_name ⇒ String
Package for the artifact.
Corresponds to the JSON property packageName
1844 1845 1846 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1844 def package_name @package_name end |
#update_time ⇒ String
Output only. Time the package was updated.
Corresponds to the JSON property updateTime
1849 1850 1851 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1849 def update_time @update_time end |
#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
Corresponds to the JSON property uri
1855 1856 1857 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1855 def uri @uri end |
#version ⇒ String
Version of this package.
Corresponds to the JSON property version
1860 1861 1862 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1860 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1867 1868 1869 1870 1871 1872 1873 1874 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1867 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @package_name = args[:package_name] if args.key?(:package_name) @update_time = args[:update_time] if args.key?(:update_time) @uri = args[:uri] if args.key?(:uri) @version = args[:version] if args.key?(:version) end |