google-cloud-artifact_registry-v1beta2 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/README.md +2 -2
  5. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +975 -129
  6. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/operations.rb +145 -33
  7. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/paths.rb +54 -0
  8. data/lib/google/cloud/artifact_registry/v1beta2/version.rb +1 -1
  9. data/lib/google/devtools/artifactregistry/v1beta2/apt_artifact_pb.rb +65 -0
  10. data/lib/google/devtools/artifactregistry/v1beta2/file_pb.rb +4 -3
  11. data/lib/google/devtools/artifactregistry/v1beta2/package_pb.rb +2 -2
  12. data/lib/google/devtools/artifactregistry/v1beta2/repository_pb.rb +23 -3
  13. data/lib/google/devtools/artifactregistry/v1beta2/service_pb.rb +5 -2
  14. data/lib/google/devtools/artifactregistry/v1beta2/service_services_pb.rb +15 -1
  15. data/lib/google/devtools/artifactregistry/v1beta2/settings_pb.rb +24 -3
  16. data/lib/google/devtools/artifactregistry/v1beta2/tag_pb.rb +3 -2
  17. data/lib/google/devtools/artifactregistry/v1beta2/version_pb.rb +8 -3
  18. data/lib/google/devtools/artifactregistry/v1beta2/yum_artifact_pb.rb +63 -0
  19. data/proto_docs/google/api/resource.rb +10 -71
  20. data/proto_docs/google/devtools/artifactregistry/v1beta2/apt_artifact.rb +118 -0
  21. data/proto_docs/google/devtools/artifactregistry/v1beta2/file.rb +5 -1
  22. data/proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb +53 -6
  23. data/proto_docs/google/devtools/artifactregistry/v1beta2/settings.rb +80 -0
  24. data/proto_docs/google/devtools/artifactregistry/v1beta2/tag.rb +6 -2
  25. data/proto_docs/google/devtools/artifactregistry/v1beta2/version.rb +12 -2
  26. data/proto_docs/google/devtools/artifactregistry/v1beta2/yum_artifact.rb +110 -0
  27. data/proto_docs/google/protobuf/struct.rb +96 -0
  28. metadata +11 -5
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,16 +181,20 @@ module Google
160
181
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
169
192
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
193
  metadata: metadata,
171
194
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
195
+
196
+ options.apply_defaults timeout: @config.timeout,
197
+ metadata: @config.metadata,
173
198
  retry_policy: @config.retry_policy
174
199
 
175
200
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -213,6 +238,28 @@ module Google
213
238
  #
214
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
215
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
216
263
  def get_operation request, options = nil
217
264
  raise ::ArgumentError, "request must be provided" if request.nil?
218
265
 
@@ -230,16 +277,20 @@ module Google
230
277
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
231
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
232
279
 
233
- header_params = {
234
- "name" => request.name
235
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
236
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
237
286
  metadata[:"x-goog-request-params"] ||= request_params_header
238
287
 
239
288
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
289
  metadata: metadata,
241
290
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
291
+
292
+ options.apply_defaults timeout: @config.timeout,
293
+ metadata: @config.metadata,
243
294
  retry_policy: @config.retry_policy
244
295
 
245
296
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -283,6 +334,21 @@ module Google
283
334
  #
284
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
285
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
286
352
  def delete_operation request, options = nil
287
353
  raise ::ArgumentError, "request must be provided" if request.nil?
288
354
 
@@ -300,16 +366,20 @@ module Google
300
366
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
301
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
302
368
 
303
- header_params = {
304
- "name" => request.name
305
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
306
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
307
375
  metadata[:"x-goog-request-params"] ||= request_params_header
308
376
 
309
377
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
378
  metadata: metadata,
311
379
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
380
+
381
+ options.apply_defaults timeout: @config.timeout,
382
+ metadata: @config.metadata,
313
383
  retry_policy: @config.retry_policy
314
384
 
315
385
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -358,6 +428,21 @@ module Google
358
428
  #
359
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
360
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
361
446
  def cancel_operation request, options = nil
362
447
  raise ::ArgumentError, "request must be provided" if request.nil?
363
448
 
@@ -375,16 +460,20 @@ module Google
375
460
  gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
376
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
377
462
 
378
- header_params = {
379
- "name" => request.name
380
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
381
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
382
469
  metadata[:"x-goog-request-params"] ||= request_params_header
383
470
 
384
471
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
472
  metadata: metadata,
386
473
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
474
+
475
+ options.apply_defaults timeout: @config.timeout,
476
+ metadata: @config.metadata,
388
477
  retry_policy: @config.retry_policy
389
478
 
390
479
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -436,6 +525,28 @@ module Google
436
525
  #
437
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
438
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
439
550
  def wait_operation request, options = nil
440
551
  raise ::ArgumentError, "request must be provided" if request.nil?
441
552
 
@@ -456,7 +567,9 @@ module Google
456
567
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
568
  metadata: metadata,
458
569
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
570
+
571
+ options.apply_defaults timeout: @config.timeout,
572
+ metadata: @config.metadata,
460
573
  retry_policy: @config.retry_policy
461
574
 
462
575
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +594,21 @@ module Google
481
594
  # Configuration can be applied globally to all clients, or to a single client
482
595
  # on construction.
483
596
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
597
+ # @example
598
+ #
599
+ # # Modify the global config, setting the timeout for
600
+ # # list_operations to 20 seconds,
601
+ # # and all remaining timeouts to 10 seconds.
602
+ # ::Google::Longrunning::Operations::Client.configure do |config|
603
+ # config.timeout = 10.0
604
+ # config.rpcs.list_operations.timeout = 20.0
605
+ # end
606
+ #
607
+ # # Apply the above configuration only to a new client.
608
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
609
+ # config.timeout = 10.0
610
+ # config.rpcs.list_operations.timeout = 20.0
611
+ # end
500
612
  #
501
613
  # @!attribute [rw] endpoint
502
614
  # The hostname or hostname:port of the service endpoint.
@@ -24,6 +24,37 @@ module Google
24
24
  module ArtifactRegistry
25
25
  # Path helper methods for the ArtifactRegistry API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified Location resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ #
37
+ # @return [::String]
38
+ def location_path project:, location:
39
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
40
+
41
+ "projects/#{project}/locations/#{location}"
42
+ end
43
+
44
+ ##
45
+ # Create a fully-qualified ProjectSettings resource string.
46
+ #
47
+ # The resource will be in the following format:
48
+ #
49
+ # `projects/{project}/projectSettings`
50
+ #
51
+ # @param project [String]
52
+ #
53
+ # @return [::String]
54
+ def project_settings_path project:
55
+ "projects/#{project}/projectSettings"
56
+ end
57
+
27
58
  ##
28
59
  # Create a fully-qualified Repository resource string.
29
60
  #
@@ -43,6 +74,29 @@ module Google
43
74
  "projects/#{project}/locations/#{location}/repositories/#{repository}"
44
75
  end
45
76
 
77
+ ##
78
+ # Create a fully-qualified Tag resource string.
79
+ #
80
+ # The resource will be in the following format:
81
+ #
82
+ # `projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}`
83
+ #
84
+ # @param project [String]
85
+ # @param location [String]
86
+ # @param repository [String]
87
+ # @param package [String]
88
+ # @param tag [String]
89
+ #
90
+ # @return [::String]
91
+ def tag_path project:, location:, repository:, package:, tag:
92
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
93
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
94
+ raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
95
+ raise ::ArgumentError, "package cannot contain /" if package.to_s.include? "/"
96
+
97
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/packages/#{package}/tags/#{tag}"
98
+ end
99
+
46
100
  extend self
47
101
  end
48
102
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1beta2
24
- VERSION = "0.3.3"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -0,0 +1,65 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/devtools/artifactregistry/v1beta2/apt_artifact.proto
3
+
4
+ require 'google/api/annotations_pb'
5
+ require 'google/api/field_behavior_pb'
6
+ require 'google/api/resource_pb'
7
+ require 'google/longrunning/operations_pb'
8
+ require 'google/rpc/status_pb'
9
+ require 'google/protobuf'
10
+
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("google/devtools/artifactregistry/v1beta2/apt_artifact.proto", :syntax => :proto3) do
13
+ add_message "google.devtools.artifactregistry.v1beta2.AptArtifact" do
14
+ optional :name, :string, 1
15
+ optional :package_name, :string, 2
16
+ optional :package_type, :enum, 3, "google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType"
17
+ optional :architecture, :string, 4
18
+ optional :component, :string, 5
19
+ optional :control_file, :bytes, 6
20
+ end
21
+ add_enum "google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType" do
22
+ value :PACKAGE_TYPE_UNSPECIFIED, 0
23
+ value :BINARY, 1
24
+ value :SOURCE, 2
25
+ end
26
+ add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource" do
27
+ repeated :uris, :string, 1
28
+ optional :use_wildcards, :bool, 2
29
+ end
30
+ add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest" do
31
+ optional :parent, :string, 1
32
+ oneof :source do
33
+ optional :gcs_source, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource"
34
+ end
35
+ end
36
+ add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo" do
37
+ optional :error, :message, 2, "google.rpc.Status"
38
+ oneof :source do
39
+ optional :gcs_source, :message, 1, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource"
40
+ end
41
+ end
42
+ add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsResponse" do
43
+ repeated :apt_artifacts, :message, 1, "google.devtools.artifactregistry.v1beta2.AptArtifact"
44
+ repeated :errors, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo"
45
+ end
46
+ add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsMetadata" do
47
+ end
48
+ end
49
+ end
50
+
51
+ module Google
52
+ module Cloud
53
+ module ArtifactRegistry
54
+ module V1beta2
55
+ AptArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.AptArtifact").msgclass
56
+ AptArtifact::PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType").enummodule
57
+ ImportAptArtifactsGcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource").msgclass
58
+ ImportAptArtifactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest").msgclass
59
+ ImportAptArtifactsErrorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo").msgclass
60
+ ImportAptArtifactsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsResponse").msgclass
61
+ ImportAptArtifactsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsMetadata").msgclass
62
+ end
63
+ end
64
+ end
65
+ end
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/artifactregistry/v1beta2/file.proto
3
3
 
4
- require 'google/protobuf'
5
-
4
+ require 'google/api/annotations_pb'
6
5
  require 'google/api/resource_pb'
7
6
  require 'google/protobuf/timestamp_pb'
8
- require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/devtools/artifactregistry/v1beta2/file.proto", :syntax => :proto3) do
11
11
  add_message "google.devtools.artifactregistry.v1beta2.Hash" do
@@ -15,6 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_enum "google.devtools.artifactregistry.v1beta2.Hash.HashType" do
16
16
  value :HASH_TYPE_UNSPECIFIED, 0
17
17
  value :SHA256, 1
18
+ value :MD5, 2
18
19
  end
19
20
  add_message "google.devtools.artifactregistry.v1beta2.File" do
20
21
  optional :name, :string, 1
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/artifactregistry/v1beta2/package.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/timestamp_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/devtools/artifactregistry/v1beta2/package.proto", :syntax => :proto3) do
10
10
  add_message "google.devtools.artifactregistry.v1beta2.Package" do
@@ -1,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/artifactregistry/v1beta2/repository.proto
3
3
 
4
- require 'google/protobuf'
5
-
4
+ require 'google/api/annotations_pb'
5
+ require 'google/api/field_behavior_pb'
6
6
  require 'google/api/resource_pb'
7
7
  require 'google/protobuf/field_mask_pb'
8
8
  require 'google/protobuf/timestamp_pb'
9
- require 'google/api/annotations_pb'
9
+ require 'google/protobuf'
10
+
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  add_file("google/devtools/artifactregistry/v1beta2/repository.proto", :syntax => :proto3) do
12
13
  add_message "google.devtools.artifactregistry.v1beta2.Repository" do
@@ -17,10 +18,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
17
18
  optional :create_time, :message, 5, "google.protobuf.Timestamp"
18
19
  optional :update_time, :message, 6, "google.protobuf.Timestamp"
19
20
  optional :kms_key_name, :string, 8
21
+ oneof :format_config do
22
+ optional :maven_config, :message, 9, "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig"
23
+ end
24
+ end
25
+ add_message "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig" do
26
+ optional :allow_snapshot_overwrites, :bool, 1
27
+ optional :version_policy, :enum, 2, "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy"
28
+ end
29
+ add_enum "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy" do
30
+ value :VERSION_POLICY_UNSPECIFIED, 0
31
+ value :RELEASE, 1
32
+ value :SNAPSHOT, 2
20
33
  end
21
34
  add_enum "google.devtools.artifactregistry.v1beta2.Repository.Format" do
22
35
  value :FORMAT_UNSPECIFIED, 0
23
36
  value :DOCKER, 1
37
+ value :MAVEN, 2
38
+ value :NPM, 3
39
+ value :APT, 5
40
+ value :YUM, 6
41
+ value :PYTHON, 8
24
42
  end
25
43
  add_message "google.devtools.artifactregistry.v1beta2.ListRepositoriesRequest" do
26
44
  optional :parent, :string, 1
@@ -54,6 +72,8 @@ module Google
54
72
  module ArtifactRegistry
55
73
  module V1beta2
56
74
  Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository").msgclass
75
+ Repository::MavenRepositoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig").msgclass
76
+ Repository::MavenRepositoryConfig::VersionPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy").enummodule
57
77
  Repository::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository.Format").enummodule
58
78
  ListRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ListRepositoriesRequest").msgclass
59
79
  ListRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse").msgclass
@@ -1,19 +1,22 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/artifactregistry/v1beta2/service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
6
+ require 'google/devtools/artifactregistry/v1beta2/apt_artifact_pb'
8
7
  require 'google/devtools/artifactregistry/v1beta2/file_pb'
9
8
  require 'google/devtools/artifactregistry/v1beta2/package_pb'
10
9
  require 'google/devtools/artifactregistry/v1beta2/repository_pb'
10
+ require 'google/devtools/artifactregistry/v1beta2/settings_pb'
11
11
  require 'google/devtools/artifactregistry/v1beta2/tag_pb'
12
12
  require 'google/devtools/artifactregistry/v1beta2/version_pb'
13
+ require 'google/devtools/artifactregistry/v1beta2/yum_artifact_pb'
13
14
  require 'google/iam/v1/iam_policy_pb'
14
15
  require 'google/iam/v1/policy_pb'
15
16
  require 'google/longrunning/operations_pb'
16
17
  require 'google/protobuf/empty_pb'
18
+ require 'google/protobuf'
19
+
17
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
18
21
  add_file("google/devtools/artifactregistry/v1beta2/service.proto", :syntax => :proto3) do
19
22
  add_message "google.devtools.artifactregistry.v1beta2.OperationMetadata" do
@@ -39,12 +39,22 @@ module Google
39
39
  # or Version.
40
40
  class Service
41
41
 
42
- include GRPC::GenericService
42
+ include ::GRPC::GenericService
43
43
 
44
44
  self.marshal_class_method = :encode
45
45
  self.unmarshal_class_method = :decode
46
46
  self.service_name = 'google.devtools.artifactregistry.v1beta2.ArtifactRegistry'
47
47
 
48
+ # Imports Apt artifacts. The returned Operation will complete once the
49
+ # resources are imported. Package, Version, and File resources are created
50
+ # based on the imported artifacts. Imported artifacts that conflict with
51
+ # existing resources are ignored.
52
+ rpc :ImportAptArtifacts, ::Google::Cloud::ArtifactRegistry::V1beta2::ImportAptArtifactsRequest, ::Google::Longrunning::Operation
53
+ # Imports Yum (RPM) artifacts. The returned Operation will complete once the
54
+ # resources are imported. Package, Version, and File resources are created
55
+ # based on the imported artifacts. Imported artifacts that conflict with
56
+ # existing resources are ignored.
57
+ rpc :ImportYumArtifacts, ::Google::Cloud::ArtifactRegistry::V1beta2::ImportYumArtifactsRequest, ::Google::Longrunning::Operation
48
58
  # Lists repositories.
49
59
  rpc :ListRepositories, ::Google::Cloud::ArtifactRegistry::V1beta2::ListRepositoriesRequest, ::Google::Cloud::ArtifactRegistry::V1beta2::ListRepositoriesResponse
50
60
  # Gets a repository.
@@ -92,6 +102,10 @@ module Google
92
102
  rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
93
103
  # Tests if the caller has a list of permissions on a resource.
94
104
  rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
105
+ # Retrieves the Settings for the Project.
106
+ rpc :GetProjectSettings, ::Google::Cloud::ArtifactRegistry::V1beta2::GetProjectSettingsRequest, ::Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings
107
+ # Updates the Settings for the Project.
108
+ rpc :UpdateProjectSettings, ::Google::Cloud::ArtifactRegistry::V1beta2::UpdateProjectSettingsRequest, ::Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings
95
109
  end
96
110
 
97
111
  Stub = Service.rpc_stub_class
@@ -1,14 +1,31 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/artifactregistry/v1beta2/settings.proto
3
3
 
4
- require 'google/protobuf'
5
-
4
+ require 'google/api/annotations_pb'
6
5
  require 'google/api/field_behavior_pb'
7
6
  require 'google/api/resource_pb'
8
7
  require 'google/protobuf/field_mask_pb'
9
- require 'google/api/annotations_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/devtools/artifactregistry/v1beta2/settings.proto", :syntax => :proto3) do
12
+ add_message "google.devtools.artifactregistry.v1beta2.ProjectSettings" do
13
+ optional :name, :string, 1
14
+ optional :legacy_redirection_state, :enum, 2, "google.devtools.artifactregistry.v1beta2.ProjectSettings.RedirectionState"
15
+ end
16
+ add_enum "google.devtools.artifactregistry.v1beta2.ProjectSettings.RedirectionState" do
17
+ value :REDIRECTION_STATE_UNSPECIFIED, 0
18
+ value :REDIRECTION_FROM_GCR_IO_DISABLED, 1
19
+ value :REDIRECTION_FROM_GCR_IO_ENABLED, 2
20
+ value :REDIRECTION_FROM_GCR_IO_FINALIZED, 3
21
+ end
22
+ add_message "google.devtools.artifactregistry.v1beta2.GetProjectSettingsRequest" do
23
+ optional :name, :string, 1
24
+ end
25
+ add_message "google.devtools.artifactregistry.v1beta2.UpdateProjectSettingsRequest" do
26
+ optional :project_settings, :message, 2, "google.devtools.artifactregistry.v1beta2.ProjectSettings"
27
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
28
+ end
12
29
  end
13
30
  end
14
31
 
@@ -16,6 +33,10 @@ module Google
16
33
  module Cloud
17
34
  module ArtifactRegistry
18
35
  module V1beta2
36
+ ProjectSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ProjectSettings").msgclass
37
+ ProjectSettings::RedirectionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ProjectSettings.RedirectionState").enummodule
38
+ GetProjectSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.GetProjectSettingsRequest").msgclass
39
+ UpdateProjectSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.UpdateProjectSettingsRequest").msgclass
19
40
  end
20
41
  end
21
42
  end
@@ -1,10 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/artifactregistry/v1beta2/tag.proto
3
3
 
4
+ require 'google/api/annotations_pb'
5
+ require 'google/api/resource_pb'
6
+ require 'google/protobuf/field_mask_pb'
4
7
  require 'google/protobuf'
5
8
 
6
- require 'google/protobuf/field_mask_pb'
7
- require 'google/api/annotations_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/devtools/artifactregistry/v1beta2/tag.proto", :syntax => :proto3) do
10
11
  add_message "google.devtools.artifactregistry.v1beta2.Tag" do