google-cloud-data_labeling-v1beta1 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94ed3cab9ef4ce7af7918331501e81f4ec63ac670daefcc85450a058e7caf993
4
- data.tar.gz: 07efee76c734b6237f947761378a70fcfc58a0b6d99562a47164d1bff72708ef
3
+ metadata.gz: '03974cc94b58afbf50221a99c32266bca6cafe390940a8bc423bf0bdabaa2260'
4
+ data.tar.gz: 71b1d55dc8c42e8e1105985e7fb84e151fb0a77fd8cbfdcd5d895160e042c7c1
5
5
  SHA512:
6
- metadata.gz: 86290bba2d09a7f018757ba79bc4e15fc48fe46b2e760f2e570a3d096f535681e00b968cca0a69e9b2b44b8bec35b18f92be3b27d0ed8b9ce517987dc74b5e2f
7
- data.tar.gz: d8bb926a78246341824746f0e0594311c0e3702be1a63df9c7610c2af2d63d60faa5b3eec42910ff4bdf1730f7800257c85cbe993eca5ed319580a933f5b2c1d
6
+ metadata.gz: c56cdb69e7470a2190d7d6ac70c93a15cf447e408d2119c16ef0a06b80e70978e883e12cb3aca1080a7e543cccf2748bfcbb47b9a5216cc19179085ca5cc5af4
7
+ data.tar.gz: ec1cc09f43d895300fb721eae35096ee525da9aa6904efa931a81fb2ec07bd1453c7b7200f20e831299a2ec4866c1a0efdc6c9ed02b84812769436c8caa1513f
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-data_labeling-v1beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Credentials}):
68
68
 
69
- 1. `DATA_LABELING_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `DATA_LABELING_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `DATA_LABELING_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `DATA_LABELING_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/data_labeling/v1beta1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
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/data_labeling/v1beta1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/data_labeling/v1beta1"
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/data_labeling/v1beta1"
34
34
 
35
35
  client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::DataLabeling::V1beta1::CreateDatasetRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_dataset request
38
38
  ```
39
39
 
@@ -69,68 +69,44 @@ module Google
69
69
 
70
70
  default_config.rpcs.get_dataset.timeout = 30.0
71
71
  default_config.rpcs.get_dataset.retry_policy = {
72
- initial_delay: 0.1,
73
- max_delay: 30.0,
74
- multiplier: 1.3,
75
- retry_codes: [4, 14]
72
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
76
73
  }
77
74
 
78
75
  default_config.rpcs.list_datasets.timeout = 30.0
79
76
  default_config.rpcs.list_datasets.retry_policy = {
80
- initial_delay: 0.1,
81
- max_delay: 30.0,
82
- multiplier: 1.3,
83
- retry_codes: [4, 14]
77
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
84
78
  }
85
79
 
86
80
  default_config.rpcs.delete_dataset.timeout = 30.0
87
81
  default_config.rpcs.delete_dataset.retry_policy = {
88
- initial_delay: 0.1,
89
- max_delay: 30.0,
90
- multiplier: 1.3,
91
- retry_codes: [4, 14]
82
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
92
83
  }
93
84
 
94
85
  default_config.rpcs.import_data.timeout = 30.0
95
86
 
96
87
  default_config.rpcs.export_data.timeout = 30.0
97
88
  default_config.rpcs.export_data.retry_policy = {
98
- initial_delay: 0.1,
99
- max_delay: 30.0,
100
- multiplier: 1.3,
101
- retry_codes: [4, 14]
89
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
102
90
  }
103
91
 
104
92
  default_config.rpcs.get_data_item.timeout = 30.0
105
93
  default_config.rpcs.get_data_item.retry_policy = {
106
- initial_delay: 0.1,
107
- max_delay: 30.0,
108
- multiplier: 1.3,
109
- retry_codes: [4, 14]
94
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
110
95
  }
111
96
 
112
97
  default_config.rpcs.list_data_items.timeout = 30.0
113
98
  default_config.rpcs.list_data_items.retry_policy = {
114
- initial_delay: 0.1,
115
- max_delay: 30.0,
116
- multiplier: 1.3,
117
- retry_codes: [4, 14]
99
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
118
100
  }
119
101
 
120
102
  default_config.rpcs.get_annotated_dataset.timeout = 30.0
121
103
  default_config.rpcs.get_annotated_dataset.retry_policy = {
122
- initial_delay: 0.1,
123
- max_delay: 30.0,
124
- multiplier: 1.3,
125
- retry_codes: [4, 14]
104
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
126
105
  }
127
106
 
128
107
  default_config.rpcs.list_annotated_datasets.timeout = 30.0
129
108
  default_config.rpcs.list_annotated_datasets.retry_policy = {
130
- initial_delay: 0.1,
131
- max_delay: 30.0,
132
- multiplier: 1.3,
133
- retry_codes: [4, 14]
109
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
134
110
  }
135
111
 
136
112
  default_config.rpcs.label_image.timeout = 30.0
@@ -141,86 +117,56 @@ module Google
141
117
 
142
118
  default_config.rpcs.get_example.timeout = 30.0
143
119
  default_config.rpcs.get_example.retry_policy = {
144
- initial_delay: 0.1,
145
- max_delay: 30.0,
146
- multiplier: 1.3,
147
- retry_codes: [4, 14]
120
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
148
121
  }
149
122
 
150
123
  default_config.rpcs.list_examples.timeout = 30.0
151
124
  default_config.rpcs.list_examples.retry_policy = {
152
- initial_delay: 0.1,
153
- max_delay: 30.0,
154
- multiplier: 1.3,
155
- retry_codes: [4, 14]
125
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
156
126
  }
157
127
 
158
128
  default_config.rpcs.create_annotation_spec_set.timeout = 30.0
159
129
 
160
130
  default_config.rpcs.get_annotation_spec_set.timeout = 30.0
161
131
  default_config.rpcs.get_annotation_spec_set.retry_policy = {
162
- initial_delay: 0.1,
163
- max_delay: 30.0,
164
- multiplier: 1.3,
165
- retry_codes: [4, 14]
132
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
166
133
  }
167
134
 
168
135
  default_config.rpcs.list_annotation_spec_sets.timeout = 30.0
169
136
  default_config.rpcs.list_annotation_spec_sets.retry_policy = {
170
- initial_delay: 0.1,
171
- max_delay: 30.0,
172
- multiplier: 1.3,
173
- retry_codes: [4, 14]
137
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
174
138
  }
175
139
 
176
140
  default_config.rpcs.delete_annotation_spec_set.timeout = 30.0
177
141
  default_config.rpcs.delete_annotation_spec_set.retry_policy = {
178
- initial_delay: 0.1,
179
- max_delay: 30.0,
180
- multiplier: 1.3,
181
- retry_codes: [4, 14]
142
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
182
143
  }
183
144
 
184
145
  default_config.rpcs.create_instruction.timeout = 30.0
185
146
 
186
147
  default_config.rpcs.get_instruction.timeout = 30.0
187
148
  default_config.rpcs.get_instruction.retry_policy = {
188
- initial_delay: 0.1,
189
- max_delay: 30.0,
190
- multiplier: 1.3,
191
- retry_codes: [4, 14]
149
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
192
150
  }
193
151
 
194
152
  default_config.rpcs.list_instructions.timeout = 30.0
195
153
  default_config.rpcs.list_instructions.retry_policy = {
196
- initial_delay: 0.1,
197
- max_delay: 30.0,
198
- multiplier: 1.3,
199
- retry_codes: [4, 14]
154
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
200
155
  }
201
156
 
202
157
  default_config.rpcs.delete_instruction.timeout = 30.0
203
158
  default_config.rpcs.delete_instruction.retry_policy = {
204
- initial_delay: 0.1,
205
- max_delay: 30.0,
206
- multiplier: 1.3,
207
- retry_codes: [4, 14]
159
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
208
160
  }
209
161
 
210
162
  default_config.rpcs.get_evaluation.timeout = 30.0
211
163
  default_config.rpcs.get_evaluation.retry_policy = {
212
- initial_delay: 0.1,
213
- max_delay: 30.0,
214
- multiplier: 1.3,
215
- retry_codes: [4, 14]
164
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
216
165
  }
217
166
 
218
167
  default_config.rpcs.search_evaluations.timeout = 30.0
219
168
  default_config.rpcs.search_evaluations.retry_policy = {
220
- initial_delay: 0.1,
221
- max_delay: 30.0,
222
- multiplier: 1.3,
223
- retry_codes: [4, 14]
169
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
224
170
  }
225
171
 
226
172
  default_config.rpcs.search_example_comparisons.timeout = 30.0
@@ -231,10 +177,7 @@ module Google
231
177
 
232
178
  default_config.rpcs.get_evaluation_job.timeout = 30.0
233
179
  default_config.rpcs.get_evaluation_job.retry_policy = {
234
- initial_delay: 0.1,
235
- max_delay: 30.0,
236
- multiplier: 1.3,
237
- retry_codes: [4, 14]
180
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
238
181
  }
239
182
 
240
183
  default_config.rpcs.pause_evaluation_job.timeout = 30.0
@@ -243,18 +186,12 @@ module Google
243
186
 
244
187
  default_config.rpcs.delete_evaluation_job.timeout = 30.0
245
188
  default_config.rpcs.delete_evaluation_job.retry_policy = {
246
- initial_delay: 0.1,
247
- max_delay: 30.0,
248
- multiplier: 1.3,
249
- retry_codes: [4, 14]
189
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
250
190
  }
251
191
 
252
192
  default_config.rpcs.list_evaluation_jobs.timeout = 30.0
253
193
  default_config.rpcs.list_evaluation_jobs.retry_policy = {
254
- initial_delay: 0.1,
255
- max_delay: 30.0,
256
- multiplier: 1.3,
257
- retry_codes: [4, 14]
194
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
258
195
  }
259
196
 
260
197
  default_config
@@ -325,7 +262,7 @@ module Google
325
262
  !@config.endpoint.split(".").first.include?("-")
326
263
  credentials ||= Credentials.default scope: @config.scope,
327
264
  enable_self_signed_jwt: enable_self_signed_jwt
328
- if credentials.is_a?(String) || credentials.is_a?(Hash)
265
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
329
266
  credentials = Credentials.new credentials, scope: @config.scope
330
267
  end
331
268
  @quota_project_id = @config.quota_project
@@ -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
@@ -396,9 +396,9 @@ module Google
396
396
  end
397
397
 
398
398
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
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
402
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
403
  # timeout is used. If the server does not support this method, it returns
404
404
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataLabeling
23
23
  module V1beta1
24
- VERSION = "0.3.1"
24
+ VERSION = "0.3.2"
25
25
  end
26
26
  end
27
27
  end
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for the AI Platform Data Labeling API.
29
29
  class Service
30
30
 
31
- include ::GRPC::GenericService
31
+ include GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -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 order, rather than the order the user originally
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: google-cloud-data_labeling-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.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-06-17 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common