google-cloud-artifact_registry-v1 0.10.0 → 0.11.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/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +115 -5
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +42 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +108 -5
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +60 -0
- data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +29 -1
- data/lib/google/devtools/artifactregistry/v1/service_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +3 -0
- data/lib/google/devtools/artifactregistry/v1/version_pb.rb +2 -1
- data/proto_docs/google/devtools/artifactregistry/v1/package.rb +1 -1
- data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +411 -10
- data/proto_docs/google/devtools/artifactregistry/v1/tag.rb +3 -1
- data/proto_docs/google/devtools/artifactregistry/v1/version.rb +16 -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: bb800f53536dfd55e83f34d89637cb938d1642e3caf63677e65eb246fdcf3397
|
4
|
+
data.tar.gz: 2cbe7ee3f0815b68337f6e4176a99529b84d9e1238f99da70ed215f9ec3f5ebc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d91a19f3fbe139423e2641aa9a86257e42873f4acaec961c08d0c1926a347988a64d0cd01d73f549f6c434d7b87f1624fe1f39ea5aca6b60292c465e5206caa9
|
7
|
+
data.tar.gz: c511ca2ae1dc9202e96a55528eeafc7c124a6ad95727739cfca5d778e1d86f3c66bc0568059077f2cdfa23cc3596457d3cee19fc9d52caf94eb5d2b151117956
|
@@ -1123,7 +1123,8 @@ module Google
|
|
1123
1123
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1124
1124
|
#
|
1125
1125
|
# @param parent [::String]
|
1126
|
-
# Required. The name of the parent resource whose repositories will be
|
1126
|
+
# Required. The name of the parent resource whose repositories will be
|
1127
|
+
# listed.
|
1127
1128
|
# @param page_size [::Integer]
|
1128
1129
|
# The maximum number of repositories to return. Maximum page size is 1,000.
|
1129
1130
|
# @param page_token [::String]
|
@@ -1303,11 +1304,12 @@ module Google
|
|
1303
1304
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1304
1305
|
#
|
1305
1306
|
# @param parent [::String]
|
1306
|
-
# Required. The name of the parent resource where the repository will be
|
1307
|
+
# Required. The name of the parent resource where the repository will be
|
1308
|
+
# created.
|
1307
1309
|
# @param repository_id [::String]
|
1308
|
-
# The repository id to use for this repository.
|
1310
|
+
# Required. The repository id to use for this repository.
|
1309
1311
|
# @param repository [::Google::Cloud::ArtifactRegistry::V1::Repository, ::Hash]
|
1310
|
-
# The repository to be created.
|
1312
|
+
# Required. The repository to be created.
|
1311
1313
|
#
|
1312
1314
|
# @yield [response, operation] Access the result along with the RPC operation
|
1313
1315
|
# @yieldparam response [::Gapic::Operation]
|
@@ -2120,6 +2122,105 @@ module Google
|
|
2120
2122
|
raise ::Google::Cloud::Error.from_error(e)
|
2121
2123
|
end
|
2122
2124
|
|
2125
|
+
##
|
2126
|
+
# Deletes multiple versions across a repository. The returned operation will
|
2127
|
+
# complete once the versions have been deleted.
|
2128
|
+
#
|
2129
|
+
# @overload batch_delete_versions(request, options = nil)
|
2130
|
+
# Pass arguments to `batch_delete_versions` via a request object, either of type
|
2131
|
+
# {::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest} or an equivalent Hash.
|
2132
|
+
#
|
2133
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest, ::Hash]
|
2134
|
+
# A request object representing the call parameters. Required. To specify no
|
2135
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2136
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2137
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2138
|
+
#
|
2139
|
+
# @overload batch_delete_versions(parent: nil, names: nil, validate_only: nil)
|
2140
|
+
# Pass arguments to `batch_delete_versions` via keyword arguments. Note that at
|
2141
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2142
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2143
|
+
#
|
2144
|
+
# @param parent [::String]
|
2145
|
+
# The name of the repository holding all requested versions.
|
2146
|
+
# @param names [::Array<::String>]
|
2147
|
+
# Required. The names of the versions to delete.
|
2148
|
+
# A maximum of 10000 versions can be deleted in a batch.
|
2149
|
+
# @param validate_only [::Boolean]
|
2150
|
+
# If true, the request is performed without deleting data, following AIP-163.
|
2151
|
+
#
|
2152
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2153
|
+
# @yieldparam response [::Gapic::Operation]
|
2154
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2155
|
+
#
|
2156
|
+
# @return [::Gapic::Operation]
|
2157
|
+
#
|
2158
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2159
|
+
#
|
2160
|
+
# @example Basic example
|
2161
|
+
# require "google/cloud/artifact_registry/v1"
|
2162
|
+
#
|
2163
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2164
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
|
2165
|
+
#
|
2166
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2167
|
+
# request = Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest.new
|
2168
|
+
#
|
2169
|
+
# # Call the batch_delete_versions method.
|
2170
|
+
# result = client.batch_delete_versions request
|
2171
|
+
#
|
2172
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2173
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2174
|
+
# # Here is how to wait for a response.
|
2175
|
+
# result.wait_until_done! timeout: 60
|
2176
|
+
# if result.response?
|
2177
|
+
# p result.response
|
2178
|
+
# else
|
2179
|
+
# puts "No response received."
|
2180
|
+
# end
|
2181
|
+
#
|
2182
|
+
def batch_delete_versions request, options = nil
|
2183
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2184
|
+
|
2185
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest
|
2186
|
+
|
2187
|
+
# Converts hash and nil to an options object
|
2188
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2189
|
+
|
2190
|
+
# Customize the options with defaults
|
2191
|
+
metadata = @config.rpcs.batch_delete_versions.metadata.to_h
|
2192
|
+
|
2193
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2194
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2195
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2196
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
2197
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2198
|
+
|
2199
|
+
header_params = {}
|
2200
|
+
if request.parent
|
2201
|
+
header_params["parent"] = request.parent
|
2202
|
+
end
|
2203
|
+
|
2204
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2205
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2206
|
+
|
2207
|
+
options.apply_defaults timeout: @config.rpcs.batch_delete_versions.timeout,
|
2208
|
+
metadata: metadata,
|
2209
|
+
retry_policy: @config.rpcs.batch_delete_versions.retry_policy
|
2210
|
+
|
2211
|
+
options.apply_defaults timeout: @config.timeout,
|
2212
|
+
metadata: @config.metadata,
|
2213
|
+
retry_policy: @config.retry_policy
|
2214
|
+
|
2215
|
+
@artifact_registry_stub.call_rpc :batch_delete_versions, request, options: options do |response, operation|
|
2216
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2217
|
+
yield response, operation if block_given?
|
2218
|
+
return response
|
2219
|
+
end
|
2220
|
+
rescue ::GRPC::BadStatus => e
|
2221
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2222
|
+
end
|
2223
|
+
|
2123
2224
|
##
|
2124
2225
|
# Lists files.
|
2125
2226
|
#
|
@@ -2334,7 +2435,9 @@ module Google
|
|
2334
2435
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2335
2436
|
#
|
2336
2437
|
# @param parent [::String]
|
2337
|
-
# The name of the parent
|
2438
|
+
# The name of the parent package whose tags will be listed.
|
2439
|
+
# For example:
|
2440
|
+
# `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
|
2338
2441
|
# @param filter [::String]
|
2339
2442
|
# An expression for filtering the results of the request. Filter rules are
|
2340
2443
|
# case insensitive. The fields eligible for filtering are:
|
@@ -3639,6 +3742,11 @@ module Google
|
|
3639
3742
|
#
|
3640
3743
|
attr_reader :delete_version
|
3641
3744
|
##
|
3745
|
+
# RPC-specific configuration for `batch_delete_versions`
|
3746
|
+
# @return [::Gapic::Config::Method]
|
3747
|
+
#
|
3748
|
+
attr_reader :batch_delete_versions
|
3749
|
+
##
|
3642
3750
|
# RPC-specific configuration for `list_files`
|
3643
3751
|
# @return [::Gapic::Config::Method]
|
3644
3752
|
#
|
@@ -3753,6 +3861,8 @@ module Google
|
|
3753
3861
|
@get_version = ::Gapic::Config::Method.new get_version_config
|
3754
3862
|
delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
|
3755
3863
|
@delete_version = ::Gapic::Config::Method.new delete_version_config
|
3864
|
+
batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
|
3865
|
+
@batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
|
3756
3866
|
list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
|
3757
3867
|
@list_files = ::Gapic::Config::Method.new list_files_config
|
3758
3868
|
get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
|
@@ -200,6 +200,25 @@ module Google
|
|
200
200
|
"projects/#{project}/locations/#{location}/repositories/#{repository}"
|
201
201
|
end
|
202
202
|
|
203
|
+
##
|
204
|
+
# Create a fully-qualified SecretVersion resource string.
|
205
|
+
#
|
206
|
+
# The resource will be in the following format:
|
207
|
+
#
|
208
|
+
# `projects/{project}/secrets/{secret}/versions/{secret_version}`
|
209
|
+
#
|
210
|
+
# @param project [String]
|
211
|
+
# @param secret [String]
|
212
|
+
# @param secret_version [String]
|
213
|
+
#
|
214
|
+
# @return [::String]
|
215
|
+
def secret_version_path project:, secret:, secret_version:
|
216
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
217
|
+
raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
|
218
|
+
|
219
|
+
"projects/#{project}/secrets/#{secret}/versions/#{secret_version}"
|
220
|
+
end
|
221
|
+
|
203
222
|
##
|
204
223
|
# Create a fully-qualified Tag resource string.
|
205
224
|
#
|
@@ -223,6 +242,29 @@ module Google
|
|
223
242
|
"projects/#{project}/locations/#{location}/repositories/#{repository}/packages/#{package}/tags/#{tag}"
|
224
243
|
end
|
225
244
|
|
245
|
+
##
|
246
|
+
# Create a fully-qualified Version resource string.
|
247
|
+
#
|
248
|
+
# The resource will be in the following format:
|
249
|
+
#
|
250
|
+
# `projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}`
|
251
|
+
#
|
252
|
+
# @param project [String]
|
253
|
+
# @param location [String]
|
254
|
+
# @param repository [String]
|
255
|
+
# @param package [String]
|
256
|
+
# @param version [String]
|
257
|
+
#
|
258
|
+
# @return [::String]
|
259
|
+
def version_path project:, location:, repository:, package:, version:
|
260
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
261
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
262
|
+
raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
|
263
|
+
raise ::ArgumentError, "package cannot contain /" if package.to_s.include? "/"
|
264
|
+
|
265
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}/packages/#{package}/versions/#{version}"
|
266
|
+
end
|
267
|
+
|
226
268
|
##
|
227
269
|
# Create a fully-qualified VpcscConfig resource string.
|
228
270
|
#
|
@@ -1044,7 +1044,8 @@ module Google
|
|
1044
1044
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1045
1045
|
#
|
1046
1046
|
# @param parent [::String]
|
1047
|
-
# Required. The name of the parent resource whose repositories will be
|
1047
|
+
# Required. The name of the parent resource whose repositories will be
|
1048
|
+
# listed.
|
1048
1049
|
# @param page_size [::Integer]
|
1049
1050
|
# The maximum number of repositories to return. Maximum page size is 1,000.
|
1050
1051
|
# @param page_token [::String]
|
@@ -1210,11 +1211,12 @@ module Google
|
|
1210
1211
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1211
1212
|
#
|
1212
1213
|
# @param parent [::String]
|
1213
|
-
# Required. The name of the parent resource where the repository will be
|
1214
|
+
# Required. The name of the parent resource where the repository will be
|
1215
|
+
# created.
|
1214
1216
|
# @param repository_id [::String]
|
1215
|
-
# The repository id to use for this repository.
|
1217
|
+
# Required. The repository id to use for this repository.
|
1216
1218
|
# @param repository [::Google::Cloud::ArtifactRegistry::V1::Repository, ::Hash]
|
1217
|
-
# The repository to be created.
|
1219
|
+
# Required. The repository to be created.
|
1218
1220
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1219
1221
|
# @yieldparam result [::Gapic::Operation]
|
1220
1222
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1964,6 +1966,98 @@ module Google
|
|
1964
1966
|
raise ::Google::Cloud::Error.from_error(e)
|
1965
1967
|
end
|
1966
1968
|
|
1969
|
+
##
|
1970
|
+
# Deletes multiple versions across a repository. The returned operation will
|
1971
|
+
# complete once the versions have been deleted.
|
1972
|
+
#
|
1973
|
+
# @overload batch_delete_versions(request, options = nil)
|
1974
|
+
# Pass arguments to `batch_delete_versions` via a request object, either of type
|
1975
|
+
# {::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest} or an equivalent Hash.
|
1976
|
+
#
|
1977
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest, ::Hash]
|
1978
|
+
# A request object representing the call parameters. Required. To specify no
|
1979
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1980
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1981
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1982
|
+
#
|
1983
|
+
# @overload batch_delete_versions(parent: nil, names: nil, validate_only: nil)
|
1984
|
+
# Pass arguments to `batch_delete_versions` via keyword arguments. Note that at
|
1985
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1986
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1987
|
+
#
|
1988
|
+
# @param parent [::String]
|
1989
|
+
# The name of the repository holding all requested versions.
|
1990
|
+
# @param names [::Array<::String>]
|
1991
|
+
# Required. The names of the versions to delete.
|
1992
|
+
# A maximum of 10000 versions can be deleted in a batch.
|
1993
|
+
# @param validate_only [::Boolean]
|
1994
|
+
# If true, the request is performed without deleting data, following AIP-163.
|
1995
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1996
|
+
# @yieldparam result [::Gapic::Operation]
|
1997
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1998
|
+
#
|
1999
|
+
# @return [::Gapic::Operation]
|
2000
|
+
#
|
2001
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2002
|
+
#
|
2003
|
+
# @example Basic example
|
2004
|
+
# require "google/cloud/artifact_registry/v1"
|
2005
|
+
#
|
2006
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2007
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
2008
|
+
#
|
2009
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2010
|
+
# request = Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest.new
|
2011
|
+
#
|
2012
|
+
# # Call the batch_delete_versions method.
|
2013
|
+
# result = client.batch_delete_versions request
|
2014
|
+
#
|
2015
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2016
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2017
|
+
# # Here is how to wait for a response.
|
2018
|
+
# result.wait_until_done! timeout: 60
|
2019
|
+
# if result.response?
|
2020
|
+
# p result.response
|
2021
|
+
# else
|
2022
|
+
# puts "No response received."
|
2023
|
+
# end
|
2024
|
+
#
|
2025
|
+
def batch_delete_versions request, options = nil
|
2026
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2027
|
+
|
2028
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest
|
2029
|
+
|
2030
|
+
# Converts hash and nil to an options object
|
2031
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2032
|
+
|
2033
|
+
# Customize the options with defaults
|
2034
|
+
call_metadata = @config.rpcs.batch_delete_versions.metadata.to_h
|
2035
|
+
|
2036
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2037
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2038
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2039
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2040
|
+
transports_version_send: [:rest]
|
2041
|
+
|
2042
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2043
|
+
|
2044
|
+
options.apply_defaults timeout: @config.rpcs.batch_delete_versions.timeout,
|
2045
|
+
metadata: call_metadata,
|
2046
|
+
retry_policy: @config.rpcs.batch_delete_versions.retry_policy
|
2047
|
+
|
2048
|
+
options.apply_defaults timeout: @config.timeout,
|
2049
|
+
metadata: @config.metadata,
|
2050
|
+
retry_policy: @config.retry_policy
|
2051
|
+
|
2052
|
+
@artifact_registry_stub.batch_delete_versions request, options do |result, operation|
|
2053
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2054
|
+
yield result, operation if block_given?
|
2055
|
+
return result
|
2056
|
+
end
|
2057
|
+
rescue ::Gapic::Rest::Error => e
|
2058
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2059
|
+
end
|
2060
|
+
|
1967
2061
|
##
|
1968
2062
|
# Lists files.
|
1969
2063
|
#
|
@@ -2164,7 +2258,9 @@ module Google
|
|
2164
2258
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2165
2259
|
#
|
2166
2260
|
# @param parent [::String]
|
2167
|
-
# The name of the parent
|
2261
|
+
# The name of the parent package whose tags will be listed.
|
2262
|
+
# For example:
|
2263
|
+
# `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
|
2168
2264
|
# @param filter [::String]
|
2169
2265
|
# An expression for filtering the results of the request. Filter rules are
|
2170
2266
|
# case insensitive. The fields eligible for filtering are:
|
@@ -3372,6 +3468,11 @@ module Google
|
|
3372
3468
|
#
|
3373
3469
|
attr_reader :delete_version
|
3374
3470
|
##
|
3471
|
+
# RPC-specific configuration for `batch_delete_versions`
|
3472
|
+
# @return [::Gapic::Config::Method]
|
3473
|
+
#
|
3474
|
+
attr_reader :batch_delete_versions
|
3475
|
+
##
|
3375
3476
|
# RPC-specific configuration for `list_files`
|
3376
3477
|
# @return [::Gapic::Config::Method]
|
3377
3478
|
#
|
@@ -3486,6 +3587,8 @@ module Google
|
|
3486
3587
|
@get_version = ::Gapic::Config::Method.new get_version_config
|
3487
3588
|
delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
|
3488
3589
|
@delete_version = ::Gapic::Config::Method.new delete_version_config
|
3590
|
+
batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
|
3591
|
+
@batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
|
3489
3592
|
list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
|
3490
3593
|
@list_files = ::Gapic::Config::Method.new list_files_config
|
3491
3594
|
get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
|
@@ -838,6 +838,44 @@ module Google
|
|
838
838
|
result
|
839
839
|
end
|
840
840
|
|
841
|
+
##
|
842
|
+
# Baseline implementation for the batch_delete_versions REST call
|
843
|
+
#
|
844
|
+
# @param request_pb [::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest]
|
845
|
+
# A request object representing the call parameters. Required.
|
846
|
+
# @param options [::Gapic::CallOptions]
|
847
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
848
|
+
#
|
849
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
850
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
851
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
852
|
+
#
|
853
|
+
# @return [::Google::Longrunning::Operation]
|
854
|
+
# A result object deserialized from the server's reply
|
855
|
+
def batch_delete_versions request_pb, options = nil
|
856
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
857
|
+
|
858
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_versions_request request_pb
|
859
|
+
query_string_params = if query_string_params.any?
|
860
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
861
|
+
else
|
862
|
+
{}
|
863
|
+
end
|
864
|
+
|
865
|
+
response = @client_stub.make_http_request(
|
866
|
+
verb,
|
867
|
+
uri: uri,
|
868
|
+
body: body || "",
|
869
|
+
params: query_string_params,
|
870
|
+
options: options
|
871
|
+
)
|
872
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
873
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
874
|
+
|
875
|
+
yield result, operation if block_given?
|
876
|
+
result
|
877
|
+
end
|
878
|
+
|
841
879
|
##
|
842
880
|
# Baseline implementation for the list_files REST call
|
843
881
|
#
|
@@ -1815,6 +1853,28 @@ module Google
|
|
1815
1853
|
transcoder.transcode request_pb
|
1816
1854
|
end
|
1817
1855
|
|
1856
|
+
##
|
1857
|
+
# @private
|
1858
|
+
#
|
1859
|
+
# GRPC transcoding helper method for the batch_delete_versions REST call
|
1860
|
+
#
|
1861
|
+
# @param request_pb [::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest]
|
1862
|
+
# A request object representing the call parameters. Required.
|
1863
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1864
|
+
# Uri, Body, Query string parameters
|
1865
|
+
def self.transcode_batch_delete_versions_request request_pb
|
1866
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1867
|
+
.with_bindings(
|
1868
|
+
uri_method: :post,
|
1869
|
+
uri_template: "/v1/{parent}/versions:batchDelete",
|
1870
|
+
body: "*",
|
1871
|
+
matches: [
|
1872
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+/?$}, false]
|
1873
|
+
]
|
1874
|
+
)
|
1875
|
+
transcoder.transcode request_pb
|
1876
|
+
end
|
1877
|
+
|
1818
1878
|
##
|
1819
1879
|
# @private
|
1820
1880
|
#
|
@@ -6,11 +6,12 @@ require 'google/protobuf'
|
|
6
6
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
require 'google/api/resource_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/field_mask_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
13
|
|
13
|
-
descriptor_data = "\n4google/devtools/artifactregistry/v1/repository.proto\x12#google.devtools.artifactregistry.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa5\x07\n\nRepository\x12]\n\x0cmaven_config\x18\t \x01(\x0b\x32\x45.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfigH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x46\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x36.google.devtools.artifactregistry.v1.Repository.Format\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12K\n\x06labels\x18\x04 \x03(\x0b\x32;.google.devtools.artifactregistry.v1.Repository.LabelsEntry\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0ckms_key_name\x18\x08 \x01(\t\x1a\xf3\x01\n\x15MavenRepositoryConfig\x12!\n\x19\x61llow_snapshot_overwrites\x18\x01 \x01(\x08\x12k\n\x0eversion_policy\x18\x02 \x01(\x0e\x32S.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy\"J\n\rVersionPolicy\x12\x1e\n\x1aVERSION_POLICY_UNSPECIFIED\x10\x00\x12\x0b\n\x07RELEASE\x10\x01\x12\x0c\n\x08SNAPSHOT\x10\x02\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"^\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\n\n\x06\x44OCKER\x10\x01\x12\t\n\x05MAVEN\x10\x02\x12\x07\n\x03NPM\x10\x03\x12\x07\n\x03\x41PT\x10\x05\x12\x07\n\x03YUM\x10\x06\x12\n\n\x06PYTHON\x10\x08:r\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}B\x0f\n\rformat_config\"\x84\x01\n\x17ListRepositoriesRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*artifactregistry.googleapis.com/Repository\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x18ListRepositoriesResponse\x12\x45\n\x0crepositories\x18\x01 \x03(\x0b\x32/.google.devtools.artifactregistry.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x14GetRepositoryRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*artifactregistry.googleapis.com/Repository\"\xb9\x01\n\x17\x43reateRepositoryRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*artifactregistry.googleapis.com/Repository\x12\x15\n\rrepository_id\x18\x02 \x01(\t\x12\x43\n\nrepository\x18\x03 \x01(\x0b\x32/.google.devtools.artifactregistry.v1.Repository\"\x8f\x01\n\x17UpdateRepositoryRequest\x12\x43\n\nrepository\x18\x01 \x01(\x0b\x32/.google.devtools.artifactregistry.v1.Repository\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"[\n\x17\x44\x65leteRepositoryRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*artifactregistry.googleapis.com/RepositoryB\xfa\x01\n\'com.google.devtools.artifactregistry.v1B\x0fRepositoryProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
|
14
|
+
descriptor_data = "\n4google/devtools/artifactregistry/v1/repository.proto\x12#google.devtools.artifactregistry.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"s\n\x0eUpstreamPolicy\x12\n\n\x02id\x18\x01 \x01(\t\x12\x43\n\nrepository\x18\x02 \x01(\tB/\xfa\x41,\n*artifactregistry.googleapis.com/Repository\x12\x10\n\x08priority\x18\x03 \x01(\x05\"\xa8\x03\n\x16\x43leanupPolicyCondition\x12\\\n\ttag_state\x18\x02 \x01(\x0e\x32\x44.google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagStateH\x00\x88\x01\x01\x12\x14\n\x0ctag_prefixes\x18\x03 \x03(\t\x12\x1d\n\x15version_name_prefixes\x18\x04 \x03(\t\x12\x1d\n\x15package_name_prefixes\x18\x05 \x03(\t\x12\x32\n\nolder_than\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationH\x01\x88\x01\x01\x12\x32\n\nnewer_than\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationH\x02\x88\x01\x01\"H\n\x08TagState\x12\x19\n\x15TAG_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06TAGGED\x10\x01\x12\x0c\n\x08UNTAGGED\x10\x02\x12\x07\n\x03\x41NY\x10\x03\x42\x0c\n\n_tag_stateB\r\n\x0b_older_thanB\r\n\x0b_newer_than\"h\n\x1f\x43leanupPolicyMostRecentVersions\x12\x1d\n\x15package_name_prefixes\x18\x01 \x03(\t\x12\x17\n\nkeep_count\x18\x02 \x01(\x05H\x00\x88\x01\x01\x42\r\n\x0b_keep_count\"\xe8\x02\n\rCleanupPolicy\x12P\n\tcondition\x18\x02 \x01(\x0b\x32;.google.devtools.artifactregistry.v1.CleanupPolicyConditionH\x00\x12\x64\n\x14most_recent_versions\x18\x04 \x01(\x0b\x32\x44.google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersionsH\x00\x12\n\n\x02id\x18\x01 \x01(\t\x12I\n\x06\x61\x63tion\x18\x03 \x01(\x0e\x32\x39.google.devtools.artifactregistry.v1.CleanupPolicy.Action\"6\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\x08\n\x04KEEP\x10\x02\x42\x10\n\x0e\x63ondition_type\"i\n\x17VirtualRepositoryConfig\x12N\n\x11upstream_policies\x18\x01 \x03(\x0b\x32\x33.google.devtools.artifactregistry.v1.UpstreamPolicy\"\xcd\x16\n\x16RemoteRepositoryConfig\x12i\n\x11\x64ocker_repository\x18\x02 \x01(\x0b\x32L.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepositoryH\x00\x12g\n\x10maven_repository\x18\x03 \x01(\x0b\x32K.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepositoryH\x00\x12\x63\n\x0enpm_repository\x18\x04 \x01(\x0b\x32I.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepositoryH\x00\x12i\n\x11python_repository\x18\x05 \x01(\x0b\x32L.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepositoryH\x00\x12\x63\n\x0e\x61pt_repository\x18\x06 \x01(\x0b\x32I.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepositoryH\x00\x12\x63\n\x0eyum_repository\x18\x07 \x01(\x0b\x32I.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepositoryH\x00\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12r\n\x14upstream_credentials\x18\t \x01(\x0b\x32O.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentialsB\x03\xe0\x41\x01\x1a\xbf\x02\n\x13UpstreamCredentials\x12\x94\x01\n\x1dusername_password_credentials\x18\x01 \x01(\x0b\x32k.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentialsH\x00\x1a\x81\x01\n\x1bUsernamePasswordCredentials\x12\x10\n\x08username\x18\x01 \x01(\t\x12P\n\x17password_secret_version\x18\x02 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionB\r\n\x0b\x63redentials\x1a\xe1\x01\n\x10\x44ockerRepository\x12z\n\x11public_repository\x18\x01 \x01(\x0e\x32].google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepositoryH\x00\"E\n\x10PublicRepository\x12!\n\x1dPUBLIC_REPOSITORY_UNSPECIFIED\x10\x00\x12\x0e\n\nDOCKER_HUB\x10\x01\x42\n\n\x08upstream\x1a\xe2\x01\n\x0fMavenRepository\x12y\n\x11public_repository\x18\x01 \x01(\x0e\x32\\.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepositoryH\x00\"H\n\x10PublicRepository\x12!\n\x1dPUBLIC_REPOSITORY_UNSPECIFIED\x10\x00\x12\x11\n\rMAVEN_CENTRAL\x10\x01\x42\n\n\x08upstream\x1a\xd6\x01\n\rNpmRepository\x12w\n\x11public_repository\x18\x01 \x01(\x0e\x32Z.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepositoryH\x00\"@\n\x10PublicRepository\x12!\n\x1dPUBLIC_REPOSITORY_UNSPECIFIED\x10\x00\x12\t\n\x05NPMJS\x10\x01\x42\n\n\x08upstream\x1a\xdb\x01\n\x10PythonRepository\x12z\n\x11public_repository\x18\x01 \x01(\x0e\x32].google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepositoryH\x00\"?\n\x10PublicRepository\x12!\n\x1dPUBLIC_REPOSITORY_UNSPECIFIED\x10\x00\x12\x08\n\x04PYPI\x10\x01\x42\n\n\x08upstream\x1a\x92\x03\n\rAptRepository\x12w\n\x11public_repository\x18\x01 \x01(\x0b\x32Z.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepositoryH\x00\x1a\xfb\x01\n\x10PublicRepository\x12\x82\x01\n\x0frepository_base\x18\x01 \x01(\x0e\x32i.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase\x12\x17\n\x0frepository_path\x18\x02 \x01(\t\"I\n\x0eRepositoryBase\x12\x1f\n\x1bREPOSITORY_BASE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44\x45\x42IAN\x10\x01\x12\n\n\x06UBUNTU\x10\x02\x42\n\n\x08upstream\x1a\xd3\x03\n\rYumRepository\x12w\n\x11public_repository\x18\x01 \x01(\x0b\x32Z.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepositoryH\x00\x1a\xbc\x02\n\x10PublicRepository\x12\x82\x01\n\x0frepository_base\x18\x01 \x01(\x0e\x32i.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase\x12\x17\n\x0frepository_path\x18\x02 \x01(\t\"\x89\x01\n\x0eRepositoryBase\x12\x1f\n\x1bREPOSITORY_BASE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43\x45NTOS\x10\x01\x12\x10\n\x0c\x43\x45NTOS_DEBUG\x10\x02\x12\x10\n\x0c\x43\x45NTOS_VAULT\x10\x03\x12\x11\n\rCENTOS_STREAM\x10\x04\x12\t\n\x05ROCKY\x10\x05\x12\x08\n\x04\x45PEL\x10\x06\x42\n\n\x08upstreamB\x0f\n\rremote_source\"\x85\x0e\n\nRepository\x12]\n\x0cmaven_config\x18\t \x01(\x0b\x32\x45.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfigH\x00\x12_\n\rdocker_config\x18\x11 \x01(\x0b\x32\x46.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfigH\x00\x12\x61\n\x19virtual_repository_config\x18\x0e \x01(\x0b\x32<.google.devtools.artifactregistry.v1.VirtualRepositoryConfigH\x01\x12_\n\x18remote_repository_config\x18\x0f \x01(\x0b\x32;.google.devtools.artifactregistry.v1.RemoteRepositoryConfigH\x01\x12\x0c\n\x04name\x18\x01 \x01(\t\x12K\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x36.google.devtools.artifactregistry.v1.Repository.FormatB\x03\xe0\x41\x01\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12K\n\x06labels\x18\x04 \x03(\x0b\x32;.google.devtools.artifactregistry.v1.Repository.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x0ckms_key_name\x18\x08 \x01(\t\x12G\n\x04mode\x18\n \x01(\x0e\x32\x34.google.devtools.artifactregistry.v1.Repository.ModeB\x03\xe0\x41\x01\x12\x63\n\x10\x63leanup_policies\x18\x0c \x03(\x0b\x32\x44.google.devtools.artifactregistry.v1.Repository.CleanupPoliciesEntryB\x03\xe0\x41\x01\x12\x17\n\nsize_bytes\x18\r \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12#\n\x16\x63leanup_policy_dry_run\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xf3\x01\n\x15MavenRepositoryConfig\x12!\n\x19\x61llow_snapshot_overwrites\x18\x01 \x01(\x08\x12k\n\x0eversion_policy\x18\x02 \x01(\x0e\x32S.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy\"J\n\rVersionPolicy\x12\x1e\n\x1aVERSION_POLICY_UNSPECIFIED\x10\x00\x12\x0b\n\x07RELEASE\x10\x01\x12\x0c\n\x08SNAPSHOT\x10\x02\x1a\x30\n\x16\x44ockerRepositoryConfig\x12\x16\n\x0eimmutable_tags\x18\x01 \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aj\n\x14\x43leanupPoliciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.google.devtools.artifactregistry.v1.CleanupPolicy:\x02\x38\x01\"o\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\n\n\x06\x44OCKER\x10\x01\x12\t\n\x05MAVEN\x10\x02\x12\x07\n\x03NPM\x10\x03\x12\x07\n\x03\x41PT\x10\x05\x12\x07\n\x03YUM\x10\x06\x12\n\n\x06PYTHON\x10\x08\x12\x07\n\x03KFP\x10\t\x12\x06\n\x02GO\x10\n\"d\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x17\n\x13STANDARD_REPOSITORY\x10\x01\x12\x16\n\x12VIRTUAL_REPOSITORY\x10\x02\x12\x15\n\x11REMOTE_REPOSITORY\x10\x03:r\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}B\x0f\n\rformat_configB\r\n\x0bmode_config\"\x84\x01\n\x17ListRepositoriesRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*artifactregistry.googleapis.com/Repository\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x18ListRepositoriesResponse\x12\x45\n\x0crepositories\x18\x01 \x03(\x0b\x32/.google.devtools.artifactregistry.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x14GetRepositoryRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*artifactregistry.googleapis.com/Repository\"\xc3\x01\n\x17\x43reateRepositoryRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*artifactregistry.googleapis.com/Repository\x12\x1a\n\rrepository_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\nrepository\x18\x03 \x01(\x0b\x32/.google.devtools.artifactregistry.v1.RepositoryB\x03\xe0\x41\x02\"\x8f\x01\n\x17UpdateRepositoryRequest\x12\x43\n\nrepository\x18\x01 \x01(\x0b\x32/.google.devtools.artifactregistry.v1.Repository\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"[\n\x17\x44\x65leteRepositoryRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*artifactregistry.googleapis.com/RepositoryB\xe8\x02\n\'com.google.devtools.artifactregistry.v1B\x0fRepositoryProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1\xea\x41k\n*secretmanager.googleapis.com/SecretVersion\x12=projects/{project}/secrets/{secret}/versions/{secret_version}b\x06proto3"
|
14
15
|
|
15
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
17
|
|
@@ -25,6 +26,7 @@ rescue TypeError => e
|
|
25
26
|
file = pool.add_serialized_file(serialized)
|
26
27
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
28
|
imports = [
|
29
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
28
30
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
29
31
|
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
30
32
|
]
|
@@ -42,10 +44,36 @@ module Google
|
|
42
44
|
module Cloud
|
43
45
|
module ArtifactRegistry
|
44
46
|
module V1
|
47
|
+
UpstreamPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.UpstreamPolicy").msgclass
|
48
|
+
CleanupPolicyCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.CleanupPolicyCondition").msgclass
|
49
|
+
CleanupPolicyCondition::TagState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState").enummodule
|
50
|
+
CleanupPolicyMostRecentVersions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersions").msgclass
|
51
|
+
CleanupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.CleanupPolicy").msgclass
|
52
|
+
CleanupPolicy::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.CleanupPolicy.Action").enummodule
|
53
|
+
VirtualRepositoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.VirtualRepositoryConfig").msgclass
|
54
|
+
RemoteRepositoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig").msgclass
|
55
|
+
RemoteRepositoryConfig::UpstreamCredentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials").msgclass
|
56
|
+
RemoteRepositoryConfig::UpstreamCredentials::UsernamePasswordCredentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials").msgclass
|
57
|
+
RemoteRepositoryConfig::DockerRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository").msgclass
|
58
|
+
RemoteRepositoryConfig::DockerRepository::PublicRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository").enummodule
|
59
|
+
RemoteRepositoryConfig::MavenRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository").msgclass
|
60
|
+
RemoteRepositoryConfig::MavenRepository::PublicRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository").enummodule
|
61
|
+
RemoteRepositoryConfig::NpmRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository").msgclass
|
62
|
+
RemoteRepositoryConfig::NpmRepository::PublicRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository").enummodule
|
63
|
+
RemoteRepositoryConfig::PythonRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository").msgclass
|
64
|
+
RemoteRepositoryConfig::PythonRepository::PublicRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository").enummodule
|
65
|
+
RemoteRepositoryConfig::AptRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository").msgclass
|
66
|
+
RemoteRepositoryConfig::AptRepository::PublicRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository").msgclass
|
67
|
+
RemoteRepositoryConfig::AptRepository::PublicRepository::RepositoryBase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase").enummodule
|
68
|
+
RemoteRepositoryConfig::YumRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository").msgclass
|
69
|
+
RemoteRepositoryConfig::YumRepository::PublicRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository").msgclass
|
70
|
+
RemoteRepositoryConfig::YumRepository::PublicRepository::RepositoryBase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase").enummodule
|
45
71
|
Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.Repository").msgclass
|
46
72
|
Repository::MavenRepositoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig").msgclass
|
47
73
|
Repository::MavenRepositoryConfig::VersionPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy").enummodule
|
74
|
+
Repository::DockerRepositoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig").msgclass
|
48
75
|
Repository::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.Repository.Format").enummodule
|
76
|
+
Repository::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.Repository.Mode").enummodule
|
49
77
|
ListRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListRepositoriesRequest").msgclass
|
50
78
|
ListRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListRepositoriesResponse").msgclass
|
51
79
|
GetRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.GetRepositoryRequest").msgclass
|
@@ -22,7 +22,7 @@ require 'google/longrunning/operations_pb'
|
|
22
22
|
require 'google/protobuf/empty_pb'
|
23
23
|
|
24
24
|
|
25
|
-
descriptor_data = "\n1google/devtools/artifactregistry/v1/service.proto\x12#google.devtools.artifactregistry.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x36google/devtools/artifactregistry/v1/apt_artifact.proto\x1a\x32google/devtools/artifactregistry/v1/artifact.proto\x1a.google/devtools/artifactregistry/v1/file.proto\x1a\x31google/devtools/artifactregistry/v1/package.proto\x1a\x34google/devtools/artifactregistry/v1/repository.proto\x1a\x32google/devtools/artifactregistry/v1/settings.proto\x1a-google/devtools/artifactregistry/v1/tag.proto\x1a\x31google/devtools/artifactregistry/v1/version.proto\x1a\x36google/devtools/artifactregistry/v1/vpcsc_config.proto\x1a\x36google/devtools/artifactregistry/v1/yum_artifact.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x13\n\x11OperationMetadata2\xa2>\n\x10\x41rtifactRegistry\x12\xe1\x01\n\x10ListDockerImages\x12<.google.devtools.artifactregistry.v1.ListDockerImagesRequest\x1a=.google.devtools.artifactregistry.v1.ListDockerImagesResponse\"P\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*/repositories/*}/dockerImages\xda\x41\x06parent\x12\xce\x01\n\x0eGetDockerImage\x12:.google.devtools.artifactregistry.v1.GetDockerImageRequest\x1a\x30.google.devtools.artifactregistry.v1.DockerImage\"N\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/repositories/*/dockerImages/*}\xda\x41\x04name\x12\xe9\x01\n\x12ListMavenArtifacts\x12>.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest\x1a?.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse\"R\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/mavenArtifacts\xda\x41\x06parent\x12\xd6\x01\n\x10GetMavenArtifact\x12<.google.devtools.artifactregistry.v1.GetMavenArtifactRequest\x1a\x32.google.devtools.artifactregistry.v1.MavenArtifact\"P\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/mavenArtifacts/*}\xda\x41\x04name\x12\xdd\x01\n\x0fListNpmPackages\x12;.google.devtools.artifactregistry.v1.ListNpmPackagesRequest\x1a<.google.devtools.artifactregistry.v1.ListNpmPackagesResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/repositories/*}/npmPackages\xda\x41\x06parent\x12\xca\x01\n\rGetNpmPackage\x12\x39.google.devtools.artifactregistry.v1.GetNpmPackageRequest\x1a/.google.devtools.artifactregistry.v1.NpmPackage\"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/repositories/*/npmPackages/*}\xda\x41\x04name\x12\xe9\x01\n\x12ListPythonPackages\x12>.google.devtools.artifactregistry.v1.ListPythonPackagesRequest\x1a?.google.devtools.artifactregistry.v1.ListPythonPackagesResponse\"R\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/pythonPackages\xda\x41\x06parent\x12\xd6\x01\n\x10GetPythonPackage\x12<.google.devtools.artifactregistry.v1.GetPythonPackageRequest\x1a\x32.google.devtools.artifactregistry.v1.PythonPackage\"P\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/pythonPackages/*}\xda\x41\x04name\x12\xcb\x02\n\x12ImportAptArtifacts\x12>.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/repositories/*}/aptArtifacts:import:\x01*\xca\x41\x80\x01\n>google.devtools.artifactregistry.v1.ImportAptArtifactsResponse\x12>google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata\x12\xcb\x02\n\x12ImportYumArtifacts\x12>.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/repositories/*}/yumArtifacts:import:\x01*\xca\x41\x80\x01\n>google.devtools.artifactregistry.v1.ImportYumArtifactsResponse\x12>google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata\x12\xd2\x01\n\x10ListRepositories\x12<.google.devtools.artifactregistry.v1.ListRepositoriesRequest\x1a=.google.devtools.artifactregistry.v1.ListRepositoriesResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\xda\x41\x06parent\x12\xbc\x01\n\rGetRepository\x12\x39.google.devtools.artifactregistry.v1.GetRepositoryRequest\x1a/.google.devtools.artifactregistry.v1.Repository\"?\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\xda\x41\x04name\x12\xc2\x02\n\x10\x43reateRepository\x12<.google.devtools.artifactregistry.v1.CreateRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\xd0\x01\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\xda\x41\x1fparent,repository,repository_id\xca\x41g\n.google.devtools.artifactregistry.v1.Repository\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\x12\xeb\x01\n\x10UpdateRepository\x12<.google.devtools.artifactregistry.v1.UpdateRepositoryRequest\x1a/.google.devtools.artifactregistry.v1.Repository\"h\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\xda\x41\x16repository,update_mask\x12\x82\x02\n\x10\x44\x65leteRepository\x12<.google.devtools.artifactregistry.v1.DeleteRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\xda\x41\x04name\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\x12\xd1\x01\n\x0cListPackages\x12\x38.google.devtools.artifactregistry.v1.ListPackagesRequest\x1a\x39.google.devtools.artifactregistry.v1.ListPackagesResponse\"L\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/repositories/*}/packages\xda\x41\x06parent\x12\xbe\x01\n\nGetPackage\x12\x36.google.devtools.artifactregistry.v1.GetPackageRequest\x1a,.google.devtools.artifactregistry.v1.Package\"J\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/repositories/*/packages/*}\xda\x41\x04name\x12\x87\x02\n\rDeletePackage\x12\x39.google.devtools.artifactregistry.v1.DeletePackageRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/repositories/*/packages/*}\xda\x41\x04name\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\x12\xdc\x01\n\x0cListVersions\x12\x38.google.devtools.artifactregistry.v1.ListVersionsRequest\x1a\x39.google.devtools.artifactregistry.v1.ListVersionsResponse\"W\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions\xda\x41\x06parent\x12\xc9\x01\n\nGetVersion\x12\x36.google.devtools.artifactregistry.v1.GetVersionRequest\x1a,.google.devtools.artifactregistry.v1.Version\"U\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}\xda\x41\x04name\x12\x92\x02\n\rDeleteVersion\x12\x39.google.devtools.artifactregistry.v1.DeleteVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa6\x01\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}\xda\x41\x04name\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\x12\xc5\x01\n\tListFiles\x12\x35.google.devtools.artifactregistry.v1.ListFilesRequest\x1a\x36.google.devtools.artifactregistry.v1.ListFilesResponse\"I\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/repositories/*}/files\xda\x41\x06parent\x12\xb3\x01\n\x07GetFile\x12\x33.google.devtools.artifactregistry.v1.GetFileRequest\x1a).google.devtools.artifactregistry.v1.File\"H\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*/files/**}\xda\x41\x04name\x12\xcc\x01\n\x08ListTags\x12\x34.google.devtools.artifactregistry.v1.ListTagsRequest\x1a\x35.google.devtools.artifactregistry.v1.ListTagsResponse\"S\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags\xda\x41\x06parent\x12\xb9\x01\n\x06GetTag\x12\x32.google.devtools.artifactregistry.v1.GetTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"Q\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}\xda\x41\x04name\x12\xd1\x01\n\tCreateTag\x12\x35.google.devtools.artifactregistry.v1.CreateTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"c\x82\xd3\xe4\x93\x02I\"B/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags:\x03tag\xda\x41\x11parent,tag,tag_id\x12\xd3\x01\n\tUpdateTag\x12\x35.google.devtools.artifactregistry.v1.UpdateTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"e\x82\xd3\xe4\x93\x02M2F/v1/{tag.name=projects/*/locations/*/repositories/*/packages/*/tags/*}:\x03tag\xda\x41\x0ftag,update_mask\x12\xad\x01\n\tDeleteTag\x12\x35.google.devtools.artifactregistry.v1.DeleteTagRequest\x1a\x16.google.protobuf.Empty\"Q\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}\xda\x41\x04name\x12\x97\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy:\x01*\x12\x94\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy\x12\xbd\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"R\x82\xd3\xe4\x93\x02L\"G/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions:\x01*\x12\xc0\x01\n\x12GetProjectSettings\x12>.google.devtools.artifactregistry.v1.GetProjectSettingsRequest\x1a\x34.google.devtools.artifactregistry.v1.ProjectSettings\"4\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=projects/*/projectSettings}\xda\x41\x04name\x12\x81\x02\n\x15UpdateProjectSettings\x12\x41.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest\x1a\x34.google.devtools.artifactregistry.v1.ProjectSettings\"o\x82\xd3\xe4\x93\x02J26/v1/{project_settings.name=projects/*/projectSettings}:\x10project_settings\xda\x41\x1cproject_settings,update_mask\x12\xbc\x01\n\x0eGetVPCSCConfig\x12:.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest\x1a\x30.google.devtools.artifactregistry.v1.VPCSCConfig\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/vpcscConfig}\xda\x41\x04name\x12\xf1\x01\n\x11UpdateVPCSCConfig\x12=.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest\x1a\x30.google.devtools.artifactregistry.v1.VPCSCConfig\"k\x82\xd3\xe4\x93\x02J2:/v1/{vpcsc_config.name=projects/*/locations/*/vpcscConfig}:\x0cvpcsc_config\xda\x41\x18vpcsc_config,update_mask\x1a\x8c\x01\xca\x41\x1f\x61rtifactregistry.googleapis.com\xd2\x41ghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xf7\x01\n\'com.google.devtools.artifactregistry.v1B\x0cServiceProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
|
25
|
+
descriptor_data = "\n1google/devtools/artifactregistry/v1/service.proto\x12#google.devtools.artifactregistry.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x36google/devtools/artifactregistry/v1/apt_artifact.proto\x1a\x32google/devtools/artifactregistry/v1/artifact.proto\x1a.google/devtools/artifactregistry/v1/file.proto\x1a\x31google/devtools/artifactregistry/v1/package.proto\x1a\x34google/devtools/artifactregistry/v1/repository.proto\x1a\x32google/devtools/artifactregistry/v1/settings.proto\x1a-google/devtools/artifactregistry/v1/tag.proto\x1a\x31google/devtools/artifactregistry/v1/version.proto\x1a\x36google/devtools/artifactregistry/v1/vpcsc_config.proto\x1a\x36google/devtools/artifactregistry/v1/yum_artifact.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x13\n\x11OperationMetadata2\xe4@\n\x10\x41rtifactRegistry\x12\xe1\x01\n\x10ListDockerImages\x12<.google.devtools.artifactregistry.v1.ListDockerImagesRequest\x1a=.google.devtools.artifactregistry.v1.ListDockerImagesResponse\"P\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*/repositories/*}/dockerImages\xda\x41\x06parent\x12\xce\x01\n\x0eGetDockerImage\x12:.google.devtools.artifactregistry.v1.GetDockerImageRequest\x1a\x30.google.devtools.artifactregistry.v1.DockerImage\"N\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/repositories/*/dockerImages/*}\xda\x41\x04name\x12\xe9\x01\n\x12ListMavenArtifacts\x12>.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest\x1a?.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse\"R\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/mavenArtifacts\xda\x41\x06parent\x12\xd6\x01\n\x10GetMavenArtifact\x12<.google.devtools.artifactregistry.v1.GetMavenArtifactRequest\x1a\x32.google.devtools.artifactregistry.v1.MavenArtifact\"P\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/mavenArtifacts/*}\xda\x41\x04name\x12\xdd\x01\n\x0fListNpmPackages\x12;.google.devtools.artifactregistry.v1.ListNpmPackagesRequest\x1a<.google.devtools.artifactregistry.v1.ListNpmPackagesResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/repositories/*}/npmPackages\xda\x41\x06parent\x12\xca\x01\n\rGetNpmPackage\x12\x39.google.devtools.artifactregistry.v1.GetNpmPackageRequest\x1a/.google.devtools.artifactregistry.v1.NpmPackage\"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/repositories/*/npmPackages/*}\xda\x41\x04name\x12\xe9\x01\n\x12ListPythonPackages\x12>.google.devtools.artifactregistry.v1.ListPythonPackagesRequest\x1a?.google.devtools.artifactregistry.v1.ListPythonPackagesResponse\"R\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/pythonPackages\xda\x41\x06parent\x12\xd6\x01\n\x10GetPythonPackage\x12<.google.devtools.artifactregistry.v1.GetPythonPackageRequest\x1a\x32.google.devtools.artifactregistry.v1.PythonPackage\"P\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/pythonPackages/*}\xda\x41\x04name\x12\xcb\x02\n\x12ImportAptArtifacts\x12>.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/repositories/*}/aptArtifacts:import:\x01*\xca\x41\x80\x01\n>google.devtools.artifactregistry.v1.ImportAptArtifactsResponse\x12>google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata\x12\xcb\x02\n\x12ImportYumArtifacts\x12>.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/repositories/*}/yumArtifacts:import:\x01*\xca\x41\x80\x01\n>google.devtools.artifactregistry.v1.ImportYumArtifactsResponse\x12>google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata\x12\xd2\x01\n\x10ListRepositories\x12<.google.devtools.artifactregistry.v1.ListRepositoriesRequest\x1a=.google.devtools.artifactregistry.v1.ListRepositoriesResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\xda\x41\x06parent\x12\xbc\x01\n\rGetRepository\x12\x39.google.devtools.artifactregistry.v1.GetRepositoryRequest\x1a/.google.devtools.artifactregistry.v1.Repository\"?\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\xda\x41\x04name\x12\xc2\x02\n\x10\x43reateRepository\x12<.google.devtools.artifactregistry.v1.CreateRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\xd0\x01\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\xda\x41\x1fparent,repository,repository_id\xca\x41g\n.google.devtools.artifactregistry.v1.Repository\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\x12\xeb\x01\n\x10UpdateRepository\x12<.google.devtools.artifactregistry.v1.UpdateRepositoryRequest\x1a/.google.devtools.artifactregistry.v1.Repository\"h\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\xda\x41\x16repository,update_mask\x12\x82\x02\n\x10\x44\x65leteRepository\x12<.google.devtools.artifactregistry.v1.DeleteRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\xda\x41\x04name\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\x12\xd1\x01\n\x0cListPackages\x12\x38.google.devtools.artifactregistry.v1.ListPackagesRequest\x1a\x39.google.devtools.artifactregistry.v1.ListPackagesResponse\"L\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/repositories/*}/packages\xda\x41\x06parent\x12\xbe\x01\n\nGetPackage\x12\x36.google.devtools.artifactregistry.v1.GetPackageRequest\x1a,.google.devtools.artifactregistry.v1.Package\"J\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/repositories/*/packages/*}\xda\x41\x04name\x12\x87\x02\n\rDeletePackage\x12\x39.google.devtools.artifactregistry.v1.DeletePackageRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/repositories/*/packages/*}\xda\x41\x04name\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\x12\xdc\x01\n\x0cListVersions\x12\x38.google.devtools.artifactregistry.v1.ListVersionsRequest\x1a\x39.google.devtools.artifactregistry.v1.ListVersionsResponse\"W\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions\xda\x41\x06parent\x12\xc9\x01\n\nGetVersion\x12\x36.google.devtools.artifactregistry.v1.GetVersionRequest\x1a,.google.devtools.artifactregistry.v1.Version\"U\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}\xda\x41\x04name\x12\x92\x02\n\rDeleteVersion\x12\x39.google.devtools.artifactregistry.v1.DeleteVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa6\x01\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}\xda\x41\x04name\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\x12\xbf\x02\n\x13\x42\x61tchDeleteVersions\x12?.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest\x1a\x1d.google.longrunning.Operation\"\xc7\x01\x82\xd3\xe4\x93\x02W\"R/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions:batchDelete:\x01*\xda\x41\x0cparent,names\xca\x41X\n\x15google.protobuf.Empty\x12?google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata\x12\xc5\x01\n\tListFiles\x12\x35.google.devtools.artifactregistry.v1.ListFilesRequest\x1a\x36.google.devtools.artifactregistry.v1.ListFilesResponse\"I\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/repositories/*}/files\xda\x41\x06parent\x12\xb3\x01\n\x07GetFile\x12\x33.google.devtools.artifactregistry.v1.GetFileRequest\x1a).google.devtools.artifactregistry.v1.File\"H\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*/files/**}\xda\x41\x04name\x12\xcc\x01\n\x08ListTags\x12\x34.google.devtools.artifactregistry.v1.ListTagsRequest\x1a\x35.google.devtools.artifactregistry.v1.ListTagsResponse\"S\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags\xda\x41\x06parent\x12\xb9\x01\n\x06GetTag\x12\x32.google.devtools.artifactregistry.v1.GetTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"Q\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}\xda\x41\x04name\x12\xd1\x01\n\tCreateTag\x12\x35.google.devtools.artifactregistry.v1.CreateTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"c\x82\xd3\xe4\x93\x02I\"B/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags:\x03tag\xda\x41\x11parent,tag,tag_id\x12\xd3\x01\n\tUpdateTag\x12\x35.google.devtools.artifactregistry.v1.UpdateTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"e\x82\xd3\xe4\x93\x02M2F/v1/{tag.name=projects/*/locations/*/repositories/*/packages/*/tags/*}:\x03tag\xda\x41\x0ftag,update_mask\x12\xad\x01\n\tDeleteTag\x12\x35.google.devtools.artifactregistry.v1.DeleteTagRequest\x1a\x16.google.protobuf.Empty\"Q\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}\xda\x41\x04name\x12\x97\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy:\x01*\x12\x94\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy\x12\xbd\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"R\x82\xd3\xe4\x93\x02L\"G/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions:\x01*\x12\xc0\x01\n\x12GetProjectSettings\x12>.google.devtools.artifactregistry.v1.GetProjectSettingsRequest\x1a\x34.google.devtools.artifactregistry.v1.ProjectSettings\"4\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=projects/*/projectSettings}\xda\x41\x04name\x12\x81\x02\n\x15UpdateProjectSettings\x12\x41.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest\x1a\x34.google.devtools.artifactregistry.v1.ProjectSettings\"o\x82\xd3\xe4\x93\x02J26/v1/{project_settings.name=projects/*/projectSettings}:\x10project_settings\xda\x41\x1cproject_settings,update_mask\x12\xbc\x01\n\x0eGetVPCSCConfig\x12:.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest\x1a\x30.google.devtools.artifactregistry.v1.VPCSCConfig\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/vpcscConfig}\xda\x41\x04name\x12\xf1\x01\n\x11UpdateVPCSCConfig\x12=.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest\x1a\x30.google.devtools.artifactregistry.v1.VPCSCConfig\"k\x82\xd3\xe4\x93\x02J2:/v1/{vpcsc_config.name=projects/*/locations/*/vpcscConfig}:\x0cvpcsc_config\xda\x41\x18vpcsc_config,update_mask\x1a\x8c\x01\xca\x41\x1f\x61rtifactregistry.googleapis.com\xd2\x41ghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xf7\x01\n\'com.google.devtools.artifactregistry.v1B\x0cServiceProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
|
26
26
|
|
27
27
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
28
28
|
|
@@ -98,6 +98,9 @@ module Google
|
|
98
98
|
# Deletes a version and all of its content. The returned operation will
|
99
99
|
# complete once the version has been deleted.
|
100
100
|
rpc :DeleteVersion, ::Google::Cloud::ArtifactRegistry::V1::DeleteVersionRequest, ::Google::Longrunning::Operation
|
101
|
+
# Deletes multiple versions across a repository. The returned operation will
|
102
|
+
# complete once the versions have been deleted.
|
103
|
+
rpc :BatchDeleteVersions, ::Google::Cloud::ArtifactRegistry::V1::BatchDeleteVersionsRequest, ::Google::Longrunning::Operation
|
101
104
|
# Lists files.
|
102
105
|
rpc :ListFiles, ::Google::Cloud::ArtifactRegistry::V1::ListFilesRequest, ::Google::Cloud::ArtifactRegistry::V1::ListFilesResponse
|
103
106
|
# Gets a file.
|
@@ -11,7 +11,7 @@ require 'google/protobuf/struct_pb'
|
|
11
11
|
require 'google/protobuf/timestamp_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n1google/devtools/artifactregistry/v1/version.proto\x12#google.devtools.artifactregistry.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/devtools/artifactregistry/v1/tag.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x97\x03\n\x07Version\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x0crelated_tags\x18\x07 \x03(\x0b\x32(.google.devtools.artifactregistry.v1.Tag\x12.\n\x08metadata\x18\x08 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03:\x96\x01\xea\x41\x92\x01\n\'artifactregistry.googleapis.com/Version\x12gprojects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}\"\xa3\x01\n\x13ListVersionsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12>\n\x04view\x18\x04 \x01(\x0e\x32\x30.google.devtools.artifactregistry.v1.VersionView\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"o\n\x14ListVersionsResponse\x12>\n\x08versions\x18\x01 \x03(\x0b\x32,.google.devtools.artifactregistry.v1.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x11GetVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x04view\x18\x02 \x01(\x0e\x32\x30.google.devtools.artifactregistry.v1.VersionView\"3\n\x14\x44\x65leteVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"6\n\x1b\x42\x61tchDeleteVersionsMetadata\x12\x17\n\x0f\x66\x61iled_versions\x18\x02 \x03(\t*@\n\x0bVersionView\x12\x1c\n\x18VERSION_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\xf7\x01\n\'com.google.devtools.artifactregistry.v1B\x0cVersionProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
|
14
|
+
descriptor_data = "\n1google/devtools/artifactregistry/v1/version.proto\x12#google.devtools.artifactregistry.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/devtools/artifactregistry/v1/tag.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x97\x03\n\x07Version\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x0crelated_tags\x18\x07 \x03(\x0b\x32(.google.devtools.artifactregistry.v1.Tag\x12.\n\x08metadata\x18\x08 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03:\x96\x01\xea\x41\x92\x01\n\'artifactregistry.googleapis.com/Version\x12gprojects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}\"\xa3\x01\n\x13ListVersionsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12>\n\x04view\x18\x04 \x01(\x0e\x32\x30.google.devtools.artifactregistry.v1.VersionView\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"o\n\x14ListVersionsResponse\x12>\n\x08versions\x18\x01 \x03(\x0b\x32,.google.devtools.artifactregistry.v1.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x11GetVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x04view\x18\x02 \x01(\x0e\x32\x30.google.devtools.artifactregistry.v1.VersionView\"3\n\x14\x44\x65leteVersionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\xb1\x01\n\x1a\x42\x61tchDeleteVersionsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xfa\x41)\x12\'artifactregistry.googleapis.com/Version\x12>\n\x05names\x18\x02 \x03(\tB/\xe0\x41\x02\xfa\x41)\n\'artifactregistry.googleapis.com/Version\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"6\n\x1b\x42\x61tchDeleteVersionsMetadata\x12\x17\n\x0f\x66\x61iled_versions\x18\x02 \x03(\t*@\n\x0bVersionView\x12\x1c\n\x18VERSION_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\xf7\x01\n\'com.google.devtools.artifactregistry.v1B\x0cVersionProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -49,6 +49,7 @@ module Google
|
|
49
49
|
ListVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListVersionsResponse").msgclass
|
50
50
|
GetVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.GetVersionRequest").msgclass
|
51
51
|
DeleteVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.DeleteVersionRequest").msgclass
|
52
|
+
BatchDeleteVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest").msgclass
|
52
53
|
BatchDeleteVersionsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata").msgclass
|
53
54
|
VersionView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.VersionView").enummodule
|
54
55
|
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
27
|
# The name of the package, for example:
|
28
|
-
#
|
28
|
+
# `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
|
29
29
|
# If the package ID part contains slashes, the slashes are escaped.
|
30
30
|
# @!attribute [rw] display_name
|
31
31
|
# @return [::String]
|
@@ -21,18 +21,352 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module ArtifactRegistry
|
23
23
|
module V1
|
24
|
+
# Artifact policy configuration for the repository contents.
|
25
|
+
# @!attribute [rw] id
|
26
|
+
# @return [::String]
|
27
|
+
# The user-provided ID of the upstream policy.
|
28
|
+
# @!attribute [rw] repository
|
29
|
+
# @return [::String]
|
30
|
+
# A reference to the repository resource, for example:
|
31
|
+
# `projects/p1/locations/us-central1/repositories/repo1`.
|
32
|
+
# @!attribute [rw] priority
|
33
|
+
# @return [::Integer]
|
34
|
+
# Entries with a greater priority value take precedence in the pull order.
|
35
|
+
class UpstreamPolicy
|
36
|
+
include ::Google::Protobuf::MessageExts
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
38
|
+
end
|
39
|
+
|
40
|
+
# CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy.
|
41
|
+
# If multiple entries are set, all must be satisfied for the condition to be
|
42
|
+
# satisfied.
|
43
|
+
# @!attribute [rw] tag_state
|
44
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::CleanupPolicyCondition::TagState]
|
45
|
+
# Match versions by tag status.
|
46
|
+
# @!attribute [rw] tag_prefixes
|
47
|
+
# @return [::Array<::String>]
|
48
|
+
# Match versions by tag prefix. Applied on any prefix match.
|
49
|
+
# @!attribute [rw] version_name_prefixes
|
50
|
+
# @return [::Array<::String>]
|
51
|
+
# Match versions by version name prefix. Applied on any prefix match.
|
52
|
+
# @!attribute [rw] package_name_prefixes
|
53
|
+
# @return [::Array<::String>]
|
54
|
+
# Match versions by package prefix. Applied on any prefix match.
|
55
|
+
# @!attribute [rw] older_than
|
56
|
+
# @return [::Google::Protobuf::Duration]
|
57
|
+
# Match versions older than a duration.
|
58
|
+
# @!attribute [rw] newer_than
|
59
|
+
# @return [::Google::Protobuf::Duration]
|
60
|
+
# Match versions newer than a duration.
|
61
|
+
class CleanupPolicyCondition
|
62
|
+
include ::Google::Protobuf::MessageExts
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
64
|
+
|
65
|
+
# Statuses applying to versions.
|
66
|
+
module TagState
|
67
|
+
# Tag status not specified.
|
68
|
+
TAG_STATE_UNSPECIFIED = 0
|
69
|
+
|
70
|
+
# Applies to tagged versions only.
|
71
|
+
TAGGED = 1
|
72
|
+
|
73
|
+
# Applies to untagged versions only.
|
74
|
+
UNTAGGED = 2
|
75
|
+
|
76
|
+
# Applies to all versions.
|
77
|
+
ANY = 3
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy
|
82
|
+
# for retaining a minimum number of versions.
|
83
|
+
# @!attribute [rw] package_name_prefixes
|
84
|
+
# @return [::Array<::String>]
|
85
|
+
# List of package name prefixes that will apply this rule.
|
86
|
+
# @!attribute [rw] keep_count
|
87
|
+
# @return [::Integer]
|
88
|
+
# Minimum number of versions to keep.
|
89
|
+
class CleanupPolicyMostRecentVersions
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
|
+
end
|
93
|
+
|
94
|
+
# Artifact policy configuration for repository cleanup policies.
|
95
|
+
# @!attribute [rw] condition
|
96
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::CleanupPolicyCondition]
|
97
|
+
# Policy condition for matching versions.
|
98
|
+
# @!attribute [rw] most_recent_versions
|
99
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::CleanupPolicyMostRecentVersions]
|
100
|
+
# Policy condition for retaining a minimum number of versions. May only be
|
101
|
+
# specified with a Keep action.
|
102
|
+
# @!attribute [rw] id
|
103
|
+
# @return [::String]
|
104
|
+
# The user-provided ID of the cleanup policy.
|
105
|
+
# @!attribute [rw] action
|
106
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::CleanupPolicy::Action]
|
107
|
+
# Policy action.
|
108
|
+
class CleanupPolicy
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
|
112
|
+
# Action type for a cleanup policy.
|
113
|
+
module Action
|
114
|
+
# Action not specified.
|
115
|
+
ACTION_UNSPECIFIED = 0
|
116
|
+
|
117
|
+
# Delete action.
|
118
|
+
DELETE = 1
|
119
|
+
|
120
|
+
# Keep action.
|
121
|
+
KEEP = 2
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# Virtual repository configuration.
|
126
|
+
# @!attribute [rw] upstream_policies
|
127
|
+
# @return [::Array<::Google::Cloud::ArtifactRegistry::V1::UpstreamPolicy>]
|
128
|
+
# Policies that configure the upstream artifacts distributed by the Virtual
|
129
|
+
# Repository. Upstream policies cannot be set on a standard repository.
|
130
|
+
class VirtualRepositoryConfig
|
131
|
+
include ::Google::Protobuf::MessageExts
|
132
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
133
|
+
end
|
134
|
+
|
135
|
+
# Remote repository configuration.
|
136
|
+
# @!attribute [rw] docker_repository
|
137
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::DockerRepository]
|
138
|
+
# Specific settings for a Docker remote repository.
|
139
|
+
# @!attribute [rw] maven_repository
|
140
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::MavenRepository]
|
141
|
+
# Specific settings for a Maven remote repository.
|
142
|
+
# @!attribute [rw] npm_repository
|
143
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::NpmRepository]
|
144
|
+
# Specific settings for an Npm remote repository.
|
145
|
+
# @!attribute [rw] python_repository
|
146
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::PythonRepository]
|
147
|
+
# Specific settings for a Python remote repository.
|
148
|
+
# @!attribute [rw] apt_repository
|
149
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::AptRepository]
|
150
|
+
# Specific settings for an Apt remote repository.
|
151
|
+
# @!attribute [rw] yum_repository
|
152
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::YumRepository]
|
153
|
+
# Specific settings for a Yum remote repository.
|
154
|
+
# @!attribute [rw] description
|
155
|
+
# @return [::String]
|
156
|
+
# The description of the remote source.
|
157
|
+
# @!attribute [rw] upstream_credentials
|
158
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::UpstreamCredentials]
|
159
|
+
# Optional. The credentials used to access the remote repository.
|
160
|
+
class RemoteRepositoryConfig
|
161
|
+
include ::Google::Protobuf::MessageExts
|
162
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
163
|
+
|
164
|
+
# The credentials to access the remote repository.
|
165
|
+
# @!attribute [rw] username_password_credentials
|
166
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::UpstreamCredentials::UsernamePasswordCredentials]
|
167
|
+
# Use username and password to access the remote repository.
|
168
|
+
class UpstreamCredentials
|
169
|
+
include ::Google::Protobuf::MessageExts
|
170
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
171
|
+
|
172
|
+
# Username and password credentials.
|
173
|
+
# @!attribute [rw] username
|
174
|
+
# @return [::String]
|
175
|
+
# The username to access the remote repository.
|
176
|
+
# @!attribute [rw] password_secret_version
|
177
|
+
# @return [::String]
|
178
|
+
# The Secret Manager key version that holds the password to access the
|
179
|
+
# remote repository. Must be in the format of
|
180
|
+
# `projects/{project}/secrets/{secret}/versions/{version}`.
|
181
|
+
class UsernamePasswordCredentials
|
182
|
+
include ::Google::Protobuf::MessageExts
|
183
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# Configuration for a Docker remote repository.
|
188
|
+
# @!attribute [rw] public_repository
|
189
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::DockerRepository::PublicRepository]
|
190
|
+
# One of the publicly available Docker repositories supported by Artifact
|
191
|
+
# Registry.
|
192
|
+
class DockerRepository
|
193
|
+
include ::Google::Protobuf::MessageExts
|
194
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
195
|
+
|
196
|
+
# Predefined list of publicly available Docker repositories like Docker
|
197
|
+
# Hub.
|
198
|
+
module PublicRepository
|
199
|
+
# Unspecified repository.
|
200
|
+
PUBLIC_REPOSITORY_UNSPECIFIED = 0
|
201
|
+
|
202
|
+
# Docker Hub.
|
203
|
+
DOCKER_HUB = 1
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
# Configuration for a Maven remote repository.
|
208
|
+
# @!attribute [rw] public_repository
|
209
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::MavenRepository::PublicRepository]
|
210
|
+
# One of the publicly available Maven repositories supported by Artifact
|
211
|
+
# Registry.
|
212
|
+
class MavenRepository
|
213
|
+
include ::Google::Protobuf::MessageExts
|
214
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
215
|
+
|
216
|
+
# Predefined list of publicly available Maven repositories like Maven
|
217
|
+
# Central.
|
218
|
+
module PublicRepository
|
219
|
+
# Unspecified repository.
|
220
|
+
PUBLIC_REPOSITORY_UNSPECIFIED = 0
|
221
|
+
|
222
|
+
# Maven Central.
|
223
|
+
MAVEN_CENTRAL = 1
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
# Configuration for a Npm remote repository.
|
228
|
+
# @!attribute [rw] public_repository
|
229
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::NpmRepository::PublicRepository]
|
230
|
+
# One of the publicly available Npm repositories supported by Artifact
|
231
|
+
# Registry.
|
232
|
+
class NpmRepository
|
233
|
+
include ::Google::Protobuf::MessageExts
|
234
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
235
|
+
|
236
|
+
# Predefined list of publicly available NPM repositories like npmjs.
|
237
|
+
module PublicRepository
|
238
|
+
# Unspecified repository.
|
239
|
+
PUBLIC_REPOSITORY_UNSPECIFIED = 0
|
240
|
+
|
241
|
+
# npmjs.
|
242
|
+
NPMJS = 1
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
# Configuration for a Python remote repository.
|
247
|
+
# @!attribute [rw] public_repository
|
248
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::PythonRepository::PublicRepository]
|
249
|
+
# One of the publicly available Python repositories supported by Artifact
|
250
|
+
# Registry.
|
251
|
+
class PythonRepository
|
252
|
+
include ::Google::Protobuf::MessageExts
|
253
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
254
|
+
|
255
|
+
# Predefined list of publicly available Python repositories like PyPI.org.
|
256
|
+
module PublicRepository
|
257
|
+
# Unspecified repository.
|
258
|
+
PUBLIC_REPOSITORY_UNSPECIFIED = 0
|
259
|
+
|
260
|
+
# PyPI.
|
261
|
+
PYPI = 1
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# Configuration for an Apt remote repository.
|
266
|
+
# @!attribute [rw] public_repository
|
267
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::AptRepository::PublicRepository]
|
268
|
+
# One of the publicly available Apt repositories supported by Artifact
|
269
|
+
# Registry.
|
270
|
+
class AptRepository
|
271
|
+
include ::Google::Protobuf::MessageExts
|
272
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
273
|
+
|
274
|
+
# Publicly available Apt repositories constructed from a common repository
|
275
|
+
# base and a custom repository path.
|
276
|
+
# @!attribute [rw] repository_base
|
277
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::AptRepository::PublicRepository::RepositoryBase]
|
278
|
+
# A common public repository base for Apt.
|
279
|
+
# @!attribute [rw] repository_path
|
280
|
+
# @return [::String]
|
281
|
+
# A custom field to define a path to a specific repository from the base.
|
282
|
+
class PublicRepository
|
283
|
+
include ::Google::Protobuf::MessageExts
|
284
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
285
|
+
|
286
|
+
# Predefined list of publicly available repository bases for Apt.
|
287
|
+
module RepositoryBase
|
288
|
+
# Unspecified repository base.
|
289
|
+
REPOSITORY_BASE_UNSPECIFIED = 0
|
290
|
+
|
291
|
+
# Debian.
|
292
|
+
DEBIAN = 1
|
293
|
+
|
294
|
+
# Ubuntu LTS/Pro.
|
295
|
+
UBUNTU = 2
|
296
|
+
end
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
# Configuration for a Yum remote repository.
|
301
|
+
# @!attribute [rw] public_repository
|
302
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::YumRepository::PublicRepository]
|
303
|
+
# One of the publicly available Yum repositories supported by Artifact
|
304
|
+
# Registry.
|
305
|
+
class YumRepository
|
306
|
+
include ::Google::Protobuf::MessageExts
|
307
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
308
|
+
|
309
|
+
# Publicly available Yum repositories constructed from a common repository
|
310
|
+
# base and a custom repository path.
|
311
|
+
# @!attribute [rw] repository_base
|
312
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig::YumRepository::PublicRepository::RepositoryBase]
|
313
|
+
# A common public repository base for Yum.
|
314
|
+
# @!attribute [rw] repository_path
|
315
|
+
# @return [::String]
|
316
|
+
# A custom field to define a path to a specific repository from the base.
|
317
|
+
class PublicRepository
|
318
|
+
include ::Google::Protobuf::MessageExts
|
319
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
320
|
+
|
321
|
+
# Predefined list of publicly available repository bases for Yum.
|
322
|
+
module RepositoryBase
|
323
|
+
# Unspecified repository base.
|
324
|
+
REPOSITORY_BASE_UNSPECIFIED = 0
|
325
|
+
|
326
|
+
# CentOS.
|
327
|
+
CENTOS = 1
|
328
|
+
|
329
|
+
# CentOS Debug.
|
330
|
+
CENTOS_DEBUG = 2
|
331
|
+
|
332
|
+
# CentOS Vault.
|
333
|
+
CENTOS_VAULT = 3
|
334
|
+
|
335
|
+
# CentOS Stream.
|
336
|
+
CENTOS_STREAM = 4
|
337
|
+
|
338
|
+
# Rocky.
|
339
|
+
ROCKY = 5
|
340
|
+
|
341
|
+
# Fedora Extra Packages for Enterprise Linux (EPEL).
|
342
|
+
EPEL = 6
|
343
|
+
end
|
344
|
+
end
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
24
348
|
# A Repository for storing artifacts with a specific format.
|
25
349
|
# @!attribute [rw] maven_config
|
26
350
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig]
|
27
351
|
# Maven repository config contains repository level configuration
|
28
352
|
# for the repositories of maven type.
|
353
|
+
# @!attribute [rw] docker_config
|
354
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository::DockerRepositoryConfig]
|
355
|
+
# Docker repository config contains repository level configuration
|
356
|
+
# for the repositories of docker type.
|
357
|
+
# @!attribute [rw] virtual_repository_config
|
358
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::VirtualRepositoryConfig]
|
359
|
+
# Configuration specific for a Virtual Repository.
|
360
|
+
# @!attribute [rw] remote_repository_config
|
361
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig]
|
362
|
+
# Configuration specific for a Remote Repository.
|
29
363
|
# @!attribute [rw] name
|
30
364
|
# @return [::String]
|
31
365
|
# The name of the repository, for example:
|
32
|
-
#
|
366
|
+
# `projects/p1/locations/us-central1/repositories/repo1`.
|
33
367
|
# @!attribute [rw] format
|
34
368
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository::Format]
|
35
|
-
# The format of packages that are stored in the repository.
|
369
|
+
# Optional. The format of packages that are stored in the repository.
|
36
370
|
# @!attribute [rw] description
|
37
371
|
# @return [::String]
|
38
372
|
# The user-provided description of the repository.
|
@@ -43,18 +377,39 @@ module Google
|
|
43
377
|
# longer than 63 characters. Label keys must begin with a lowercase letter
|
44
378
|
# and may only contain lowercase letters, numeric characters, underscores,
|
45
379
|
# and dashes.
|
46
|
-
# @!attribute [
|
380
|
+
# @!attribute [r] create_time
|
47
381
|
# @return [::Google::Protobuf::Timestamp]
|
48
|
-
# The time when the repository was created.
|
49
|
-
# @!attribute [
|
382
|
+
# Output only. The time when the repository was created.
|
383
|
+
# @!attribute [r] update_time
|
50
384
|
# @return [::Google::Protobuf::Timestamp]
|
51
|
-
# The time when the repository was last updated.
|
385
|
+
# Output only. The time when the repository was last updated.
|
52
386
|
# @!attribute [rw] kms_key_name
|
53
387
|
# @return [::String]
|
54
388
|
# The Cloud KMS resource name of the customer managed encryption key that's
|
55
389
|
# used to encrypt the contents of the Repository. Has the form:
|
56
390
|
# `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`.
|
57
391
|
# This value may not be changed after the Repository has been created.
|
392
|
+
# @!attribute [rw] mode
|
393
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository::Mode]
|
394
|
+
# Optional. The mode of the repository.
|
395
|
+
# @!attribute [rw] cleanup_policies
|
396
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ArtifactRegistry::V1::CleanupPolicy}]
|
397
|
+
# Optional. Cleanup policies for this repository. Cleanup policies indicate
|
398
|
+
# when certain package versions can be automatically deleted. Map keys are
|
399
|
+
# policy IDs supplied by users during policy creation. They must unique
|
400
|
+
# within a repository and be under 128 characters in length.
|
401
|
+
# @!attribute [r] size_bytes
|
402
|
+
# @return [::Integer]
|
403
|
+
# Output only. The size, in bytes, of all artifact storage in this
|
404
|
+
# repository. Repositories that are generally available or in public preview
|
405
|
+
# use this to calculate storage costs.
|
406
|
+
# @!attribute [r] satisfies_pzs
|
407
|
+
# @return [::Boolean]
|
408
|
+
# Output only. If set, the repository satisfies physical zone separation.
|
409
|
+
# @!attribute [rw] cleanup_policy_dry_run
|
410
|
+
# @return [::Boolean]
|
411
|
+
# Optional. If true, the cleanup pipeline is prevented from deleting versions
|
412
|
+
# in this repository.
|
58
413
|
class Repository
|
59
414
|
include ::Google::Protobuf::MessageExts
|
60
415
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -88,6 +443,19 @@ module Google
|
|
88
443
|
end
|
89
444
|
end
|
90
445
|
|
446
|
+
# DockerRepositoryConfig is docker related repository details.
|
447
|
+
# Provides additional configuration details for repositories of the docker
|
448
|
+
# format type.
|
449
|
+
# @!attribute [rw] immutable_tags
|
450
|
+
# @return [::Boolean]
|
451
|
+
# The repository which enabled this flag prevents all tags from being
|
452
|
+
# modified, moved or deleted. This does not prevent tags from being
|
453
|
+
# created.
|
454
|
+
class DockerRepositoryConfig
|
455
|
+
include ::Google::Protobuf::MessageExts
|
456
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
457
|
+
end
|
458
|
+
|
91
459
|
# @!attribute [rw] key
|
92
460
|
# @return [::String]
|
93
461
|
# @!attribute [rw] value
|
@@ -97,6 +465,15 @@ module Google
|
|
97
465
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
98
466
|
end
|
99
467
|
|
468
|
+
# @!attribute [rw] key
|
469
|
+
# @return [::String]
|
470
|
+
# @!attribute [rw] value
|
471
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::CleanupPolicy]
|
472
|
+
class CleanupPoliciesEntry
|
473
|
+
include ::Google::Protobuf::MessageExts
|
474
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
475
|
+
end
|
476
|
+
|
100
477
|
# A package format.
|
101
478
|
module Format
|
102
479
|
# Unspecified package format.
|
@@ -119,13 +496,36 @@ module Google
|
|
119
496
|
|
120
497
|
# Python package format.
|
121
498
|
PYTHON = 8
|
499
|
+
|
500
|
+
# Kubeflow Pipelines package format.
|
501
|
+
KFP = 9
|
502
|
+
|
503
|
+
# Go package format.
|
504
|
+
GO = 10
|
505
|
+
end
|
506
|
+
|
507
|
+
# The mode configures the repository to serve artifacts from different
|
508
|
+
# sources.
|
509
|
+
module Mode
|
510
|
+
# Unspecified mode.
|
511
|
+
MODE_UNSPECIFIED = 0
|
512
|
+
|
513
|
+
# A standard repository storing artifacts.
|
514
|
+
STANDARD_REPOSITORY = 1
|
515
|
+
|
516
|
+
# A virtual repository to serve artifacts from one or more sources.
|
517
|
+
VIRTUAL_REPOSITORY = 2
|
518
|
+
|
519
|
+
# A remote repository to serve artifacts from a remote source.
|
520
|
+
REMOTE_REPOSITORY = 3
|
122
521
|
end
|
123
522
|
end
|
124
523
|
|
125
524
|
# The request to list repositories.
|
126
525
|
# @!attribute [rw] parent
|
127
526
|
# @return [::String]
|
128
|
-
# Required. The name of the parent resource whose repositories will be
|
527
|
+
# Required. The name of the parent resource whose repositories will be
|
528
|
+
# listed.
|
129
529
|
# @!attribute [rw] page_size
|
130
530
|
# @return [::Integer]
|
131
531
|
# The maximum number of repositories to return. Maximum page size is 1,000.
|
@@ -162,13 +562,14 @@ module Google
|
|
162
562
|
# The request to create a new repository.
|
163
563
|
# @!attribute [rw] parent
|
164
564
|
# @return [::String]
|
165
|
-
# Required. The name of the parent resource where the repository will be
|
565
|
+
# Required. The name of the parent resource where the repository will be
|
566
|
+
# created.
|
166
567
|
# @!attribute [rw] repository_id
|
167
568
|
# @return [::String]
|
168
|
-
# The repository id to use for this repository.
|
569
|
+
# Required. The repository id to use for this repository.
|
169
570
|
# @!attribute [rw] repository
|
170
571
|
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository]
|
171
|
-
# The repository to be created.
|
572
|
+
# Required. The repository to be created.
|
172
573
|
class CreateRepositoryRequest
|
173
574
|
include ::Google::Protobuf::MessageExts
|
174
575
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -44,7 +44,9 @@ module Google
|
|
44
44
|
# The request to list tags.
|
45
45
|
# @!attribute [rw] parent
|
46
46
|
# @return [::String]
|
47
|
-
# The name of the parent
|
47
|
+
# The name of the parent package whose tags will be listed.
|
48
|
+
# For example:
|
49
|
+
# `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
|
48
50
|
# @!attribute [rw] filter
|
49
51
|
# @return [::String]
|
50
52
|
# An expression for filtering the results of the request. Filter rules are
|
@@ -114,6 +114,22 @@ module Google
|
|
114
114
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
115
115
|
end
|
116
116
|
|
117
|
+
# The request to delete multiple versions across a repository.
|
118
|
+
# @!attribute [rw] parent
|
119
|
+
# @return [::String]
|
120
|
+
# The name of the repository holding all requested versions.
|
121
|
+
# @!attribute [rw] names
|
122
|
+
# @return [::Array<::String>]
|
123
|
+
# Required. The names of the versions to delete.
|
124
|
+
# A maximum of 10000 versions can be deleted in a batch.
|
125
|
+
# @!attribute [rw] validate_only
|
126
|
+
# @return [::Boolean]
|
127
|
+
# If true, the request is performed without deleting data, following AIP-163.
|
128
|
+
class BatchDeleteVersionsRequest
|
129
|
+
include ::Google::Protobuf::MessageExts
|
130
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
131
|
+
end
|
132
|
+
|
117
133
|
# The metadata of an LRO from deleting multiple versions.
|
118
134
|
# @!attribute [rw] failed_versions
|
119
135
|
# @return [::Array<::String>]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-artifact_registry-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.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-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|