google-api-client 0.19.4 → 0.19.5
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/CHANGELOG.md +35 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +3 -3
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +4 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +53 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +19 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -13
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +4 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +0 -136
- data/generated/google/apis/cloudiot_v1/representations.rb +0 -33
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +197 -165
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +86 -75
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +194 -2
- data/generated/google/apis/content_v2/representations.rb +72 -0
- data/generated/google/apis/content_v2/service.rb +35 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/service.rb +22 -28
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +8 -5
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +8 -5
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +8 -5
- data/generated/google/apis/dlp_v2beta2.rb +1 -1
- data/generated/google/apis/dlp_v2beta2/service.rb +25 -13
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +6 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +7 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +52 -0
- data/generated/google/apis/gmail_v1/representations.rb +16 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +69 -0
- data/generated/google/apis/iam_v1/representations.rb +41 -0
- data/generated/google/apis/iam_v1/service.rb +31 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +7 -0
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/service.rb +5 -5
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +0 -31
- data/generated/google/apis/partners_v2/representations.rb +0 -15
- data/generated/google/apis/partners_v2/service.rb +0 -55
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +7 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +14 -7
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +95 -11
- data/generated/google/apis/tpu_v1alpha1/representations.rb +54 -0
- data/generated/google/apis/tpu_v1alpha1/service.rb +139 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +128 -0
- data/generated/google/apis/vision_v1/representations.rb +43 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class ListTensorFlowVersionsResponse
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class Location
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -88,12 +94,30 @@ module Google
|
|
88
94
|
include Google::Apis::Core::JsonObjectSupport
|
89
95
|
end
|
90
96
|
|
97
|
+
class StartNodeRequest
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
91
103
|
class Status
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
94
106
|
include Google::Apis::Core::JsonObjectSupport
|
95
107
|
end
|
96
108
|
|
109
|
+
class StopNodeRequest
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class TensorFlowVersion
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
97
121
|
class Empty
|
98
122
|
# @private
|
99
123
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -127,6 +151,15 @@ module Google
|
|
127
151
|
end
|
128
152
|
end
|
129
153
|
|
154
|
+
class ListTensorFlowVersionsResponse
|
155
|
+
# @private
|
156
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
157
|
+
property :next_page_token, as: 'nextPageToken'
|
158
|
+
collection :tensorflow_versions, as: 'tensorflowVersions', class: Google::Apis::TpuV1alpha1::TensorFlowVersion, decorator: Google::Apis::TpuV1alpha1::TensorFlowVersion::Representation
|
159
|
+
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
130
163
|
class Location
|
131
164
|
# @private
|
132
165
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -155,6 +188,7 @@ module Google
|
|
155
188
|
property :health, as: 'health'
|
156
189
|
property :health_description, as: 'healthDescription'
|
157
190
|
property :ip_address, as: 'ipAddress'
|
191
|
+
hash :labels, as: 'labels'
|
158
192
|
property :name, as: 'name'
|
159
193
|
property :network, as: 'network'
|
160
194
|
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV1alpha1::NetworkEndpoint, decorator: Google::Apis::TpuV1alpha1::NetworkEndpoint::Representation
|
@@ -204,6 +238,12 @@ module Google
|
|
204
238
|
end
|
205
239
|
end
|
206
240
|
|
241
|
+
class StartNodeRequest
|
242
|
+
# @private
|
243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
207
247
|
class Status
|
208
248
|
# @private
|
209
249
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -212,6 +252,20 @@ module Google
|
|
212
252
|
property :message, as: 'message'
|
213
253
|
end
|
214
254
|
end
|
255
|
+
|
256
|
+
class StopNodeRequest
|
257
|
+
# @private
|
258
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
class TensorFlowVersion
|
263
|
+
# @private
|
264
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
265
|
+
property :name, as: 'name'
|
266
|
+
property :version, as: 'version'
|
267
|
+
end
|
268
|
+
end
|
215
269
|
end
|
216
270
|
end
|
217
271
|
end
|
@@ -248,7 +248,7 @@ module Google
|
|
248
248
|
execute_or_queue_command(command, &block)
|
249
249
|
end
|
250
250
|
|
251
|
-
#
|
251
|
+
# Reimages a node's OS.
|
252
252
|
# @param [String] name
|
253
253
|
# The resource name.
|
254
254
|
# @param [Google::Apis::TpuV1alpha1::ReimageNodeRequest] reimage_node_request_object
|
@@ -314,6 +314,72 @@ module Google
|
|
314
314
|
execute_or_queue_command(command, &block)
|
315
315
|
end
|
316
316
|
|
317
|
+
# Starts a node.
|
318
|
+
# @param [String] name
|
319
|
+
# The resource name.
|
320
|
+
# @param [Google::Apis::TpuV1alpha1::StartNodeRequest] start_node_request_object
|
321
|
+
# @param [String] fields
|
322
|
+
# Selector specifying which fields to include in a partial response.
|
323
|
+
# @param [String] quota_user
|
324
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
325
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
326
|
+
# @param [Google::Apis::RequestOptions] options
|
327
|
+
# Request-specific options
|
328
|
+
#
|
329
|
+
# @yield [result, err] Result & error if block supplied
|
330
|
+
# @yieldparam result [Google::Apis::TpuV1alpha1::Operation] parsed result object
|
331
|
+
# @yieldparam err [StandardError] error object if request failed
|
332
|
+
#
|
333
|
+
# @return [Google::Apis::TpuV1alpha1::Operation]
|
334
|
+
#
|
335
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
336
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
337
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
338
|
+
def start_node(name, start_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
339
|
+
command = make_simple_command(:post, 'v1alpha1/{+name}:start', options)
|
340
|
+
command.request_representation = Google::Apis::TpuV1alpha1::StartNodeRequest::Representation
|
341
|
+
command.request_object = start_node_request_object
|
342
|
+
command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
|
343
|
+
command.response_class = Google::Apis::TpuV1alpha1::Operation
|
344
|
+
command.params['name'] = name unless name.nil?
|
345
|
+
command.query['fields'] = fields unless fields.nil?
|
346
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
347
|
+
execute_or_queue_command(command, &block)
|
348
|
+
end
|
349
|
+
|
350
|
+
# Stops a node.
|
351
|
+
# @param [String] name
|
352
|
+
# The resource name.
|
353
|
+
# @param [Google::Apis::TpuV1alpha1::StopNodeRequest] stop_node_request_object
|
354
|
+
# @param [String] fields
|
355
|
+
# Selector specifying which fields to include in a partial response.
|
356
|
+
# @param [String] quota_user
|
357
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
358
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
359
|
+
# @param [Google::Apis::RequestOptions] options
|
360
|
+
# Request-specific options
|
361
|
+
#
|
362
|
+
# @yield [result, err] Result & error if block supplied
|
363
|
+
# @yieldparam result [Google::Apis::TpuV1alpha1::Operation] parsed result object
|
364
|
+
# @yieldparam err [StandardError] error object if request failed
|
365
|
+
#
|
366
|
+
# @return [Google::Apis::TpuV1alpha1::Operation]
|
367
|
+
#
|
368
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
369
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
370
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
371
|
+
def stop_node(name, stop_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
372
|
+
command = make_simple_command(:post, 'v1alpha1/{+name}:stop', options)
|
373
|
+
command.request_representation = Google::Apis::TpuV1alpha1::StopNodeRequest::Representation
|
374
|
+
command.request_object = stop_node_request_object
|
375
|
+
command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
|
376
|
+
command.response_class = Google::Apis::TpuV1alpha1::Operation
|
377
|
+
command.params['name'] = name unless name.nil?
|
378
|
+
command.query['fields'] = fields unless fields.nil?
|
379
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
380
|
+
execute_or_queue_command(command, &block)
|
381
|
+
end
|
382
|
+
|
317
383
|
# Starts asynchronous cancellation on a long-running operation. The server
|
318
384
|
# makes a best effort to cancel the operation, but success is not
|
319
385
|
# guaranteed. If the server doesn't support this method, it returns
|
@@ -464,6 +530,78 @@ module Google
|
|
464
530
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
465
531
|
execute_or_queue_command(command, &block)
|
466
532
|
end
|
533
|
+
|
534
|
+
# Gets TensorFlow Version.
|
535
|
+
# @param [String] name
|
536
|
+
# The resource name.
|
537
|
+
# @param [String] fields
|
538
|
+
# Selector specifying which fields to include in a partial response.
|
539
|
+
# @param [String] quota_user
|
540
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
541
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
542
|
+
# @param [Google::Apis::RequestOptions] options
|
543
|
+
# Request-specific options
|
544
|
+
#
|
545
|
+
# @yield [result, err] Result & error if block supplied
|
546
|
+
# @yieldparam result [Google::Apis::TpuV1alpha1::TensorFlowVersion] parsed result object
|
547
|
+
# @yieldparam err [StandardError] error object if request failed
|
548
|
+
#
|
549
|
+
# @return [Google::Apis::TpuV1alpha1::TensorFlowVersion]
|
550
|
+
#
|
551
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
552
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
553
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
554
|
+
def get_project_location_tensorflow_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
555
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
556
|
+
command.response_representation = Google::Apis::TpuV1alpha1::TensorFlowVersion::Representation
|
557
|
+
command.response_class = Google::Apis::TpuV1alpha1::TensorFlowVersion
|
558
|
+
command.params['name'] = name unless name.nil?
|
559
|
+
command.query['fields'] = fields unless fields.nil?
|
560
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
561
|
+
execute_or_queue_command(command, &block)
|
562
|
+
end
|
563
|
+
|
564
|
+
# Lists TensorFlow versions supported by this API.
|
565
|
+
# @param [String] parent
|
566
|
+
# The parent resource name.
|
567
|
+
# @param [String] filter
|
568
|
+
# List filter.
|
569
|
+
# @param [String] order_by
|
570
|
+
# Sort results.
|
571
|
+
# @param [Fixnum] page_size
|
572
|
+
# The maximum number of items to return.
|
573
|
+
# @param [String] page_token
|
574
|
+
# The next_page_token value returned from a previous List request, if any.
|
575
|
+
# @param [String] fields
|
576
|
+
# Selector specifying which fields to include in a partial response.
|
577
|
+
# @param [String] quota_user
|
578
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
579
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
580
|
+
# @param [Google::Apis::RequestOptions] options
|
581
|
+
# Request-specific options
|
582
|
+
#
|
583
|
+
# @yield [result, err] Result & error if block supplied
|
584
|
+
# @yieldparam result [Google::Apis::TpuV1alpha1::ListTensorFlowVersionsResponse] parsed result object
|
585
|
+
# @yieldparam err [StandardError] error object if request failed
|
586
|
+
#
|
587
|
+
# @return [Google::Apis::TpuV1alpha1::ListTensorFlowVersionsResponse]
|
588
|
+
#
|
589
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
590
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
591
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
592
|
+
def list_project_location_tensorflow_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
593
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/tensorflowVersions', options)
|
594
|
+
command.response_representation = Google::Apis::TpuV1alpha1::ListTensorFlowVersionsResponse::Representation
|
595
|
+
command.response_class = Google::Apis::TpuV1alpha1::ListTensorFlowVersionsResponse
|
596
|
+
command.params['parent'] = parent unless parent.nil?
|
597
|
+
command.query['filter'] = filter unless filter.nil?
|
598
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
599
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
600
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
601
|
+
command.query['fields'] = fields unless fields.nil?
|
602
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
603
|
+
execute_or_queue_command(command, &block)
|
604
|
+
end
|
467
605
|
|
468
606
|
protected
|
469
607
|
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/vision/
|
28
28
|
module VisionV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20180122'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -231,6 +231,11 @@ module Google
|
|
231
231
|
# @return [Google::Apis::VisionV1::BoundingPoly]
|
232
232
|
attr_accessor :bounding_box
|
233
233
|
|
234
|
+
# Confidence of the OCR results on the block. Range [0, 1].
|
235
|
+
# Corresponds to the JSON property `confidence`
|
236
|
+
# @return [Float]
|
237
|
+
attr_accessor :confidence
|
238
|
+
|
234
239
|
# List of paragraphs in this block (if this blocks is of type text).
|
235
240
|
# Corresponds to the JSON property `paragraphs`
|
236
241
|
# @return [Array<Google::Apis::VisionV1::Paragraph>]
|
@@ -249,6 +254,7 @@ module Google
|
|
249
254
|
def update!(**args)
|
250
255
|
@block_type = args[:block_type] if args.key?(:block_type)
|
251
256
|
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
257
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
252
258
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
253
259
|
@property = args[:property] if args.key?(:property)
|
254
260
|
end
|
@@ -897,6 +903,13 @@ module Google
|
|
897
903
|
# @return [Fixnum]
|
898
904
|
attr_accessor :max_results
|
899
905
|
|
906
|
+
# Model to use for the feature.
|
907
|
+
# Supported values: "builtin/stable" (the default if unset) and
|
908
|
+
# "builtin/latest".
|
909
|
+
# Corresponds to the JSON property `model`
|
910
|
+
# @return [String]
|
911
|
+
attr_accessor :model
|
912
|
+
|
900
913
|
# The feature type.
|
901
914
|
# Corresponds to the JSON property `type`
|
902
915
|
# @return [String]
|
@@ -909,6 +922,7 @@ module Google
|
|
909
922
|
# Update properties of this object
|
910
923
|
def update!(**args)
|
911
924
|
@max_results = args[:max_results] if args.key?(:max_results)
|
925
|
+
@model = args[:model] if args.key?(:model)
|
912
926
|
@type = args[:type] if args.key?(:type)
|
913
927
|
end
|
914
928
|
end
|
@@ -967,6 +981,11 @@ module Google
|
|
967
981
|
# @return [Google::Apis::VisionV1::LatLongRect]
|
968
982
|
attr_accessor :lat_long_rect
|
969
983
|
|
984
|
+
# Parameters for web detection request.
|
985
|
+
# Corresponds to the JSON property `webDetectionParams`
|
986
|
+
# @return [Google::Apis::VisionV1::WebDetectionParams]
|
987
|
+
attr_accessor :web_detection_params
|
988
|
+
|
970
989
|
def initialize(**args)
|
971
990
|
update!(**args)
|
972
991
|
end
|
@@ -976,6 +995,7 @@ module Google
|
|
976
995
|
@crop_hints_params = args[:crop_hints_params] if args.key?(:crop_hints_params)
|
977
996
|
@language_hints = args[:language_hints] if args.key?(:language_hints)
|
978
997
|
@lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect)
|
998
|
+
@web_detection_params = args[:web_detection_params] if args.key?(:web_detection_params)
|
979
999
|
end
|
980
1000
|
end
|
981
1001
|
|
@@ -1161,6 +1181,11 @@ module Google
|
|
1161
1181
|
# @return [Array<Google::Apis::VisionV1::Block>]
|
1162
1182
|
attr_accessor :blocks
|
1163
1183
|
|
1184
|
+
# Confidence of the OCR results on the page. Range [0, 1].
|
1185
|
+
# Corresponds to the JSON property `confidence`
|
1186
|
+
# @return [Float]
|
1187
|
+
attr_accessor :confidence
|
1188
|
+
|
1164
1189
|
# Page height in pixels.
|
1165
1190
|
# Corresponds to the JSON property `height`
|
1166
1191
|
# @return [Fixnum]
|
@@ -1183,6 +1208,7 @@ module Google
|
|
1183
1208
|
# Update properties of this object
|
1184
1209
|
def update!(**args)
|
1185
1210
|
@blocks = args[:blocks] if args.key?(:blocks)
|
1211
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1186
1212
|
@height = args[:height] if args.key?(:height)
|
1187
1213
|
@property = args[:property] if args.key?(:property)
|
1188
1214
|
@width = args[:width] if args.key?(:width)
|
@@ -1198,6 +1224,11 @@ module Google
|
|
1198
1224
|
# @return [Google::Apis::VisionV1::BoundingPoly]
|
1199
1225
|
attr_accessor :bounding_box
|
1200
1226
|
|
1227
|
+
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
1228
|
+
# Corresponds to the JSON property `confidence`
|
1229
|
+
# @return [Float]
|
1230
|
+
attr_accessor :confidence
|
1231
|
+
|
1201
1232
|
# Additional information detected on the structural component.
|
1202
1233
|
# Corresponds to the JSON property `property`
|
1203
1234
|
# @return [Google::Apis::VisionV1::TextProperty]
|
@@ -1215,6 +1246,7 @@ module Google
|
|
1215
1246
|
# Update properties of this object
|
1216
1247
|
def update!(**args)
|
1217
1248
|
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
1249
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1218
1250
|
@property = args[:property] if args.key?(:property)
|
1219
1251
|
@words = args[:words] if args.key?(:words)
|
1220
1252
|
end
|
@@ -1302,6 +1334,14 @@ module Google
|
|
1302
1334
|
# @return [String]
|
1303
1335
|
attr_accessor :medical
|
1304
1336
|
|
1337
|
+
# Likelihood that the request image contains racy content. Racy content may
|
1338
|
+
# include (but is not limited to) skimpy or sheer clothing, strategically
|
1339
|
+
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
1340
|
+
# body areas.
|
1341
|
+
# Corresponds to the JSON property `racy`
|
1342
|
+
# @return [String]
|
1343
|
+
attr_accessor :racy
|
1344
|
+
|
1305
1345
|
# Spoof likelihood. The likelihood that an modification
|
1306
1346
|
# was made to the image's canonical version to make it appear
|
1307
1347
|
# funny or offensive.
|
@@ -1322,6 +1362,7 @@ module Google
|
|
1322
1362
|
def update!(**args)
|
1323
1363
|
@adult = args[:adult] if args.key?(:adult)
|
1324
1364
|
@medical = args[:medical] if args.key?(:medical)
|
1365
|
+
@racy = args[:racy] if args.key?(:racy)
|
1325
1366
|
@spoof = args[:spoof] if args.key?(:spoof)
|
1326
1367
|
@violence = args[:violence] if args.key?(:violence)
|
1327
1368
|
end
|
@@ -1408,6 +1449,11 @@ module Google
|
|
1408
1449
|
# @return [Google::Apis::VisionV1::BoundingPoly]
|
1409
1450
|
attr_accessor :bounding_box
|
1410
1451
|
|
1452
|
+
# Confidence of the OCR results for the symbol. Range [0, 1].
|
1453
|
+
# Corresponds to the JSON property `confidence`
|
1454
|
+
# @return [Float]
|
1455
|
+
attr_accessor :confidence
|
1456
|
+
|
1411
1457
|
# Additional information detected on the structural component.
|
1412
1458
|
# Corresponds to the JSON property `property`
|
1413
1459
|
# @return [Google::Apis::VisionV1::TextProperty]
|
@@ -1425,6 +1471,7 @@ module Google
|
|
1425
1471
|
# Update properties of this object
|
1426
1472
|
def update!(**args)
|
1427
1473
|
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
1474
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1428
1475
|
@property = args[:property] if args.key?(:property)
|
1429
1476
|
@text = args[:text] if args.key?(:text)
|
1430
1477
|
end
|
@@ -1516,6 +1563,11 @@ module Google
|
|
1516
1563
|
class WebDetection
|
1517
1564
|
include Google::Apis::Core::Hashable
|
1518
1565
|
|
1566
|
+
# Best guess text labels for the request image.
|
1567
|
+
# Corresponds to the JSON property `bestGuessLabels`
|
1568
|
+
# @return [Array<Google::Apis::VisionV1::WebLabel>]
|
1569
|
+
attr_accessor :best_guess_labels
|
1570
|
+
|
1519
1571
|
# Fully matching images from the Internet.
|
1520
1572
|
# Can include resized copies of the query image.
|
1521
1573
|
# Corresponds to the JSON property `fullMatchingImages`
|
@@ -1550,6 +1602,7 @@ module Google
|
|
1550
1602
|
|
1551
1603
|
# Update properties of this object
|
1552
1604
|
def update!(**args)
|
1605
|
+
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
|
1553
1606
|
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
1554
1607
|
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
|
1555
1608
|
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
@@ -1558,6 +1611,26 @@ module Google
|
|
1558
1611
|
end
|
1559
1612
|
end
|
1560
1613
|
|
1614
|
+
# Parameters for web detection request.
|
1615
|
+
class WebDetectionParams
|
1616
|
+
include Google::Apis::Core::Hashable
|
1617
|
+
|
1618
|
+
# Whether to include results derived from the geo information in the image.
|
1619
|
+
# Corresponds to the JSON property `includeGeoResults`
|
1620
|
+
# @return [Boolean]
|
1621
|
+
attr_accessor :include_geo_results
|
1622
|
+
alias_method :include_geo_results?, :include_geo_results
|
1623
|
+
|
1624
|
+
def initialize(**args)
|
1625
|
+
update!(**args)
|
1626
|
+
end
|
1627
|
+
|
1628
|
+
# Update properties of this object
|
1629
|
+
def update!(**args)
|
1630
|
+
@include_geo_results = args[:include_geo_results] if args.key?(:include_geo_results)
|
1631
|
+
end
|
1632
|
+
end
|
1633
|
+
|
1561
1634
|
# Entity deduced from similar images on the Internet.
|
1562
1635
|
class WebEntity
|
1563
1636
|
include Google::Apis::Core::Hashable
|
@@ -1615,10 +1688,56 @@ module Google
|
|
1615
1688
|
end
|
1616
1689
|
end
|
1617
1690
|
|
1691
|
+
# Label to provide extra metadata for the web detection.
|
1692
|
+
class WebLabel
|
1693
|
+
include Google::Apis::Core::Hashable
|
1694
|
+
|
1695
|
+
# Label for extra metadata.
|
1696
|
+
# Corresponds to the JSON property `label`
|
1697
|
+
# @return [String]
|
1698
|
+
attr_accessor :label
|
1699
|
+
|
1700
|
+
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
1701
|
+
# For more information, see
|
1702
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
1703
|
+
# Corresponds to the JSON property `languageCode`
|
1704
|
+
# @return [String]
|
1705
|
+
attr_accessor :language_code
|
1706
|
+
|
1707
|
+
def initialize(**args)
|
1708
|
+
update!(**args)
|
1709
|
+
end
|
1710
|
+
|
1711
|
+
# Update properties of this object
|
1712
|
+
def update!(**args)
|
1713
|
+
@label = args[:label] if args.key?(:label)
|
1714
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
1715
|
+
end
|
1716
|
+
end
|
1717
|
+
|
1618
1718
|
# Metadata for web pages.
|
1619
1719
|
class WebPage
|
1620
1720
|
include Google::Apis::Core::Hashable
|
1621
1721
|
|
1722
|
+
# Fully matching images on the page.
|
1723
|
+
# Can include resized copies of the query image.
|
1724
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
1725
|
+
# @return [Array<Google::Apis::VisionV1::WebImage>]
|
1726
|
+
attr_accessor :full_matching_images
|
1727
|
+
|
1728
|
+
# Title for the web page, may contain HTML markups.
|
1729
|
+
# Corresponds to the JSON property `pageTitle`
|
1730
|
+
# @return [String]
|
1731
|
+
attr_accessor :page_title
|
1732
|
+
|
1733
|
+
# Partial matching images on the page.
|
1734
|
+
# Those images are similar enough to share some key-point features. For
|
1735
|
+
# example an original image will likely have partial matching for its
|
1736
|
+
# crops.
|
1737
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
1738
|
+
# @return [Array<Google::Apis::VisionV1::WebImage>]
|
1739
|
+
attr_accessor :partial_matching_images
|
1740
|
+
|
1622
1741
|
# (Deprecated) Overall relevancy score for the web page.
|
1623
1742
|
# Corresponds to the JSON property `score`
|
1624
1743
|
# @return [Float]
|
@@ -1635,6 +1754,9 @@ module Google
|
|
1635
1754
|
|
1636
1755
|
# Update properties of this object
|
1637
1756
|
def update!(**args)
|
1757
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
1758
|
+
@page_title = args[:page_title] if args.key?(:page_title)
|
1759
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
1638
1760
|
@score = args[:score] if args.key?(:score)
|
1639
1761
|
@url = args[:url] if args.key?(:url)
|
1640
1762
|
end
|
@@ -1649,6 +1771,11 @@ module Google
|
|
1649
1771
|
# @return [Google::Apis::VisionV1::BoundingPoly]
|
1650
1772
|
attr_accessor :bounding_box
|
1651
1773
|
|
1774
|
+
# Confidence of the OCR results for the word. Range [0, 1].
|
1775
|
+
# Corresponds to the JSON property `confidence`
|
1776
|
+
# @return [Float]
|
1777
|
+
attr_accessor :confidence
|
1778
|
+
|
1652
1779
|
# Additional information detected on the structural component.
|
1653
1780
|
# Corresponds to the JSON property `property`
|
1654
1781
|
# @return [Google::Apis::VisionV1::TextProperty]
|
@@ -1667,6 +1794,7 @@ module Google
|
|
1667
1794
|
# Update properties of this object
|
1668
1795
|
def update!(**args)
|
1669
1796
|
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
1797
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1670
1798
|
@property = args[:property] if args.key?(:property)
|
1671
1799
|
@symbols = args[:symbols] if args.key?(:symbols)
|
1672
1800
|
end
|