Class: Google::Apis::ArtifactregistryV1::PythonPackage

Inherits:
Object
  • Object
show all
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
more...

Overview

PythonPackage represents a python artifact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PythonPackage

Returns a new instance of PythonPackage.

[View source]

2084
2085
2086
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2084

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. Time the package was created. Corresponds to the JSON property createTime

Returns:

  • (String)

2051
2052
2053
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2051

def create_time
  @create_time
end

#nameString

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

Returns:

  • (String)

2061
2062
2063
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2061

def name
  @name
end

#package_nameString

Package for the artifact. Corresponds to the JSON property packageName

Returns:

  • (String)

2066
2067
2068
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2066

def package_name
  @package_name
end

#update_timeString

Output only. Time the package was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)

2071
2072
2073
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2071

def update_time
  @update_time
end

#uriString

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

Returns:

  • (String)

2077
2078
2079
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2077

def uri
  @uri
end

#versionString

Version of this package. Corresponds to the JSON property version

Returns:

  • (String)

2082
2083
2084
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2082

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

2089
2090
2091
2092
2093
2094
2095
2096
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2089

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