google-api-client 0.21.1 → 0.21.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/generated/google/apis/admin_reports_v1.rb +1 -1
  4. data/generated/google/apis/analytics_v3.rb +4 -1
  5. data/generated/google/apis/analytics_v3/classes.rb +68 -0
  6. data/generated/google/apis/analytics_v3/representations.rb +33 -0
  7. data/generated/google/apis/analytics_v3/service.rb +33 -0
  8. data/generated/google/apis/analyticsreporting_v4.rb +2 -2
  9. data/generated/google/apis/analyticsreporting_v4/classes.rb +1 -1
  10. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  11. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  12. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +8 -0
  13. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +1 -0
  14. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  15. data/generated/google/apis/androidpublisher_v2/service.rb +42 -0
  16. data/generated/google/apis/appengine_v1.rb +1 -1
  17. data/generated/google/apis/appengine_v1/classes.rb +11 -4
  18. data/generated/google/apis/appengine_v1/service.rb +28 -19
  19. data/generated/google/apis/appengine_v1beta.rb +1 -1
  20. data/generated/google/apis/appengine_v1beta/classes.rb +11 -7
  21. data/generated/google/apis/appengine_v1beta/service.rb +28 -19
  22. data/generated/google/apis/bigquery_v2.rb +1 -1
  23. data/generated/google/apis/bigquery_v2/classes.rb +9 -6
  24. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  25. data/generated/google/apis/clouddebugger_v2/classes.rb +2 -1
  26. data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
  27. data/generated/google/apis/cloudiot_v1.rb +1 -1
  28. data/generated/google/apis/cloudiot_v1/service.rb +2 -12
  29. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  30. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
  31. data/generated/google/apis/composer_v1beta1.rb +1 -1
  32. data/generated/google/apis/composer_v1beta1/classes.rb +49 -52
  33. data/generated/google/apis/composer_v1beta1/service.rb +5 -5
  34. data/generated/google/apis/compute_v1.rb +1 -1
  35. data/generated/google/apis/container_v1.rb +1 -1
  36. data/generated/google/apis/container_v1/service.rb +18 -18
  37. data/generated/google/apis/container_v1beta1.rb +1 -1
  38. data/generated/google/apis/container_v1beta1/classes.rb +7 -0
  39. data/generated/google/apis/container_v1beta1/representations.rb +1 -0
  40. data/generated/google/apis/container_v1beta1/service.rb +18 -18
  41. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  42. data/generated/google/apis/dfareporting_v2_8/classes.rb +5 -5
  43. data/generated/google/apis/dfareporting_v2_8/service.rb +4 -1
  44. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  45. data/generated/google/apis/dfareporting_v3_0/classes.rb +5 -5
  46. data/generated/google/apis/dfareporting_v3_0/service.rb +4 -1
  47. data/generated/google/apis/dfareporting_v3_1.rb +40 -0
  48. data/generated/google/apis/dfareporting_v3_1/classes.rb +12256 -0
  49. data/generated/google/apis/dfareporting_v3_1/representations.rb +4389 -0
  50. data/generated/google/apis/dfareporting_v3_1/service.rb +8790 -0
  51. data/generated/google/apis/dlp_v2.rb +1 -1
  52. data/generated/google/apis/dlp_v2/classes.rb +20 -0
  53. data/generated/google/apis/dlp_v2/representations.rb +3 -0
  54. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  55. data/generated/google/apis/identitytoolkit_v3/classes.rb +56 -0
  56. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  57. data/generated/google/apis/jobs_v2.rb +1 -1
  58. data/generated/google/apis/jobs_v2/classes.rb +1 -5
  59. data/generated/google/apis/jobs_v2/service.rb +9 -10
  60. data/generated/google/apis/language_v1.rb +1 -1
  61. data/generated/google/apis/language_v1/classes.rb +1 -0
  62. data/generated/google/apis/language_v1beta1.rb +1 -1
  63. data/generated/google/apis/language_v1beta1/classes.rb +1 -0
  64. data/generated/google/apis/language_v1beta2.rb +1 -1
  65. data/generated/google/apis/language_v1beta2/classes.rb +1 -0
  66. data/generated/google/apis/monitoring_v3.rb +1 -1
  67. data/generated/google/apis/monitoring_v3/classes.rb +7 -7
  68. data/generated/google/apis/partners_v2.rb +1 -1
  69. data/generated/google/apis/partners_v2/classes.rb +7 -0
  70. data/generated/google/apis/partners_v2/representations.rb +1 -0
  71. data/generated/google/apis/people_v1.rb +1 -1
  72. data/generated/google/apis/people_v1/service.rb +4 -0
  73. data/generated/google/apis/redis_v1beta1.rb +1 -1
  74. data/generated/google/apis/redis_v1beta1/classes.rb +11 -11
  75. data/generated/google/apis/redis_v1beta1/service.rb +6 -6
  76. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  77. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
  78. data/generated/google/apis/script_v1.rb +1 -1
  79. data/generated/google/apis/spanner_v1.rb +1 -1
  80. data/generated/google/apis/spanner_v1/classes.rb +1 -1
  81. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  82. data/generated/google/apis/sqladmin_v1beta4/classes.rb +76 -0
  83. data/generated/google/apis/sqladmin_v1beta4/representations.rb +44 -0
  84. data/generated/google/apis/sqladmin_v1beta4/service.rb +120 -0
  85. data/generated/google/apis/testing_v1.rb +1 -1
  86. data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
  87. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  88. data/generated/google/apis/vision_v1.rb +1 -1
  89. data/generated/google/apis/vision_v1/classes.rb +517 -0
  90. data/generated/google/apis/vision_v1/representations.rb +272 -0
  91. data/generated/google/apis/vision_v1/service.rb +35 -0
  92. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  93. data/generated/google/apis/vision_v1p1beta1/classes.rb +3411 -1415
  94. data/generated/google/apis/vision_v1p1beta1/representations.rb +868 -0
  95. data/generated/google/apis/vision_v1p1beta1/service.rb +35 -0
  96. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  97. data/generated/google/apis/vision_v1p2beta1/classes.rb +2521 -822
  98. data/generated/google/apis/vision_v1p2beta1/representations.rb +758 -14
  99. data/generated/google/apis/vision_v1p2beta1/service.rb +3 -3
  100. data/generated/google/apis/youtube_analytics_v2.rb +2 -2
  101. data/generated/google/apis/youtube_analytics_v2/service.rb +1 -1
  102. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  103. data/lib/google/apis/version.rb +1 -1
  104. metadata +7 -3
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/cloud-test-lab/
27
27
  module TestingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180404'
29
+ REVISION = '20180516'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,10 +22,10 @@ module Google
22
22
  #
23
23
  # Synthesizes natural-sounding speech by applying powerful neural network models.
24
24
  #
25
- # @see http://cloud.google.com/text-to-speech/
25
+ # @see https://cloud.google.com/text-to-speech/
26
26
  module TexttospeechV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20180425'
28
+ REVISION = '20180512'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -30,7 +30,7 @@ module Google
30
30
  # Texttospeech = Google::Apis::TexttospeechV1beta1 # Alias the module
31
31
  # service = Texttospeech::TexttospeechService.new
32
32
  #
33
- # @see http://cloud.google.com/text-to-speech/
33
+ # @see https://cloud.google.com/text-to-speech/
34
34
  class TexttospeechService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20180416'
30
+ REVISION = '20180515'
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'
@@ -22,6 +22,32 @@ module Google
22
22
  module Apis
23
23
  module VisionV1
24
24
 
25
+ # Response to a single file annotation request. A file may contain one or more
26
+ # images, which individually have their own responses.
27
+ class AnnotateFileResponse
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The desired input location and metadata.
31
+ # Corresponds to the JSON property `inputConfig`
32
+ # @return [Google::Apis::VisionV1::InputConfig]
33
+ attr_accessor :input_config
34
+
35
+ # Individual responses to images found within the file.
36
+ # Corresponds to the JSON property `responses`
37
+ # @return [Array<Google::Apis::VisionV1::AnnotateImageResponse>]
38
+ attr_accessor :responses
39
+
40
+ def initialize(**args)
41
+ update!(**args)
42
+ end
43
+
44
+ # Update properties of this object
45
+ def update!(**args)
46
+ @input_config = args[:input_config] if args.key?(:input_config)
47
+ @responses = args[:responses] if args.key?(:responses)
48
+ end
49
+ end
50
+
25
51
  # Request for performing Google Cloud Vision API tasks over a user-provided
26
52
  # image, with user-requested features.
27
53
  class AnnotateImageRequest
@@ -58,6 +84,12 @@ module Google
58
84
  class AnnotateImageResponse
59
85
  include Google::Apis::Core::Hashable
60
86
 
87
+ # If an image was produced from a file (e.g. a PDF), this message gives
88
+ # information about the source of that image.
89
+ # Corresponds to the JSON property `context`
90
+ # @return [Google::Apis::VisionV1::ImageAnnotationContext]
91
+ attr_accessor :context
92
+
61
93
  # Set of crop hints that are used to generate new crops when serving images.
62
94
  # Corresponds to the JSON property `cropHintsAnnotation`
63
95
  # @return [Google::Apis::VisionV1::CropHintsAnnotation]
@@ -165,6 +197,7 @@ module Google
165
197
 
166
198
  # Update properties of this object
167
199
  def update!(**args)
200
+ @context = args[:context] if args.key?(:context)
168
201
  @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
169
202
  @error = args[:error] if args.key?(:error)
170
203
  @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
@@ -179,6 +212,102 @@ module Google
179
212
  end
180
213
  end
181
214
 
215
+ # An offline file annotation request.
216
+ class AsyncAnnotateFileRequest
217
+ include Google::Apis::Core::Hashable
218
+
219
+ # Required. Requested features.
220
+ # Corresponds to the JSON property `features`
221
+ # @return [Array<Google::Apis::VisionV1::Feature>]
222
+ attr_accessor :features
223
+
224
+ # Image context and/or feature-specific parameters.
225
+ # Corresponds to the JSON property `imageContext`
226
+ # @return [Google::Apis::VisionV1::ImageContext]
227
+ attr_accessor :image_context
228
+
229
+ # The desired input location and metadata.
230
+ # Corresponds to the JSON property `inputConfig`
231
+ # @return [Google::Apis::VisionV1::InputConfig]
232
+ attr_accessor :input_config
233
+
234
+ # The desired output location and metadata.
235
+ # Corresponds to the JSON property `outputConfig`
236
+ # @return [Google::Apis::VisionV1::OutputConfig]
237
+ attr_accessor :output_config
238
+
239
+ def initialize(**args)
240
+ update!(**args)
241
+ end
242
+
243
+ # Update properties of this object
244
+ def update!(**args)
245
+ @features = args[:features] if args.key?(:features)
246
+ @image_context = args[:image_context] if args.key?(:image_context)
247
+ @input_config = args[:input_config] if args.key?(:input_config)
248
+ @output_config = args[:output_config] if args.key?(:output_config)
249
+ end
250
+ end
251
+
252
+ # The response for a single offline file annotation request.
253
+ class AsyncAnnotateFileResponse
254
+ include Google::Apis::Core::Hashable
255
+
256
+ # The desired output location and metadata.
257
+ # Corresponds to the JSON property `outputConfig`
258
+ # @return [Google::Apis::VisionV1::OutputConfig]
259
+ attr_accessor :output_config
260
+
261
+ def initialize(**args)
262
+ update!(**args)
263
+ end
264
+
265
+ # Update properties of this object
266
+ def update!(**args)
267
+ @output_config = args[:output_config] if args.key?(:output_config)
268
+ end
269
+ end
270
+
271
+ # Multiple async file annotation requests are batched into a single service
272
+ # call.
273
+ class AsyncBatchAnnotateFilesRequest
274
+ include Google::Apis::Core::Hashable
275
+
276
+ # Individual async file annotation requests for this batch.
277
+ # Corresponds to the JSON property `requests`
278
+ # @return [Array<Google::Apis::VisionV1::AsyncAnnotateFileRequest>]
279
+ attr_accessor :requests
280
+
281
+ def initialize(**args)
282
+ update!(**args)
283
+ end
284
+
285
+ # Update properties of this object
286
+ def update!(**args)
287
+ @requests = args[:requests] if args.key?(:requests)
288
+ end
289
+ end
290
+
291
+ # Response to an async batch file annotation request.
292
+ class AsyncBatchAnnotateFilesResponse
293
+ include Google::Apis::Core::Hashable
294
+
295
+ # The list of file annotation responses, one for each request in
296
+ # AsyncBatchAnnotateFilesRequest.
297
+ # Corresponds to the JSON property `responses`
298
+ # @return [Array<Google::Apis::VisionV1::AsyncAnnotateFileResponse>]
299
+ attr_accessor :responses
300
+
301
+ def initialize(**args)
302
+ update!(**args)
303
+ end
304
+
305
+ # Update properties of this object
306
+ def update!(**args)
307
+ @responses = args[:responses] if args.key?(:responses)
308
+ end
309
+ end
310
+
182
311
  # Multiple image annotation requests are batched into a single service call.
183
312
  class BatchAnnotateImagesRequest
184
313
  include Google::Apis::Core::Hashable
@@ -264,6 +393,11 @@ module Google
264
393
  class BoundingPoly
265
394
  include Google::Apis::Core::Hashable
266
395
 
396
+ # The bounding polygon normalized vertices.
397
+ # Corresponds to the JSON property `normalizedVertices`
398
+ # @return [Array<Google::Apis::VisionV1::NormalizedVertex>]
399
+ attr_accessor :normalized_vertices
400
+
267
401
  # The bounding polygon vertices.
268
402
  # Corresponds to the JSON property `vertices`
269
403
  # @return [Array<Google::Apis::VisionV1::Vertex>]
@@ -275,6 +409,7 @@ module Google
275
409
 
276
410
  # Update properties of this object
277
411
  def update!(**args)
412
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
278
413
  @vertices = args[:vertices] if args.key?(:vertices)
279
414
  end
280
415
  end
@@ -959,6 +1094,56 @@ module Google
959
1094
  end
960
1095
  end
961
1096
 
1097
+ # The Google Cloud Storage location where the output will be written to.
1098
+ class GcsDestination
1099
+ include Google::Apis::Core::Hashable
1100
+
1101
+ # Google Cloud Storage URI where the results will be stored. Results will
1102
+ # be in JSON format and preceded by its corresponding input URI. This field
1103
+ # can either represent a single file, or a prefix for multiple outputs.
1104
+ # Prefixes must end in a `/`.
1105
+ # Examples:
1106
+ # * File: gs://bucket-name/filename.json
1107
+ # * Prefix: gs://bucket-name/prefix/here/
1108
+ # * File: gs://bucket-name/prefix/here
1109
+ # If multiple outputs, each response is still AnnotateFileResponse, each of
1110
+ # which contains some subset of the full list of AnnotateImageResponse.
1111
+ # Multiple outputs can happen if, for example, the output JSON is too large
1112
+ # and overflows into multiple sharded files.
1113
+ # Corresponds to the JSON property `uri`
1114
+ # @return [String]
1115
+ attr_accessor :uri
1116
+
1117
+ def initialize(**args)
1118
+ update!(**args)
1119
+ end
1120
+
1121
+ # Update properties of this object
1122
+ def update!(**args)
1123
+ @uri = args[:uri] if args.key?(:uri)
1124
+ end
1125
+ end
1126
+
1127
+ # The Google Cloud Storage location where the input will be read from.
1128
+ class GcsSource
1129
+ include Google::Apis::Core::Hashable
1130
+
1131
+ # Google Cloud Storage URI for the input file. This must only be a
1132
+ # Google Cloud Storage object. Wildcards are not currently supported.
1133
+ # Corresponds to the JSON property `uri`
1134
+ # @return [String]
1135
+ attr_accessor :uri
1136
+
1137
+ def initialize(**args)
1138
+ update!(**args)
1139
+ end
1140
+
1141
+ # Update properties of this object
1142
+ def update!(**args)
1143
+ @uri = args[:uri] if args.key?(:uri)
1144
+ end
1145
+ end
1146
+
962
1147
  # Response to a single file annotation request. A file may contain one or more
963
1148
  # images, which individually have their own responses.
964
1149
  class GoogleCloudVisionV1p2beta1AnnotateFileResponse
@@ -2470,6 +2655,194 @@ module Google
2470
2655
  end
2471
2656
  end
2472
2657
 
2658
+ # Metadata for the batch operations such as the current state.
2659
+ # This is included in the `metadata` field of the `Operation` returned by the
2660
+ # `GetOperation` call of the `google::longrunning::Operations` service.
2661
+ class GoogleCloudVisionV1p3beta1BatchOperationMetadata
2662
+ include Google::Apis::Core::Hashable
2663
+
2664
+ # The time when the batch request is finished and
2665
+ # google.longrunning.Operation.done is set to true.
2666
+ # Corresponds to the JSON property `endTime`
2667
+ # @return [String]
2668
+ attr_accessor :end_time
2669
+
2670
+ # The current state of the batch operation.
2671
+ # Corresponds to the JSON property `state`
2672
+ # @return [String]
2673
+ attr_accessor :state
2674
+
2675
+ # The time when the batch request was submitted to the server.
2676
+ # Corresponds to the JSON property `submitTime`
2677
+ # @return [String]
2678
+ attr_accessor :submit_time
2679
+
2680
+ def initialize(**args)
2681
+ update!(**args)
2682
+ end
2683
+
2684
+ # Update properties of this object
2685
+ def update!(**args)
2686
+ @end_time = args[:end_time] if args.key?(:end_time)
2687
+ @state = args[:state] if args.key?(:state)
2688
+ @submit_time = args[:submit_time] if args.key?(:submit_time)
2689
+ end
2690
+ end
2691
+
2692
+ # A bounding polygon for the detected image annotation.
2693
+ class GoogleCloudVisionV1p3beta1BoundingPoly
2694
+ include Google::Apis::Core::Hashable
2695
+
2696
+ # The bounding polygon normalized vertices.
2697
+ # Corresponds to the JSON property `normalizedVertices`
2698
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1NormalizedVertex>]
2699
+ attr_accessor :normalized_vertices
2700
+
2701
+ # The bounding polygon vertices.
2702
+ # Corresponds to the JSON property `vertices`
2703
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Vertex>]
2704
+ attr_accessor :vertices
2705
+
2706
+ def initialize(**args)
2707
+ update!(**args)
2708
+ end
2709
+
2710
+ # Update properties of this object
2711
+ def update!(**args)
2712
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
2713
+ @vertices = args[:vertices] if args.key?(:vertices)
2714
+ end
2715
+ end
2716
+
2717
+ # Response message for the `ImportProductSets` method.
2718
+ # This message is returned by the
2719
+ # google.longrunning.Operations.GetOperation method in the returned
2720
+ # google.longrunning.Operation.response field.
2721
+ class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
2722
+ include Google::Apis::Core::Hashable
2723
+
2724
+ # The list of reference_images that are imported successfully.
2725
+ # Corresponds to the JSON property `referenceImages`
2726
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ReferenceImage>]
2727
+ attr_accessor :reference_images
2728
+
2729
+ # The rpc status for each ImportProductSet request, including both successes
2730
+ # and errors.
2731
+ # The number of statuses here matches the number of lines in the csv file,
2732
+ # and statuses[i] stores the success or failure status of processing the i-th
2733
+ # line of the csv, starting from line 0.
2734
+ # Corresponds to the JSON property `statuses`
2735
+ # @return [Array<Google::Apis::VisionV1::Status>]
2736
+ attr_accessor :statuses
2737
+
2738
+ def initialize(**args)
2739
+ update!(**args)
2740
+ end
2741
+
2742
+ # Update properties of this object
2743
+ def update!(**args)
2744
+ @reference_images = args[:reference_images] if args.key?(:reference_images)
2745
+ @statuses = args[:statuses] if args.key?(:statuses)
2746
+ end
2747
+ end
2748
+
2749
+ # A vertex represents a 2D point in the image.
2750
+ # NOTE: the normalized vertex coordinates are relative to the original image
2751
+ # and range from 0 to 1.
2752
+ class GoogleCloudVisionV1p3beta1NormalizedVertex
2753
+ include Google::Apis::Core::Hashable
2754
+
2755
+ # X coordinate.
2756
+ # Corresponds to the JSON property `x`
2757
+ # @return [Float]
2758
+ attr_accessor :x
2759
+
2760
+ # Y coordinate.
2761
+ # Corresponds to the JSON property `y`
2762
+ # @return [Float]
2763
+ attr_accessor :y
2764
+
2765
+ def initialize(**args)
2766
+ update!(**args)
2767
+ end
2768
+
2769
+ # Update properties of this object
2770
+ def update!(**args)
2771
+ @x = args[:x] if args.key?(:x)
2772
+ @y = args[:y] if args.key?(:y)
2773
+ end
2774
+ end
2775
+
2776
+ # A `ReferenceImage` represents a product image and its associated metadata,
2777
+ # such as bounding boxes.
2778
+ class GoogleCloudVisionV1p3beta1ReferenceImage
2779
+ include Google::Apis::Core::Hashable
2780
+
2781
+ # Bounding polygons around the areas of interest in the reference image.
2782
+ # Optional. If this field is empty, the system will try to detect regions of
2783
+ # interest. At most 10 bounding polygons will be used.
2784
+ # The provided shape is converted into a non-rotated rectangle. Once
2785
+ # converted, the small edge of the rectangle must be greater than or equal
2786
+ # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
2787
+ # is not).
2788
+ # Corresponds to the JSON property `boundingPolys`
2789
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly>]
2790
+ attr_accessor :bounding_polys
2791
+
2792
+ # The resource name of the reference image.
2793
+ # Format is:
2794
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
2795
+ # IMAGE_ID`.
2796
+ # This field is ignored when creating a reference image.
2797
+ # Corresponds to the JSON property `name`
2798
+ # @return [String]
2799
+ attr_accessor :name
2800
+
2801
+ # The Google Cloud Storage URI of the reference image.
2802
+ # The URI must start with `gs://`.
2803
+ # Required.
2804
+ # Corresponds to the JSON property `uri`
2805
+ # @return [String]
2806
+ attr_accessor :uri
2807
+
2808
+ def initialize(**args)
2809
+ update!(**args)
2810
+ end
2811
+
2812
+ # Update properties of this object
2813
+ def update!(**args)
2814
+ @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
2815
+ @name = args[:name] if args.key?(:name)
2816
+ @uri = args[:uri] if args.key?(:uri)
2817
+ end
2818
+ end
2819
+
2820
+ # A vertex represents a 2D point in the image.
2821
+ # NOTE: the vertex coordinates are in the same scale as the original image.
2822
+ class GoogleCloudVisionV1p3beta1Vertex
2823
+ include Google::Apis::Core::Hashable
2824
+
2825
+ # X coordinate.
2826
+ # Corresponds to the JSON property `x`
2827
+ # @return [Fixnum]
2828
+ attr_accessor :x
2829
+
2830
+ # Y coordinate.
2831
+ # Corresponds to the JSON property `y`
2832
+ # @return [Fixnum]
2833
+ attr_accessor :y
2834
+
2835
+ def initialize(**args)
2836
+ update!(**args)
2837
+ end
2838
+
2839
+ # Update properties of this object
2840
+ def update!(**args)
2841
+ @x = args[:x] if args.key?(:x)
2842
+ @y = args[:y] if args.key?(:y)
2843
+ end
2844
+ end
2845
+
2473
2846
  # Client image to perform Google Cloud Vision API tasks over.
2474
2847
  class Image
2475
2848
  include Google::Apis::Core::Hashable
@@ -2498,6 +2871,33 @@ module Google
2498
2871
  end
2499
2872
  end
2500
2873
 
2874
+ # If an image was produced from a file (e.g. a PDF), this message gives
2875
+ # information about the source of that image.
2876
+ class ImageAnnotationContext
2877
+ include Google::Apis::Core::Hashable
2878
+
2879
+ # If the file was a PDF or TIFF, this field gives the page number within
2880
+ # the file used to produce the image.
2881
+ # Corresponds to the JSON property `pageNumber`
2882
+ # @return [Fixnum]
2883
+ attr_accessor :page_number
2884
+
2885
+ # The URI of the file used to produce the image.
2886
+ # Corresponds to the JSON property `uri`
2887
+ # @return [String]
2888
+ attr_accessor :uri
2889
+
2890
+ def initialize(**args)
2891
+ update!(**args)
2892
+ end
2893
+
2894
+ # Update properties of this object
2895
+ def update!(**args)
2896
+ @page_number = args[:page_number] if args.key?(:page_number)
2897
+ @uri = args[:uri] if args.key?(:uri)
2898
+ end
2899
+ end
2900
+
2501
2901
  # Image context and/or feature-specific parameters.
2502
2902
  class ImageContext
2503
2903
  include Google::Apis::Core::Hashable
@@ -2603,6 +3003,32 @@ module Google
2603
3003
  end
2604
3004
  end
2605
3005
 
3006
+ # The desired input location and metadata.
3007
+ class InputConfig
3008
+ include Google::Apis::Core::Hashable
3009
+
3010
+ # The Google Cloud Storage location where the input will be read from.
3011
+ # Corresponds to the JSON property `gcsSource`
3012
+ # @return [Google::Apis::VisionV1::GcsSource]
3013
+ attr_accessor :gcs_source
3014
+
3015
+ # The type of the file. Currently only "application/pdf" and "image/tiff"
3016
+ # are supported. Wildcards are not supported.
3017
+ # Corresponds to the JSON property `mimeType`
3018
+ # @return [String]
3019
+ attr_accessor :mime_type
3020
+
3021
+ def initialize(**args)
3022
+ update!(**args)
3023
+ end
3024
+
3025
+ # Update properties of this object
3026
+ def update!(**args)
3027
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
3028
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
3029
+ end
3030
+ end
3031
+
2606
3032
  # A face-specific landmark (for example, a face feature).
2607
3033
  class Landmark
2608
3034
  include Google::Apis::Core::Hashable
@@ -2740,6 +3166,33 @@ module Google
2740
3166
  end
2741
3167
  end
2742
3168
 
3169
+ # A vertex represents a 2D point in the image.
3170
+ # NOTE: the normalized vertex coordinates are relative to the original image
3171
+ # and range from 0 to 1.
3172
+ class NormalizedVertex
3173
+ include Google::Apis::Core::Hashable
3174
+
3175
+ # X coordinate.
3176
+ # Corresponds to the JSON property `x`
3177
+ # @return [Float]
3178
+ attr_accessor :x
3179
+
3180
+ # Y coordinate.
3181
+ # Corresponds to the JSON property `y`
3182
+ # @return [Float]
3183
+ attr_accessor :y
3184
+
3185
+ def initialize(**args)
3186
+ update!(**args)
3187
+ end
3188
+
3189
+ # Update properties of this object
3190
+ def update!(**args)
3191
+ @x = args[:x] if args.key?(:x)
3192
+ @y = args[:y] if args.key?(:y)
3193
+ end
3194
+ end
3195
+
2743
3196
  # This resource represents a long-running operation that is the result of a
2744
3197
  # network API call.
2745
3198
  class Operation
@@ -2837,6 +3290,70 @@ module Google
2837
3290
  end
2838
3291
  end
2839
3292
 
3293
+ # Contains metadata for the BatchAnnotateImages operation.
3294
+ class OperationMetadata
3295
+ include Google::Apis::Core::Hashable
3296
+
3297
+ # The time when the batch request was received.
3298
+ # Corresponds to the JSON property `createTime`
3299
+ # @return [String]
3300
+ attr_accessor :create_time
3301
+
3302
+ # Current state of the batch operation.
3303
+ # Corresponds to the JSON property `state`
3304
+ # @return [String]
3305
+ attr_accessor :state
3306
+
3307
+ # The time when the operation result was last updated.
3308
+ # Corresponds to the JSON property `updateTime`
3309
+ # @return [String]
3310
+ attr_accessor :update_time
3311
+
3312
+ def initialize(**args)
3313
+ update!(**args)
3314
+ end
3315
+
3316
+ # Update properties of this object
3317
+ def update!(**args)
3318
+ @create_time = args[:create_time] if args.key?(:create_time)
3319
+ @state = args[:state] if args.key?(:state)
3320
+ @update_time = args[:update_time] if args.key?(:update_time)
3321
+ end
3322
+ end
3323
+
3324
+ # The desired output location and metadata.
3325
+ class OutputConfig
3326
+ include Google::Apis::Core::Hashable
3327
+
3328
+ # The max number of response protos to put into each output JSON file on
3329
+ # Google Cloud Storage.
3330
+ # The valid range is [1, 100]. If not specified, the default value is 20.
3331
+ # For example, for one pdf file with 100 pages, 100 response protos will
3332
+ # be generated. If `batch_size` = 20, then 5 json files each
3333
+ # containing 20 response protos will be written under the prefix
3334
+ # `gcs_destination`.`uri`.
3335
+ # Currently, batch_size only applies to GcsDestination, with potential future
3336
+ # support for other output configurations.
3337
+ # Corresponds to the JSON property `batchSize`
3338
+ # @return [Fixnum]
3339
+ attr_accessor :batch_size
3340
+
3341
+ # The Google Cloud Storage location where the output will be written to.
3342
+ # Corresponds to the JSON property `gcsDestination`
3343
+ # @return [Google::Apis::VisionV1::GcsDestination]
3344
+ attr_accessor :gcs_destination
3345
+
3346
+ def initialize(**args)
3347
+ update!(**args)
3348
+ end
3349
+
3350
+ # Update properties of this object
3351
+ def update!(**args)
3352
+ @batch_size = args[:batch_size] if args.key?(:batch_size)
3353
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
3354
+ end
3355
+ end
3356
+
2840
3357
  # Detected page from OCR.
2841
3358
  class Page
2842
3359
  include Google::Apis::Core::Hashable