google-cloud-artifact_registry-v1beta2 0.1.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,25 +72,19 @@ module Google
72
72
  parent_config = while namespace.any?
73
73
  parent_name = namespace.join "::"
74
74
  parent_const = const_get parent_name
75
- break parent_const.configure if parent_const&.respond_to? :configure
75
+ break parent_const.configure if parent_const.respond_to? :configure
76
76
  namespace.pop
77
77
  end
78
78
  default_config = Client::Configuration.new parent_config
79
79
 
80
80
  default_config.rpcs.list_repositories.timeout = 30.0
81
81
  default_config.rpcs.list_repositories.retry_policy = {
82
- initial_delay: 0.1,
83
- max_delay: 60.0,
84
- multiplier: 1.3,
85
- retry_codes: [14]
82
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
86
83
  }
87
84
 
88
85
  default_config.rpcs.get_repository.timeout = 30.0
89
86
  default_config.rpcs.get_repository.retry_policy = {
90
- initial_delay: 0.1,
91
- max_delay: 60.0,
92
- multiplier: 1.3,
93
- retry_codes: [14]
87
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
94
88
  }
95
89
 
96
90
  default_config.rpcs.create_repository.timeout = 30.0
@@ -99,90 +93,57 @@ module Google
99
93
 
100
94
  default_config.rpcs.delete_repository.timeout = 30.0
101
95
  default_config.rpcs.delete_repository.retry_policy = {
102
- initial_delay: 0.1,
103
- max_delay: 60.0,
104
- multiplier: 1.3,
105
- retry_codes: [14]
96
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
106
97
  }
107
98
 
108
99
  default_config.rpcs.list_packages.timeout = 30.0
109
100
  default_config.rpcs.list_packages.retry_policy = {
110
- initial_delay: 0.1,
111
- max_delay: 60.0,
112
- multiplier: 1.3,
113
- retry_codes: [14]
101
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
114
102
  }
115
103
 
116
104
  default_config.rpcs.get_package.timeout = 30.0
117
105
  default_config.rpcs.get_package.retry_policy = {
118
- initial_delay: 0.1,
119
- max_delay: 60.0,
120
- multiplier: 1.3,
121
- retry_codes: [14]
106
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
122
107
  }
123
108
 
124
109
  default_config.rpcs.delete_package.timeout = 30.0
125
110
  default_config.rpcs.delete_package.retry_policy = {
126
- initial_delay: 0.1,
127
- max_delay: 60.0,
128
- multiplier: 1.3,
129
- retry_codes: [14]
111
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
130
112
  }
131
113
 
132
114
  default_config.rpcs.list_versions.timeout = 30.0
133
115
  default_config.rpcs.list_versions.retry_policy = {
134
- initial_delay: 0.1,
135
- max_delay: 60.0,
136
- multiplier: 1.3,
137
- retry_codes: [14]
116
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
138
117
  }
139
118
 
140
119
  default_config.rpcs.get_version.timeout = 30.0
141
120
  default_config.rpcs.get_version.retry_policy = {
142
- initial_delay: 0.1,
143
- max_delay: 60.0,
144
- multiplier: 1.3,
145
- retry_codes: [14]
121
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
146
122
  }
147
123
 
148
124
  default_config.rpcs.delete_version.timeout = 30.0
149
125
  default_config.rpcs.delete_version.retry_policy = {
150
- initial_delay: 0.1,
151
- max_delay: 60.0,
152
- multiplier: 1.3,
153
- retry_codes: [14]
126
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
154
127
  }
155
128
 
156
129
  default_config.rpcs.list_files.timeout = 30.0
157
130
  default_config.rpcs.list_files.retry_policy = {
158
- initial_delay: 0.1,
159
- max_delay: 60.0,
160
- multiplier: 1.3,
161
- retry_codes: [14]
131
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
162
132
  }
163
133
 
164
134
  default_config.rpcs.get_file.timeout = 30.0
165
135
  default_config.rpcs.get_file.retry_policy = {
166
- initial_delay: 0.1,
167
- max_delay: 60.0,
168
- multiplier: 1.3,
169
- retry_codes: [14]
136
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
170
137
  }
171
138
 
172
139
  default_config.rpcs.list_tags.timeout = 30.0
173
140
  default_config.rpcs.list_tags.retry_policy = {
174
- initial_delay: 0.1,
175
- max_delay: 60.0,
176
- multiplier: 1.3,
177
- retry_codes: [14]
141
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
178
142
  }
179
143
 
180
144
  default_config.rpcs.get_tag.timeout = 30.0
181
145
  default_config.rpcs.get_tag.retry_policy = {
182
- initial_delay: 0.1,
183
- max_delay: 60.0,
184
- multiplier: 1.3,
185
- retry_codes: [14]
146
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
186
147
  }
187
148
 
188
149
  default_config.rpcs.create_tag.timeout = 30.0
@@ -191,18 +152,12 @@ module Google
191
152
 
192
153
  default_config.rpcs.delete_tag.timeout = 30.0
193
154
  default_config.rpcs.delete_tag.retry_policy = {
194
- initial_delay: 0.1,
195
- max_delay: 60.0,
196
- multiplier: 1.3,
197
- retry_codes: [14]
155
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
198
156
  }
199
157
 
200
158
  default_config.rpcs.get_iam_policy.timeout = 30.0
201
159
  default_config.rpcs.get_iam_policy.retry_policy = {
202
- initial_delay: 0.1,
203
- max_delay: 60.0,
204
- multiplier: 1.3,
205
- retry_codes: [14]
160
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
206
161
  }
207
162
 
208
163
  default_config.rpcs.test_iam_permissions.timeout = 30.0
@@ -268,8 +223,14 @@ module Google
268
223
 
269
224
  # Create credentials
270
225
  credentials = @config.credentials
271
- credentials ||= Credentials.default scope: @config.scope
272
- if credentials.is_a?(String) || credentials.is_a?(Hash)
226
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
227
+ # but only if the default endpoint does not have a region prefix.
228
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
229
+ @config.endpoint == Client.configure.endpoint &&
230
+ !@config.endpoint.split(".").first.include?("-")
231
+ credentials ||= Credentials.default scope: @config.scope,
232
+ enable_self_signed_jwt: enable_self_signed_jwt
233
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
273
234
  credentials = Credentials.new credentials, scope: @config.scope
274
235
  end
275
236
  @quota_project_id = @config.quota_project
@@ -1876,7 +1837,7 @@ module Google
1876
1837
  config_attr :scope, nil, ::String, ::Array, nil
1877
1838
  config_attr :lib_name, nil, ::String, nil
1878
1839
  config_attr :lib_version, nil, ::String, nil
1879
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1840
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
1880
1841
  config_attr :interceptors, nil, ::Array, nil
1881
1842
  config_attr :timeout, nil, ::Numeric, nil
1882
1843
  config_attr :metadata, nil, ::Hash, nil
@@ -1897,7 +1858,7 @@ module Google
1897
1858
  def rpcs
1898
1859
  @rpcs ||= begin
1899
1860
  parent_rpcs = nil
1900
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1861
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1901
1862
  Rpcs.new parent_rpcs
1902
1863
  end
1903
1864
  end
@@ -2028,47 +1989,47 @@ module Google
2028
1989
 
2029
1990
  # @private
2030
1991
  def initialize parent_rpcs = nil
2031
- list_repositories_config = parent_rpcs&.list_repositories if parent_rpcs&.respond_to? :list_repositories
1992
+ list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
2032
1993
  @list_repositories = ::Gapic::Config::Method.new list_repositories_config
2033
- get_repository_config = parent_rpcs&.get_repository if parent_rpcs&.respond_to? :get_repository
1994
+ get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
2034
1995
  @get_repository = ::Gapic::Config::Method.new get_repository_config
2035
- create_repository_config = parent_rpcs&.create_repository if parent_rpcs&.respond_to? :create_repository
1996
+ create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
2036
1997
  @create_repository = ::Gapic::Config::Method.new create_repository_config
2037
- update_repository_config = parent_rpcs&.update_repository if parent_rpcs&.respond_to? :update_repository
1998
+ update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
2038
1999
  @update_repository = ::Gapic::Config::Method.new update_repository_config
2039
- delete_repository_config = parent_rpcs&.delete_repository if parent_rpcs&.respond_to? :delete_repository
2000
+ delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
2040
2001
  @delete_repository = ::Gapic::Config::Method.new delete_repository_config
2041
- list_packages_config = parent_rpcs&.list_packages if parent_rpcs&.respond_to? :list_packages
2002
+ list_packages_config = parent_rpcs.list_packages if parent_rpcs.respond_to? :list_packages
2042
2003
  @list_packages = ::Gapic::Config::Method.new list_packages_config
2043
- get_package_config = parent_rpcs&.get_package if parent_rpcs&.respond_to? :get_package
2004
+ get_package_config = parent_rpcs.get_package if parent_rpcs.respond_to? :get_package
2044
2005
  @get_package = ::Gapic::Config::Method.new get_package_config
2045
- delete_package_config = parent_rpcs&.delete_package if parent_rpcs&.respond_to? :delete_package
2006
+ delete_package_config = parent_rpcs.delete_package if parent_rpcs.respond_to? :delete_package
2046
2007
  @delete_package = ::Gapic::Config::Method.new delete_package_config
2047
- list_versions_config = parent_rpcs&.list_versions if parent_rpcs&.respond_to? :list_versions
2008
+ list_versions_config = parent_rpcs.list_versions if parent_rpcs.respond_to? :list_versions
2048
2009
  @list_versions = ::Gapic::Config::Method.new list_versions_config
2049
- get_version_config = parent_rpcs&.get_version if parent_rpcs&.respond_to? :get_version
2010
+ get_version_config = parent_rpcs.get_version if parent_rpcs.respond_to? :get_version
2050
2011
  @get_version = ::Gapic::Config::Method.new get_version_config
2051
- delete_version_config = parent_rpcs&.delete_version if parent_rpcs&.respond_to? :delete_version
2012
+ delete_version_config = parent_rpcs.delete_version if parent_rpcs.respond_to? :delete_version
2052
2013
  @delete_version = ::Gapic::Config::Method.new delete_version_config
2053
- list_files_config = parent_rpcs&.list_files if parent_rpcs&.respond_to? :list_files
2014
+ list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
2054
2015
  @list_files = ::Gapic::Config::Method.new list_files_config
2055
- get_file_config = parent_rpcs&.get_file if parent_rpcs&.respond_to? :get_file
2016
+ get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
2056
2017
  @get_file = ::Gapic::Config::Method.new get_file_config
2057
- list_tags_config = parent_rpcs&.list_tags if parent_rpcs&.respond_to? :list_tags
2018
+ list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
2058
2019
  @list_tags = ::Gapic::Config::Method.new list_tags_config
2059
- get_tag_config = parent_rpcs&.get_tag if parent_rpcs&.respond_to? :get_tag
2020
+ get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
2060
2021
  @get_tag = ::Gapic::Config::Method.new get_tag_config
2061
- create_tag_config = parent_rpcs&.create_tag if parent_rpcs&.respond_to? :create_tag
2022
+ create_tag_config = parent_rpcs.create_tag if parent_rpcs.respond_to? :create_tag
2062
2023
  @create_tag = ::Gapic::Config::Method.new create_tag_config
2063
- update_tag_config = parent_rpcs&.update_tag if parent_rpcs&.respond_to? :update_tag
2024
+ update_tag_config = parent_rpcs.update_tag if parent_rpcs.respond_to? :update_tag
2064
2025
  @update_tag = ::Gapic::Config::Method.new update_tag_config
2065
- delete_tag_config = parent_rpcs&.delete_tag if parent_rpcs&.respond_to? :delete_tag
2026
+ delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
2066
2027
  @delete_tag = ::Gapic::Config::Method.new delete_tag_config
2067
- set_iam_policy_config = parent_rpcs&.set_iam_policy if parent_rpcs&.respond_to? :set_iam_policy
2028
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
2068
2029
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
2069
- get_iam_policy_config = parent_rpcs&.get_iam_policy if parent_rpcs&.respond_to? :get_iam_policy
2030
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
2070
2031
  @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
2071
- test_iam_permissions_config = parent_rpcs&.test_iam_permissions if parent_rpcs&.respond_to? :test_iam_permissions
2032
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
2072
2033
  @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
2073
2034
 
2074
2035
  yield self if block_given?
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -103,8 +103,13 @@ module Google
103
103
  # Lists operations that match the specified filter in the request. If the
104
104
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
105
105
  #
106
- # NOTE: the `name` binding below allows API services to override the binding
107
- # to use different resource name schemes, such as `users/*/operations`.
106
+ # NOTE: the `name` binding allows API services to override the binding
107
+ # to use different resource name schemes, such as `users/*/operations`. To
108
+ # override the binding, API services can add a binding such as
109
+ # `"/v1/{name=users/*}/operations"` to their service configuration.
110
+ # For backwards compatibility, the default name includes the operations
111
+ # collection id, however overriding users must ensure the name binding
112
+ # is the parent resource, without the operations collection id.
108
113
  #
109
114
  # @overload list_operations(request, options = nil)
110
115
  # Pass arguments to `list_operations` via a request object, either of type
@@ -122,7 +127,7 @@ module Google
122
127
  # the default parameter values, pass an empty Hash as a request object (see above).
123
128
  #
124
129
  # @param name [::String]
125
- # The name of the operation collection.
130
+ # The name of the operation's parent resource.
126
131
  # @param filter [::String]
127
132
  # The standard list filter.
128
133
  # @param page_size [::Integer]
@@ -390,6 +395,79 @@ module Google
390
395
  raise ::Google::Cloud::Error.from_error(e)
391
396
  end
392
397
 
398
+ ##
399
+ # Waits until the specified long-running operation is done or reaches at most
400
+ # a specified timeout, returning the latest state. If the operation is
401
+ # already done, the latest state is immediately returned. If the timeout
402
+ # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
+ # timeout is used. If the server does not support this method, it returns
404
+ # `google.rpc.Code.UNIMPLEMENTED`.
405
+ # Note that this method is on a best-effort basis. It may return the latest
406
+ # state before the specified timeout (including immediately), meaning even an
407
+ # immediate response is no guarantee that the operation is done.
408
+ #
409
+ # @overload wait_operation(request, options = nil)
410
+ # Pass arguments to `wait_operation` via a request object, either of type
411
+ # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash.
412
+ #
413
+ # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash]
414
+ # A request object representing the call parameters. Required. To specify no
415
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
416
+ # @param options [::Gapic::CallOptions, ::Hash]
417
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
418
+ #
419
+ # @overload wait_operation(name: nil, timeout: nil)
420
+ # Pass arguments to `wait_operation` via keyword arguments. Note that at
421
+ # least one keyword argument is required. To specify no parameters, or to keep all
422
+ # the default parameter values, pass an empty Hash as a request object (see above).
423
+ #
424
+ # @param name [::String]
425
+ # The name of the operation resource to wait on.
426
+ # @param timeout [::Google::Protobuf::Duration, ::Hash]
427
+ # The maximum duration to wait before timing out. If left blank, the wait
428
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
429
+ # If RPC context deadline is also specified, the shorter one will be used.
430
+ #
431
+ # @yield [response, operation] Access the result along with the RPC operation
432
+ # @yieldparam response [::Gapic::Operation]
433
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
434
+ #
435
+ # @return [::Gapic::Operation]
436
+ #
437
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
438
+ #
439
+ def wait_operation request, options = nil
440
+ raise ::ArgumentError, "request must be provided" if request.nil?
441
+
442
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest
443
+
444
+ # Converts hash and nil to an options object
445
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
446
+
447
+ # Customize the options with defaults
448
+ metadata = @config.rpcs.wait_operation.metadata.to_h
449
+
450
+ # Set x-goog-api-client and x-goog-user-project headers
451
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
452
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
453
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1beta2::VERSION
454
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
455
+
456
+ options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
+ metadata: metadata,
458
+ retry_policy: @config.rpcs.wait_operation.retry_policy
459
+ options.apply_defaults metadata: @config.metadata,
460
+ retry_policy: @config.retry_policy
461
+
462
+ @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
463
+ response = ::Gapic::Operation.new response, @operations_client, options: options
464
+ yield response, operation if block_given?
465
+ return response
466
+ end
467
+ rescue ::GRPC::BadStatus => e
468
+ raise ::Google::Cloud::Error.from_error(e)
469
+ end
470
+
393
471
  ##
394
472
  # Configuration class for the Operations API.
395
473
  #
@@ -482,7 +560,7 @@ module Google
482
560
  config_attr :scope, nil, ::String, ::Array, nil
483
561
  config_attr :lib_name, nil, ::String, nil
484
562
  config_attr :lib_version, nil, ::String, nil
485
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
563
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
486
564
  config_attr :interceptors, nil, ::Array, nil
487
565
  config_attr :timeout, nil, ::Numeric, nil
488
566
  config_attr :metadata, nil, ::Hash, nil
@@ -503,7 +581,7 @@ module Google
503
581
  def rpcs
504
582
  @rpcs ||= begin
505
583
  parent_rpcs = nil
506
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
584
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
507
585
  Rpcs.new parent_rpcs
508
586
  end
509
587
  end
@@ -546,17 +624,24 @@ module Google
546
624
  # @return [::Gapic::Config::Method]
547
625
  #
548
626
  attr_reader :cancel_operation
627
+ ##
628
+ # RPC-specific configuration for `wait_operation`
629
+ # @return [::Gapic::Config::Method]
630
+ #
631
+ attr_reader :wait_operation
549
632
 
550
633
  # @private
551
634
  def initialize parent_rpcs = nil
552
- list_operations_config = parent_rpcs&.list_operations if parent_rpcs&.respond_to? :list_operations
635
+ list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
553
636
  @list_operations = ::Gapic::Config::Method.new list_operations_config
554
- get_operation_config = parent_rpcs&.get_operation if parent_rpcs&.respond_to? :get_operation
637
+ get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
555
638
  @get_operation = ::Gapic::Config::Method.new get_operation_config
556
- delete_operation_config = parent_rpcs&.delete_operation if parent_rpcs&.respond_to? :delete_operation
639
+ delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation
557
640
  @delete_operation = ::Gapic::Config::Method.new delete_operation_config
558
- cancel_operation_config = parent_rpcs&.cancel_operation if parent_rpcs&.respond_to? :cancel_operation
641
+ cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
559
642
  @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
643
+ wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation
644
+ @wait_operation = ::Gapic::Config::Method.new wait_operation_config
560
645
 
561
646
  yield self if block_given?
562
647
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1beta2
24
- VERSION = "0.1.1"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
@@ -54,6 +54,18 @@ module Google
54
54
  # This indicates that the field may be set once in a request to create a
55
55
  # resource, but may not be changed thereafter.
56
56
  IMMUTABLE = 5
57
+
58
+ # Denotes that a (repeated) field is an unordered list.
59
+ # This indicates that the service may provide the elements of the list
60
+ # in any arbitrary order, rather than the order the user originally
61
+ # provided. Additionally, the list's order may or may not be stable.
62
+ UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
57
69
  end
58
70
  end
59
71
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @return [::String]
26
26
  # The server-assigned name, which is only unique within the same service that
27
27
  # originally returns it. If you use the default HTTP mapping, the
28
- # `name` should have the format of `operations/some/unique/name`.
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
29
  # @!attribute [rw] metadata
30
30
  # @return [::Google::Protobuf::Any]
31
31
  # Service-specific metadata associated with the operation. It typically
@@ -35,7 +35,7 @@ module Google
35
35
  # @!attribute [rw] done
36
36
  # @return [::Boolean]
37
37
  # If the value is `false`, it means the operation is still in progress.
38
- # If true, the operation is completed, and either `error` or `response` is
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
39
  # available.
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
@@ -67,7 +67,7 @@ module Google
67
67
  # The request message for Operations.ListOperations.
68
68
  # @!attribute [rw] name
69
69
  # @return [::String]
70
- # The name of the operation collection.
70
+ # The name of the operation's parent resource.
71
71
  # @!attribute [rw] filter
72
72
  # @return [::String]
73
73
  # The standard list filter.
@@ -112,6 +112,20 @@ module Google
112
112
  extend ::Google::Protobuf::MessageExts::ClassMethods
113
113
  end
114
114
 
115
+ # The request message for Operations.WaitOperation.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # The name of the operation resource to wait on.
119
+ # @!attribute [rw] timeout
120
+ # @return [::Google::Protobuf::Duration]
121
+ # The maximum duration to wait before timing out. If left blank, the wait
122
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
123
+ # If RPC context deadline is also specified, the shorter one will be used.
124
+ class WaitOperationRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
115
129
  # A message representing the message types used by a long-running operation.
116
130
  #
117
131
  # Example: