google-cloud-artifact_registry-v1 0.7.0 → 0.8.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/README.md +1 -1
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +60 -78
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +12 -14
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +2888 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/operations.rb +793 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +2123 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest.rb +66 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry.rb +6 -0
- data/lib/google/cloud/artifact_registry/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/artifact_registry/v1/rest.rb +38 -0
- data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
- data/lib/google/cloud/artifact_registry/v1.rb +5 -0
- metadata +16 -9
@@ -0,0 +1,2888 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/errors"
|
20
|
+
require "google/devtools/artifactregistry/v1/service_pb"
|
21
|
+
require "google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub"
|
22
|
+
require "google/cloud/location/rest"
|
23
|
+
|
24
|
+
module Google
|
25
|
+
module Cloud
|
26
|
+
module ArtifactRegistry
|
27
|
+
module V1
|
28
|
+
module ArtifactRegistry
|
29
|
+
module Rest
|
30
|
+
##
|
31
|
+
# REST client for the ArtifactRegistry service.
|
32
|
+
#
|
33
|
+
# The Artifact Registry API service.
|
34
|
+
#
|
35
|
+
# Artifact Registry is an artifact management system for storing artifacts
|
36
|
+
# from different package management systems.
|
37
|
+
#
|
38
|
+
# The resources managed by this API are:
|
39
|
+
#
|
40
|
+
# * Repositories, which group packages and their data.
|
41
|
+
# * Packages, which group versions and their tags.
|
42
|
+
# * Versions, which are specific forms of a package.
|
43
|
+
# * Tags, which represent alternative names for versions.
|
44
|
+
# * Files, which contain content and are optionally associated with a Package
|
45
|
+
# or Version.
|
46
|
+
#
|
47
|
+
class Client
|
48
|
+
include Paths
|
49
|
+
|
50
|
+
# @private
|
51
|
+
attr_reader :artifact_registry_stub
|
52
|
+
|
53
|
+
##
|
54
|
+
# Configure the ArtifactRegistry Client class.
|
55
|
+
#
|
56
|
+
# See {::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client::Configuration}
|
57
|
+
# for a description of the configuration fields.
|
58
|
+
#
|
59
|
+
# @example
|
60
|
+
#
|
61
|
+
# # Modify the configuration for all ArtifactRegistry clients
|
62
|
+
# ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.configure do |config|
|
63
|
+
# config.timeout = 10.0
|
64
|
+
# end
|
65
|
+
#
|
66
|
+
# @yield [config] Configure the Client client.
|
67
|
+
# @yieldparam config [Client::Configuration]
|
68
|
+
#
|
69
|
+
# @return [Client::Configuration]
|
70
|
+
#
|
71
|
+
def self.configure
|
72
|
+
@configure ||= begin
|
73
|
+
namespace = ["Google", "Cloud", "ArtifactRegistry", "V1"]
|
74
|
+
parent_config = while namespace.any?
|
75
|
+
parent_name = namespace.join "::"
|
76
|
+
parent_const = const_get parent_name
|
77
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
78
|
+
namespace.pop
|
79
|
+
end
|
80
|
+
default_config = Client::Configuration.new parent_config
|
81
|
+
|
82
|
+
default_config.timeout = 60.0
|
83
|
+
|
84
|
+
default_config
|
85
|
+
end
|
86
|
+
yield @configure if block_given?
|
87
|
+
@configure
|
88
|
+
end
|
89
|
+
|
90
|
+
##
|
91
|
+
# Configure the ArtifactRegistry Client instance.
|
92
|
+
#
|
93
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
94
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
95
|
+
# should be made on {Client.configure}.
|
96
|
+
#
|
97
|
+
# See {::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client::Configuration}
|
98
|
+
# for a description of the configuration fields.
|
99
|
+
#
|
100
|
+
# @yield [config] Configure the Client client.
|
101
|
+
# @yieldparam config [Client::Configuration]
|
102
|
+
#
|
103
|
+
# @return [Client::Configuration]
|
104
|
+
#
|
105
|
+
def configure
|
106
|
+
yield @config if block_given?
|
107
|
+
@config
|
108
|
+
end
|
109
|
+
|
110
|
+
##
|
111
|
+
# Create a new ArtifactRegistry REST client object.
|
112
|
+
#
|
113
|
+
# @example
|
114
|
+
#
|
115
|
+
# # Create a client using the default configuration
|
116
|
+
# client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
117
|
+
#
|
118
|
+
# # Create a client using a custom configuration
|
119
|
+
# client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new do |config|
|
120
|
+
# config.timeout = 10.0
|
121
|
+
# end
|
122
|
+
#
|
123
|
+
# @yield [config] Configure the ArtifactRegistry client.
|
124
|
+
# @yieldparam config [Client::Configuration]
|
125
|
+
#
|
126
|
+
def initialize
|
127
|
+
# Create the configuration object
|
128
|
+
@config = Configuration.new Client.configure
|
129
|
+
|
130
|
+
# Yield the configuration if needed
|
131
|
+
yield @config if block_given?
|
132
|
+
|
133
|
+
# Create credentials
|
134
|
+
credentials = @config.credentials
|
135
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
136
|
+
# but only if the default endpoint does not have a region prefix.
|
137
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
138
|
+
!@config.endpoint.split(".").first.include?("-")
|
139
|
+
credentials ||= Credentials.default scope: @config.scope,
|
140
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
141
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
142
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
143
|
+
end
|
144
|
+
|
145
|
+
@quota_project_id = @config.quota_project
|
146
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
147
|
+
|
148
|
+
@operations_client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Operations.new do |config|
|
149
|
+
config.credentials = credentials
|
150
|
+
config.quota_project = @quota_project_id
|
151
|
+
config.endpoint = @config.endpoint
|
152
|
+
end
|
153
|
+
|
154
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
155
|
+
config.credentials = credentials
|
156
|
+
config.quota_project = @quota_project_id
|
157
|
+
config.endpoint = @config.endpoint
|
158
|
+
config.bindings_override = @config.bindings_override
|
159
|
+
end
|
160
|
+
|
161
|
+
@artifact_registry_stub = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
162
|
+
end
|
163
|
+
|
164
|
+
##
|
165
|
+
# Get the associated client for long-running operations.
|
166
|
+
#
|
167
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Operations]
|
168
|
+
#
|
169
|
+
attr_reader :operations_client
|
170
|
+
|
171
|
+
##
|
172
|
+
# Get the associated client for mix-in of the Locations.
|
173
|
+
#
|
174
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
175
|
+
#
|
176
|
+
attr_reader :location_client
|
177
|
+
|
178
|
+
# Service calls
|
179
|
+
|
180
|
+
##
|
181
|
+
# Lists docker images.
|
182
|
+
#
|
183
|
+
# @overload list_docker_images(request, options = nil)
|
184
|
+
# Pass arguments to `list_docker_images` via a request object, either of type
|
185
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest} or an equivalent Hash.
|
186
|
+
#
|
187
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest, ::Hash]
|
188
|
+
# A request object representing the call parameters. Required. To specify no
|
189
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
190
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
191
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
192
|
+
#
|
193
|
+
# @overload list_docker_images(parent: nil, page_size: nil, page_token: nil, order_by: nil)
|
194
|
+
# Pass arguments to `list_docker_images` via keyword arguments. Note that at
|
195
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
196
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
197
|
+
#
|
198
|
+
# @param parent [::String]
|
199
|
+
# Required. The name of the parent resource whose docker images will be
|
200
|
+
# listed.
|
201
|
+
# @param page_size [::Integer]
|
202
|
+
# The maximum number of artifacts to return.
|
203
|
+
# @param page_token [::String]
|
204
|
+
# The next_page_token value returned from a previous list request, if any.
|
205
|
+
# @param order_by [::String]
|
206
|
+
# The field to order the results by.
|
207
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
208
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::DockerImage>]
|
209
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
210
|
+
#
|
211
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::DockerImage>]
|
212
|
+
#
|
213
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
214
|
+
def list_docker_images request, options = nil
|
215
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
216
|
+
|
217
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest
|
218
|
+
|
219
|
+
# Converts hash and nil to an options object
|
220
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
221
|
+
|
222
|
+
# Customize the options with defaults
|
223
|
+
call_metadata = @config.rpcs.list_docker_images.metadata.to_h
|
224
|
+
|
225
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
226
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
227
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
228
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
229
|
+
transports_version_send: [:rest]
|
230
|
+
|
231
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
232
|
+
|
233
|
+
options.apply_defaults timeout: @config.rpcs.list_docker_images.timeout,
|
234
|
+
metadata: call_metadata,
|
235
|
+
retry_policy: @config.rpcs.list_docker_images.retry_policy
|
236
|
+
|
237
|
+
options.apply_defaults timeout: @config.timeout,
|
238
|
+
metadata: @config.metadata,
|
239
|
+
retry_policy: @config.retry_policy
|
240
|
+
|
241
|
+
@artifact_registry_stub.list_docker_images request, options do |result, operation|
|
242
|
+
result = ::Gapic::Rest::PagedEnumerable.new @artifact_registry_stub, :list_docker_images, "docker_images", request, result, options
|
243
|
+
yield result, operation if block_given?
|
244
|
+
return result
|
245
|
+
end
|
246
|
+
rescue ::Gapic::Rest::Error => e
|
247
|
+
raise ::Google::Cloud::Error.from_error(e)
|
248
|
+
end
|
249
|
+
|
250
|
+
##
|
251
|
+
# Gets a docker image.
|
252
|
+
#
|
253
|
+
# @overload get_docker_image(request, options = nil)
|
254
|
+
# Pass arguments to `get_docker_image` via a request object, either of type
|
255
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetDockerImageRequest} or an equivalent Hash.
|
256
|
+
#
|
257
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetDockerImageRequest, ::Hash]
|
258
|
+
# A request object representing the call parameters. Required. To specify no
|
259
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
260
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
261
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
262
|
+
#
|
263
|
+
# @overload get_docker_image(name: nil)
|
264
|
+
# Pass arguments to `get_docker_image` via keyword arguments. Note that at
|
265
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
266
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
267
|
+
#
|
268
|
+
# @param name [::String]
|
269
|
+
# Required. The name of the docker images.
|
270
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
271
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::DockerImage]
|
272
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
273
|
+
#
|
274
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::DockerImage]
|
275
|
+
#
|
276
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
277
|
+
def get_docker_image request, options = nil
|
278
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
279
|
+
|
280
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetDockerImageRequest
|
281
|
+
|
282
|
+
# Converts hash and nil to an options object
|
283
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
284
|
+
|
285
|
+
# Customize the options with defaults
|
286
|
+
call_metadata = @config.rpcs.get_docker_image.metadata.to_h
|
287
|
+
|
288
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
289
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
290
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
291
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
292
|
+
transports_version_send: [:rest]
|
293
|
+
|
294
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
|
+
|
296
|
+
options.apply_defaults timeout: @config.rpcs.get_docker_image.timeout,
|
297
|
+
metadata: call_metadata,
|
298
|
+
retry_policy: @config.rpcs.get_docker_image.retry_policy
|
299
|
+
|
300
|
+
options.apply_defaults timeout: @config.timeout,
|
301
|
+
metadata: @config.metadata,
|
302
|
+
retry_policy: @config.retry_policy
|
303
|
+
|
304
|
+
@artifact_registry_stub.get_docker_image request, options do |result, operation|
|
305
|
+
yield result, operation if block_given?
|
306
|
+
return result
|
307
|
+
end
|
308
|
+
rescue ::Gapic::Rest::Error => e
|
309
|
+
raise ::Google::Cloud::Error.from_error(e)
|
310
|
+
end
|
311
|
+
|
312
|
+
##
|
313
|
+
# Lists maven artifacts.
|
314
|
+
#
|
315
|
+
# @overload list_maven_artifacts(request, options = nil)
|
316
|
+
# Pass arguments to `list_maven_artifacts` via a request object, either of type
|
317
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsRequest} or an equivalent Hash.
|
318
|
+
#
|
319
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsRequest, ::Hash]
|
320
|
+
# A request object representing the call parameters. Required. To specify no
|
321
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
322
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
323
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
324
|
+
#
|
325
|
+
# @overload list_maven_artifacts(parent: nil, page_size: nil, page_token: nil)
|
326
|
+
# Pass arguments to `list_maven_artifacts` via keyword arguments. Note that at
|
327
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
328
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
329
|
+
#
|
330
|
+
# @param parent [::String]
|
331
|
+
# Required. The name of the parent resource whose maven artifacts will be
|
332
|
+
# listed.
|
333
|
+
# @param page_size [::Integer]
|
334
|
+
# The maximum number of artifacts to return.
|
335
|
+
# @param page_token [::String]
|
336
|
+
# The next_page_token value returned from a previous list request, if any.
|
337
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
338
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::MavenArtifact>]
|
339
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
340
|
+
#
|
341
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::MavenArtifact>]
|
342
|
+
#
|
343
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
344
|
+
def list_maven_artifacts request, options = nil
|
345
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
346
|
+
|
347
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsRequest
|
348
|
+
|
349
|
+
# Converts hash and nil to an options object
|
350
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
351
|
+
|
352
|
+
# Customize the options with defaults
|
353
|
+
call_metadata = @config.rpcs.list_maven_artifacts.metadata.to_h
|
354
|
+
|
355
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
356
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
357
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
358
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
359
|
+
transports_version_send: [:rest]
|
360
|
+
|
361
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
362
|
+
|
363
|
+
options.apply_defaults timeout: @config.rpcs.list_maven_artifacts.timeout,
|
364
|
+
metadata: call_metadata,
|
365
|
+
retry_policy: @config.rpcs.list_maven_artifacts.retry_policy
|
366
|
+
|
367
|
+
options.apply_defaults timeout: @config.timeout,
|
368
|
+
metadata: @config.metadata,
|
369
|
+
retry_policy: @config.retry_policy
|
370
|
+
|
371
|
+
@artifact_registry_stub.list_maven_artifacts request, options do |result, operation|
|
372
|
+
result = ::Gapic::Rest::PagedEnumerable.new @artifact_registry_stub, :list_maven_artifacts, "maven_artifacts", request, result, options
|
373
|
+
yield result, operation if block_given?
|
374
|
+
return result
|
375
|
+
end
|
376
|
+
rescue ::Gapic::Rest::Error => e
|
377
|
+
raise ::Google::Cloud::Error.from_error(e)
|
378
|
+
end
|
379
|
+
|
380
|
+
##
|
381
|
+
# Gets a maven artifact.
|
382
|
+
#
|
383
|
+
# @overload get_maven_artifact(request, options = nil)
|
384
|
+
# Pass arguments to `get_maven_artifact` via a request object, either of type
|
385
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetMavenArtifactRequest} or an equivalent Hash.
|
386
|
+
#
|
387
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetMavenArtifactRequest, ::Hash]
|
388
|
+
# A request object representing the call parameters. Required. To specify no
|
389
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
390
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
391
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
392
|
+
#
|
393
|
+
# @overload get_maven_artifact(name: nil)
|
394
|
+
# Pass arguments to `get_maven_artifact` via keyword arguments. Note that at
|
395
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
396
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
397
|
+
#
|
398
|
+
# @param name [::String]
|
399
|
+
# Required. The name of the maven artifact.
|
400
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
401
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::MavenArtifact]
|
402
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
403
|
+
#
|
404
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::MavenArtifact]
|
405
|
+
#
|
406
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
407
|
+
def get_maven_artifact request, options = nil
|
408
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
409
|
+
|
410
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetMavenArtifactRequest
|
411
|
+
|
412
|
+
# Converts hash and nil to an options object
|
413
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
414
|
+
|
415
|
+
# Customize the options with defaults
|
416
|
+
call_metadata = @config.rpcs.get_maven_artifact.metadata.to_h
|
417
|
+
|
418
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
419
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
420
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
421
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
422
|
+
transports_version_send: [:rest]
|
423
|
+
|
424
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
425
|
+
|
426
|
+
options.apply_defaults timeout: @config.rpcs.get_maven_artifact.timeout,
|
427
|
+
metadata: call_metadata,
|
428
|
+
retry_policy: @config.rpcs.get_maven_artifact.retry_policy
|
429
|
+
|
430
|
+
options.apply_defaults timeout: @config.timeout,
|
431
|
+
metadata: @config.metadata,
|
432
|
+
retry_policy: @config.retry_policy
|
433
|
+
|
434
|
+
@artifact_registry_stub.get_maven_artifact request, options do |result, operation|
|
435
|
+
yield result, operation if block_given?
|
436
|
+
return result
|
437
|
+
end
|
438
|
+
rescue ::Gapic::Rest::Error => e
|
439
|
+
raise ::Google::Cloud::Error.from_error(e)
|
440
|
+
end
|
441
|
+
|
442
|
+
##
|
443
|
+
# Lists npm packages.
|
444
|
+
#
|
445
|
+
# @overload list_npm_packages(request, options = nil)
|
446
|
+
# Pass arguments to `list_npm_packages` via a request object, either of type
|
447
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesRequest} or an equivalent Hash.
|
448
|
+
#
|
449
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesRequest, ::Hash]
|
450
|
+
# A request object representing the call parameters. Required. To specify no
|
451
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
452
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
453
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
454
|
+
#
|
455
|
+
# @overload list_npm_packages(parent: nil, page_size: nil, page_token: nil)
|
456
|
+
# Pass arguments to `list_npm_packages` via keyword arguments. Note that at
|
457
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
458
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
459
|
+
#
|
460
|
+
# @param parent [::String]
|
461
|
+
# Required. The name of the parent resource whose npm packages will be
|
462
|
+
# listed.
|
463
|
+
# @param page_size [::Integer]
|
464
|
+
# The maximum number of artifacts to return.
|
465
|
+
# @param page_token [::String]
|
466
|
+
# The next_page_token value returned from a previous list request, if any.
|
467
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
468
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::NpmPackage>]
|
469
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
470
|
+
#
|
471
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::NpmPackage>]
|
472
|
+
#
|
473
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
474
|
+
def list_npm_packages request, options = nil
|
475
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
476
|
+
|
477
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesRequest
|
478
|
+
|
479
|
+
# Converts hash and nil to an options object
|
480
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
481
|
+
|
482
|
+
# Customize the options with defaults
|
483
|
+
call_metadata = @config.rpcs.list_npm_packages.metadata.to_h
|
484
|
+
|
485
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
486
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
487
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
488
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
489
|
+
transports_version_send: [:rest]
|
490
|
+
|
491
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
492
|
+
|
493
|
+
options.apply_defaults timeout: @config.rpcs.list_npm_packages.timeout,
|
494
|
+
metadata: call_metadata,
|
495
|
+
retry_policy: @config.rpcs.list_npm_packages.retry_policy
|
496
|
+
|
497
|
+
options.apply_defaults timeout: @config.timeout,
|
498
|
+
metadata: @config.metadata,
|
499
|
+
retry_policy: @config.retry_policy
|
500
|
+
|
501
|
+
@artifact_registry_stub.list_npm_packages request, options do |result, operation|
|
502
|
+
result = ::Gapic::Rest::PagedEnumerable.new @artifact_registry_stub, :list_npm_packages, "npm_packages", request, result, options
|
503
|
+
yield result, operation if block_given?
|
504
|
+
return result
|
505
|
+
end
|
506
|
+
rescue ::Gapic::Rest::Error => e
|
507
|
+
raise ::Google::Cloud::Error.from_error(e)
|
508
|
+
end
|
509
|
+
|
510
|
+
##
|
511
|
+
# Gets a npm package.
|
512
|
+
#
|
513
|
+
# @overload get_npm_package(request, options = nil)
|
514
|
+
# Pass arguments to `get_npm_package` via a request object, either of type
|
515
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetNpmPackageRequest} or an equivalent Hash.
|
516
|
+
#
|
517
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetNpmPackageRequest, ::Hash]
|
518
|
+
# A request object representing the call parameters. Required. To specify no
|
519
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
520
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
521
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
522
|
+
#
|
523
|
+
# @overload get_npm_package(name: nil)
|
524
|
+
# Pass arguments to `get_npm_package` via keyword arguments. Note that at
|
525
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
526
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
527
|
+
#
|
528
|
+
# @param name [::String]
|
529
|
+
# Required. The name of the npm package.
|
530
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
531
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::NpmPackage]
|
532
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
533
|
+
#
|
534
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::NpmPackage]
|
535
|
+
#
|
536
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
537
|
+
def get_npm_package request, options = nil
|
538
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
539
|
+
|
540
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetNpmPackageRequest
|
541
|
+
|
542
|
+
# Converts hash and nil to an options object
|
543
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
544
|
+
|
545
|
+
# Customize the options with defaults
|
546
|
+
call_metadata = @config.rpcs.get_npm_package.metadata.to_h
|
547
|
+
|
548
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
549
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
550
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
551
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
552
|
+
transports_version_send: [:rest]
|
553
|
+
|
554
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
555
|
+
|
556
|
+
options.apply_defaults timeout: @config.rpcs.get_npm_package.timeout,
|
557
|
+
metadata: call_metadata,
|
558
|
+
retry_policy: @config.rpcs.get_npm_package.retry_policy
|
559
|
+
|
560
|
+
options.apply_defaults timeout: @config.timeout,
|
561
|
+
metadata: @config.metadata,
|
562
|
+
retry_policy: @config.retry_policy
|
563
|
+
|
564
|
+
@artifact_registry_stub.get_npm_package request, options do |result, operation|
|
565
|
+
yield result, operation if block_given?
|
566
|
+
return result
|
567
|
+
end
|
568
|
+
rescue ::Gapic::Rest::Error => e
|
569
|
+
raise ::Google::Cloud::Error.from_error(e)
|
570
|
+
end
|
571
|
+
|
572
|
+
##
|
573
|
+
# Lists python packages.
|
574
|
+
#
|
575
|
+
# @overload list_python_packages(request, options = nil)
|
576
|
+
# Pass arguments to `list_python_packages` via a request object, either of type
|
577
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesRequest} or an equivalent Hash.
|
578
|
+
#
|
579
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesRequest, ::Hash]
|
580
|
+
# A request object representing the call parameters. Required. To specify no
|
581
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
582
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
583
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
584
|
+
#
|
585
|
+
# @overload list_python_packages(parent: nil, page_size: nil, page_token: nil)
|
586
|
+
# Pass arguments to `list_python_packages` via keyword arguments. Note that at
|
587
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
588
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
589
|
+
#
|
590
|
+
# @param parent [::String]
|
591
|
+
# Required. The name of the parent resource whose python packages will be
|
592
|
+
# listed.
|
593
|
+
# @param page_size [::Integer]
|
594
|
+
# The maximum number of artifacts to return.
|
595
|
+
# @param page_token [::String]
|
596
|
+
# The next_page_token value returned from a previous list request, if any.
|
597
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
598
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::PythonPackage>]
|
599
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
600
|
+
#
|
601
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::PythonPackage>]
|
602
|
+
#
|
603
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
604
|
+
def list_python_packages request, options = nil
|
605
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
606
|
+
|
607
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesRequest
|
608
|
+
|
609
|
+
# Converts hash and nil to an options object
|
610
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
611
|
+
|
612
|
+
# Customize the options with defaults
|
613
|
+
call_metadata = @config.rpcs.list_python_packages.metadata.to_h
|
614
|
+
|
615
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
616
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
617
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
618
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
619
|
+
transports_version_send: [:rest]
|
620
|
+
|
621
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
622
|
+
|
623
|
+
options.apply_defaults timeout: @config.rpcs.list_python_packages.timeout,
|
624
|
+
metadata: call_metadata,
|
625
|
+
retry_policy: @config.rpcs.list_python_packages.retry_policy
|
626
|
+
|
627
|
+
options.apply_defaults timeout: @config.timeout,
|
628
|
+
metadata: @config.metadata,
|
629
|
+
retry_policy: @config.retry_policy
|
630
|
+
|
631
|
+
@artifact_registry_stub.list_python_packages request, options do |result, operation|
|
632
|
+
result = ::Gapic::Rest::PagedEnumerable.new @artifact_registry_stub, :list_python_packages, "python_packages", request, result, options
|
633
|
+
yield result, operation if block_given?
|
634
|
+
return result
|
635
|
+
end
|
636
|
+
rescue ::Gapic::Rest::Error => e
|
637
|
+
raise ::Google::Cloud::Error.from_error(e)
|
638
|
+
end
|
639
|
+
|
640
|
+
##
|
641
|
+
# Gets a python package.
|
642
|
+
#
|
643
|
+
# @overload get_python_package(request, options = nil)
|
644
|
+
# Pass arguments to `get_python_package` via a request object, either of type
|
645
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetPythonPackageRequest} or an equivalent Hash.
|
646
|
+
#
|
647
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetPythonPackageRequest, ::Hash]
|
648
|
+
# A request object representing the call parameters. Required. To specify no
|
649
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
650
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
651
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
652
|
+
#
|
653
|
+
# @overload get_python_package(name: nil)
|
654
|
+
# Pass arguments to `get_python_package` via keyword arguments. Note that at
|
655
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
656
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
657
|
+
#
|
658
|
+
# @param name [::String]
|
659
|
+
# Required. The name of the python package.
|
660
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
661
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::PythonPackage]
|
662
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
663
|
+
#
|
664
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::PythonPackage]
|
665
|
+
#
|
666
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
667
|
+
def get_python_package request, options = nil
|
668
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
669
|
+
|
670
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetPythonPackageRequest
|
671
|
+
|
672
|
+
# Converts hash and nil to an options object
|
673
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
674
|
+
|
675
|
+
# Customize the options with defaults
|
676
|
+
call_metadata = @config.rpcs.get_python_package.metadata.to_h
|
677
|
+
|
678
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
679
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
680
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
681
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
682
|
+
transports_version_send: [:rest]
|
683
|
+
|
684
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
685
|
+
|
686
|
+
options.apply_defaults timeout: @config.rpcs.get_python_package.timeout,
|
687
|
+
metadata: call_metadata,
|
688
|
+
retry_policy: @config.rpcs.get_python_package.retry_policy
|
689
|
+
|
690
|
+
options.apply_defaults timeout: @config.timeout,
|
691
|
+
metadata: @config.metadata,
|
692
|
+
retry_policy: @config.retry_policy
|
693
|
+
|
694
|
+
@artifact_registry_stub.get_python_package request, options do |result, operation|
|
695
|
+
yield result, operation if block_given?
|
696
|
+
return result
|
697
|
+
end
|
698
|
+
rescue ::Gapic::Rest::Error => e
|
699
|
+
raise ::Google::Cloud::Error.from_error(e)
|
700
|
+
end
|
701
|
+
|
702
|
+
##
|
703
|
+
# Imports Apt artifacts. The returned Operation will complete once the
|
704
|
+
# resources are imported. Package, Version, and File resources are created
|
705
|
+
# based on the imported artifacts. Imported artifacts that conflict with
|
706
|
+
# existing resources are ignored.
|
707
|
+
#
|
708
|
+
# @overload import_apt_artifacts(request, options = nil)
|
709
|
+
# Pass arguments to `import_apt_artifacts` via a request object, either of type
|
710
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsRequest} or an equivalent Hash.
|
711
|
+
#
|
712
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsRequest, ::Hash]
|
713
|
+
# A request object representing the call parameters. Required. To specify no
|
714
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
715
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
716
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
717
|
+
#
|
718
|
+
# @overload import_apt_artifacts(gcs_source: nil, parent: nil)
|
719
|
+
# Pass arguments to `import_apt_artifacts` via keyword arguments. Note that at
|
720
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
721
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
722
|
+
#
|
723
|
+
# @param gcs_source [::Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsGcsSource, ::Hash]
|
724
|
+
# Google Cloud Storage location where input content is located.
|
725
|
+
# @param parent [::String]
|
726
|
+
# The name of the parent resource where the artifacts will be imported.
|
727
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
728
|
+
# @yieldparam result [::Gapic::Operation]
|
729
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
730
|
+
#
|
731
|
+
# @return [::Gapic::Operation]
|
732
|
+
#
|
733
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
734
|
+
def import_apt_artifacts request, options = nil
|
735
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
736
|
+
|
737
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsRequest
|
738
|
+
|
739
|
+
# Converts hash and nil to an options object
|
740
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
741
|
+
|
742
|
+
# Customize the options with defaults
|
743
|
+
call_metadata = @config.rpcs.import_apt_artifacts.metadata.to_h
|
744
|
+
|
745
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
746
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
747
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
748
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
749
|
+
transports_version_send: [:rest]
|
750
|
+
|
751
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
752
|
+
|
753
|
+
options.apply_defaults timeout: @config.rpcs.import_apt_artifacts.timeout,
|
754
|
+
metadata: call_metadata,
|
755
|
+
retry_policy: @config.rpcs.import_apt_artifacts.retry_policy
|
756
|
+
|
757
|
+
options.apply_defaults timeout: @config.timeout,
|
758
|
+
metadata: @config.metadata,
|
759
|
+
retry_policy: @config.retry_policy
|
760
|
+
|
761
|
+
@artifact_registry_stub.import_apt_artifacts request, options do |result, operation|
|
762
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
763
|
+
yield result, operation if block_given?
|
764
|
+
return result
|
765
|
+
end
|
766
|
+
rescue ::Gapic::Rest::Error => e
|
767
|
+
raise ::Google::Cloud::Error.from_error(e)
|
768
|
+
end
|
769
|
+
|
770
|
+
##
|
771
|
+
# Imports Yum (RPM) artifacts. The returned Operation will complete once the
|
772
|
+
# resources are imported. Package, Version, and File resources are created
|
773
|
+
# based on the imported artifacts. Imported artifacts that conflict with
|
774
|
+
# existing resources are ignored.
|
775
|
+
#
|
776
|
+
# @overload import_yum_artifacts(request, options = nil)
|
777
|
+
# Pass arguments to `import_yum_artifacts` via a request object, either of type
|
778
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ImportYumArtifactsRequest} or an equivalent Hash.
|
779
|
+
#
|
780
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ImportYumArtifactsRequest, ::Hash]
|
781
|
+
# A request object representing the call parameters. Required. To specify no
|
782
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
783
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
784
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
785
|
+
#
|
786
|
+
# @overload import_yum_artifacts(gcs_source: nil, parent: nil)
|
787
|
+
# Pass arguments to `import_yum_artifacts` via keyword arguments. Note that at
|
788
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
789
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
790
|
+
#
|
791
|
+
# @param gcs_source [::Google::Cloud::ArtifactRegistry::V1::ImportYumArtifactsGcsSource, ::Hash]
|
792
|
+
# Google Cloud Storage location where input content is located.
|
793
|
+
# @param parent [::String]
|
794
|
+
# The name of the parent resource where the artifacts will be imported.
|
795
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
796
|
+
# @yieldparam result [::Gapic::Operation]
|
797
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
798
|
+
#
|
799
|
+
# @return [::Gapic::Operation]
|
800
|
+
#
|
801
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
802
|
+
def import_yum_artifacts request, options = nil
|
803
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
804
|
+
|
805
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ImportYumArtifactsRequest
|
806
|
+
|
807
|
+
# Converts hash and nil to an options object
|
808
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
809
|
+
|
810
|
+
# Customize the options with defaults
|
811
|
+
call_metadata = @config.rpcs.import_yum_artifacts.metadata.to_h
|
812
|
+
|
813
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
814
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
815
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
816
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
817
|
+
transports_version_send: [:rest]
|
818
|
+
|
819
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
820
|
+
|
821
|
+
options.apply_defaults timeout: @config.rpcs.import_yum_artifacts.timeout,
|
822
|
+
metadata: call_metadata,
|
823
|
+
retry_policy: @config.rpcs.import_yum_artifacts.retry_policy
|
824
|
+
|
825
|
+
options.apply_defaults timeout: @config.timeout,
|
826
|
+
metadata: @config.metadata,
|
827
|
+
retry_policy: @config.retry_policy
|
828
|
+
|
829
|
+
@artifact_registry_stub.import_yum_artifacts request, options do |result, operation|
|
830
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
831
|
+
yield result, operation if block_given?
|
832
|
+
return result
|
833
|
+
end
|
834
|
+
rescue ::Gapic::Rest::Error => e
|
835
|
+
raise ::Google::Cloud::Error.from_error(e)
|
836
|
+
end
|
837
|
+
|
838
|
+
##
|
839
|
+
# Lists repositories.
|
840
|
+
#
|
841
|
+
# @overload list_repositories(request, options = nil)
|
842
|
+
# Pass arguments to `list_repositories` via a request object, either of type
|
843
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest} or an equivalent Hash.
|
844
|
+
#
|
845
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest, ::Hash]
|
846
|
+
# A request object representing the call parameters. Required. To specify no
|
847
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
848
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
849
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
850
|
+
#
|
851
|
+
# @overload list_repositories(parent: nil, page_size: nil, page_token: nil)
|
852
|
+
# Pass arguments to `list_repositories` via keyword arguments. Note that at
|
853
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
854
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
855
|
+
#
|
856
|
+
# @param parent [::String]
|
857
|
+
# Required. The name of the parent resource whose repositories will be listed.
|
858
|
+
# @param page_size [::Integer]
|
859
|
+
# The maximum number of repositories to return. Maximum page size is 1,000.
|
860
|
+
# @param page_token [::String]
|
861
|
+
# The next_page_token value returned from a previous list request, if any.
|
862
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
863
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Repository>]
|
864
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
865
|
+
#
|
866
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Repository>]
|
867
|
+
#
|
868
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
869
|
+
def list_repositories request, options = nil
|
870
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
871
|
+
|
872
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest
|
873
|
+
|
874
|
+
# Converts hash and nil to an options object
|
875
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
876
|
+
|
877
|
+
# Customize the options with defaults
|
878
|
+
call_metadata = @config.rpcs.list_repositories.metadata.to_h
|
879
|
+
|
880
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
881
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
882
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
883
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
884
|
+
transports_version_send: [:rest]
|
885
|
+
|
886
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
887
|
+
|
888
|
+
options.apply_defaults timeout: @config.rpcs.list_repositories.timeout,
|
889
|
+
metadata: call_metadata,
|
890
|
+
retry_policy: @config.rpcs.list_repositories.retry_policy
|
891
|
+
|
892
|
+
options.apply_defaults timeout: @config.timeout,
|
893
|
+
metadata: @config.metadata,
|
894
|
+
retry_policy: @config.retry_policy
|
895
|
+
|
896
|
+
@artifact_registry_stub.list_repositories request, options do |result, operation|
|
897
|
+
result = ::Gapic::Rest::PagedEnumerable.new @artifact_registry_stub, :list_repositories, "repositories", request, result, options
|
898
|
+
yield result, operation if block_given?
|
899
|
+
return result
|
900
|
+
end
|
901
|
+
rescue ::Gapic::Rest::Error => e
|
902
|
+
raise ::Google::Cloud::Error.from_error(e)
|
903
|
+
end
|
904
|
+
|
905
|
+
##
|
906
|
+
# Gets a repository.
|
907
|
+
#
|
908
|
+
# @overload get_repository(request, options = nil)
|
909
|
+
# Pass arguments to `get_repository` via a request object, either of type
|
910
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest} or an equivalent Hash.
|
911
|
+
#
|
912
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest, ::Hash]
|
913
|
+
# A request object representing the call parameters. Required. To specify no
|
914
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
915
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
916
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
917
|
+
#
|
918
|
+
# @overload get_repository(name: nil)
|
919
|
+
# Pass arguments to `get_repository` via keyword arguments. Note that at
|
920
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
921
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
922
|
+
#
|
923
|
+
# @param name [::String]
|
924
|
+
# Required. The name of the repository to retrieve.
|
925
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
926
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Repository]
|
927
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
928
|
+
#
|
929
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository]
|
930
|
+
#
|
931
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
932
|
+
def get_repository request, options = nil
|
933
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
934
|
+
|
935
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest
|
936
|
+
|
937
|
+
# Converts hash and nil to an options object
|
938
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
939
|
+
|
940
|
+
# Customize the options with defaults
|
941
|
+
call_metadata = @config.rpcs.get_repository.metadata.to_h
|
942
|
+
|
943
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
944
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
945
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
946
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
947
|
+
transports_version_send: [:rest]
|
948
|
+
|
949
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
950
|
+
|
951
|
+
options.apply_defaults timeout: @config.rpcs.get_repository.timeout,
|
952
|
+
metadata: call_metadata,
|
953
|
+
retry_policy: @config.rpcs.get_repository.retry_policy
|
954
|
+
|
955
|
+
options.apply_defaults timeout: @config.timeout,
|
956
|
+
metadata: @config.metadata,
|
957
|
+
retry_policy: @config.retry_policy
|
958
|
+
|
959
|
+
@artifact_registry_stub.get_repository request, options do |result, operation|
|
960
|
+
yield result, operation if block_given?
|
961
|
+
return result
|
962
|
+
end
|
963
|
+
rescue ::Gapic::Rest::Error => e
|
964
|
+
raise ::Google::Cloud::Error.from_error(e)
|
965
|
+
end
|
966
|
+
|
967
|
+
##
|
968
|
+
# Creates a repository. The returned Operation will finish once the
|
969
|
+
# repository has been created. Its response will be the created Repository.
|
970
|
+
#
|
971
|
+
# @overload create_repository(request, options = nil)
|
972
|
+
# Pass arguments to `create_repository` via a request object, either of type
|
973
|
+
# {::Google::Cloud::ArtifactRegistry::V1::CreateRepositoryRequest} or an equivalent Hash.
|
974
|
+
#
|
975
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::CreateRepositoryRequest, ::Hash]
|
976
|
+
# A request object representing the call parameters. Required. To specify no
|
977
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
978
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
979
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
980
|
+
#
|
981
|
+
# @overload create_repository(parent: nil, repository_id: nil, repository: nil)
|
982
|
+
# Pass arguments to `create_repository` via keyword arguments. Note that at
|
983
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
984
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
985
|
+
#
|
986
|
+
# @param parent [::String]
|
987
|
+
# Required. The name of the parent resource where the repository will be created.
|
988
|
+
# @param repository_id [::String]
|
989
|
+
# The repository id to use for this repository.
|
990
|
+
# @param repository [::Google::Cloud::ArtifactRegistry::V1::Repository, ::Hash]
|
991
|
+
# The repository to be created.
|
992
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
993
|
+
# @yieldparam result [::Gapic::Operation]
|
994
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
995
|
+
#
|
996
|
+
# @return [::Gapic::Operation]
|
997
|
+
#
|
998
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
999
|
+
def create_repository request, options = nil
|
1000
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1001
|
+
|
1002
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::CreateRepositoryRequest
|
1003
|
+
|
1004
|
+
# Converts hash and nil to an options object
|
1005
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1006
|
+
|
1007
|
+
# Customize the options with defaults
|
1008
|
+
call_metadata = @config.rpcs.create_repository.metadata.to_h
|
1009
|
+
|
1010
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1011
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1012
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1013
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1014
|
+
transports_version_send: [:rest]
|
1015
|
+
|
1016
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1017
|
+
|
1018
|
+
options.apply_defaults timeout: @config.rpcs.create_repository.timeout,
|
1019
|
+
metadata: call_metadata,
|
1020
|
+
retry_policy: @config.rpcs.create_repository.retry_policy
|
1021
|
+
|
1022
|
+
options.apply_defaults timeout: @config.timeout,
|
1023
|
+
metadata: @config.metadata,
|
1024
|
+
retry_policy: @config.retry_policy
|
1025
|
+
|
1026
|
+
@artifact_registry_stub.create_repository request, options do |result, operation|
|
1027
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1028
|
+
yield result, operation if block_given?
|
1029
|
+
return result
|
1030
|
+
end
|
1031
|
+
rescue ::Gapic::Rest::Error => e
|
1032
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
##
|
1036
|
+
# Updates a repository.
|
1037
|
+
#
|
1038
|
+
# @overload update_repository(request, options = nil)
|
1039
|
+
# Pass arguments to `update_repository` via a request object, either of type
|
1040
|
+
# {::Google::Cloud::ArtifactRegistry::V1::UpdateRepositoryRequest} or an equivalent Hash.
|
1041
|
+
#
|
1042
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateRepositoryRequest, ::Hash]
|
1043
|
+
# A request object representing the call parameters. Required. To specify no
|
1044
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1045
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1046
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1047
|
+
#
|
1048
|
+
# @overload update_repository(repository: nil, update_mask: nil)
|
1049
|
+
# Pass arguments to `update_repository` via keyword arguments. Note that at
|
1050
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1051
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1052
|
+
#
|
1053
|
+
# @param repository [::Google::Cloud::ArtifactRegistry::V1::Repository, ::Hash]
|
1054
|
+
# The repository that replaces the resource on the server.
|
1055
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1056
|
+
# The update mask applies to the resource. For the `FieldMask` definition,
|
1057
|
+
# see
|
1058
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
1059
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1060
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Repository]
|
1061
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1062
|
+
#
|
1063
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository]
|
1064
|
+
#
|
1065
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1066
|
+
def update_repository request, options = nil
|
1067
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1068
|
+
|
1069
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateRepositoryRequest
|
1070
|
+
|
1071
|
+
# Converts hash and nil to an options object
|
1072
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1073
|
+
|
1074
|
+
# Customize the options with defaults
|
1075
|
+
call_metadata = @config.rpcs.update_repository.metadata.to_h
|
1076
|
+
|
1077
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1078
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1079
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1080
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1081
|
+
transports_version_send: [:rest]
|
1082
|
+
|
1083
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1084
|
+
|
1085
|
+
options.apply_defaults timeout: @config.rpcs.update_repository.timeout,
|
1086
|
+
metadata: call_metadata,
|
1087
|
+
retry_policy: @config.rpcs.update_repository.retry_policy
|
1088
|
+
|
1089
|
+
options.apply_defaults timeout: @config.timeout,
|
1090
|
+
metadata: @config.metadata,
|
1091
|
+
retry_policy: @config.retry_policy
|
1092
|
+
|
1093
|
+
@artifact_registry_stub.update_repository request, options do |result, operation|
|
1094
|
+
yield result, operation if block_given?
|
1095
|
+
return result
|
1096
|
+
end
|
1097
|
+
rescue ::Gapic::Rest::Error => e
|
1098
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
##
|
1102
|
+
# Deletes a repository and all of its contents. The returned Operation will
|
1103
|
+
# finish once the repository has been deleted. It will not have any Operation
|
1104
|
+
# metadata and will return a google.protobuf.Empty response.
|
1105
|
+
#
|
1106
|
+
# @overload delete_repository(request, options = nil)
|
1107
|
+
# Pass arguments to `delete_repository` via a request object, either of type
|
1108
|
+
# {::Google::Cloud::ArtifactRegistry::V1::DeleteRepositoryRequest} or an equivalent Hash.
|
1109
|
+
#
|
1110
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::DeleteRepositoryRequest, ::Hash]
|
1111
|
+
# A request object representing the call parameters. Required. To specify no
|
1112
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1113
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1114
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1115
|
+
#
|
1116
|
+
# @overload delete_repository(name: nil)
|
1117
|
+
# Pass arguments to `delete_repository` via keyword arguments. Note that at
|
1118
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1119
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1120
|
+
#
|
1121
|
+
# @param name [::String]
|
1122
|
+
# Required. The name of the repository to delete.
|
1123
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1124
|
+
# @yieldparam result [::Gapic::Operation]
|
1125
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1126
|
+
#
|
1127
|
+
# @return [::Gapic::Operation]
|
1128
|
+
#
|
1129
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1130
|
+
def delete_repository request, options = nil
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1132
|
+
|
1133
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::DeleteRepositoryRequest
|
1134
|
+
|
1135
|
+
# Converts hash and nil to an options object
|
1136
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1137
|
+
|
1138
|
+
# Customize the options with defaults
|
1139
|
+
call_metadata = @config.rpcs.delete_repository.metadata.to_h
|
1140
|
+
|
1141
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1142
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1143
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1144
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1145
|
+
transports_version_send: [:rest]
|
1146
|
+
|
1147
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1148
|
+
|
1149
|
+
options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
|
1150
|
+
metadata: call_metadata,
|
1151
|
+
retry_policy: @config.rpcs.delete_repository.retry_policy
|
1152
|
+
|
1153
|
+
options.apply_defaults timeout: @config.timeout,
|
1154
|
+
metadata: @config.metadata,
|
1155
|
+
retry_policy: @config.retry_policy
|
1156
|
+
|
1157
|
+
@artifact_registry_stub.delete_repository request, options do |result, operation|
|
1158
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1159
|
+
yield result, operation if block_given?
|
1160
|
+
return result
|
1161
|
+
end
|
1162
|
+
rescue ::Gapic::Rest::Error => e
|
1163
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
##
|
1167
|
+
# Lists packages.
|
1168
|
+
#
|
1169
|
+
# @overload list_packages(request, options = nil)
|
1170
|
+
# Pass arguments to `list_packages` via a request object, either of type
|
1171
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ListPackagesRequest} or an equivalent Hash.
|
1172
|
+
#
|
1173
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ListPackagesRequest, ::Hash]
|
1174
|
+
# A request object representing the call parameters. Required. To specify no
|
1175
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1176
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1177
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1178
|
+
#
|
1179
|
+
# @overload list_packages(parent: nil, page_size: nil, page_token: nil)
|
1180
|
+
# Pass arguments to `list_packages` via keyword arguments. Note that at
|
1181
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1182
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1183
|
+
#
|
1184
|
+
# @param parent [::String]
|
1185
|
+
# Required. The name of the parent resource whose packages will be listed.
|
1186
|
+
# @param page_size [::Integer]
|
1187
|
+
# The maximum number of packages to return. Maximum page size is 1,000.
|
1188
|
+
# @param page_token [::String]
|
1189
|
+
# The next_page_token value returned from a previous list request, if any.
|
1190
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1191
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Package>]
|
1192
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1193
|
+
#
|
1194
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Package>]
|
1195
|
+
#
|
1196
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1197
|
+
def list_packages request, options = nil
|
1198
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1199
|
+
|
1200
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListPackagesRequest
|
1201
|
+
|
1202
|
+
# Converts hash and nil to an options object
|
1203
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1204
|
+
|
1205
|
+
# Customize the options with defaults
|
1206
|
+
call_metadata = @config.rpcs.list_packages.metadata.to_h
|
1207
|
+
|
1208
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1209
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1210
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1211
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1212
|
+
transports_version_send: [:rest]
|
1213
|
+
|
1214
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1215
|
+
|
1216
|
+
options.apply_defaults timeout: @config.rpcs.list_packages.timeout,
|
1217
|
+
metadata: call_metadata,
|
1218
|
+
retry_policy: @config.rpcs.list_packages.retry_policy
|
1219
|
+
|
1220
|
+
options.apply_defaults timeout: @config.timeout,
|
1221
|
+
metadata: @config.metadata,
|
1222
|
+
retry_policy: @config.retry_policy
|
1223
|
+
|
1224
|
+
@artifact_registry_stub.list_packages request, options do |result, operation|
|
1225
|
+
result = ::Gapic::Rest::PagedEnumerable.new @artifact_registry_stub, :list_packages, "packages", request, result, options
|
1226
|
+
yield result, operation if block_given?
|
1227
|
+
return result
|
1228
|
+
end
|
1229
|
+
rescue ::Gapic::Rest::Error => e
|
1230
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
##
|
1234
|
+
# Gets a package.
|
1235
|
+
#
|
1236
|
+
# @overload get_package(request, options = nil)
|
1237
|
+
# Pass arguments to `get_package` via a request object, either of type
|
1238
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetPackageRequest} or an equivalent Hash.
|
1239
|
+
#
|
1240
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetPackageRequest, ::Hash]
|
1241
|
+
# A request object representing the call parameters. Required. To specify no
|
1242
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1243
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1244
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1245
|
+
#
|
1246
|
+
# @overload get_package(name: nil)
|
1247
|
+
# Pass arguments to `get_package` via keyword arguments. Note that at
|
1248
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1249
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1250
|
+
#
|
1251
|
+
# @param name [::String]
|
1252
|
+
# Required. The name of the package to retrieve.
|
1253
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1254
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Package]
|
1255
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1256
|
+
#
|
1257
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Package]
|
1258
|
+
#
|
1259
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1260
|
+
def get_package request, options = nil
|
1261
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1262
|
+
|
1263
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetPackageRequest
|
1264
|
+
|
1265
|
+
# Converts hash and nil to an options object
|
1266
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1267
|
+
|
1268
|
+
# Customize the options with defaults
|
1269
|
+
call_metadata = @config.rpcs.get_package.metadata.to_h
|
1270
|
+
|
1271
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1272
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1273
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1274
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1275
|
+
transports_version_send: [:rest]
|
1276
|
+
|
1277
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1278
|
+
|
1279
|
+
options.apply_defaults timeout: @config.rpcs.get_package.timeout,
|
1280
|
+
metadata: call_metadata,
|
1281
|
+
retry_policy: @config.rpcs.get_package.retry_policy
|
1282
|
+
|
1283
|
+
options.apply_defaults timeout: @config.timeout,
|
1284
|
+
metadata: @config.metadata,
|
1285
|
+
retry_policy: @config.retry_policy
|
1286
|
+
|
1287
|
+
@artifact_registry_stub.get_package request, options do |result, operation|
|
1288
|
+
yield result, operation if block_given?
|
1289
|
+
return result
|
1290
|
+
end
|
1291
|
+
rescue ::Gapic::Rest::Error => e
|
1292
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
##
|
1296
|
+
# Deletes a package and all of its versions and tags. The returned operation
|
1297
|
+
# will complete once the package has been deleted.
|
1298
|
+
#
|
1299
|
+
# @overload delete_package(request, options = nil)
|
1300
|
+
# Pass arguments to `delete_package` via a request object, either of type
|
1301
|
+
# {::Google::Cloud::ArtifactRegistry::V1::DeletePackageRequest} or an equivalent Hash.
|
1302
|
+
#
|
1303
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::DeletePackageRequest, ::Hash]
|
1304
|
+
# A request object representing the call parameters. Required. To specify no
|
1305
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1306
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1307
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1308
|
+
#
|
1309
|
+
# @overload delete_package(name: nil)
|
1310
|
+
# Pass arguments to `delete_package` via keyword arguments. Note that at
|
1311
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1312
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1313
|
+
#
|
1314
|
+
# @param name [::String]
|
1315
|
+
# Required. The name of the package to delete.
|
1316
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1317
|
+
# @yieldparam result [::Gapic::Operation]
|
1318
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1319
|
+
#
|
1320
|
+
# @return [::Gapic::Operation]
|
1321
|
+
#
|
1322
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1323
|
+
def delete_package request, options = nil
|
1324
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1325
|
+
|
1326
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::DeletePackageRequest
|
1327
|
+
|
1328
|
+
# Converts hash and nil to an options object
|
1329
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1330
|
+
|
1331
|
+
# Customize the options with defaults
|
1332
|
+
call_metadata = @config.rpcs.delete_package.metadata.to_h
|
1333
|
+
|
1334
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1335
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1336
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1337
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1338
|
+
transports_version_send: [:rest]
|
1339
|
+
|
1340
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1341
|
+
|
1342
|
+
options.apply_defaults timeout: @config.rpcs.delete_package.timeout,
|
1343
|
+
metadata: call_metadata,
|
1344
|
+
retry_policy: @config.rpcs.delete_package.retry_policy
|
1345
|
+
|
1346
|
+
options.apply_defaults timeout: @config.timeout,
|
1347
|
+
metadata: @config.metadata,
|
1348
|
+
retry_policy: @config.retry_policy
|
1349
|
+
|
1350
|
+
@artifact_registry_stub.delete_package request, options do |result, operation|
|
1351
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1352
|
+
yield result, operation if block_given?
|
1353
|
+
return result
|
1354
|
+
end
|
1355
|
+
rescue ::Gapic::Rest::Error => e
|
1356
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1357
|
+
end
|
1358
|
+
|
1359
|
+
##
|
1360
|
+
# Lists versions.
|
1361
|
+
#
|
1362
|
+
# @overload list_versions(request, options = nil)
|
1363
|
+
# Pass arguments to `list_versions` via a request object, either of type
|
1364
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ListVersionsRequest} or an equivalent Hash.
|
1365
|
+
#
|
1366
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ListVersionsRequest, ::Hash]
|
1367
|
+
# A request object representing the call parameters. Required. To specify no
|
1368
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1369
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1370
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1371
|
+
#
|
1372
|
+
# @overload list_versions(parent: nil, page_size: nil, page_token: nil, view: nil, order_by: nil)
|
1373
|
+
# Pass arguments to `list_versions` via keyword arguments. Note that at
|
1374
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1375
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1376
|
+
#
|
1377
|
+
# @param parent [::String]
|
1378
|
+
# The name of the parent resource whose versions will be listed.
|
1379
|
+
# @param page_size [::Integer]
|
1380
|
+
# The maximum number of versions to return. Maximum page size is 1,000.
|
1381
|
+
# @param page_token [::String]
|
1382
|
+
# The next_page_token value returned from a previous list request, if any.
|
1383
|
+
# @param view [::Google::Cloud::ArtifactRegistry::V1::VersionView]
|
1384
|
+
# The view that should be returned in the response.
|
1385
|
+
# @param order_by [::String]
|
1386
|
+
# Optional. The field to order the results by.
|
1387
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1388
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Version>]
|
1389
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1390
|
+
#
|
1391
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Version>]
|
1392
|
+
#
|
1393
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1394
|
+
def list_versions request, options = nil
|
1395
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1396
|
+
|
1397
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListVersionsRequest
|
1398
|
+
|
1399
|
+
# Converts hash and nil to an options object
|
1400
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1401
|
+
|
1402
|
+
# Customize the options with defaults
|
1403
|
+
call_metadata = @config.rpcs.list_versions.metadata.to_h
|
1404
|
+
|
1405
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1406
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1407
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1408
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1409
|
+
transports_version_send: [:rest]
|
1410
|
+
|
1411
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1412
|
+
|
1413
|
+
options.apply_defaults timeout: @config.rpcs.list_versions.timeout,
|
1414
|
+
metadata: call_metadata,
|
1415
|
+
retry_policy: @config.rpcs.list_versions.retry_policy
|
1416
|
+
|
1417
|
+
options.apply_defaults timeout: @config.timeout,
|
1418
|
+
metadata: @config.metadata,
|
1419
|
+
retry_policy: @config.retry_policy
|
1420
|
+
|
1421
|
+
@artifact_registry_stub.list_versions request, options do |result, operation|
|
1422
|
+
result = ::Gapic::Rest::PagedEnumerable.new @artifact_registry_stub, :list_versions, "versions", request, result, options
|
1423
|
+
yield result, operation if block_given?
|
1424
|
+
return result
|
1425
|
+
end
|
1426
|
+
rescue ::Gapic::Rest::Error => e
|
1427
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1428
|
+
end
|
1429
|
+
|
1430
|
+
##
|
1431
|
+
# Gets a version
|
1432
|
+
#
|
1433
|
+
# @overload get_version(request, options = nil)
|
1434
|
+
# Pass arguments to `get_version` via a request object, either of type
|
1435
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetVersionRequest} or an equivalent Hash.
|
1436
|
+
#
|
1437
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetVersionRequest, ::Hash]
|
1438
|
+
# A request object representing the call parameters. Required. To specify no
|
1439
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1440
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1441
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1442
|
+
#
|
1443
|
+
# @overload get_version(name: nil, view: nil)
|
1444
|
+
# Pass arguments to `get_version` via keyword arguments. Note that at
|
1445
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1446
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1447
|
+
#
|
1448
|
+
# @param name [::String]
|
1449
|
+
# The name of the version to retrieve.
|
1450
|
+
# @param view [::Google::Cloud::ArtifactRegistry::V1::VersionView]
|
1451
|
+
# The view that should be returned in the response.
|
1452
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1453
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Version]
|
1454
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1455
|
+
#
|
1456
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Version]
|
1457
|
+
#
|
1458
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1459
|
+
def get_version request, options = nil
|
1460
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1461
|
+
|
1462
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetVersionRequest
|
1463
|
+
|
1464
|
+
# Converts hash and nil to an options object
|
1465
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1466
|
+
|
1467
|
+
# Customize the options with defaults
|
1468
|
+
call_metadata = @config.rpcs.get_version.metadata.to_h
|
1469
|
+
|
1470
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1471
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1472
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1473
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1474
|
+
transports_version_send: [:rest]
|
1475
|
+
|
1476
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1477
|
+
|
1478
|
+
options.apply_defaults timeout: @config.rpcs.get_version.timeout,
|
1479
|
+
metadata: call_metadata,
|
1480
|
+
retry_policy: @config.rpcs.get_version.retry_policy
|
1481
|
+
|
1482
|
+
options.apply_defaults timeout: @config.timeout,
|
1483
|
+
metadata: @config.metadata,
|
1484
|
+
retry_policy: @config.retry_policy
|
1485
|
+
|
1486
|
+
@artifact_registry_stub.get_version request, options do |result, operation|
|
1487
|
+
yield result, operation if block_given?
|
1488
|
+
return result
|
1489
|
+
end
|
1490
|
+
rescue ::Gapic::Rest::Error => e
|
1491
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
##
|
1495
|
+
# Deletes a version and all of its content. The returned operation will
|
1496
|
+
# complete once the version has been deleted.
|
1497
|
+
#
|
1498
|
+
# @overload delete_version(request, options = nil)
|
1499
|
+
# Pass arguments to `delete_version` via a request object, either of type
|
1500
|
+
# {::Google::Cloud::ArtifactRegistry::V1::DeleteVersionRequest} or an equivalent Hash.
|
1501
|
+
#
|
1502
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::DeleteVersionRequest, ::Hash]
|
1503
|
+
# A request object representing the call parameters. Required. To specify no
|
1504
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1505
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1506
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1507
|
+
#
|
1508
|
+
# @overload delete_version(name: nil, force: nil)
|
1509
|
+
# Pass arguments to `delete_version` via keyword arguments. Note that at
|
1510
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1511
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1512
|
+
#
|
1513
|
+
# @param name [::String]
|
1514
|
+
# The name of the version to delete.
|
1515
|
+
# @param force [::Boolean]
|
1516
|
+
# By default, a version that is tagged may not be deleted. If force=true, the
|
1517
|
+
# version and any tags pointing to the version are deleted.
|
1518
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1519
|
+
# @yieldparam result [::Gapic::Operation]
|
1520
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1521
|
+
#
|
1522
|
+
# @return [::Gapic::Operation]
|
1523
|
+
#
|
1524
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1525
|
+
def delete_version request, options = nil
|
1526
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1527
|
+
|
1528
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::DeleteVersionRequest
|
1529
|
+
|
1530
|
+
# Converts hash and nil to an options object
|
1531
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1532
|
+
|
1533
|
+
# Customize the options with defaults
|
1534
|
+
call_metadata = @config.rpcs.delete_version.metadata.to_h
|
1535
|
+
|
1536
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1537
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1538
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1539
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1540
|
+
transports_version_send: [:rest]
|
1541
|
+
|
1542
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1543
|
+
|
1544
|
+
options.apply_defaults timeout: @config.rpcs.delete_version.timeout,
|
1545
|
+
metadata: call_metadata,
|
1546
|
+
retry_policy: @config.rpcs.delete_version.retry_policy
|
1547
|
+
|
1548
|
+
options.apply_defaults timeout: @config.timeout,
|
1549
|
+
metadata: @config.metadata,
|
1550
|
+
retry_policy: @config.retry_policy
|
1551
|
+
|
1552
|
+
@artifact_registry_stub.delete_version request, options do |result, operation|
|
1553
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1554
|
+
yield result, operation if block_given?
|
1555
|
+
return result
|
1556
|
+
end
|
1557
|
+
rescue ::Gapic::Rest::Error => e
|
1558
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1559
|
+
end
|
1560
|
+
|
1561
|
+
##
|
1562
|
+
# Lists files.
|
1563
|
+
#
|
1564
|
+
# @overload list_files(request, options = nil)
|
1565
|
+
# Pass arguments to `list_files` via a request object, either of type
|
1566
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ListFilesRequest} or an equivalent Hash.
|
1567
|
+
#
|
1568
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ListFilesRequest, ::Hash]
|
1569
|
+
# A request object representing the call parameters. Required. To specify no
|
1570
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1571
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1572
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1573
|
+
#
|
1574
|
+
# @overload list_files(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil)
|
1575
|
+
# Pass arguments to `list_files` via keyword arguments. Note that at
|
1576
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1577
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1578
|
+
#
|
1579
|
+
# @param parent [::String]
|
1580
|
+
# Required. The name of the repository whose files will be listed. For
|
1581
|
+
# example: "projects/p1/locations/us-central1/repositories/repo1
|
1582
|
+
# @param filter [::String]
|
1583
|
+
# An expression for filtering the results of the request. Filter rules are
|
1584
|
+
# case insensitive. The fields eligible for filtering are:
|
1585
|
+
#
|
1586
|
+
# * `name`
|
1587
|
+
# * `owner`
|
1588
|
+
#
|
1589
|
+
# An example of using a filter:
|
1590
|
+
#
|
1591
|
+
# * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an
|
1592
|
+
# ID starting with "a/b/".
|
1593
|
+
# * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` -->
|
1594
|
+
# Files owned by the version `1.0` in package `pkg1`.
|
1595
|
+
# @param page_size [::Integer]
|
1596
|
+
# The maximum number of files to return.
|
1597
|
+
# @param page_token [::String]
|
1598
|
+
# The next_page_token value returned from a previous list request, if any.
|
1599
|
+
# @param order_by [::String]
|
1600
|
+
# The field to order the results by.
|
1601
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1602
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::File>]
|
1603
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1604
|
+
#
|
1605
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::File>]
|
1606
|
+
#
|
1607
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1608
|
+
def list_files request, options = nil
|
1609
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1610
|
+
|
1611
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListFilesRequest
|
1612
|
+
|
1613
|
+
# Converts hash and nil to an options object
|
1614
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1615
|
+
|
1616
|
+
# Customize the options with defaults
|
1617
|
+
call_metadata = @config.rpcs.list_files.metadata.to_h
|
1618
|
+
|
1619
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1620
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1621
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1622
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1623
|
+
transports_version_send: [:rest]
|
1624
|
+
|
1625
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1626
|
+
|
1627
|
+
options.apply_defaults timeout: @config.rpcs.list_files.timeout,
|
1628
|
+
metadata: call_metadata,
|
1629
|
+
retry_policy: @config.rpcs.list_files.retry_policy
|
1630
|
+
|
1631
|
+
options.apply_defaults timeout: @config.timeout,
|
1632
|
+
metadata: @config.metadata,
|
1633
|
+
retry_policy: @config.retry_policy
|
1634
|
+
|
1635
|
+
@artifact_registry_stub.list_files request, options do |result, operation|
|
1636
|
+
result = ::Gapic::Rest::PagedEnumerable.new @artifact_registry_stub, :list_files, "files", request, result, options
|
1637
|
+
yield result, operation if block_given?
|
1638
|
+
return result
|
1639
|
+
end
|
1640
|
+
rescue ::Gapic::Rest::Error => e
|
1641
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1642
|
+
end
|
1643
|
+
|
1644
|
+
##
|
1645
|
+
# Gets a file.
|
1646
|
+
#
|
1647
|
+
# @overload get_file(request, options = nil)
|
1648
|
+
# Pass arguments to `get_file` via a request object, either of type
|
1649
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetFileRequest} or an equivalent Hash.
|
1650
|
+
#
|
1651
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetFileRequest, ::Hash]
|
1652
|
+
# A request object representing the call parameters. Required. To specify no
|
1653
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1654
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1655
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1656
|
+
#
|
1657
|
+
# @overload get_file(name: nil)
|
1658
|
+
# Pass arguments to `get_file` via keyword arguments. Note that at
|
1659
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1660
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1661
|
+
#
|
1662
|
+
# @param name [::String]
|
1663
|
+
# Required. The name of the file to retrieve.
|
1664
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1665
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::File]
|
1666
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1667
|
+
#
|
1668
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::File]
|
1669
|
+
#
|
1670
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1671
|
+
def get_file request, options = nil
|
1672
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1673
|
+
|
1674
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetFileRequest
|
1675
|
+
|
1676
|
+
# Converts hash and nil to an options object
|
1677
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1678
|
+
|
1679
|
+
# Customize the options with defaults
|
1680
|
+
call_metadata = @config.rpcs.get_file.metadata.to_h
|
1681
|
+
|
1682
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1683
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1684
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1685
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1686
|
+
transports_version_send: [:rest]
|
1687
|
+
|
1688
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1689
|
+
|
1690
|
+
options.apply_defaults timeout: @config.rpcs.get_file.timeout,
|
1691
|
+
metadata: call_metadata,
|
1692
|
+
retry_policy: @config.rpcs.get_file.retry_policy
|
1693
|
+
|
1694
|
+
options.apply_defaults timeout: @config.timeout,
|
1695
|
+
metadata: @config.metadata,
|
1696
|
+
retry_policy: @config.retry_policy
|
1697
|
+
|
1698
|
+
@artifact_registry_stub.get_file request, options do |result, operation|
|
1699
|
+
yield result, operation if block_given?
|
1700
|
+
return result
|
1701
|
+
end
|
1702
|
+
rescue ::Gapic::Rest::Error => e
|
1703
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1704
|
+
end
|
1705
|
+
|
1706
|
+
##
|
1707
|
+
# Lists tags.
|
1708
|
+
#
|
1709
|
+
# @overload list_tags(request, options = nil)
|
1710
|
+
# Pass arguments to `list_tags` via a request object, either of type
|
1711
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest} or an equivalent Hash.
|
1712
|
+
#
|
1713
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest, ::Hash]
|
1714
|
+
# A request object representing the call parameters. Required. To specify no
|
1715
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1716
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1717
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1718
|
+
#
|
1719
|
+
# @overload list_tags(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
1720
|
+
# Pass arguments to `list_tags` via keyword arguments. Note that at
|
1721
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1722
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1723
|
+
#
|
1724
|
+
# @param parent [::String]
|
1725
|
+
# The name of the parent resource whose tags will be listed.
|
1726
|
+
# @param filter [::String]
|
1727
|
+
# An expression for filtering the results of the request. Filter rules are
|
1728
|
+
# case insensitive. The fields eligible for filtering are:
|
1729
|
+
#
|
1730
|
+
# * `version`
|
1731
|
+
#
|
1732
|
+
# An example of using a filter:
|
1733
|
+
#
|
1734
|
+
# * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"`
|
1735
|
+
# --> Tags that are applied to the version `1.0` in package `pkg1`.
|
1736
|
+
# @param page_size [::Integer]
|
1737
|
+
# The maximum number of tags to return. Maximum page size is 10,000.
|
1738
|
+
# @param page_token [::String]
|
1739
|
+
# The next_page_token value returned from a previous list request, if any.
|
1740
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1741
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>]
|
1742
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1743
|
+
#
|
1744
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>]
|
1745
|
+
#
|
1746
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1747
|
+
def list_tags request, options = nil
|
1748
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1749
|
+
|
1750
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest
|
1751
|
+
|
1752
|
+
# Converts hash and nil to an options object
|
1753
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1754
|
+
|
1755
|
+
# Customize the options with defaults
|
1756
|
+
call_metadata = @config.rpcs.list_tags.metadata.to_h
|
1757
|
+
|
1758
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1759
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1760
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1761
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1762
|
+
transports_version_send: [:rest]
|
1763
|
+
|
1764
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1765
|
+
|
1766
|
+
options.apply_defaults timeout: @config.rpcs.list_tags.timeout,
|
1767
|
+
metadata: call_metadata,
|
1768
|
+
retry_policy: @config.rpcs.list_tags.retry_policy
|
1769
|
+
|
1770
|
+
options.apply_defaults timeout: @config.timeout,
|
1771
|
+
metadata: @config.metadata,
|
1772
|
+
retry_policy: @config.retry_policy
|
1773
|
+
|
1774
|
+
@artifact_registry_stub.list_tags request, options do |result, operation|
|
1775
|
+
result = ::Gapic::Rest::PagedEnumerable.new @artifact_registry_stub, :list_tags, "tags", request, result, options
|
1776
|
+
yield result, operation if block_given?
|
1777
|
+
return result
|
1778
|
+
end
|
1779
|
+
rescue ::Gapic::Rest::Error => e
|
1780
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1781
|
+
end
|
1782
|
+
|
1783
|
+
##
|
1784
|
+
# Gets a tag.
|
1785
|
+
#
|
1786
|
+
# @overload get_tag(request, options = nil)
|
1787
|
+
# Pass arguments to `get_tag` via a request object, either of type
|
1788
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetTagRequest} or an equivalent Hash.
|
1789
|
+
#
|
1790
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetTagRequest, ::Hash]
|
1791
|
+
# A request object representing the call parameters. Required. To specify no
|
1792
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1793
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1794
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1795
|
+
#
|
1796
|
+
# @overload get_tag(name: nil)
|
1797
|
+
# Pass arguments to `get_tag` via keyword arguments. Note that at
|
1798
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1799
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1800
|
+
#
|
1801
|
+
# @param name [::String]
|
1802
|
+
# The name of the tag to retrieve.
|
1803
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1804
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Tag]
|
1805
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1806
|
+
#
|
1807
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
|
1808
|
+
#
|
1809
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1810
|
+
def get_tag request, options = nil
|
1811
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1812
|
+
|
1813
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetTagRequest
|
1814
|
+
|
1815
|
+
# Converts hash and nil to an options object
|
1816
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1817
|
+
|
1818
|
+
# Customize the options with defaults
|
1819
|
+
call_metadata = @config.rpcs.get_tag.metadata.to_h
|
1820
|
+
|
1821
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1822
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1823
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1824
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1825
|
+
transports_version_send: [:rest]
|
1826
|
+
|
1827
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1828
|
+
|
1829
|
+
options.apply_defaults timeout: @config.rpcs.get_tag.timeout,
|
1830
|
+
metadata: call_metadata,
|
1831
|
+
retry_policy: @config.rpcs.get_tag.retry_policy
|
1832
|
+
|
1833
|
+
options.apply_defaults timeout: @config.timeout,
|
1834
|
+
metadata: @config.metadata,
|
1835
|
+
retry_policy: @config.retry_policy
|
1836
|
+
|
1837
|
+
@artifact_registry_stub.get_tag request, options do |result, operation|
|
1838
|
+
yield result, operation if block_given?
|
1839
|
+
return result
|
1840
|
+
end
|
1841
|
+
rescue ::Gapic::Rest::Error => e
|
1842
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1843
|
+
end
|
1844
|
+
|
1845
|
+
##
|
1846
|
+
# Creates a tag.
|
1847
|
+
#
|
1848
|
+
# @overload create_tag(request, options = nil)
|
1849
|
+
# Pass arguments to `create_tag` via a request object, either of type
|
1850
|
+
# {::Google::Cloud::ArtifactRegistry::V1::CreateTagRequest} or an equivalent Hash.
|
1851
|
+
#
|
1852
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::CreateTagRequest, ::Hash]
|
1853
|
+
# A request object representing the call parameters. Required. To specify no
|
1854
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1855
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1856
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1857
|
+
#
|
1858
|
+
# @overload create_tag(parent: nil, tag_id: nil, tag: nil)
|
1859
|
+
# Pass arguments to `create_tag` via keyword arguments. Note that at
|
1860
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1861
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1862
|
+
#
|
1863
|
+
# @param parent [::String]
|
1864
|
+
# The name of the parent resource where the tag will be created.
|
1865
|
+
# @param tag_id [::String]
|
1866
|
+
# The tag id to use for this repository.
|
1867
|
+
# @param tag [::Google::Cloud::ArtifactRegistry::V1::Tag, ::Hash]
|
1868
|
+
# The tag to be created.
|
1869
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1870
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Tag]
|
1871
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1872
|
+
#
|
1873
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
|
1874
|
+
#
|
1875
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1876
|
+
def create_tag request, options = nil
|
1877
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1878
|
+
|
1879
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::CreateTagRequest
|
1880
|
+
|
1881
|
+
# Converts hash and nil to an options object
|
1882
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1883
|
+
|
1884
|
+
# Customize the options with defaults
|
1885
|
+
call_metadata = @config.rpcs.create_tag.metadata.to_h
|
1886
|
+
|
1887
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1888
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1889
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1890
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1891
|
+
transports_version_send: [:rest]
|
1892
|
+
|
1893
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1894
|
+
|
1895
|
+
options.apply_defaults timeout: @config.rpcs.create_tag.timeout,
|
1896
|
+
metadata: call_metadata,
|
1897
|
+
retry_policy: @config.rpcs.create_tag.retry_policy
|
1898
|
+
|
1899
|
+
options.apply_defaults timeout: @config.timeout,
|
1900
|
+
metadata: @config.metadata,
|
1901
|
+
retry_policy: @config.retry_policy
|
1902
|
+
|
1903
|
+
@artifact_registry_stub.create_tag request, options do |result, operation|
|
1904
|
+
yield result, operation if block_given?
|
1905
|
+
return result
|
1906
|
+
end
|
1907
|
+
rescue ::Gapic::Rest::Error => e
|
1908
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1909
|
+
end
|
1910
|
+
|
1911
|
+
##
|
1912
|
+
# Updates a tag.
|
1913
|
+
#
|
1914
|
+
# @overload update_tag(request, options = nil)
|
1915
|
+
# Pass arguments to `update_tag` via a request object, either of type
|
1916
|
+
# {::Google::Cloud::ArtifactRegistry::V1::UpdateTagRequest} or an equivalent Hash.
|
1917
|
+
#
|
1918
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateTagRequest, ::Hash]
|
1919
|
+
# A request object representing the call parameters. Required. To specify no
|
1920
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1921
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1923
|
+
#
|
1924
|
+
# @overload update_tag(tag: nil, update_mask: nil)
|
1925
|
+
# Pass arguments to `update_tag` via keyword arguments. Note that at
|
1926
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1927
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1928
|
+
#
|
1929
|
+
# @param tag [::Google::Cloud::ArtifactRegistry::V1::Tag, ::Hash]
|
1930
|
+
# The tag that replaces the resource on the server.
|
1931
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1932
|
+
# The update mask applies to the resource. For the `FieldMask` definition,
|
1933
|
+
# see
|
1934
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
1935
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1936
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::Tag]
|
1937
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1938
|
+
#
|
1939
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
|
1940
|
+
#
|
1941
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1942
|
+
def update_tag request, options = nil
|
1943
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1944
|
+
|
1945
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateTagRequest
|
1946
|
+
|
1947
|
+
# Converts hash and nil to an options object
|
1948
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1949
|
+
|
1950
|
+
# Customize the options with defaults
|
1951
|
+
call_metadata = @config.rpcs.update_tag.metadata.to_h
|
1952
|
+
|
1953
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1954
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1955
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1956
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
1957
|
+
transports_version_send: [:rest]
|
1958
|
+
|
1959
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1960
|
+
|
1961
|
+
options.apply_defaults timeout: @config.rpcs.update_tag.timeout,
|
1962
|
+
metadata: call_metadata,
|
1963
|
+
retry_policy: @config.rpcs.update_tag.retry_policy
|
1964
|
+
|
1965
|
+
options.apply_defaults timeout: @config.timeout,
|
1966
|
+
metadata: @config.metadata,
|
1967
|
+
retry_policy: @config.retry_policy
|
1968
|
+
|
1969
|
+
@artifact_registry_stub.update_tag request, options do |result, operation|
|
1970
|
+
yield result, operation if block_given?
|
1971
|
+
return result
|
1972
|
+
end
|
1973
|
+
rescue ::Gapic::Rest::Error => e
|
1974
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1975
|
+
end
|
1976
|
+
|
1977
|
+
##
|
1978
|
+
# Deletes a tag.
|
1979
|
+
#
|
1980
|
+
# @overload delete_tag(request, options = nil)
|
1981
|
+
# Pass arguments to `delete_tag` via a request object, either of type
|
1982
|
+
# {::Google::Cloud::ArtifactRegistry::V1::DeleteTagRequest} or an equivalent Hash.
|
1983
|
+
#
|
1984
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::DeleteTagRequest, ::Hash]
|
1985
|
+
# A request object representing the call parameters. Required. To specify no
|
1986
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1987
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1988
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1989
|
+
#
|
1990
|
+
# @overload delete_tag(name: nil)
|
1991
|
+
# Pass arguments to `delete_tag` via keyword arguments. Note that at
|
1992
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1993
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1994
|
+
#
|
1995
|
+
# @param name [::String]
|
1996
|
+
# The name of the tag to delete.
|
1997
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1998
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1999
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2000
|
+
#
|
2001
|
+
# @return [::Google::Protobuf::Empty]
|
2002
|
+
#
|
2003
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2004
|
+
def delete_tag request, options = nil
|
2005
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2006
|
+
|
2007
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::DeleteTagRequest
|
2008
|
+
|
2009
|
+
# Converts hash and nil to an options object
|
2010
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2011
|
+
|
2012
|
+
# Customize the options with defaults
|
2013
|
+
call_metadata = @config.rpcs.delete_tag.metadata.to_h
|
2014
|
+
|
2015
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2016
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2017
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2018
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2019
|
+
transports_version_send: [:rest]
|
2020
|
+
|
2021
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2022
|
+
|
2023
|
+
options.apply_defaults timeout: @config.rpcs.delete_tag.timeout,
|
2024
|
+
metadata: call_metadata,
|
2025
|
+
retry_policy: @config.rpcs.delete_tag.retry_policy
|
2026
|
+
|
2027
|
+
options.apply_defaults timeout: @config.timeout,
|
2028
|
+
metadata: @config.metadata,
|
2029
|
+
retry_policy: @config.retry_policy
|
2030
|
+
|
2031
|
+
@artifact_registry_stub.delete_tag request, options do |result, operation|
|
2032
|
+
yield result, operation if block_given?
|
2033
|
+
return result
|
2034
|
+
end
|
2035
|
+
rescue ::Gapic::Rest::Error => e
|
2036
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2037
|
+
end
|
2038
|
+
|
2039
|
+
##
|
2040
|
+
# Updates the IAM policy for a given resource.
|
2041
|
+
#
|
2042
|
+
# @overload set_iam_policy(request, options = nil)
|
2043
|
+
# Pass arguments to `set_iam_policy` via a request object, either of type
|
2044
|
+
# {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
2045
|
+
#
|
2046
|
+
# @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
|
2047
|
+
# A request object representing the call parameters. Required. To specify no
|
2048
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2049
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2050
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2051
|
+
#
|
2052
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
2053
|
+
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
2054
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2055
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2056
|
+
#
|
2057
|
+
# @param resource [::String]
|
2058
|
+
# REQUIRED: The resource for which the policy is being specified.
|
2059
|
+
# See the operation documentation for the appropriate value for this field.
|
2060
|
+
# @param policy [::Google::Iam::V1::Policy, ::Hash]
|
2061
|
+
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
2062
|
+
# the policy is limited to a few 10s of KB. An empty policy is a
|
2063
|
+
# valid policy but certain Cloud Platform services (such as Projects)
|
2064
|
+
# might reject them.
|
2065
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2066
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
2067
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
2068
|
+
# following default mask is used:
|
2069
|
+
#
|
2070
|
+
# `paths: "bindings, etag"`
|
2071
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2072
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
2073
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2074
|
+
#
|
2075
|
+
# @return [::Google::Iam::V1::Policy]
|
2076
|
+
#
|
2077
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2078
|
+
def set_iam_policy request, options = nil
|
2079
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2080
|
+
|
2081
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
|
2082
|
+
|
2083
|
+
# Converts hash and nil to an options object
|
2084
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2085
|
+
|
2086
|
+
# Customize the options with defaults
|
2087
|
+
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
2088
|
+
|
2089
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2090
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2091
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2092
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2093
|
+
transports_version_send: [:rest]
|
2094
|
+
|
2095
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2096
|
+
|
2097
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
2098
|
+
metadata: call_metadata,
|
2099
|
+
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
2100
|
+
|
2101
|
+
options.apply_defaults timeout: @config.timeout,
|
2102
|
+
metadata: @config.metadata,
|
2103
|
+
retry_policy: @config.retry_policy
|
2104
|
+
|
2105
|
+
@artifact_registry_stub.set_iam_policy request, options do |result, operation|
|
2106
|
+
yield result, operation if block_given?
|
2107
|
+
return result
|
2108
|
+
end
|
2109
|
+
rescue ::Gapic::Rest::Error => e
|
2110
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2111
|
+
end
|
2112
|
+
|
2113
|
+
##
|
2114
|
+
# Gets the IAM policy for a given resource.
|
2115
|
+
#
|
2116
|
+
# @overload get_iam_policy(request, options = nil)
|
2117
|
+
# Pass arguments to `get_iam_policy` via a request object, either of type
|
2118
|
+
# {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
|
2119
|
+
#
|
2120
|
+
# @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
|
2121
|
+
# A request object representing the call parameters. Required. To specify no
|
2122
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2123
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2124
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2125
|
+
#
|
2126
|
+
# @overload get_iam_policy(resource: nil, options: nil)
|
2127
|
+
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
2128
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2129
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2130
|
+
#
|
2131
|
+
# @param resource [::String]
|
2132
|
+
# REQUIRED: The resource for which the policy is being requested.
|
2133
|
+
# See the operation documentation for the appropriate value for this field.
|
2134
|
+
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
2135
|
+
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
2136
|
+
# `GetIamPolicy`.
|
2137
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2138
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
2139
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2140
|
+
#
|
2141
|
+
# @return [::Google::Iam::V1::Policy]
|
2142
|
+
#
|
2143
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2144
|
+
def get_iam_policy request, options = nil
|
2145
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2146
|
+
|
2147
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
|
2148
|
+
|
2149
|
+
# Converts hash and nil to an options object
|
2150
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2151
|
+
|
2152
|
+
# Customize the options with defaults
|
2153
|
+
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
2154
|
+
|
2155
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2156
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2157
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2158
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2159
|
+
transports_version_send: [:rest]
|
2160
|
+
|
2161
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2162
|
+
|
2163
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
2164
|
+
metadata: call_metadata,
|
2165
|
+
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
2166
|
+
|
2167
|
+
options.apply_defaults timeout: @config.timeout,
|
2168
|
+
metadata: @config.metadata,
|
2169
|
+
retry_policy: @config.retry_policy
|
2170
|
+
|
2171
|
+
@artifact_registry_stub.get_iam_policy request, options do |result, operation|
|
2172
|
+
yield result, operation if block_given?
|
2173
|
+
return result
|
2174
|
+
end
|
2175
|
+
rescue ::Gapic::Rest::Error => e
|
2176
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2177
|
+
end
|
2178
|
+
|
2179
|
+
##
|
2180
|
+
# Tests if the caller has a list of permissions on a resource.
|
2181
|
+
#
|
2182
|
+
# @overload test_iam_permissions(request, options = nil)
|
2183
|
+
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
2184
|
+
# {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
|
2185
|
+
#
|
2186
|
+
# @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
|
2187
|
+
# A request object representing the call parameters. Required. To specify no
|
2188
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2189
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2190
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2191
|
+
#
|
2192
|
+
# @overload test_iam_permissions(resource: nil, permissions: nil)
|
2193
|
+
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
2194
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2195
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2196
|
+
#
|
2197
|
+
# @param resource [::String]
|
2198
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
2199
|
+
# See the operation documentation for the appropriate value for this field.
|
2200
|
+
# @param permissions [::Array<::String>]
|
2201
|
+
# The set of permissions to check for the `resource`. Permissions with
|
2202
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
2203
|
+
# information see
|
2204
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
2205
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2206
|
+
# @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
|
2207
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2208
|
+
#
|
2209
|
+
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
2210
|
+
#
|
2211
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2212
|
+
def test_iam_permissions request, options = nil
|
2213
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2214
|
+
|
2215
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
|
2216
|
+
|
2217
|
+
# Converts hash and nil to an options object
|
2218
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2219
|
+
|
2220
|
+
# Customize the options with defaults
|
2221
|
+
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
2222
|
+
|
2223
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2224
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2225
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2226
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2227
|
+
transports_version_send: [:rest]
|
2228
|
+
|
2229
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2230
|
+
|
2231
|
+
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
2232
|
+
metadata: call_metadata,
|
2233
|
+
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
2234
|
+
|
2235
|
+
options.apply_defaults timeout: @config.timeout,
|
2236
|
+
metadata: @config.metadata,
|
2237
|
+
retry_policy: @config.retry_policy
|
2238
|
+
|
2239
|
+
@artifact_registry_stub.test_iam_permissions request, options do |result, operation|
|
2240
|
+
yield result, operation if block_given?
|
2241
|
+
return result
|
2242
|
+
end
|
2243
|
+
rescue ::Gapic::Rest::Error => e
|
2244
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2245
|
+
end
|
2246
|
+
|
2247
|
+
##
|
2248
|
+
# Retrieves the Settings for the Project.
|
2249
|
+
#
|
2250
|
+
# @overload get_project_settings(request, options = nil)
|
2251
|
+
# Pass arguments to `get_project_settings` via a request object, either of type
|
2252
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest} or an equivalent Hash.
|
2253
|
+
#
|
2254
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest, ::Hash]
|
2255
|
+
# A request object representing the call parameters. Required. To specify no
|
2256
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2257
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2258
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2259
|
+
#
|
2260
|
+
# @overload get_project_settings(name: nil)
|
2261
|
+
# Pass arguments to `get_project_settings` via keyword arguments. Note that at
|
2262
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2263
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2264
|
+
#
|
2265
|
+
# @param name [::String]
|
2266
|
+
# Required. The name of the projectSettings resource.
|
2267
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2268
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
|
2269
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2270
|
+
#
|
2271
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
|
2272
|
+
#
|
2273
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2274
|
+
def get_project_settings request, options = nil
|
2275
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2276
|
+
|
2277
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest
|
2278
|
+
|
2279
|
+
# Converts hash and nil to an options object
|
2280
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2281
|
+
|
2282
|
+
# Customize the options with defaults
|
2283
|
+
call_metadata = @config.rpcs.get_project_settings.metadata.to_h
|
2284
|
+
|
2285
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2286
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2287
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2288
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2289
|
+
transports_version_send: [:rest]
|
2290
|
+
|
2291
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2292
|
+
|
2293
|
+
options.apply_defaults timeout: @config.rpcs.get_project_settings.timeout,
|
2294
|
+
metadata: call_metadata,
|
2295
|
+
retry_policy: @config.rpcs.get_project_settings.retry_policy
|
2296
|
+
|
2297
|
+
options.apply_defaults timeout: @config.timeout,
|
2298
|
+
metadata: @config.metadata,
|
2299
|
+
retry_policy: @config.retry_policy
|
2300
|
+
|
2301
|
+
@artifact_registry_stub.get_project_settings request, options do |result, operation|
|
2302
|
+
yield result, operation if block_given?
|
2303
|
+
return result
|
2304
|
+
end
|
2305
|
+
rescue ::Gapic::Rest::Error => e
|
2306
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2307
|
+
end
|
2308
|
+
|
2309
|
+
##
|
2310
|
+
# Updates the Settings for the Project.
|
2311
|
+
#
|
2312
|
+
# @overload update_project_settings(request, options = nil)
|
2313
|
+
# Pass arguments to `update_project_settings` via a request object, either of type
|
2314
|
+
# {::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest} or an equivalent Hash.
|
2315
|
+
#
|
2316
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest, ::Hash]
|
2317
|
+
# A request object representing the call parameters. Required. To specify no
|
2318
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2319
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2320
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2321
|
+
#
|
2322
|
+
# @overload update_project_settings(project_settings: nil, update_mask: nil)
|
2323
|
+
# Pass arguments to `update_project_settings` via keyword arguments. Note that at
|
2324
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2325
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2326
|
+
#
|
2327
|
+
# @param project_settings [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings, ::Hash]
|
2328
|
+
# The project settings.
|
2329
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2330
|
+
# Field mask to support partial updates.
|
2331
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2332
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
|
2333
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2334
|
+
#
|
2335
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
|
2336
|
+
#
|
2337
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2338
|
+
def update_project_settings request, options = nil
|
2339
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2340
|
+
|
2341
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest
|
2342
|
+
|
2343
|
+
# Converts hash and nil to an options object
|
2344
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2345
|
+
|
2346
|
+
# Customize the options with defaults
|
2347
|
+
call_metadata = @config.rpcs.update_project_settings.metadata.to_h
|
2348
|
+
|
2349
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2350
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2351
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2352
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2353
|
+
transports_version_send: [:rest]
|
2354
|
+
|
2355
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2356
|
+
|
2357
|
+
options.apply_defaults timeout: @config.rpcs.update_project_settings.timeout,
|
2358
|
+
metadata: call_metadata,
|
2359
|
+
retry_policy: @config.rpcs.update_project_settings.retry_policy
|
2360
|
+
|
2361
|
+
options.apply_defaults timeout: @config.timeout,
|
2362
|
+
metadata: @config.metadata,
|
2363
|
+
retry_policy: @config.retry_policy
|
2364
|
+
|
2365
|
+
@artifact_registry_stub.update_project_settings request, options do |result, operation|
|
2366
|
+
yield result, operation if block_given?
|
2367
|
+
return result
|
2368
|
+
end
|
2369
|
+
rescue ::Gapic::Rest::Error => e
|
2370
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2371
|
+
end
|
2372
|
+
|
2373
|
+
##
|
2374
|
+
# Retrieves the VPCSC Config for the Project.
|
2375
|
+
#
|
2376
|
+
# @overload get_vpcsc_config(request, options = nil)
|
2377
|
+
# Pass arguments to `get_vpcsc_config` via a request object, either of type
|
2378
|
+
# {::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest} or an equivalent Hash.
|
2379
|
+
#
|
2380
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest, ::Hash]
|
2381
|
+
# A request object representing the call parameters. Required. To specify no
|
2382
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2383
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2384
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2385
|
+
#
|
2386
|
+
# @overload get_vpcsc_config(name: nil)
|
2387
|
+
# Pass arguments to `get_vpcsc_config` via keyword arguments. Note that at
|
2388
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2389
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2390
|
+
#
|
2391
|
+
# @param name [::String]
|
2392
|
+
# Required. The name of the VPCSCConfig resource.
|
2393
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2394
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
|
2395
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2396
|
+
#
|
2397
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
|
2398
|
+
#
|
2399
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2400
|
+
def get_vpcsc_config request, options = nil
|
2401
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2402
|
+
|
2403
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest
|
2404
|
+
|
2405
|
+
# Converts hash and nil to an options object
|
2406
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2407
|
+
|
2408
|
+
# Customize the options with defaults
|
2409
|
+
call_metadata = @config.rpcs.get_vpcsc_config.metadata.to_h
|
2410
|
+
|
2411
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2412
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2413
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2414
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2415
|
+
transports_version_send: [:rest]
|
2416
|
+
|
2417
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2418
|
+
|
2419
|
+
options.apply_defaults timeout: @config.rpcs.get_vpcsc_config.timeout,
|
2420
|
+
metadata: call_metadata,
|
2421
|
+
retry_policy: @config.rpcs.get_vpcsc_config.retry_policy
|
2422
|
+
|
2423
|
+
options.apply_defaults timeout: @config.timeout,
|
2424
|
+
metadata: @config.metadata,
|
2425
|
+
retry_policy: @config.retry_policy
|
2426
|
+
|
2427
|
+
@artifact_registry_stub.get_vpcsc_config request, options do |result, operation|
|
2428
|
+
yield result, operation if block_given?
|
2429
|
+
return result
|
2430
|
+
end
|
2431
|
+
rescue ::Gapic::Rest::Error => e
|
2432
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2433
|
+
end
|
2434
|
+
|
2435
|
+
##
|
2436
|
+
# Updates the VPCSC Config for the Project.
|
2437
|
+
#
|
2438
|
+
# @overload update_vpcsc_config(request, options = nil)
|
2439
|
+
# Pass arguments to `update_vpcsc_config` via a request object, either of type
|
2440
|
+
# {::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest} or an equivalent Hash.
|
2441
|
+
#
|
2442
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest, ::Hash]
|
2443
|
+
# A request object representing the call parameters. Required. To specify no
|
2444
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2445
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2446
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2447
|
+
#
|
2448
|
+
# @overload update_vpcsc_config(vpcsc_config: nil, update_mask: nil)
|
2449
|
+
# Pass arguments to `update_vpcsc_config` via keyword arguments. Note that at
|
2450
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2451
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2452
|
+
#
|
2453
|
+
# @param vpcsc_config [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig, ::Hash]
|
2454
|
+
# The project config.
|
2455
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2456
|
+
# Field mask to support partial updates.
|
2457
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2458
|
+
# @yieldparam result [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
|
2459
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2460
|
+
#
|
2461
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
|
2462
|
+
#
|
2463
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2464
|
+
def update_vpcsc_config request, options = nil
|
2465
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2466
|
+
|
2467
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest
|
2468
|
+
|
2469
|
+
# Converts hash and nil to an options object
|
2470
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2471
|
+
|
2472
|
+
# Customize the options with defaults
|
2473
|
+
call_metadata = @config.rpcs.update_vpcsc_config.metadata.to_h
|
2474
|
+
|
2475
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2476
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2477
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2478
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
2479
|
+
transports_version_send: [:rest]
|
2480
|
+
|
2481
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2482
|
+
|
2483
|
+
options.apply_defaults timeout: @config.rpcs.update_vpcsc_config.timeout,
|
2484
|
+
metadata: call_metadata,
|
2485
|
+
retry_policy: @config.rpcs.update_vpcsc_config.retry_policy
|
2486
|
+
|
2487
|
+
options.apply_defaults timeout: @config.timeout,
|
2488
|
+
metadata: @config.metadata,
|
2489
|
+
retry_policy: @config.retry_policy
|
2490
|
+
|
2491
|
+
@artifact_registry_stub.update_vpcsc_config request, options do |result, operation|
|
2492
|
+
yield result, operation if block_given?
|
2493
|
+
return result
|
2494
|
+
end
|
2495
|
+
rescue ::Gapic::Rest::Error => e
|
2496
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2497
|
+
end
|
2498
|
+
|
2499
|
+
##
|
2500
|
+
# Configuration class for the ArtifactRegistry REST API.
|
2501
|
+
#
|
2502
|
+
# This class represents the configuration for ArtifactRegistry REST,
|
2503
|
+
# providing control over timeouts, retry behavior, logging, transport
|
2504
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
2505
|
+
# applied individually to specific RPCs. See
|
2506
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client::Configuration::Rpcs}
|
2507
|
+
# for a list of RPCs that can be configured independently.
|
2508
|
+
#
|
2509
|
+
# Configuration can be applied globally to all clients, or to a single client
|
2510
|
+
# on construction.
|
2511
|
+
#
|
2512
|
+
# @example
|
2513
|
+
#
|
2514
|
+
# # Modify the global config, setting the timeout for
|
2515
|
+
# # list_docker_images to 20 seconds,
|
2516
|
+
# # and all remaining timeouts to 10 seconds.
|
2517
|
+
# ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.configure do |config|
|
2518
|
+
# config.timeout = 10.0
|
2519
|
+
# config.rpcs.list_docker_images.timeout = 20.0
|
2520
|
+
# end
|
2521
|
+
#
|
2522
|
+
# # Apply the above configuration only to a new client.
|
2523
|
+
# client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new do |config|
|
2524
|
+
# config.timeout = 10.0
|
2525
|
+
# config.rpcs.list_docker_images.timeout = 20.0
|
2526
|
+
# end
|
2527
|
+
#
|
2528
|
+
# @!attribute [rw] endpoint
|
2529
|
+
# The hostname or hostname:port of the service endpoint.
|
2530
|
+
# Defaults to `"artifactregistry.googleapis.com"`.
|
2531
|
+
# @return [::String]
|
2532
|
+
# @!attribute [rw] credentials
|
2533
|
+
# Credentials to send with calls. You may provide any of the following types:
|
2534
|
+
# * (`String`) The path to a service account key file in JSON format
|
2535
|
+
# * (`Hash`) A service account key as a Hash
|
2536
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2537
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
2538
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2539
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
2540
|
+
# * (`nil`) indicating no credentials
|
2541
|
+
# @return [::Object]
|
2542
|
+
# @!attribute [rw] scope
|
2543
|
+
# The OAuth scopes
|
2544
|
+
# @return [::Array<::String>]
|
2545
|
+
# @!attribute [rw] lib_name
|
2546
|
+
# The library name as recorded in instrumentation and logging
|
2547
|
+
# @return [::String]
|
2548
|
+
# @!attribute [rw] lib_version
|
2549
|
+
# The library version as recorded in instrumentation and logging
|
2550
|
+
# @return [::String]
|
2551
|
+
# @!attribute [rw] timeout
|
2552
|
+
# The call timeout in seconds.
|
2553
|
+
# @return [::Numeric]
|
2554
|
+
# @!attribute [rw] metadata
|
2555
|
+
# Additional headers to be sent with the call.
|
2556
|
+
# @return [::Hash{::Symbol=>::String}]
|
2557
|
+
# @!attribute [rw] retry_policy
|
2558
|
+
# The retry policy. The value is a hash with the following keys:
|
2559
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
2560
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
2561
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2562
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2563
|
+
# trigger a retry.
|
2564
|
+
# @return [::Hash]
|
2565
|
+
# @!attribute [rw] quota_project
|
2566
|
+
# A separate project against which to charge quota.
|
2567
|
+
# @return [::String]
|
2568
|
+
#
|
2569
|
+
class Configuration
|
2570
|
+
extend ::Gapic::Config
|
2571
|
+
|
2572
|
+
config_attr :endpoint, "artifactregistry.googleapis.com", ::String
|
2573
|
+
config_attr :credentials, nil do |value|
|
2574
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2575
|
+
allowed.any? { |klass| klass === value }
|
2576
|
+
end
|
2577
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
2578
|
+
config_attr :lib_name, nil, ::String, nil
|
2579
|
+
config_attr :lib_version, nil, ::String, nil
|
2580
|
+
config_attr :timeout, nil, ::Numeric, nil
|
2581
|
+
config_attr :metadata, nil, ::Hash, nil
|
2582
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2583
|
+
config_attr :quota_project, nil, ::String, nil
|
2584
|
+
|
2585
|
+
# @private
|
2586
|
+
# Overrides for http bindings for the RPCs of this service
|
2587
|
+
# are only used when this service is used as mixin, and only
|
2588
|
+
# by the host service.
|
2589
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
2590
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
2591
|
+
|
2592
|
+
# @private
|
2593
|
+
def initialize parent_config = nil
|
2594
|
+
@parent_config = parent_config unless parent_config.nil?
|
2595
|
+
|
2596
|
+
yield self if block_given?
|
2597
|
+
end
|
2598
|
+
|
2599
|
+
##
|
2600
|
+
# Configurations for individual RPCs
|
2601
|
+
# @return [Rpcs]
|
2602
|
+
#
|
2603
|
+
def rpcs
|
2604
|
+
@rpcs ||= begin
|
2605
|
+
parent_rpcs = nil
|
2606
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
2607
|
+
Rpcs.new parent_rpcs
|
2608
|
+
end
|
2609
|
+
end
|
2610
|
+
|
2611
|
+
##
|
2612
|
+
# Configuration RPC class for the ArtifactRegistry API.
|
2613
|
+
#
|
2614
|
+
# Includes fields providing the configuration for each RPC in this service.
|
2615
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
2616
|
+
# the following configuration fields:
|
2617
|
+
#
|
2618
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
2619
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
2620
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
2621
|
+
# include the following keys:
|
2622
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
2623
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
2624
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2625
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2626
|
+
# trigger a retry.
|
2627
|
+
#
|
2628
|
+
class Rpcs
|
2629
|
+
##
|
2630
|
+
# RPC-specific configuration for `list_docker_images`
|
2631
|
+
# @return [::Gapic::Config::Method]
|
2632
|
+
#
|
2633
|
+
attr_reader :list_docker_images
|
2634
|
+
##
|
2635
|
+
# RPC-specific configuration for `get_docker_image`
|
2636
|
+
# @return [::Gapic::Config::Method]
|
2637
|
+
#
|
2638
|
+
attr_reader :get_docker_image
|
2639
|
+
##
|
2640
|
+
# RPC-specific configuration for `list_maven_artifacts`
|
2641
|
+
# @return [::Gapic::Config::Method]
|
2642
|
+
#
|
2643
|
+
attr_reader :list_maven_artifacts
|
2644
|
+
##
|
2645
|
+
# RPC-specific configuration for `get_maven_artifact`
|
2646
|
+
# @return [::Gapic::Config::Method]
|
2647
|
+
#
|
2648
|
+
attr_reader :get_maven_artifact
|
2649
|
+
##
|
2650
|
+
# RPC-specific configuration for `list_npm_packages`
|
2651
|
+
# @return [::Gapic::Config::Method]
|
2652
|
+
#
|
2653
|
+
attr_reader :list_npm_packages
|
2654
|
+
##
|
2655
|
+
# RPC-specific configuration for `get_npm_package`
|
2656
|
+
# @return [::Gapic::Config::Method]
|
2657
|
+
#
|
2658
|
+
attr_reader :get_npm_package
|
2659
|
+
##
|
2660
|
+
# RPC-specific configuration for `list_python_packages`
|
2661
|
+
# @return [::Gapic::Config::Method]
|
2662
|
+
#
|
2663
|
+
attr_reader :list_python_packages
|
2664
|
+
##
|
2665
|
+
# RPC-specific configuration for `get_python_package`
|
2666
|
+
# @return [::Gapic::Config::Method]
|
2667
|
+
#
|
2668
|
+
attr_reader :get_python_package
|
2669
|
+
##
|
2670
|
+
# RPC-specific configuration for `import_apt_artifacts`
|
2671
|
+
# @return [::Gapic::Config::Method]
|
2672
|
+
#
|
2673
|
+
attr_reader :import_apt_artifacts
|
2674
|
+
##
|
2675
|
+
# RPC-specific configuration for `import_yum_artifacts`
|
2676
|
+
# @return [::Gapic::Config::Method]
|
2677
|
+
#
|
2678
|
+
attr_reader :import_yum_artifacts
|
2679
|
+
##
|
2680
|
+
# RPC-specific configuration for `list_repositories`
|
2681
|
+
# @return [::Gapic::Config::Method]
|
2682
|
+
#
|
2683
|
+
attr_reader :list_repositories
|
2684
|
+
##
|
2685
|
+
# RPC-specific configuration for `get_repository`
|
2686
|
+
# @return [::Gapic::Config::Method]
|
2687
|
+
#
|
2688
|
+
attr_reader :get_repository
|
2689
|
+
##
|
2690
|
+
# RPC-specific configuration for `create_repository`
|
2691
|
+
# @return [::Gapic::Config::Method]
|
2692
|
+
#
|
2693
|
+
attr_reader :create_repository
|
2694
|
+
##
|
2695
|
+
# RPC-specific configuration for `update_repository`
|
2696
|
+
# @return [::Gapic::Config::Method]
|
2697
|
+
#
|
2698
|
+
attr_reader :update_repository
|
2699
|
+
##
|
2700
|
+
# RPC-specific configuration for `delete_repository`
|
2701
|
+
# @return [::Gapic::Config::Method]
|
2702
|
+
#
|
2703
|
+
attr_reader :delete_repository
|
2704
|
+
##
|
2705
|
+
# RPC-specific configuration for `list_packages`
|
2706
|
+
# @return [::Gapic::Config::Method]
|
2707
|
+
#
|
2708
|
+
attr_reader :list_packages
|
2709
|
+
##
|
2710
|
+
# RPC-specific configuration for `get_package`
|
2711
|
+
# @return [::Gapic::Config::Method]
|
2712
|
+
#
|
2713
|
+
attr_reader :get_package
|
2714
|
+
##
|
2715
|
+
# RPC-specific configuration for `delete_package`
|
2716
|
+
# @return [::Gapic::Config::Method]
|
2717
|
+
#
|
2718
|
+
attr_reader :delete_package
|
2719
|
+
##
|
2720
|
+
# RPC-specific configuration for `list_versions`
|
2721
|
+
# @return [::Gapic::Config::Method]
|
2722
|
+
#
|
2723
|
+
attr_reader :list_versions
|
2724
|
+
##
|
2725
|
+
# RPC-specific configuration for `get_version`
|
2726
|
+
# @return [::Gapic::Config::Method]
|
2727
|
+
#
|
2728
|
+
attr_reader :get_version
|
2729
|
+
##
|
2730
|
+
# RPC-specific configuration for `delete_version`
|
2731
|
+
# @return [::Gapic::Config::Method]
|
2732
|
+
#
|
2733
|
+
attr_reader :delete_version
|
2734
|
+
##
|
2735
|
+
# RPC-specific configuration for `list_files`
|
2736
|
+
# @return [::Gapic::Config::Method]
|
2737
|
+
#
|
2738
|
+
attr_reader :list_files
|
2739
|
+
##
|
2740
|
+
# RPC-specific configuration for `get_file`
|
2741
|
+
# @return [::Gapic::Config::Method]
|
2742
|
+
#
|
2743
|
+
attr_reader :get_file
|
2744
|
+
##
|
2745
|
+
# RPC-specific configuration for `list_tags`
|
2746
|
+
# @return [::Gapic::Config::Method]
|
2747
|
+
#
|
2748
|
+
attr_reader :list_tags
|
2749
|
+
##
|
2750
|
+
# RPC-specific configuration for `get_tag`
|
2751
|
+
# @return [::Gapic::Config::Method]
|
2752
|
+
#
|
2753
|
+
attr_reader :get_tag
|
2754
|
+
##
|
2755
|
+
# RPC-specific configuration for `create_tag`
|
2756
|
+
# @return [::Gapic::Config::Method]
|
2757
|
+
#
|
2758
|
+
attr_reader :create_tag
|
2759
|
+
##
|
2760
|
+
# RPC-specific configuration for `update_tag`
|
2761
|
+
# @return [::Gapic::Config::Method]
|
2762
|
+
#
|
2763
|
+
attr_reader :update_tag
|
2764
|
+
##
|
2765
|
+
# RPC-specific configuration for `delete_tag`
|
2766
|
+
# @return [::Gapic::Config::Method]
|
2767
|
+
#
|
2768
|
+
attr_reader :delete_tag
|
2769
|
+
##
|
2770
|
+
# RPC-specific configuration for `set_iam_policy`
|
2771
|
+
# @return [::Gapic::Config::Method]
|
2772
|
+
#
|
2773
|
+
attr_reader :set_iam_policy
|
2774
|
+
##
|
2775
|
+
# RPC-specific configuration for `get_iam_policy`
|
2776
|
+
# @return [::Gapic::Config::Method]
|
2777
|
+
#
|
2778
|
+
attr_reader :get_iam_policy
|
2779
|
+
##
|
2780
|
+
# RPC-specific configuration for `test_iam_permissions`
|
2781
|
+
# @return [::Gapic::Config::Method]
|
2782
|
+
#
|
2783
|
+
attr_reader :test_iam_permissions
|
2784
|
+
##
|
2785
|
+
# RPC-specific configuration for `get_project_settings`
|
2786
|
+
# @return [::Gapic::Config::Method]
|
2787
|
+
#
|
2788
|
+
attr_reader :get_project_settings
|
2789
|
+
##
|
2790
|
+
# RPC-specific configuration for `update_project_settings`
|
2791
|
+
# @return [::Gapic::Config::Method]
|
2792
|
+
#
|
2793
|
+
attr_reader :update_project_settings
|
2794
|
+
##
|
2795
|
+
# RPC-specific configuration for `get_vpcsc_config`
|
2796
|
+
# @return [::Gapic::Config::Method]
|
2797
|
+
#
|
2798
|
+
attr_reader :get_vpcsc_config
|
2799
|
+
##
|
2800
|
+
# RPC-specific configuration for `update_vpcsc_config`
|
2801
|
+
# @return [::Gapic::Config::Method]
|
2802
|
+
#
|
2803
|
+
attr_reader :update_vpcsc_config
|
2804
|
+
|
2805
|
+
# @private
|
2806
|
+
def initialize parent_rpcs = nil
|
2807
|
+
list_docker_images_config = parent_rpcs.list_docker_images if parent_rpcs.respond_to? :list_docker_images
|
2808
|
+
@list_docker_images = ::Gapic::Config::Method.new list_docker_images_config
|
2809
|
+
get_docker_image_config = parent_rpcs.get_docker_image if parent_rpcs.respond_to? :get_docker_image
|
2810
|
+
@get_docker_image = ::Gapic::Config::Method.new get_docker_image_config
|
2811
|
+
list_maven_artifacts_config = parent_rpcs.list_maven_artifacts if parent_rpcs.respond_to? :list_maven_artifacts
|
2812
|
+
@list_maven_artifacts = ::Gapic::Config::Method.new list_maven_artifacts_config
|
2813
|
+
get_maven_artifact_config = parent_rpcs.get_maven_artifact if parent_rpcs.respond_to? :get_maven_artifact
|
2814
|
+
@get_maven_artifact = ::Gapic::Config::Method.new get_maven_artifact_config
|
2815
|
+
list_npm_packages_config = parent_rpcs.list_npm_packages if parent_rpcs.respond_to? :list_npm_packages
|
2816
|
+
@list_npm_packages = ::Gapic::Config::Method.new list_npm_packages_config
|
2817
|
+
get_npm_package_config = parent_rpcs.get_npm_package if parent_rpcs.respond_to? :get_npm_package
|
2818
|
+
@get_npm_package = ::Gapic::Config::Method.new get_npm_package_config
|
2819
|
+
list_python_packages_config = parent_rpcs.list_python_packages if parent_rpcs.respond_to? :list_python_packages
|
2820
|
+
@list_python_packages = ::Gapic::Config::Method.new list_python_packages_config
|
2821
|
+
get_python_package_config = parent_rpcs.get_python_package if parent_rpcs.respond_to? :get_python_package
|
2822
|
+
@get_python_package = ::Gapic::Config::Method.new get_python_package_config
|
2823
|
+
import_apt_artifacts_config = parent_rpcs.import_apt_artifacts if parent_rpcs.respond_to? :import_apt_artifacts
|
2824
|
+
@import_apt_artifacts = ::Gapic::Config::Method.new import_apt_artifacts_config
|
2825
|
+
import_yum_artifacts_config = parent_rpcs.import_yum_artifacts if parent_rpcs.respond_to? :import_yum_artifacts
|
2826
|
+
@import_yum_artifacts = ::Gapic::Config::Method.new import_yum_artifacts_config
|
2827
|
+
list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
|
2828
|
+
@list_repositories = ::Gapic::Config::Method.new list_repositories_config
|
2829
|
+
get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
|
2830
|
+
@get_repository = ::Gapic::Config::Method.new get_repository_config
|
2831
|
+
create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
|
2832
|
+
@create_repository = ::Gapic::Config::Method.new create_repository_config
|
2833
|
+
update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
|
2834
|
+
@update_repository = ::Gapic::Config::Method.new update_repository_config
|
2835
|
+
delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
|
2836
|
+
@delete_repository = ::Gapic::Config::Method.new delete_repository_config
|
2837
|
+
list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
|
2838
|
+
@list_packages = ::Gapic::Config::Method.new list_packages_config
|
2839
|
+
get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
|
2840
|
+
@get_package = ::Gapic::Config::Method.new get_package_config
|
2841
|
+
delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
|
2842
|
+
@delete_package = ::Gapic::Config::Method.new delete_package_config
|
2843
|
+
list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
|
2844
|
+
@list_versions = ::Gapic::Config::Method.new list_versions_config
|
2845
|
+
get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
|
2846
|
+
@get_version = ::Gapic::Config::Method.new get_version_config
|
2847
|
+
delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
|
2848
|
+
@delete_version = ::Gapic::Config::Method.new delete_version_config
|
2849
|
+
list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
|
2850
|
+
@list_files = ::Gapic::Config::Method.new list_files_config
|
2851
|
+
get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
|
2852
|
+
@get_file = ::Gapic::Config::Method.new get_file_config
|
2853
|
+
list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
|
2854
|
+
@list_tags = ::Gapic::Config::Method.new list_tags_config
|
2855
|
+
get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
|
2856
|
+
@get_tag = ::Gapic::Config::Method.new get_tag_config
|
2857
|
+
create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
|
2858
|
+
@create_tag = ::Gapic::Config::Method.new create_tag_config
|
2859
|
+
update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
|
2860
|
+
@update_tag = ::Gapic::Config::Method.new update_tag_config
|
2861
|
+
delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
|
2862
|
+
@delete_tag = ::Gapic::Config::Method.new delete_tag_config
|
2863
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
2864
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
2865
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
2866
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
2867
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
2868
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
2869
|
+
get_project_settings_config = parent_rpcs.get_project_settings if parent_rpcs.respond_to? :get_project_settings
|
2870
|
+
@get_project_settings = ::Gapic::Config::Method.new get_project_settings_config
|
2871
|
+
update_project_settings_config = parent_rpcs.update_project_settings if parent_rpcs.respond_to? :update_project_settings
|
2872
|
+
@update_project_settings = ::Gapic::Config::Method.new update_project_settings_config
|
2873
|
+
get_vpcsc_config_config = parent_rpcs.get_vpcsc_config if parent_rpcs.respond_to? :get_vpcsc_config
|
2874
|
+
@get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
|
2875
|
+
update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
|
2876
|
+
@update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
|
2877
|
+
|
2878
|
+
yield self if block_given?
|
2879
|
+
end
|
2880
|
+
end
|
2881
|
+
end
|
2882
|
+
end
|
2883
|
+
end
|
2884
|
+
end
|
2885
|
+
end
|
2886
|
+
end
|
2887
|
+
end
|
2888
|
+
end
|