@@ -618,6 +618,114 @@ def update!(**args)
618618 end
619619 end
620620
621+ # The LRO metadata for exporting an artifact.
622+ class ExportArtifactMetadata
623+ include Google ::Apis ::Core ::Hashable
624+
625+ # The exported artifact files.
626+ # Corresponds to the JSON property `exportedFiles`
627+ # @return [Array<Google::Apis::ArtifactregistryV1::ExportedFile>]
628+ attr_accessor :exported_files
629+
630+ def initialize ( **args )
631+ update! ( **args )
632+ end
633+
634+ # Update properties of this object
635+ def update! ( **args )
636+ @exported_files = args [ :exported_files ] if args . key? ( :exported_files )
637+ end
638+ end
639+
640+ # The request for exporting an artifact to a destination.
641+ class ExportArtifactRequest
642+ include Google ::Apis ::Core ::Hashable
643+
644+ # The Cloud Storage path to export the artifact to. Should start with the bucket
645+ # name, and optionally have a directory path. Examples: `dst_bucket`, `
646+ # dst_bucket/sub_dir`. Existing objects with the same path will be overwritten.
647+ # Corresponds to the JSON property `gcsPath`
648+ # @return [String]
649+ attr_accessor :gcs_path
650+
651+ # The artifact tag to export. Format:projects/`project`/locations/`location`/
652+ # repositories/`repository`/packages/`package`/tags/`tag`
653+ # Corresponds to the JSON property `sourceTag`
654+ # @return [String]
655+ attr_accessor :source_tag
656+
657+ # The artifact version to export. Format: projects/`project`/locations/`location`
658+ # /repositories/`repository`/packages/`package`/versions/`version`
659+ # Corresponds to the JSON property `sourceVersion`
660+ # @return [String]
661+ attr_accessor :source_version
662+
663+ def initialize ( **args )
664+ update! ( **args )
665+ end
666+
667+ # Update properties of this object
668+ def update! ( **args )
669+ @gcs_path = args [ :gcs_path ] if args . key? ( :gcs_path )
670+ @source_tag = args [ :source_tag ] if args . key? ( :source_tag )
671+ @source_version = args [ :source_version ] if args . key? ( :source_version )
672+ end
673+ end
674+
675+ # The response for exporting an artifact to a destination.
676+ class ExportArtifactResponse
677+ include Google ::Apis ::Core ::Hashable
678+
679+ # The body of a version resource. A version resource represents a collection of
680+ # components, such as files and other data. This may correspond to a version in
681+ # many package management schemes.
682+ # Corresponds to the JSON property `exportedVersion`
683+ # @return [Google::Apis::ArtifactregistryV1::Version]
684+ attr_accessor :exported_version
685+
686+ def initialize ( **args )
687+ update! ( **args )
688+ end
689+
690+ # Update properties of this object
691+ def update! ( **args )
692+ @exported_version = args [ :exported_version ] if args . key? ( :exported_version )
693+ end
694+ end
695+
696+ # The exported artifact file.
697+ class ExportedFile
698+ include Google ::Apis ::Core ::Hashable
699+
700+ # Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, `
701+ # dst_bucket/sub_dir/file1`
702+ # Corresponds to the JSON property `gcsObjectPath`
703+ # @return [String]
704+ attr_accessor :gcs_object_path
705+
706+ # The hashes of the file content.
707+ # Corresponds to the JSON property `hashes`
708+ # @return [Array<Google::Apis::ArtifactregistryV1::HashProp>]
709+ attr_accessor :hashes
710+
711+ # Name of the exported artifact file. Format: `projects/p1/locations/us/
712+ # repositories/repo1/files/file1`
713+ # Corresponds to the JSON property `name`
714+ # @return [String]
715+ attr_accessor :name
716+
717+ def initialize ( **args )
718+ update! ( **args )
719+ end
720+
721+ # Update properties of this object
722+ def update! ( **args )
723+ @gcs_object_path = args [ :gcs_object_path ] if args . key? ( :gcs_object_path )
724+ @hashes = args [ :hashes ] if args . key? ( :hashes )
725+ @name = args [ :name ] if args . key? ( :name )
726+ end
727+ end
728+
621729 # Represents a textual expression in the Common Expression Language (CEL) syntax.
622730 # CEL is a C-like expression language. The syntax and semantics of CEL are
623731 # documented at https://github.com/google/cel-spec. Example (Comparison): title:
0 commit comments