Class: Google::Apis::ArtifactregistryV1::ExportedFile

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

Overview

The exported artifact file.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathString

Cloud Storage Object path of the exported file. Examples: dst_bucket/file1, dst_bucket/sub_dir/file1 Corresponds to the JSON property gcsObjectPath

Returns:

  • (String)


720
721
722
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 720

def gcs_object_path
  @gcs_object_path
end

#hashesArray<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

#nameString

Name of the exported artifact file. Format: projects/p1/locations/us/ repositories/repo1/files/file1 Corresponds to the JSON property name

Returns:

  • (String)


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