google-cloud-artifact_registry-v1beta2 0.3.0 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +108 -118
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/operations.rb +34 -25
- data/lib/google/cloud/artifact_registry/v1beta2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca8be383e339507219502c6ba47a331ce25fb6d38bb25999833245e0945a36be
|
4
|
+
data.tar.gz: af12154f14d791662b27c3fc7586322a14ce61386da86343773c11c888987600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8e8d6d95085eddb7915ff481d91ffbc8085b0f1a2ba58119de7e020a4ca2a4f6d63a7417adb4f322a0a4a8b74b1bf241b561e26376f5956618cd4e70e2172a5
|
7
|
+
data.tar.gz: 6cfd17c4d55a0ec5788abf690f7c317b1fe6d965ea81e11867c3743e626da67365c4773166b63b0b5e8ac99924f9e83fee997e09613fe94f9405f3588841e933
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-artifact_registry-v1beta2
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `ARTIFACT_REGISTRY_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `ARTIFACT_REGISTRY_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/artifact_registry/v1beta2"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.ne
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/artifact_registry/v1beta2"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.ne
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/artifact_registry/v1beta2"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/artifact_registry/v1beta2"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::ArtifactRegistry::V1beta2::ListRepositoriesRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_repositories request
|
38
38
|
```
|
39
39
|
|
@@ -53,13 +53,12 @@ module Google
|
|
53
53
|
# See {::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client::Configuration}
|
54
54
|
# for a description of the configuration fields.
|
55
55
|
#
|
56
|
-
#
|
56
|
+
# @example
|
57
57
|
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
# end
|
58
|
+
# # Modify the configuration for all ArtifactRegistry clients
|
59
|
+
# ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.configure do |config|
|
60
|
+
# config.timeout = 10.0
|
61
|
+
# end
|
63
62
|
#
|
64
63
|
# @yield [config] Configure the Client client.
|
65
64
|
# @yieldparam config [Client::Configuration]
|
@@ -79,18 +78,12 @@ module Google
|
|
79
78
|
|
80
79
|
default_config.rpcs.list_repositories.timeout = 30.0
|
81
80
|
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]
|
81
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
86
82
|
}
|
87
83
|
|
88
84
|
default_config.rpcs.get_repository.timeout = 30.0
|
89
85
|
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]
|
86
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
94
87
|
}
|
95
88
|
|
96
89
|
default_config.rpcs.create_repository.timeout = 30.0
|
@@ -99,90 +92,57 @@ module Google
|
|
99
92
|
|
100
93
|
default_config.rpcs.delete_repository.timeout = 30.0
|
101
94
|
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]
|
95
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
106
96
|
}
|
107
97
|
|
108
98
|
default_config.rpcs.list_packages.timeout = 30.0
|
109
99
|
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]
|
100
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
114
101
|
}
|
115
102
|
|
116
103
|
default_config.rpcs.get_package.timeout = 30.0
|
117
104
|
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]
|
105
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
122
106
|
}
|
123
107
|
|
124
108
|
default_config.rpcs.delete_package.timeout = 30.0
|
125
109
|
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]
|
110
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
130
111
|
}
|
131
112
|
|
132
113
|
default_config.rpcs.list_versions.timeout = 30.0
|
133
114
|
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]
|
115
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
138
116
|
}
|
139
117
|
|
140
118
|
default_config.rpcs.get_version.timeout = 30.0
|
141
119
|
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]
|
120
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
146
121
|
}
|
147
122
|
|
148
123
|
default_config.rpcs.delete_version.timeout = 30.0
|
149
124
|
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]
|
125
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
154
126
|
}
|
155
127
|
|
156
128
|
default_config.rpcs.list_files.timeout = 30.0
|
157
129
|
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]
|
130
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
162
131
|
}
|
163
132
|
|
164
133
|
default_config.rpcs.get_file.timeout = 30.0
|
165
134
|
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]
|
135
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
170
136
|
}
|
171
137
|
|
172
138
|
default_config.rpcs.list_tags.timeout = 30.0
|
173
139
|
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]
|
140
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
178
141
|
}
|
179
142
|
|
180
143
|
default_config.rpcs.get_tag.timeout = 30.0
|
181
144
|
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]
|
145
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
186
146
|
}
|
187
147
|
|
188
148
|
default_config.rpcs.create_tag.timeout = 30.0
|
@@ -191,18 +151,12 @@ module Google
|
|
191
151
|
|
192
152
|
default_config.rpcs.delete_tag.timeout = 30.0
|
193
153
|
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]
|
154
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
198
155
|
}
|
199
156
|
|
200
157
|
default_config.rpcs.get_iam_policy.timeout = 30.0
|
201
158
|
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]
|
159
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
206
160
|
}
|
207
161
|
|
208
162
|
default_config.rpcs.test_iam_permissions.timeout = 30.0
|
@@ -236,19 +190,15 @@ module Google
|
|
236
190
|
##
|
237
191
|
# Create a new ArtifactRegistry client object.
|
238
192
|
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
# To create a new ArtifactRegistry client with the default
|
242
|
-
# configuration:
|
193
|
+
# @example
|
243
194
|
#
|
244
|
-
#
|
195
|
+
# # Create a client using the default configuration
|
196
|
+
# client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new
|
245
197
|
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
# config.timeout = 10.0
|
251
|
-
# end
|
198
|
+
# # Create a client using a custom configuration
|
199
|
+
# client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new do |config|
|
200
|
+
# config.timeout = 10.0
|
201
|
+
# end
|
252
202
|
#
|
253
203
|
# @yield [config] Configure the ArtifactRegistry client.
|
254
204
|
# @yieldparam config [Client::Configuration]
|
@@ -268,14 +218,13 @@ module Google
|
|
268
218
|
|
269
219
|
# Create credentials
|
270
220
|
credentials = @config.credentials
|
271
|
-
# Use self-signed JWT if the
|
221
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
272
222
|
# but only if the default endpoint does not have a region prefix.
|
273
|
-
enable_self_signed_jwt = @config.
|
274
|
-
@config.endpoint == Client.configure.endpoint &&
|
223
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
275
224
|
!@config.endpoint.split(".").first.include?("-")
|
276
225
|
credentials ||= Credentials.default scope: @config.scope,
|
277
226
|
enable_self_signed_jwt: enable_self_signed_jwt
|
278
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
227
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
279
228
|
credentials = Credentials.new credentials, scope: @config.scope
|
280
229
|
end
|
281
230
|
@quota_project_id = @config.quota_project
|
@@ -364,7 +313,9 @@ module Google
|
|
364
313
|
options.apply_defaults timeout: @config.rpcs.list_repositories.timeout,
|
365
314
|
metadata: metadata,
|
366
315
|
retry_policy: @config.rpcs.list_repositories.retry_policy
|
367
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
368
319
|
retry_policy: @config.retry_policy
|
369
320
|
|
370
321
|
@artifact_registry_stub.call_rpc :list_repositories, request, options: options do |response, operation|
|
@@ -431,7 +382,9 @@ module Google
|
|
431
382
|
options.apply_defaults timeout: @config.rpcs.get_repository.timeout,
|
432
383
|
metadata: metadata,
|
433
384
|
retry_policy: @config.rpcs.get_repository.retry_policy
|
434
|
-
|
385
|
+
|
386
|
+
options.apply_defaults timeout: @config.timeout,
|
387
|
+
metadata: @config.metadata,
|
435
388
|
retry_policy: @config.retry_policy
|
436
389
|
|
437
390
|
@artifact_registry_stub.call_rpc :get_repository, request, options: options do |response, operation|
|
@@ -502,7 +455,9 @@ module Google
|
|
502
455
|
options.apply_defaults timeout: @config.rpcs.create_repository.timeout,
|
503
456
|
metadata: metadata,
|
504
457
|
retry_policy: @config.rpcs.create_repository.retry_policy
|
505
|
-
|
458
|
+
|
459
|
+
options.apply_defaults timeout: @config.timeout,
|
460
|
+
metadata: @config.metadata,
|
506
461
|
retry_policy: @config.retry_policy
|
507
462
|
|
508
463
|
@artifact_registry_stub.call_rpc :create_repository, request, options: options do |response, operation|
|
@@ -573,7 +528,9 @@ module Google
|
|
573
528
|
options.apply_defaults timeout: @config.rpcs.update_repository.timeout,
|
574
529
|
metadata: metadata,
|
575
530
|
retry_policy: @config.rpcs.update_repository.retry_policy
|
576
|
-
|
531
|
+
|
532
|
+
options.apply_defaults timeout: @config.timeout,
|
533
|
+
metadata: @config.metadata,
|
577
534
|
retry_policy: @config.retry_policy
|
578
535
|
|
579
536
|
@artifact_registry_stub.call_rpc :update_repository, request, options: options do |response, operation|
|
@@ -641,7 +598,9 @@ module Google
|
|
641
598
|
options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
|
642
599
|
metadata: metadata,
|
643
600
|
retry_policy: @config.rpcs.delete_repository.retry_policy
|
644
|
-
|
601
|
+
|
602
|
+
options.apply_defaults timeout: @config.timeout,
|
603
|
+
metadata: @config.metadata,
|
645
604
|
retry_policy: @config.retry_policy
|
646
605
|
|
647
606
|
@artifact_registry_stub.call_rpc :delete_repository, request, options: options do |response, operation|
|
@@ -713,7 +672,9 @@ module Google
|
|
713
672
|
options.apply_defaults timeout: @config.rpcs.list_packages.timeout,
|
714
673
|
metadata: metadata,
|
715
674
|
retry_policy: @config.rpcs.list_packages.retry_policy
|
716
|
-
|
675
|
+
|
676
|
+
options.apply_defaults timeout: @config.timeout,
|
677
|
+
metadata: @config.metadata,
|
717
678
|
retry_policy: @config.retry_policy
|
718
679
|
|
719
680
|
@artifact_registry_stub.call_rpc :list_packages, request, options: options do |response, operation|
|
@@ -780,7 +741,9 @@ module Google
|
|
780
741
|
options.apply_defaults timeout: @config.rpcs.get_package.timeout,
|
781
742
|
metadata: metadata,
|
782
743
|
retry_policy: @config.rpcs.get_package.retry_policy
|
783
|
-
|
744
|
+
|
745
|
+
options.apply_defaults timeout: @config.timeout,
|
746
|
+
metadata: @config.metadata,
|
784
747
|
retry_policy: @config.retry_policy
|
785
748
|
|
786
749
|
@artifact_registry_stub.call_rpc :get_package, request, options: options do |response, operation|
|
@@ -847,7 +810,9 @@ module Google
|
|
847
810
|
options.apply_defaults timeout: @config.rpcs.delete_package.timeout,
|
848
811
|
metadata: metadata,
|
849
812
|
retry_policy: @config.rpcs.delete_package.retry_policy
|
850
|
-
|
813
|
+
|
814
|
+
options.apply_defaults timeout: @config.timeout,
|
815
|
+
metadata: @config.metadata,
|
851
816
|
retry_policy: @config.retry_policy
|
852
817
|
|
853
818
|
@artifact_registry_stub.call_rpc :delete_package, request, options: options do |response, operation|
|
@@ -921,7 +886,9 @@ module Google
|
|
921
886
|
options.apply_defaults timeout: @config.rpcs.list_versions.timeout,
|
922
887
|
metadata: metadata,
|
923
888
|
retry_policy: @config.rpcs.list_versions.retry_policy
|
924
|
-
|
889
|
+
|
890
|
+
options.apply_defaults timeout: @config.timeout,
|
891
|
+
metadata: @config.metadata,
|
925
892
|
retry_policy: @config.retry_policy
|
926
893
|
|
927
894
|
@artifact_registry_stub.call_rpc :list_versions, request, options: options do |response, operation|
|
@@ -990,7 +957,9 @@ module Google
|
|
990
957
|
options.apply_defaults timeout: @config.rpcs.get_version.timeout,
|
991
958
|
metadata: metadata,
|
992
959
|
retry_policy: @config.rpcs.get_version.retry_policy
|
993
|
-
|
960
|
+
|
961
|
+
options.apply_defaults timeout: @config.timeout,
|
962
|
+
metadata: @config.metadata,
|
994
963
|
retry_policy: @config.retry_policy
|
995
964
|
|
996
965
|
@artifact_registry_stub.call_rpc :get_version, request, options: options do |response, operation|
|
@@ -1060,7 +1029,9 @@ module Google
|
|
1060
1029
|
options.apply_defaults timeout: @config.rpcs.delete_version.timeout,
|
1061
1030
|
metadata: metadata,
|
1062
1031
|
retry_policy: @config.rpcs.delete_version.retry_policy
|
1063
|
-
|
1032
|
+
|
1033
|
+
options.apply_defaults timeout: @config.timeout,
|
1034
|
+
metadata: @config.metadata,
|
1064
1035
|
retry_policy: @config.retry_policy
|
1065
1036
|
|
1066
1037
|
@artifact_registry_stub.call_rpc :delete_version, request, options: options do |response, operation|
|
@@ -1144,7 +1115,9 @@ module Google
|
|
1144
1115
|
options.apply_defaults timeout: @config.rpcs.list_files.timeout,
|
1145
1116
|
metadata: metadata,
|
1146
1117
|
retry_policy: @config.rpcs.list_files.retry_policy
|
1147
|
-
|
1118
|
+
|
1119
|
+
options.apply_defaults timeout: @config.timeout,
|
1120
|
+
metadata: @config.metadata,
|
1148
1121
|
retry_policy: @config.retry_policy
|
1149
1122
|
|
1150
1123
|
@artifact_registry_stub.call_rpc :list_files, request, options: options do |response, operation|
|
@@ -1211,7 +1184,9 @@ module Google
|
|
1211
1184
|
options.apply_defaults timeout: @config.rpcs.get_file.timeout,
|
1212
1185
|
metadata: metadata,
|
1213
1186
|
retry_policy: @config.rpcs.get_file.retry_policy
|
1214
|
-
|
1187
|
+
|
1188
|
+
options.apply_defaults timeout: @config.timeout,
|
1189
|
+
metadata: @config.metadata,
|
1215
1190
|
retry_policy: @config.retry_policy
|
1216
1191
|
|
1217
1192
|
@artifact_registry_stub.call_rpc :get_file, request, options: options do |response, operation|
|
@@ -1292,7 +1267,9 @@ module Google
|
|
1292
1267
|
options.apply_defaults timeout: @config.rpcs.list_tags.timeout,
|
1293
1268
|
metadata: metadata,
|
1294
1269
|
retry_policy: @config.rpcs.list_tags.retry_policy
|
1295
|
-
|
1270
|
+
|
1271
|
+
options.apply_defaults timeout: @config.timeout,
|
1272
|
+
metadata: @config.metadata,
|
1296
1273
|
retry_policy: @config.retry_policy
|
1297
1274
|
|
1298
1275
|
@artifact_registry_stub.call_rpc :list_tags, request, options: options do |response, operation|
|
@@ -1359,7 +1336,9 @@ module Google
|
|
1359
1336
|
options.apply_defaults timeout: @config.rpcs.get_tag.timeout,
|
1360
1337
|
metadata: metadata,
|
1361
1338
|
retry_policy: @config.rpcs.get_tag.retry_policy
|
1362
|
-
|
1339
|
+
|
1340
|
+
options.apply_defaults timeout: @config.timeout,
|
1341
|
+
metadata: @config.metadata,
|
1363
1342
|
retry_policy: @config.retry_policy
|
1364
1343
|
|
1365
1344
|
@artifact_registry_stub.call_rpc :get_tag, request, options: options do |response, operation|
|
@@ -1429,7 +1408,9 @@ module Google
|
|
1429
1408
|
options.apply_defaults timeout: @config.rpcs.create_tag.timeout,
|
1430
1409
|
metadata: metadata,
|
1431
1410
|
retry_policy: @config.rpcs.create_tag.retry_policy
|
1432
|
-
|
1411
|
+
|
1412
|
+
options.apply_defaults timeout: @config.timeout,
|
1413
|
+
metadata: @config.metadata,
|
1433
1414
|
retry_policy: @config.retry_policy
|
1434
1415
|
|
1435
1416
|
@artifact_registry_stub.call_rpc :create_tag, request, options: options do |response, operation|
|
@@ -1499,7 +1480,9 @@ module Google
|
|
1499
1480
|
options.apply_defaults timeout: @config.rpcs.update_tag.timeout,
|
1500
1481
|
metadata: metadata,
|
1501
1482
|
retry_policy: @config.rpcs.update_tag.retry_policy
|
1502
|
-
|
1483
|
+
|
1484
|
+
options.apply_defaults timeout: @config.timeout,
|
1485
|
+
metadata: @config.metadata,
|
1503
1486
|
retry_policy: @config.retry_policy
|
1504
1487
|
|
1505
1488
|
@artifact_registry_stub.call_rpc :update_tag, request, options: options do |response, operation|
|
@@ -1565,7 +1548,9 @@ module Google
|
|
1565
1548
|
options.apply_defaults timeout: @config.rpcs.delete_tag.timeout,
|
1566
1549
|
metadata: metadata,
|
1567
1550
|
retry_policy: @config.rpcs.delete_tag.retry_policy
|
1568
|
-
|
1551
|
+
|
1552
|
+
options.apply_defaults timeout: @config.timeout,
|
1553
|
+
metadata: @config.metadata,
|
1569
1554
|
retry_policy: @config.retry_policy
|
1570
1555
|
|
1571
1556
|
@artifact_registry_stub.call_rpc :delete_tag, request, options: options do |response, operation|
|
@@ -1637,7 +1622,9 @@ module Google
|
|
1637
1622
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1638
1623
|
metadata: metadata,
|
1639
1624
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1640
|
-
|
1625
|
+
|
1626
|
+
options.apply_defaults timeout: @config.timeout,
|
1627
|
+
metadata: @config.metadata,
|
1641
1628
|
retry_policy: @config.retry_policy
|
1642
1629
|
|
1643
1630
|
@artifact_registry_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -1707,7 +1694,9 @@ module Google
|
|
1707
1694
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
1708
1695
|
metadata: metadata,
|
1709
1696
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
1710
|
-
|
1697
|
+
|
1698
|
+
options.apply_defaults timeout: @config.timeout,
|
1699
|
+
metadata: @config.metadata,
|
1711
1700
|
retry_policy: @config.retry_policy
|
1712
1701
|
|
1713
1702
|
@artifact_registry_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -1779,7 +1768,9 @@ module Google
|
|
1779
1768
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1780
1769
|
metadata: metadata,
|
1781
1770
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1782
|
-
|
1771
|
+
|
1772
|
+
options.apply_defaults timeout: @config.timeout,
|
1773
|
+
metadata: @config.metadata,
|
1783
1774
|
retry_policy: @config.retry_policy
|
1784
1775
|
|
1785
1776
|
@artifact_registry_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1803,22 +1794,21 @@ module Google
|
|
1803
1794
|
# Configuration can be applied globally to all clients, or to a single client
|
1804
1795
|
# on construction.
|
1805
1796
|
#
|
1806
|
-
#
|
1807
|
-
#
|
1808
|
-
#
|
1809
|
-
# to 20 seconds,
|
1810
|
-
#
|
1811
|
-
#
|
1812
|
-
#
|
1813
|
-
#
|
1814
|
-
#
|
1815
|
-
#
|
1816
|
-
#
|
1817
|
-
#
|
1818
|
-
#
|
1819
|
-
#
|
1820
|
-
#
|
1821
|
-
# end
|
1797
|
+
# @example
|
1798
|
+
#
|
1799
|
+
# # Modify the global config, setting the timeout for
|
1800
|
+
# # list_repositories to 20 seconds,
|
1801
|
+
# # and all remaining timeouts to 10 seconds.
|
1802
|
+
# ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.configure do |config|
|
1803
|
+
# config.timeout = 10.0
|
1804
|
+
# config.rpcs.list_repositories.timeout = 20.0
|
1805
|
+
# end
|
1806
|
+
#
|
1807
|
+
# # Apply the above configuration only to a new client.
|
1808
|
+
# client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new do |config|
|
1809
|
+
# config.timeout = 10.0
|
1810
|
+
# config.rpcs.list_repositories.timeout = 20.0
|
1811
|
+
# end
|
1822
1812
|
#
|
1823
1813
|
# @!attribute [rw] endpoint
|
1824
1814
|
# The hostname or hostname:port of the service endpoint.
|
@@ -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
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -396,9 +404,9 @@ module Google
|
|
396
404
|
end
|
397
405
|
|
398
406
|
##
|
399
|
-
# Waits
|
400
|
-
#
|
401
|
-
#
|
407
|
+
# Waits until the specified long-running operation is done or reaches at most
|
408
|
+
# a specified timeout, returning the latest state. If the operation is
|
409
|
+
# already done, the latest state is immediately returned. If the timeout
|
402
410
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
403
411
|
# timeout is used. If the server does not support this method, it returns
|
404
412
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
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
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -19,30 +19,53 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents
|
22
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
23
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
24
|
+
# are documented at https://github.com/google/cel-spec.
|
23
25
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
26
|
+
# Example (Comparison):
|
27
|
+
#
|
28
|
+
# title: "Summary size limit"
|
29
|
+
# description: "Determines if a summary is less than 100 chars"
|
30
|
+
# expression: "document.summary.size() < 100"
|
31
|
+
#
|
32
|
+
# Example (Equality):
|
33
|
+
#
|
34
|
+
# title: "Requestor is owner"
|
35
|
+
# description: "Determines if requestor is the document owner"
|
36
|
+
# expression: "document.owner == request.auth.claims.email"
|
37
|
+
#
|
38
|
+
# Example (Logic):
|
39
|
+
#
|
40
|
+
# title: "Public documents"
|
41
|
+
# description: "Determine whether the document should be publicly visible"
|
42
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
43
|
+
#
|
44
|
+
# Example (Data Manipulation):
|
45
|
+
#
|
46
|
+
# title: "Notification string"
|
47
|
+
# description: "Create a notification string with a timestamp."
|
48
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
49
|
+
#
|
50
|
+
# The exact variables and functions that may be referenced within an expression
|
51
|
+
# are determined by the service that evaluates it. See the service
|
52
|
+
# documentation for additional information.
|
27
53
|
# @!attribute [rw] expression
|
28
54
|
# @return [::String]
|
29
|
-
# Textual representation of an expression in
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# The application context of the containing message determines which
|
33
|
-
# well-known feature set of CEL is supported.
|
55
|
+
# Textual representation of an expression in Common Expression Language
|
56
|
+
# syntax.
|
34
57
|
# @!attribute [rw] title
|
35
58
|
# @return [::String]
|
36
|
-
#
|
59
|
+
# Optional. Title for the expression, i.e. a short string describing
|
37
60
|
# its purpose. This can be used e.g. in UIs which allow to enter the
|
38
61
|
# expression.
|
39
62
|
# @!attribute [rw] description
|
40
63
|
# @return [::String]
|
41
|
-
#
|
64
|
+
# Optional. Description of the expression. This is a longer text which
|
42
65
|
# describes the expression, e.g. when hovered over it in a UI.
|
43
66
|
# @!attribute [rw] location
|
44
67
|
# @return [::String]
|
45
|
-
#
|
68
|
+
# Optional. String indicating the location of the expression for error
|
46
69
|
# reporting, e.g. a file name and a position in the file.
|
47
70
|
class Expr
|
48
71
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-artifact_registry-v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +53,7 @@ dependencies:
|
|
47
53
|
version: 0.6.10
|
48
54
|
- - "<"
|
49
55
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
56
|
+
version: 2.a
|
51
57
|
type: :runtime
|
52
58
|
prerelease: false
|
53
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +63,7 @@ dependencies:
|
|
57
63
|
version: 0.6.10
|
58
64
|
- - "<"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
66
|
+
version: 2.a
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: google-style
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -239,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
245
|
- !ruby/object:Gem::Version
|
240
246
|
version: '0'
|
241
247
|
requirements: []
|
242
|
-
rubygems_version: 3.2.
|
248
|
+
rubygems_version: 3.2.17
|
243
249
|
signing_key:
|
244
250
|
specification_version: 4
|
245
251
|
summary: API Client library for the Artifact Registry V1beta2 API
|