grafeas-v1 0.2.1 → 0.2.2
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/grafeas/v1/grafeas/client.rb +77 -79
- data/lib/grafeas/v1/grafeas_services_pb.rb +1 -1
- data/lib/grafeas/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66b47c0840786cdfbf34a7f0ef43b4576dab2bf462c917020e97e1907bca47a5
|
4
|
+
data.tar.gz: 67f79748d315429c17fbd9af9b435968edcca94145bf4ce45f756a691d9509c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c54ff4d82cb0f8b6af8df18ec4b8ffda5a4c95a8da05e565185c1dbd7d3b66f8ef9a7b1dc75d448b3792a1ce9526b14eb07e899ea2907e41e76b2caac66a7a5
|
7
|
+
data.tar.gz: d769e0380628751bdc2de6dbbb510016afeb9a6e3a50898370f9a70996763b4386d781420a3795da0c8f9dd0a96d97e2f633d8c64a735388c35ed5c34ade0da7
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ $ gem install grafeas-v1
|
|
24
24
|
require "grafeas/v1"
|
25
25
|
|
26
26
|
client = ::Grafeas::V1::Grafeas::Client.new
|
27
|
-
request =
|
27
|
+
request = ::Grafeas::V1::GetOccurrenceRequest.new # (request fields as keyword arguments...)
|
28
28
|
response = client.get_occurrence request
|
29
29
|
```
|
30
30
|
|
@@ -52,13 +52,12 @@ module Grafeas
|
|
52
52
|
# See {::Grafeas::V1::Grafeas::Client::Configuration}
|
53
53
|
# for a description of the configuration fields.
|
54
54
|
#
|
55
|
-
#
|
55
|
+
# @example
|
56
56
|
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
# end
|
57
|
+
# # Modify the configuration for all Grafeas clients
|
58
|
+
# ::Grafeas::V1::Grafeas::Client.configure do |config|
|
59
|
+
# config.timeout = 10.0
|
60
|
+
# end
|
62
61
|
#
|
63
62
|
# @yield [config] Configure the Client client.
|
64
63
|
# @yieldparam config [Client::Configuration]
|
@@ -78,26 +77,17 @@ module Grafeas
|
|
78
77
|
|
79
78
|
default_config.rpcs.get_occurrence.timeout = 30.0
|
80
79
|
default_config.rpcs.get_occurrence.retry_policy = {
|
81
|
-
initial_delay: 0.1,
|
82
|
-
max_delay: 60.0,
|
83
|
-
multiplier: 1.3,
|
84
|
-
retry_codes: [14, 4]
|
80
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
85
81
|
}
|
86
82
|
|
87
83
|
default_config.rpcs.list_occurrences.timeout = 30.0
|
88
84
|
default_config.rpcs.list_occurrences.retry_policy = {
|
89
|
-
initial_delay: 0.1,
|
90
|
-
max_delay: 60.0,
|
91
|
-
multiplier: 1.3,
|
92
|
-
retry_codes: [14, 4]
|
85
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
93
86
|
}
|
94
87
|
|
95
88
|
default_config.rpcs.delete_occurrence.timeout = 30.0
|
96
89
|
default_config.rpcs.delete_occurrence.retry_policy = {
|
97
|
-
initial_delay: 0.1,
|
98
|
-
max_delay: 60.0,
|
99
|
-
multiplier: 1.3,
|
100
|
-
retry_codes: [14, 4]
|
90
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
101
91
|
}
|
102
92
|
|
103
93
|
default_config.rpcs.create_occurrence.timeout = 30.0
|
@@ -108,34 +98,22 @@ module Grafeas
|
|
108
98
|
|
109
99
|
default_config.rpcs.get_occurrence_note.timeout = 30.0
|
110
100
|
default_config.rpcs.get_occurrence_note.retry_policy = {
|
111
|
-
initial_delay: 0.1,
|
112
|
-
max_delay: 60.0,
|
113
|
-
multiplier: 1.3,
|
114
|
-
retry_codes: [14, 4]
|
101
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
115
102
|
}
|
116
103
|
|
117
104
|
default_config.rpcs.get_note.timeout = 30.0
|
118
105
|
default_config.rpcs.get_note.retry_policy = {
|
119
|
-
initial_delay: 0.1,
|
120
|
-
max_delay: 60.0,
|
121
|
-
multiplier: 1.3,
|
122
|
-
retry_codes: [14, 4]
|
106
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
123
107
|
}
|
124
108
|
|
125
109
|
default_config.rpcs.list_notes.timeout = 30.0
|
126
110
|
default_config.rpcs.list_notes.retry_policy = {
|
127
|
-
initial_delay: 0.1,
|
128
|
-
max_delay: 60.0,
|
129
|
-
multiplier: 1.3,
|
130
|
-
retry_codes: [14, 4]
|
111
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
131
112
|
}
|
132
113
|
|
133
114
|
default_config.rpcs.delete_note.timeout = 30.0
|
134
115
|
default_config.rpcs.delete_note.retry_policy = {
|
135
|
-
initial_delay: 0.1,
|
136
|
-
max_delay: 60.0,
|
137
|
-
multiplier: 1.3,
|
138
|
-
retry_codes: [14, 4]
|
116
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
139
117
|
}
|
140
118
|
|
141
119
|
default_config.rpcs.create_note.timeout = 30.0
|
@@ -146,10 +124,7 @@ module Grafeas
|
|
146
124
|
|
147
125
|
default_config.rpcs.list_note_occurrences.timeout = 30.0
|
148
126
|
default_config.rpcs.list_note_occurrences.retry_policy = {
|
149
|
-
initial_delay: 0.1,
|
150
|
-
max_delay: 60.0,
|
151
|
-
multiplier: 1.3,
|
152
|
-
retry_codes: [14, 4]
|
127
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
153
128
|
}
|
154
129
|
|
155
130
|
default_config
|
@@ -181,19 +156,15 @@ module Grafeas
|
|
181
156
|
##
|
182
157
|
# Create a new Grafeas client object.
|
183
158
|
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
# To create a new Grafeas client with the default
|
187
|
-
# configuration:
|
188
|
-
#
|
189
|
-
# client = ::Grafeas::V1::Grafeas::Client.new
|
159
|
+
# @example
|
190
160
|
#
|
191
|
-
#
|
192
|
-
#
|
161
|
+
# # Create a client using the default configuration
|
162
|
+
# client = ::Grafeas::V1::Grafeas::Client.new
|
193
163
|
#
|
194
|
-
#
|
195
|
-
#
|
196
|
-
#
|
164
|
+
# # Create a client using a custom configuration
|
165
|
+
# client = ::Grafeas::V1::Grafeas::Client.new do |config|
|
166
|
+
# config.timeout = 10.0
|
167
|
+
# end
|
197
168
|
#
|
198
169
|
# @yield [config] Configure the Grafeas client.
|
199
170
|
# @yieldparam config [Client::Configuration]
|
@@ -283,7 +254,9 @@ module Grafeas
|
|
283
254
|
options.apply_defaults timeout: @config.rpcs.get_occurrence.timeout,
|
284
255
|
metadata: metadata,
|
285
256
|
retry_policy: @config.rpcs.get_occurrence.retry_policy
|
286
|
-
|
257
|
+
|
258
|
+
options.apply_defaults timeout: @config.timeout,
|
259
|
+
metadata: @config.metadata,
|
287
260
|
retry_policy: @config.retry_policy
|
288
261
|
|
289
262
|
@grafeas_stub.call_rpc :get_occurrence, request, options: options do |response, operation|
|
@@ -357,7 +330,9 @@ module Grafeas
|
|
357
330
|
options.apply_defaults timeout: @config.rpcs.list_occurrences.timeout,
|
358
331
|
metadata: metadata,
|
359
332
|
retry_policy: @config.rpcs.list_occurrences.retry_policy
|
360
|
-
|
333
|
+
|
334
|
+
options.apply_defaults timeout: @config.timeout,
|
335
|
+
metadata: @config.metadata,
|
361
336
|
retry_policy: @config.retry_policy
|
362
337
|
|
363
338
|
@grafeas_stub.call_rpc :list_occurrences, request, options: options do |response, operation|
|
@@ -427,7 +402,9 @@ module Grafeas
|
|
427
402
|
options.apply_defaults timeout: @config.rpcs.delete_occurrence.timeout,
|
428
403
|
metadata: metadata,
|
429
404
|
retry_policy: @config.rpcs.delete_occurrence.retry_policy
|
430
|
-
|
405
|
+
|
406
|
+
options.apply_defaults timeout: @config.timeout,
|
407
|
+
metadata: @config.metadata,
|
431
408
|
retry_policy: @config.retry_policy
|
432
409
|
|
433
410
|
@grafeas_stub.call_rpc :delete_occurrence, request, options: options do |response, operation|
|
@@ -496,7 +473,9 @@ module Grafeas
|
|
496
473
|
options.apply_defaults timeout: @config.rpcs.create_occurrence.timeout,
|
497
474
|
metadata: metadata,
|
498
475
|
retry_policy: @config.rpcs.create_occurrence.retry_policy
|
499
|
-
|
476
|
+
|
477
|
+
options.apply_defaults timeout: @config.timeout,
|
478
|
+
metadata: @config.metadata,
|
500
479
|
retry_policy: @config.retry_policy
|
501
480
|
|
502
481
|
@grafeas_stub.call_rpc :create_occurrence, request, options: options do |response, operation|
|
@@ -565,7 +544,9 @@ module Grafeas
|
|
565
544
|
options.apply_defaults timeout: @config.rpcs.batch_create_occurrences.timeout,
|
566
545
|
metadata: metadata,
|
567
546
|
retry_policy: @config.rpcs.batch_create_occurrences.retry_policy
|
568
|
-
|
547
|
+
|
548
|
+
options.apply_defaults timeout: @config.timeout,
|
549
|
+
metadata: @config.metadata,
|
569
550
|
retry_policy: @config.retry_policy
|
570
551
|
|
571
552
|
@grafeas_stub.call_rpc :batch_create_occurrences, request, options: options do |response, operation|
|
@@ -636,7 +617,9 @@ module Grafeas
|
|
636
617
|
options.apply_defaults timeout: @config.rpcs.update_occurrence.timeout,
|
637
618
|
metadata: metadata,
|
638
619
|
retry_policy: @config.rpcs.update_occurrence.retry_policy
|
639
|
-
|
620
|
+
|
621
|
+
options.apply_defaults timeout: @config.timeout,
|
622
|
+
metadata: @config.metadata,
|
640
623
|
retry_policy: @config.retry_policy
|
641
624
|
|
642
625
|
@grafeas_stub.call_rpc :update_occurrence, request, options: options do |response, operation|
|
@@ -704,7 +687,9 @@ module Grafeas
|
|
704
687
|
options.apply_defaults timeout: @config.rpcs.get_occurrence_note.timeout,
|
705
688
|
metadata: metadata,
|
706
689
|
retry_policy: @config.rpcs.get_occurrence_note.retry_policy
|
707
|
-
|
690
|
+
|
691
|
+
options.apply_defaults timeout: @config.timeout,
|
692
|
+
metadata: @config.metadata,
|
708
693
|
retry_policy: @config.retry_policy
|
709
694
|
|
710
695
|
@grafeas_stub.call_rpc :get_occurrence_note, request, options: options do |response, operation|
|
@@ -771,7 +756,9 @@ module Grafeas
|
|
771
756
|
options.apply_defaults timeout: @config.rpcs.get_note.timeout,
|
772
757
|
metadata: metadata,
|
773
758
|
retry_policy: @config.rpcs.get_note.retry_policy
|
774
|
-
|
759
|
+
|
760
|
+
options.apply_defaults timeout: @config.timeout,
|
761
|
+
metadata: @config.metadata,
|
775
762
|
retry_policy: @config.retry_policy
|
776
763
|
|
777
764
|
@grafeas_stub.call_rpc :get_note, request, options: options do |response, operation|
|
@@ -845,7 +832,9 @@ module Grafeas
|
|
845
832
|
options.apply_defaults timeout: @config.rpcs.list_notes.timeout,
|
846
833
|
metadata: metadata,
|
847
834
|
retry_policy: @config.rpcs.list_notes.retry_policy
|
848
|
-
|
835
|
+
|
836
|
+
options.apply_defaults timeout: @config.timeout,
|
837
|
+
metadata: @config.metadata,
|
849
838
|
retry_policy: @config.retry_policy
|
850
839
|
|
851
840
|
@grafeas_stub.call_rpc :list_notes, request, options: options do |response, operation|
|
@@ -913,7 +902,9 @@ module Grafeas
|
|
913
902
|
options.apply_defaults timeout: @config.rpcs.delete_note.timeout,
|
914
903
|
metadata: metadata,
|
915
904
|
retry_policy: @config.rpcs.delete_note.retry_policy
|
916
|
-
|
905
|
+
|
906
|
+
options.apply_defaults timeout: @config.timeout,
|
907
|
+
metadata: @config.metadata,
|
917
908
|
retry_policy: @config.retry_policy
|
918
909
|
|
919
910
|
@grafeas_stub.call_rpc :delete_note, request, options: options do |response, operation|
|
@@ -984,7 +975,9 @@ module Grafeas
|
|
984
975
|
options.apply_defaults timeout: @config.rpcs.create_note.timeout,
|
985
976
|
metadata: metadata,
|
986
977
|
retry_policy: @config.rpcs.create_note.retry_policy
|
987
|
-
|
978
|
+
|
979
|
+
options.apply_defaults timeout: @config.timeout,
|
980
|
+
metadata: @config.metadata,
|
988
981
|
retry_policy: @config.retry_policy
|
989
982
|
|
990
983
|
@grafeas_stub.call_rpc :create_note, request, options: options do |response, operation|
|
@@ -1053,7 +1046,9 @@ module Grafeas
|
|
1053
1046
|
options.apply_defaults timeout: @config.rpcs.batch_create_notes.timeout,
|
1054
1047
|
metadata: metadata,
|
1055
1048
|
retry_policy: @config.rpcs.batch_create_notes.retry_policy
|
1056
|
-
|
1049
|
+
|
1050
|
+
options.apply_defaults timeout: @config.timeout,
|
1051
|
+
metadata: @config.metadata,
|
1057
1052
|
retry_policy: @config.retry_policy
|
1058
1053
|
|
1059
1054
|
@grafeas_stub.call_rpc :batch_create_notes, request, options: options do |response, operation|
|
@@ -1124,7 +1119,9 @@ module Grafeas
|
|
1124
1119
|
options.apply_defaults timeout: @config.rpcs.update_note.timeout,
|
1125
1120
|
metadata: metadata,
|
1126
1121
|
retry_policy: @config.rpcs.update_note.retry_policy
|
1127
|
-
|
1122
|
+
|
1123
|
+
options.apply_defaults timeout: @config.timeout,
|
1124
|
+
metadata: @config.metadata,
|
1128
1125
|
retry_policy: @config.retry_policy
|
1129
1126
|
|
1130
1127
|
@grafeas_stub.call_rpc :update_note, request, options: options do |response, operation|
|
@@ -1199,7 +1196,9 @@ module Grafeas
|
|
1199
1196
|
options.apply_defaults timeout: @config.rpcs.list_note_occurrences.timeout,
|
1200
1197
|
metadata: metadata,
|
1201
1198
|
retry_policy: @config.rpcs.list_note_occurrences.retry_policy
|
1202
|
-
|
1199
|
+
|
1200
|
+
options.apply_defaults timeout: @config.timeout,
|
1201
|
+
metadata: @config.metadata,
|
1203
1202
|
retry_policy: @config.retry_policy
|
1204
1203
|
|
1205
1204
|
@grafeas_stub.call_rpc :list_note_occurrences, request, options: options do |response, operation|
|
@@ -1224,22 +1223,21 @@ module Grafeas
|
|
1224
1223
|
# Configuration can be applied globally to all clients, or to a single client
|
1225
1224
|
# on construction.
|
1226
1225
|
#
|
1227
|
-
#
|
1228
|
-
#
|
1229
|
-
#
|
1230
|
-
# to 20 seconds,
|
1231
|
-
#
|
1232
|
-
#
|
1233
|
-
#
|
1234
|
-
#
|
1235
|
-
#
|
1236
|
-
#
|
1237
|
-
#
|
1238
|
-
#
|
1239
|
-
#
|
1240
|
-
#
|
1241
|
-
#
|
1242
|
-
# end
|
1226
|
+
# @example
|
1227
|
+
#
|
1228
|
+
# # Modify the global config, setting the timeout for
|
1229
|
+
# # get_occurrence to 20 seconds,
|
1230
|
+
# # and all remaining timeouts to 10 seconds.
|
1231
|
+
# ::Grafeas::V1::Grafeas::Client.configure do |config|
|
1232
|
+
# config.timeout = 10.0
|
1233
|
+
# config.rpcs.get_occurrence.timeout = 20.0
|
1234
|
+
# end
|
1235
|
+
#
|
1236
|
+
# # Apply the above configuration only to a new client.
|
1237
|
+
# client = ::Grafeas::V1::Grafeas::Client.new do |config|
|
1238
|
+
# config.timeout = 10.0
|
1239
|
+
# config.rpcs.get_occurrence.timeout = 20.0
|
1240
|
+
# end
|
1243
1241
|
#
|
1244
1242
|
# @!attribute [rw] endpoint
|
1245
1243
|
# The hostname or hostname:port of the service endpoint.
|
data/lib/grafeas/v1/version.rb
CHANGED
@@ -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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grafeas-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
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
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|