diff --git a/api_names_out.yaml b/api_names_out.yaml index aaa6bc0c3d0..3588470221d 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -46414,6 +46414,20 @@ "/artifactregistry:v1/DockerRepositoryConfig/immutableTags": immutable_tags "/artifactregistry:v1/DownloadFileResponse": download_file_response "/artifactregistry:v1/Empty": empty +"/artifactregistry:v1/ExportArtifactMetadata": export_artifact_metadata +"/artifactregistry:v1/ExportArtifactMetadata/exportedFiles": exported_files +"/artifactregistry:v1/ExportArtifactMetadata/exportedFiles/exported_file": exported_file +"/artifactregistry:v1/ExportArtifactRequest": export_artifact_request +"/artifactregistry:v1/ExportArtifactRequest/gcsPath": gcs_path +"/artifactregistry:v1/ExportArtifactRequest/sourceTag": source_tag +"/artifactregistry:v1/ExportArtifactRequest/sourceVersion": source_version +"/artifactregistry:v1/ExportArtifactResponse": export_artifact_response +"/artifactregistry:v1/ExportArtifactResponse/exportedVersion": exported_version +"/artifactregistry:v1/ExportedFile": exported_file +"/artifactregistry:v1/ExportedFile/gcsObjectPath": gcs_object_path +"/artifactregistry:v1/ExportedFile/hashes": hashes +"/artifactregistry:v1/ExportedFile/hashes/hash": hash_prop +"/artifactregistry:v1/ExportedFile/name": name "/artifactregistry:v1/Expr": expr "/artifactregistry:v1/Expr/description": description "/artifactregistry:v1/Expr/expression": expression @@ -46861,6 +46875,8 @@ "/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list/pageSize": page_size "/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list/pageToken": page_token "/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list/parent": parent +"/artifactregistry:v1/artifactregistry.projects.locations.repositories.exportArtifact": export_repository_artifact +"/artifactregistry:v1/artifactregistry.projects.locations.repositories.exportArtifact/repository": repository "/artifactregistry:v1/artifactregistry.projects.locations.repositories.files.delete": delete_project_location_repository_file "/artifactregistry:v1/artifactregistry.projects.locations.repositories.files.delete/name": name "/artifactregistry:v1/artifactregistry.projects.locations.repositories.files.download": download_project_location_repository_file diff --git a/generated/google-apis-artifactregistry_v1/CHANGELOG.md b/generated/google-apis-artifactregistry_v1/CHANGELOG.md index ce6c60f84bd..f80d0975f9f 100644 --- a/generated/google-apis-artifactregistry_v1/CHANGELOG.md +++ b/generated/google-apis-artifactregistry_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-artifactregistry_v1 +### v0.75.0 (2025-11-02) + +* Regenerated from discovery document revision 20251017 + ### v0.74.0 (2025-10-05) * Regenerated from discovery document revision 20250925 diff --git a/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/classes.rb b/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/classes.rb index 12958949930..e085fd3a13a 100644 --- a/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/classes.rb +++ b/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/classes.rb @@ -618,6 +618,114 @@ def update!(**args) end end + # The LRO metadata for exporting an artifact. + class ExportArtifactMetadata + include Google::Apis::Core::Hashable + + # The exported artifact files. + # Corresponds to the JSON property `exportedFiles` + # @return [Array] + attr_accessor :exported_files + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exported_files = args[:exported_files] if args.key?(:exported_files) + end + end + + # The request for exporting an artifact to a destination. + class ExportArtifactRequest + include Google::Apis::Core::Hashable + + # The Cloud Storage path to export the artifact to. Should start with the bucket + # name, and optionally have a directory path. Examples: `dst_bucket`, ` + # dst_bucket/sub_dir`. Existing objects with the same path will be overwritten. + # Corresponds to the JSON property `gcsPath` + # @return [String] + attr_accessor :gcs_path + + # The artifact tag to export. Format:projects/`project`/locations/`location`/ + # repositories/`repository`/packages/`package`/tags/`tag` + # Corresponds to the JSON property `sourceTag` + # @return [String] + attr_accessor :source_tag + + # The artifact version to export. Format: projects/`project`/locations/`location` + # /repositories/`repository`/packages/`package`/versions/`version` + # Corresponds to the JSON property `sourceVersion` + # @return [String] + attr_accessor :source_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_path = args[:gcs_path] if args.key?(:gcs_path) + @source_tag = args[:source_tag] if args.key?(:source_tag) + @source_version = args[:source_version] if args.key?(:source_version) + end + end + + # The response for exporting an artifact to a destination. + class ExportArtifactResponse + include Google::Apis::Core::Hashable + + # The body of a version resource. A version resource represents a collection of + # components, such as files and other data. This may correspond to a version in + # many package management schemes. + # Corresponds to the JSON property `exportedVersion` + # @return [Google::Apis::ArtifactregistryV1::Version] + attr_accessor :exported_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exported_version = args[:exported_version] if args.key?(:exported_version) + end + end + + # The exported artifact file. + class ExportedFile + include Google::Apis::Core::Hashable + + # Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, ` + # dst_bucket/sub_dir/file1` + # Corresponds to the JSON property `gcsObjectPath` + # @return [String] + attr_accessor :gcs_object_path + + # The hashes of the file content. + # Corresponds to the JSON property `hashes` + # @return [Array] + attr_accessor :hashes + + # Name of the exported artifact file. Format: `projects/p1/locations/us/ + # repositories/repo1/files/file1` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + 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 + end + # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are # documented at https://github.com/google/cel-spec. Example (Comparison): title: diff --git a/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/gem_version.rb b/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/gem_version.rb index 8c33c2f8de4..3ec032128f5 100644 --- a/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/gem_version.rb +++ b/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ArtifactregistryV1 # Version of the google-apis-artifactregistry_v1 gem - GEM_VERSION = "0.74.0" + GEM_VERSION = "0.75.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250925" + REVISION = "20251017" end end end diff --git a/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/representations.rb b/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/representations.rb index 4a5942ddb88..2dd539b5b86 100644 --- a/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/representations.rb +++ b/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/representations.rb @@ -112,6 +112,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ExportArtifactMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportArtifactRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportArtifactResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportedFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Expr class Representation < Google::Apis::Core::JsonRepresentation; end @@ -825,6 +849,41 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ExportArtifactMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exported_files, as: 'exportedFiles', class: Google::Apis::ArtifactregistryV1::ExportedFile, decorator: Google::Apis::ArtifactregistryV1::ExportedFile::Representation + + end + end + + class ExportArtifactRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_path, as: 'gcsPath' + property :source_tag, as: 'sourceTag' + property :source_version, as: 'sourceVersion' + end + end + + class ExportArtifactResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :exported_version, as: 'exportedVersion', class: Google::Apis::ArtifactregistryV1::Version, decorator: Google::Apis::ArtifactregistryV1::Version::Representation + + end + end + + class ExportedFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_object_path, as: 'gcsObjectPath' + collection :hashes, as: 'hashes', class: Google::Apis::ArtifactregistryV1::HashProp, decorator: Google::Apis::ArtifactregistryV1::HashProp::Representation + + property :name, as: 'name' + end + end + class Expr # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/service.rb b/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/service.rb index 6bd330a0c49..fd26ed58c95 100644 --- a/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/service.rb +++ b/generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/service.rb @@ -364,6 +364,40 @@ def delete_project_location_repository(name, fields: nil, quota_user: nil, optio execute_or_queue_command(command, &block) end + # Exports an artifact. + # @param [String] repository + # Required. The repository of the artifact to export. Format: projects/`project`/ + # locations/`location`/repositories/`repository` + # @param [Google::Apis::ArtifactregistryV1::ExportArtifactRequest] export_artifact_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ArtifactregistryV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_repository_artifact(repository, export_artifact_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+repository}:exportArtifact', options) + command.request_representation = Google::Apis::ArtifactregistryV1::ExportArtifactRequest::Representation + command.request_object = export_artifact_request_object + command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation + command.response_class = Google::Apis::ArtifactregistryV1::Operation + command.params['repository'] = repository unless repository.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets a repository. # @param [String] name # Required. The name of the repository to retrieve.