google-apis-artifactregistry_v1 0.39.0 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/artifactregistry_v1/classes.rb +78 -0
- data/lib/google/apis/artifactregistry_v1/gem_version.rb +2 -2
- data/lib/google/apis/artifactregistry_v1/representations.rb +54 -0
- data/lib/google/apis/artifactregistry_v1/service.rb +82 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5b66b00c69a3cc8ce598dd841516f8fc3c566a8ceda1c7470b5974470bd3ccf
|
4
|
+
data.tar.gz: c137ea12f025fcfd27878ed50122989a22bef826cee8d0af9a87d153cdfbb4f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fa08f5f3b19f68d678edf3d951e0d1c8565bc548b4fb2034e2b3f4f89a34fa8f61b537d260ee44f9bd888a1576f19080d16163fbf4d08a7cffb86e50ee609fa
|
7
|
+
data.tar.gz: 66a6f60cd8a2e2a747805d93ee70ea25884f239d11470ea1ed80ada34317059bae96facfb04d94fd1ded57179798b6067c84aee4e07e730f3be208b27d003c94
|
data/CHANGELOG.md
CHANGED
@@ -557,6 +557,51 @@ module Google
|
|
557
557
|
end
|
558
558
|
end
|
559
559
|
|
560
|
+
# Google Cloud Storage location where the artifacts currently reside.
|
561
|
+
class ImportGoogetArtifactsGcsSource
|
562
|
+
include Google::Apis::Core::Hashable
|
563
|
+
|
564
|
+
# Cloud Storage paths URI (e.g., gs://my_bucket/my_object).
|
565
|
+
# Corresponds to the JSON property `uris`
|
566
|
+
# @return [Array<String>]
|
567
|
+
attr_accessor :uris
|
568
|
+
|
569
|
+
# Supports URI wildcards for matching multiple objects from a single URI.
|
570
|
+
# Corresponds to the JSON property `useWildcards`
|
571
|
+
# @return [Boolean]
|
572
|
+
attr_accessor :use_wildcards
|
573
|
+
alias_method :use_wildcards?, :use_wildcards
|
574
|
+
|
575
|
+
def initialize(**args)
|
576
|
+
update!(**args)
|
577
|
+
end
|
578
|
+
|
579
|
+
# Update properties of this object
|
580
|
+
def update!(**args)
|
581
|
+
@uris = args[:uris] if args.key?(:uris)
|
582
|
+
@use_wildcards = args[:use_wildcards] if args.key?(:use_wildcards)
|
583
|
+
end
|
584
|
+
end
|
585
|
+
|
586
|
+
# The request to import new googet artifacts.
|
587
|
+
class ImportGoogetArtifactsRequest
|
588
|
+
include Google::Apis::Core::Hashable
|
589
|
+
|
590
|
+
# Google Cloud Storage location where the artifacts currently reside.
|
591
|
+
# Corresponds to the JSON property `gcsSource`
|
592
|
+
# @return [Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsGcsSource]
|
593
|
+
attr_accessor :gcs_source
|
594
|
+
|
595
|
+
def initialize(**args)
|
596
|
+
update!(**args)
|
597
|
+
end
|
598
|
+
|
599
|
+
# Update properties of this object
|
600
|
+
def update!(**args)
|
601
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
560
605
|
# Error information explaining why a package was not imported.
|
561
606
|
class ImportYumArtifactsErrorInfo
|
562
607
|
include Google::Apis::Core::Hashable
|
@@ -1863,6 +1908,39 @@ module Google
|
|
1863
1908
|
end
|
1864
1909
|
end
|
1865
1910
|
|
1911
|
+
# The response to upload an artifact.
|
1912
|
+
class UploadGoogetArtifactMediaResponse
|
1913
|
+
include Google::Apis::Core::Hashable
|
1914
|
+
|
1915
|
+
# This resource represents a long-running operation that is the result of a
|
1916
|
+
# network API call.
|
1917
|
+
# Corresponds to the JSON property `operation`
|
1918
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
1919
|
+
attr_accessor :operation
|
1920
|
+
|
1921
|
+
def initialize(**args)
|
1922
|
+
update!(**args)
|
1923
|
+
end
|
1924
|
+
|
1925
|
+
# Update properties of this object
|
1926
|
+
def update!(**args)
|
1927
|
+
@operation = args[:operation] if args.key?(:operation)
|
1928
|
+
end
|
1929
|
+
end
|
1930
|
+
|
1931
|
+
# The request to upload an artifact.
|
1932
|
+
class UploadGoogetArtifactRequest
|
1933
|
+
include Google::Apis::Core::Hashable
|
1934
|
+
|
1935
|
+
def initialize(**args)
|
1936
|
+
update!(**args)
|
1937
|
+
end
|
1938
|
+
|
1939
|
+
# Update properties of this object
|
1940
|
+
def update!(**args)
|
1941
|
+
end
|
1942
|
+
end
|
1943
|
+
|
1866
1944
|
# The response to upload an artifact.
|
1867
1945
|
class UploadKfpArtifactMediaResponse
|
1868
1946
|
include Google::Apis::Core::Hashable
|
@@ -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.40.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230411"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,6 +112,18 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
+
class ImportGoogetArtifactsGcsSource
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class ImportGoogetArtifactsRequest
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
115
127
|
class ImportYumArtifactsErrorInfo
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -352,6 +364,18 @@ module Google
|
|
352
364
|
include Google::Apis::Core::JsonObjectSupport
|
353
365
|
end
|
354
366
|
|
367
|
+
class UploadGoogetArtifactMediaResponse
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
373
|
+
class UploadGoogetArtifactRequest
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
355
379
|
class UploadKfpArtifactMediaResponse
|
356
380
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
381
|
|
@@ -561,6 +585,22 @@ module Google
|
|
561
585
|
end
|
562
586
|
end
|
563
587
|
|
588
|
+
class ImportGoogetArtifactsGcsSource
|
589
|
+
# @private
|
590
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
591
|
+
collection :uris, as: 'uris'
|
592
|
+
property :use_wildcards, as: 'useWildcards'
|
593
|
+
end
|
594
|
+
end
|
595
|
+
|
596
|
+
class ImportGoogetArtifactsRequest
|
597
|
+
# @private
|
598
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
599
|
+
property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsGcsSource::Representation
|
600
|
+
|
601
|
+
end
|
602
|
+
end
|
603
|
+
|
564
604
|
class ImportYumArtifactsErrorInfo
|
565
605
|
# @private
|
566
606
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -930,6 +970,20 @@ module Google
|
|
930
970
|
end
|
931
971
|
end
|
932
972
|
|
973
|
+
class UploadGoogetArtifactMediaResponse
|
974
|
+
# @private
|
975
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
976
|
+
property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
|
977
|
+
|
978
|
+
end
|
979
|
+
end
|
980
|
+
|
981
|
+
class UploadGoogetArtifactRequest
|
982
|
+
# @private
|
983
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
984
|
+
end
|
985
|
+
end
|
986
|
+
|
933
987
|
class UploadKfpArtifactMediaResponse
|
934
988
|
# @private
|
935
989
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -806,6 +806,88 @@ module Google
|
|
806
806
|
execute_or_queue_command(command, &block)
|
807
807
|
end
|
808
808
|
|
809
|
+
# Imports GooGet artifacts. The returned Operation will complete once the
|
810
|
+
# resources are imported. Package, Version, and File resources are created based
|
811
|
+
# on the imported artifacts. Imported artifacts that conflict with existing
|
812
|
+
# resources are ignored.
|
813
|
+
# @param [String] parent
|
814
|
+
# The name of the parent resource where the artifacts will be imported.
|
815
|
+
# @param [Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsRequest] import_googet_artifacts_request_object
|
816
|
+
# @param [String] fields
|
817
|
+
# Selector specifying which fields to include in a partial response.
|
818
|
+
# @param [String] quota_user
|
819
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
820
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
821
|
+
# @param [Google::Apis::RequestOptions] options
|
822
|
+
# Request-specific options
|
823
|
+
#
|
824
|
+
# @yield [result, err] Result & error if block supplied
|
825
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
|
826
|
+
# @yieldparam err [StandardError] error object if request failed
|
827
|
+
#
|
828
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
829
|
+
#
|
830
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
831
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
832
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
833
|
+
def import_googet_artifacts(parent, import_googet_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
834
|
+
command = make_simple_command(:post, 'v1/{+parent}/googetArtifacts:import', options)
|
835
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsRequest::Representation
|
836
|
+
command.request_object = import_googet_artifacts_request_object
|
837
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
|
838
|
+
command.response_class = Google::Apis::ArtifactregistryV1::Operation
|
839
|
+
command.params['parent'] = parent unless parent.nil?
|
840
|
+
command.query['fields'] = fields unless fields.nil?
|
841
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
842
|
+
execute_or_queue_command(command, &block)
|
843
|
+
end
|
844
|
+
|
845
|
+
# Directly uploads a GooGet artifact. The returned Operation will complete once
|
846
|
+
# the resources are uploaded. Package, Version, and File resources are created
|
847
|
+
# based on the imported artifact. Imported artifacts that conflict with existing
|
848
|
+
# resources are ignored.
|
849
|
+
# @param [String] parent
|
850
|
+
# The name of the parent resource where the artifacts will be uploaded.
|
851
|
+
# @param [Google::Apis::ArtifactregistryV1::UploadGoogetArtifactRequest] upload_googet_artifact_request_object
|
852
|
+
# @param [String] fields
|
853
|
+
# Selector specifying which fields to include in a partial response.
|
854
|
+
# @param [String] quota_user
|
855
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
856
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
857
|
+
# @param [IO, String] upload_source
|
858
|
+
# IO stream or filename containing content to upload
|
859
|
+
# @param [String] content_type
|
860
|
+
# Content type of the uploaded content.
|
861
|
+
# @param [Google::Apis::RequestOptions] options
|
862
|
+
# Request-specific options
|
863
|
+
#
|
864
|
+
# @yield [result, err] Result & error if block supplied
|
865
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse] parsed result object
|
866
|
+
# @yieldparam err [StandardError] error object if request failed
|
867
|
+
#
|
868
|
+
# @return [Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse]
|
869
|
+
#
|
870
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
871
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
872
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
873
|
+
def upload_googet_artifact_goo_get_artifact(parent, upload_googet_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
874
|
+
if upload_source.nil?
|
875
|
+
command = make_simple_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
|
876
|
+
else
|
877
|
+
command = make_upload_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
|
878
|
+
command.upload_source = upload_source
|
879
|
+
command.upload_content_type = content_type
|
880
|
+
end
|
881
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::UploadGoogetArtifactRequest::Representation
|
882
|
+
command.request_object = upload_googet_artifact_request_object
|
883
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse::Representation
|
884
|
+
command.response_class = Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse
|
885
|
+
command.params['parent'] = parent unless parent.nil?
|
886
|
+
command.query['fields'] = fields unless fields.nil?
|
887
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
888
|
+
execute_or_queue_command(command, &block)
|
889
|
+
end
|
890
|
+
|
809
891
|
# Directly uploads a KFP artifact. The returned Operation will complete once the
|
810
892
|
# resource is uploaded. Package, Version, and File resources will be created
|
811
893
|
# based on the uploaded artifact. Uploaded artifacts that conflict with existing
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.40.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|