Class: Google::Apis::ArtifactregistryV1::ExportedFile
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::ExportedFile
- 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
The exported artifact file.
Instance Attribute Summary collapse
-
#gcs_object_path ⇒ String
Cloud Storage Object path of the exported file.
-
#hashes ⇒ Array<Google::Apis::ArtifactregistryV1::HashProp>
The hashes of the file content.
-
#name ⇒ String
Name of the exported artifact file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExportedFile
constructor
A new instance of ExportedFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExportedFile
Returns a new instance of ExportedFile.
733 734 735 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 733 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcs_object_path ⇒ String
Cloud Storage Object path of the exported file. Examples: dst_bucket/file1,
dst_bucket/sub_dir/file1
Corresponds to the JSON property gcsObjectPath
720 721 722 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 720 def gcs_object_path @gcs_object_path end |
#hashes ⇒ Array<Google::Apis::ArtifactregistryV1::HashProp>
The hashes of the file content.
Corresponds to the JSON property hashes
725 726 727 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 725 def hashes @hashes end |
#name ⇒ String
Name of the exported artifact file. Format: projects/p1/locations/us/
repositories/repo1/files/file1
Corresponds to the JSON property name
731 732 733 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 731 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
738 739 740 741 742 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 738 def update!(**args) @gcs_object_path = args[:gcs_object_path] if args.key?(:gcs_object_path) @hashes = args[:hashes] if args.key?(:hashes) @name = args[:name] if args.key?(:name) end |