Skip to content

Commit 705e617

Browse files
feat: Automated regeneration of artifactregistry v1 client (#24817)
Auto-created at 2025-11-02 10:00:42 +0000 using the toys pull request generator.
1 parent e7a9a0e commit 705e617

File tree

6 files changed

+223
-2
lines changed

6 files changed

+223
-2
lines changed

api_names_out.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46418,6 +46418,20 @@
4641846418
"/artifactregistry:v1/DockerRepositoryConfig/immutableTags": immutable_tags
4641946419
"/artifactregistry:v1/DownloadFileResponse": download_file_response
4642046420
"/artifactregistry:v1/Empty": empty
46421+
"/artifactregistry:v1/ExportArtifactMetadata": export_artifact_metadata
46422+
"/artifactregistry:v1/ExportArtifactMetadata/exportedFiles": exported_files
46423+
"/artifactregistry:v1/ExportArtifactMetadata/exportedFiles/exported_file": exported_file
46424+
"/artifactregistry:v1/ExportArtifactRequest": export_artifact_request
46425+
"/artifactregistry:v1/ExportArtifactRequest/gcsPath": gcs_path
46426+
"/artifactregistry:v1/ExportArtifactRequest/sourceTag": source_tag
46427+
"/artifactregistry:v1/ExportArtifactRequest/sourceVersion": source_version
46428+
"/artifactregistry:v1/ExportArtifactResponse": export_artifact_response
46429+
"/artifactregistry:v1/ExportArtifactResponse/exportedVersion": exported_version
46430+
"/artifactregistry:v1/ExportedFile": exported_file
46431+
"/artifactregistry:v1/ExportedFile/gcsObjectPath": gcs_object_path
46432+
"/artifactregistry:v1/ExportedFile/hashes": hashes
46433+
"/artifactregistry:v1/ExportedFile/hashes/hash": hash_prop
46434+
"/artifactregistry:v1/ExportedFile/name": name
4642146435
"/artifactregistry:v1/Expr": expr
4642246436
"/artifactregistry:v1/Expr/description": description
4642346437
"/artifactregistry:v1/Expr/expression": expression
@@ -46865,6 +46879,8 @@
4686546879
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list/pageSize": page_size
4686646880
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list/pageToken": page_token
4686746881
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list/parent": parent
46882+
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.exportArtifact": export_repository_artifact
46883+
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.exportArtifact/repository": repository
4686846884
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.files.delete": delete_project_location_repository_file
4686946885
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.files.delete/name": name
4687046886
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.files.download": download_project_location_repository_file

generated/google-apis-artifactregistry_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-artifactregistry_v1
22

3+
### v0.75.0 (2025-11-02)
4+
5+
* Regenerated from discovery document revision 20251017
6+
37
### v0.74.0 (2025-10-05)
48

59
* Regenerated from discovery document revision 20250925

generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/classes.rb

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ArtifactregistryV1
1818
# Version of the google-apis-artifactregistry_v1 gem
19-
GEM_VERSION = "0.74.0"
19+
GEM_VERSION = "0.75.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250925"
25+
REVISION = "20251017"
2626
end
2727
end
2828
end

generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/representations.rb

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
112112
include Google::Apis::Core::JsonObjectSupport
113113
end
114114

115+
class ExportArtifactMetadata
116+
class Representation < Google::Apis::Core::JsonRepresentation; end
117+
118+
include Google::Apis::Core::JsonObjectSupport
119+
end
120+
121+
class ExportArtifactRequest
122+
class Representation < Google::Apis::Core::JsonRepresentation; end
123+
124+
include Google::Apis::Core::JsonObjectSupport
125+
end
126+
127+
class ExportArtifactResponse
128+
class Representation < Google::Apis::Core::JsonRepresentation; end
129+
130+
include Google::Apis::Core::JsonObjectSupport
131+
end
132+
133+
class ExportedFile
134+
class Representation < Google::Apis::Core::JsonRepresentation; end
135+
136+
include Google::Apis::Core::JsonObjectSupport
137+
end
138+
115139
class Expr
116140
class Representation < Google::Apis::Core::JsonRepresentation; end
117141

@@ -825,6 +849,41 @@ class Representation < Google::Apis::Core::JsonRepresentation
825849
end
826850
end
827851

852+
class ExportArtifactMetadata
853+
# @private
854+
class Representation < Google::Apis::Core::JsonRepresentation
855+
collection :exported_files, as: 'exportedFiles', class: Google::Apis::ArtifactregistryV1::ExportedFile, decorator: Google::Apis::ArtifactregistryV1::ExportedFile::Representation
856+
857+
end
858+
end
859+
860+
class ExportArtifactRequest
861+
# @private
862+
class Representation < Google::Apis::Core::JsonRepresentation
863+
property :gcs_path, as: 'gcsPath'
864+
property :source_tag, as: 'sourceTag'
865+
property :source_version, as: 'sourceVersion'
866+
end
867+
end
868+
869+
class ExportArtifactResponse
870+
# @private
871+
class Representation < Google::Apis::Core::JsonRepresentation
872+
property :exported_version, as: 'exportedVersion', class: Google::Apis::ArtifactregistryV1::Version, decorator: Google::Apis::ArtifactregistryV1::Version::Representation
873+
874+
end
875+
end
876+
877+
class ExportedFile
878+
# @private
879+
class Representation < Google::Apis::Core::JsonRepresentation
880+
property :gcs_object_path, as: 'gcsObjectPath'
881+
collection :hashes, as: 'hashes', class: Google::Apis::ArtifactregistryV1::HashProp, decorator: Google::Apis::ArtifactregistryV1::HashProp::Representation
882+
883+
property :name, as: 'name'
884+
end
885+
end
886+
828887
class Expr
829888
# @private
830889
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/service.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,40 @@ def delete_project_location_repository(name, fields: nil, quota_user: nil, optio
364364
execute_or_queue_command(command, &block)
365365
end
366366

367+
# Exports an artifact.
368+
# @param [String] repository
369+
# Required. The repository of the artifact to export. Format: projects/`project`/
370+
# locations/`location`/repositories/`repository`
371+
# @param [Google::Apis::ArtifactregistryV1::ExportArtifactRequest] export_artifact_request_object
372+
# @param [String] fields
373+
# Selector specifying which fields to include in a partial response.
374+
# @param [String] quota_user
375+
# Available to use for quota purposes for server-side applications. Can be any
376+
# arbitrary string assigned to a user, but should not exceed 40 characters.
377+
# @param [Google::Apis::RequestOptions] options
378+
# Request-specific options
379+
#
380+
# @yield [result, err] Result & error if block supplied
381+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
382+
# @yieldparam err [StandardError] error object if request failed
383+
#
384+
# @return [Google::Apis::ArtifactregistryV1::Operation]
385+
#
386+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
387+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
388+
# @raise [Google::Apis::AuthorizationError] Authorization is required
389+
def export_repository_artifact(repository, export_artifact_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
390+
command = make_simple_command(:post, 'v1/{+repository}:exportArtifact', options)
391+
command.request_representation = Google::Apis::ArtifactregistryV1::ExportArtifactRequest::Representation
392+
command.request_object = export_artifact_request_object
393+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
394+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
395+
command.params['repository'] = repository unless repository.nil?
396+
command.query['fields'] = fields unless fields.nil?
397+
command.query['quotaUser'] = quota_user unless quota_user.nil?
398+
execute_or_queue_command(command, &block)
399+
end
400+
367401
# Gets a repository.
368402
# @param [String] name
369403
# Required. The name of the repository to retrieve.

0 commit comments

Comments
 (0)