Class: Google::Apis::ArtifactregistryV1beta2::Package
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1beta2::Package
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1beta2/classes.rb,
lib/google/apis/artifactregistry_v1beta2/representations.rb,
lib/google/apis/artifactregistry_v1beta2/representations.rb
Overview
Packages are named collections of versions.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
Optional.
-
#create_time ⇒ String
The time when the package was created.
-
#display_name ⇒ String
The display name of the package.
-
#name ⇒ String
The name of the package, for example:
projects/p1/locations/us-central1/ repositories/repo1/packages/pkg1
. -
#update_time ⇒ String
The time when the package was last updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Package
constructor
A new instance of Package.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Package
Returns a new instance of Package.
900 901 902 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 900 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
Optional. Client specified annotations.
Corresponds to the JSON property annotations
875 876 877 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 875 def annotations @annotations end |
#create_time ⇒ String
The time when the package was created.
Corresponds to the JSON property createTime
880 881 882 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 880 def create_time @create_time end |
#display_name ⇒ String
The display name of the package.
Corresponds to the JSON property displayName
885 886 887 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 885 def display_name @display_name end |
#name ⇒ String
The name of the package, for example: projects/p1/locations/us-central1/
repositories/repo1/packages/pkg1
. If the package ID part contains slashes,
the slashes are escaped.
Corresponds to the JSON property name
892 893 894 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 892 def name @name end |
#update_time ⇒ String
The time when the package was last updated. This includes publishing a new
version of the package.
Corresponds to the JSON property updateTime
898 899 900 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 898 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
905 906 907 908 909 910 911 |
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 905 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) end |