Class: Google::Apis::ArtifactregistryV1::NpmPackage
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::NpmPackage
- 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
NpmPackage represents an npm artifact.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Required.
-
#package_name ⇒ String
Package for the artifact.
-
#tags ⇒ Array<String>
Tags attached to this package.
-
#update_time ⇒ String
Output only.
-
#version ⇒ String
Version of this package.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NpmPackage
constructor
A new instance of NpmPackage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NpmPackage
Returns a new instance of NpmPackage.
1768 1769 1770 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1768 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
1737 1738 1739 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1737 def create_time @create_time end |
#name ⇒ String
Required. registry_location, project_id, repository_name and npm_package forms
a unique package For example, "projects/test-project/locations/us-west4/
repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the
registry_location, "test-project" is the project_id, "test-repo" is the
repository_name and npm_test:1.0.0" is the npm package.
Corresponds to the JSON property name
1746 1747 1748 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1746 def name @name end |
#package_name ⇒ String
Package for the artifact.
Corresponds to the JSON property packageName
1751 1752 1753 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1751 def package_name @package_name end |
#tags ⇒ Array<String>
Tags attached to this package.
Corresponds to the JSON property tags
1756 1757 1758 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1756 def @tags end |
#update_time ⇒ String
Output only. Time the package was updated.
Corresponds to the JSON property updateTime
1761 1762 1763 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1761 def update_time @update_time end |
#version ⇒ String
Version of this package.
Corresponds to the JSON property version
1766 1767 1768 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1766 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1773 1774 1775 1776 1777 1778 1779 1780 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1773 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) @tags = args[:tags] if args.key?(:tags) @update_time = args[:update_time] if args.key?(:update_time) @version = args[:version] if args.key?(:version) end |