google-apis-artifactregistry_v1 0.74.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/artifactregistry_v1/classes.rb +108 -0
- data/lib/google/apis/artifactregistry_v1/gem_version.rb +2 -2
- data/lib/google/apis/artifactregistry_v1/representations.rb +59 -0
- data/lib/google/apis/artifactregistry_v1/service.rb +34 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5bf69522e1f8839a489fdd85398b2f30a3458133d0fbe2d03800a55378124b49
|
|
4
|
+
data.tar.gz: 56aa771d0fc285d54324203fb3c11cbc55a02601c2f1305cf3154f209d5df30f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8c84af93396c143e5e7681ddf7257afc701712c50d6559ef19db04f2c75caf83470ba4eb75e258d246143645e128310e987d06265a8f247a5afb67933a335c8
|
|
7
|
+
data.tar.gz: bdb84f647e9ebe5157765b92a8634b073bb38a489fd072d9fb6eaaf73a71fa92d35cb90db3d6ca660e878e99aba470118818f11ab0678d27be18f0c1e10f189e
|
data/CHANGELOG.md
CHANGED
|
@@ -618,6 +618,114 @@ module Google
|
|
|
618
618
|
end
|
|
619
619
|
end
|
|
620
620
|
|
|
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
|
+
|
|
621
729
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
622
730
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
623
731
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module ArtifactregistryV1
|
|
18
18
|
# Version of the google-apis-artifactregistry_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.75.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20251017"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -112,6 +112,30 @@ module Google
|
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
|
113
113
|
end
|
|
114
114
|
|
|
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
|
+
|
|
115
139
|
class Expr
|
|
116
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
141
|
|
|
@@ -825,6 +849,41 @@ module Google
|
|
|
825
849
|
end
|
|
826
850
|
end
|
|
827
851
|
|
|
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
|
+
|
|
828
887
|
class Expr
|
|
829
888
|
# @private
|
|
830
889
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -364,6 +364,40 @@ module Google
|
|
|
364
364
|
execute_or_queue_command(command, &block)
|
|
365
365
|
end
|
|
366
366
|
|
|
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
|
+
|
|
367
401
|
# Gets a repository.
|
|
368
402
|
# @param [String] name
|
|
369
403
|
# Required. The name of the repository to retrieve.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-artifactregistry_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.75.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.75.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|