google-api-client 0.9.6 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/api_names.yaml +15 -0
  4. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +75 -12
  6. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +25 -5
  7. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +6 -2
  8. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/representations.rb +1 -2
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analytics_v3.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  15. data/generated/google/apis/analyticsreporting_v4/classes.rb +1385 -0
  16. data/generated/google/apis/analyticsreporting_v4/representations.rb +597 -0
  17. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  18. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1/classes.rb +98 -2
  20. data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
  21. data/generated/google/apis/androidenterprise_v1/service.rb +63 -1
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +268 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +142 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +121 -0
  26. data/generated/google/apis/appstate_v1.rb +1 -1
  27. data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
  28. data/generated/google/apis/autoscaler_v1beta2/classes.rb +10 -47
  29. data/generated/google/apis/autoscaler_v1beta2/representations.rb +1 -18
  30. data/generated/google/apis/autoscaler_v1beta2/service.rb +4 -4
  31. data/generated/google/apis/bigquery_v2.rb +1 -1
  32. data/generated/google/apis/bigquery_v2/classes.rb +97 -61
  33. data/generated/google/apis/bigquery_v2/representations.rb +23 -18
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +23 -2
  36. data/generated/google/apis/classroom_v1/classes.rb +920 -6
  37. data/generated/google/apis/classroom_v1/representations.rb +419 -0
  38. data/generated/google/apis/classroom_v1/service.rb +507 -1
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +30 -23
  41. data/generated/google/apis/cloudbuild_v1/representations.rb +4 -3
  42. data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
  43. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  44. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +55 -0
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +40 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +35 -0
  49. data/generated/google/apis/cloudtrace_v1.rb +11 -3
  50. data/generated/google/apis/cloudtrace_v1/classes.rb +5 -5
  51. data/generated/google/apis/cloudtrace_v1/service.rb +8 -6
  52. data/generated/google/apis/compute_beta.rb +2 -2
  53. data/generated/google/apis/compute_beta/classes.rb +162 -32
  54. data/generated/google/apis/compute_beta/representations.rb +58 -0
  55. data/generated/google/apis/compute_beta/service.rb +392 -267
  56. data/generated/google/apis/compute_v1.rb +2 -2
  57. data/generated/google/apis/compute_v1/classes.rb +21 -9
  58. data/generated/google/apis/compute_v1/representations.rb +1 -0
  59. data/generated/google/apis/compute_v1/service.rb +291 -253
  60. data/generated/google/apis/container_v1.rb +1 -1
  61. data/generated/google/apis/container_v1/classes.rb +148 -0
  62. data/generated/google/apis/container_v1/representations.rb +55 -0
  63. data/generated/google/apis/container_v1/service.rb +161 -0
  64. data/generated/google/apis/content_v2.rb +1 -1
  65. data/generated/google/apis/content_v2/classes.rb +18 -6
  66. data/generated/google/apis/content_v2/representations.rb +1 -0
  67. data/generated/google/apis/customsearch_v1.rb +1 -1
  68. data/generated/google/apis/dataproc_v1.rb +2 -11
  69. data/generated/google/apis/dataproc_v1/classes.rb +0 -19
  70. data/generated/google/apis/dataproc_v1/representations.rb +0 -13
  71. data/generated/google/apis/dataproc_v1/service.rb +8 -87
  72. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  73. data/generated/google/apis/dfareporting_v2_3.rb +1 -1
  74. data/generated/google/apis/dfareporting_v2_3/classes.rb +41 -32
  75. data/generated/google/apis/discovery_v1.rb +2 -2
  76. data/generated/google/apis/discovery_v1/service.rb +2 -2
  77. data/generated/google/apis/dns_v1.rb +2 -3
  78. data/generated/google/apis/dns_v1/service.rb +1 -2
  79. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +3 -2
  82. data/generated/google/apis/drive_v2/service.rb +2 -1
  83. data/generated/google/apis/drive_v3.rb +3 -2
  84. data/generated/google/apis/drive_v3/service.rb +2 -1
  85. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  86. data/generated/google/apis/games_management_v1management.rb +1 -1
  87. data/generated/google/apis/games_management_v1management/classes.rb +34 -0
  88. data/generated/google/apis/games_management_v1management/representations.rb +16 -0
  89. data/generated/google/apis/games_v1.rb +1 -1
  90. data/generated/google/apis/games_v1/classes.rb +34 -0
  91. data/generated/google/apis/games_v1/representations.rb +16 -0
  92. data/generated/google/apis/games_v1/service.rb +212 -53
  93. data/generated/google/apis/genomics_v1.rb +1 -1
  94. data/generated/google/apis/genomics_v1/classes.rb +18 -0
  95. data/generated/google/apis/genomics_v1/representations.rb +3 -0
  96. data/generated/google/apis/genomics_v1/service.rb +2 -2
  97. data/generated/google/apis/gmail_v1.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  99. data/generated/google/apis/identitytoolkit_v3/classes.rb +19 -7
  100. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -1
  101. data/generated/google/apis/mybusiness_v3.rb +32 -0
  102. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  103. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  104. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  105. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  106. data/generated/google/apis/plus_domains_v1.rb +2 -2
  107. data/generated/google/apis/plus_domains_v1/service.rb +1 -1
  108. data/generated/google/apis/plus_v1.rb +2 -2
  109. data/generated/google/apis/plus_v1/service.rb +1 -1
  110. data/generated/google/apis/prediction_v1_6.rb +4 -1
  111. data/generated/google/apis/proximitybeacon_v1beta1.rb +5 -2
  112. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +169 -22
  113. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +36 -1
  114. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +254 -39
  115. data/generated/google/apis/replicapool_v1beta2.rb +3 -3
  116. data/generated/google/apis/replicapool_v1beta2/service.rb +2 -2
  117. data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
  118. data/generated/google/apis/script_v1.rb +6 -3
  119. data/generated/google/apis/script_v1/service.rb +2 -2
  120. data/generated/google/apis/sheets_v4.rb +43 -0
  121. data/generated/google/apis/sheets_v4/classes.rb +5425 -0
  122. data/generated/google/apis/sheets_v4/representations.rb +2070 -0
  123. data/generated/google/apis/sheets_v4/service.rb +402 -0
  124. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  125. data/generated/google/apis/sqladmin_v1beta4/classes.rb +19 -4
  126. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  127. data/generated/google/apis/storage_v1.rb +1 -1
  128. data/generated/google/apis/storage_v1/classes.rb +2 -1
  129. data/generated/google/apis/taskqueue_v1beta2.rb +2 -2
  130. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
  131. data/generated/google/apis/vision_v1.rb +4 -5
  132. data/generated/google/apis/vision_v1/classes.rb +69 -68
  133. data/generated/google/apis/vision_v1/representations.rb +13 -13
  134. data/generated/google/apis/vision_v1/service.rb +3 -4
  135. data/generated/google/apis/youtube_analytics_v1.rb +2 -2
  136. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
  137. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  138. data/generated/google/apis/youtube_partner_v1/classes.rb +121 -0
  139. data/generated/google/apis/youtube_partner_v1/representations.rb +50 -0
  140. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  141. data/generated/google/apis/youtube_v3.rb +1 -1
  142. data/generated/google/apis/youtube_v3/classes.rb +24 -0
  143. data/generated/google/apis/youtube_v3/representations.rb +4 -0
  144. data/generated/google/apis/youtubereporting_v1.rb +3 -3
  145. data/generated/google/apis/youtubereporting_v1/classes.rb +19 -0
  146. data/generated/google/apis/youtubereporting_v1/representations.rb +3 -0
  147. data/generated/google/apis/youtubereporting_v1/service.rb +3 -4
  148. data/lib/google/apis/version.rb +1 -1
  149. metadata +14 -2
@@ -745,6 +745,7 @@ module Google
745
745
  property :pricing_plan, as: 'pricingPlan'
746
746
  property :replication_type, as: 'replicationType'
747
747
  property :settings_version, as: 'settingsVersion'
748
+ property :storage_auto_resize, as: 'storageAutoResize'
748
749
  property :tier, as: 'tier'
749
750
  end
750
751
  end
@@ -795,6 +796,8 @@ module Google
795
796
  property :client_cert, as: 'clientCert', class: Google::Apis::SqladminV1beta4::SslCertDetail, decorator: Google::Apis::SqladminV1beta4::SslCertDetail::Representation
796
797
 
797
798
  property :kind, as: 'kind'
799
+ property :operation, as: 'operation', class: Google::Apis::SqladminV1beta4::Operation, decorator: Google::Apis::SqladminV1beta4::Operation::Representation
800
+
798
801
  property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
799
802
 
800
803
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/storage/docs/json_api/
26
26
  module StorageV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160330'
28
+ REVISION = '20160504'
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'
@@ -781,7 +781,8 @@ module Google
781
781
  # @return [String]
782
782
  attr_accessor :content_language
783
783
 
784
- # Content-Type of the object data.
784
+ # Content-Type of the object data. If contentType is not specified, object
785
+ # downloads will be served as application/octet-stream.
785
786
  # Corresponds to the JSON property `contentType`
786
787
  # @return [String]
787
788
  attr_accessor :content_type
@@ -20,12 +20,12 @@ module Google
20
20
  module Apis
21
21
  # TaskQueue API
22
22
  #
23
- # Lets you access a Google App Engine Pull Task Queue over REST.
23
+ # Accesses a Google App Engine Pull Task Queue over REST.
24
24
  #
25
25
  # @see https://developers.google.com/appengine/docs/python/taskqueue/rest
26
26
  module TaskqueueV1beta2
27
27
  VERSION = 'V1beta2'
28
- REVISION = '20141111'
28
+ REVISION = '20160428'
29
29
 
30
30
  # Manage your Tasks and Taskqueues
31
31
  AUTH_TASKQUEUE = 'https://www.googleapis.com/auth/taskqueue'
@@ -22,7 +22,7 @@ module Google
22
22
  module TaskqueueV1beta2
23
23
  # TaskQueue API
24
24
  #
25
- # Lets you access a Google App Engine Pull Task Queue over REST.
25
+ # Accesses a Google App Engine Pull Task Queue over REST.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/taskqueue_v1beta2'
@@ -20,15 +20,14 @@ module Google
20
20
  module Apis
21
21
  # Google Cloud Vision API
22
22
  #
23
- # The Google Cloud Vision API allows developers to easily integrate Google
24
- # vision features, including image labeling, face, logo, and landmark detection,
25
- # optical character recognition (OCR), and detection of explicit content, into
26
- # applications.
23
+ # Integrates Google Vision features, including image labeling, face, logo, and
24
+ # landmark detection, optical character recognition (OCR), and detection of
25
+ # explicit content, into applications.
27
26
  #
28
27
  # @see https://cloud.google.com/vision/
29
28
  module VisionV1
30
29
  VERSION = 'V1'
31
- REVISION = '20160413'
30
+ REVISION = '20160519'
32
31
 
33
32
  # View and manage your data across Google Cloud Platform services
34
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -195,7 +195,7 @@ module Google
195
195
  # return r
196
196
  # def NormalizeLatLng(latitude, longitude):
197
197
  # """Wraps decimal degrees latitude and longitude to
198
- # [-180.0, 180.0] and [-90.0, 90.0], respectively."""
198
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
199
199
  # r = latitude % 360.0
200
200
  # if r <= 90.0:
201
201
  # return r, NormalizeLongitude(longitude)
@@ -234,7 +234,7 @@ module Google
234
234
  # return r
235
235
  # def NormalizeLatLng(latitude, longitude):
236
236
  # """Wraps decimal degrees latitude and longitude to
237
- # [-180.0, 180.0] and [-90.0, 90.0], respectively."""
237
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
238
238
  # r = latitude % 360.0
239
239
  # if r <= 90.0:
240
240
  # return r, NormalizeLongitude(longitude)
@@ -393,11 +393,6 @@ module Google
393
393
  # @return [String]
394
394
  attr_accessor :headwear_likelihood
395
395
 
396
- # A bounding polygon for the detected image annotation.
397
- # Corresponds to the JSON property `boundingPoly`
398
- # @return [Google::Apis::VisionV1::BoundingPoly]
399
- attr_accessor :bounding_poly
400
-
401
396
  # Yaw angle. Indicates the leftward/rightward angle that the face is
402
397
  # pointing, relative to the vertical plane perpendicular to the image. Range
403
398
  # [-180,180].
@@ -405,6 +400,11 @@ module Google
405
400
  # @return [Float]
406
401
  attr_accessor :pan_angle
407
402
 
403
+ # A bounding polygon for the detected image annotation.
404
+ # Corresponds to the JSON property `boundingPoly`
405
+ # @return [Google::Apis::VisionV1::BoundingPoly]
406
+ attr_accessor :bounding_poly
407
+
408
408
  # Detected face landmarks.
409
409
  # Corresponds to the JSON property `landmarks`
410
410
  # @return [Array<Google::Apis::VisionV1::Landmark>]
@@ -443,8 +443,8 @@ module Google
443
443
  @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
444
444
  @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
445
445
  @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
446
- @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
447
446
  @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
447
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
448
448
  @landmarks = args[:landmarks] if args.key?(:landmarks)
449
449
  @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
450
450
  @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
@@ -662,6 +662,11 @@ module Google
662
662
  class ImageContext
663
663
  include Google::Apis::Core::Hashable
664
664
 
665
+ # Rectangle determined by min and max LatLng pairs.
666
+ # Corresponds to the JSON property `latLongRect`
667
+ # @return [Google::Apis::VisionV1::LatLongRect]
668
+ attr_accessor :lat_long_rect
669
+
665
670
  # List of languages to use for TEXT_DETECTION. In most cases, an empty value
666
671
  # will yield the best results as it will allow text detection to
667
672
  # automatically detect the text language. For languages based on the latin
@@ -676,19 +681,14 @@ module Google
676
681
  # @return [Array<String>]
677
682
  attr_accessor :language_hints
678
683
 
679
- # Rectangle determined by min and max LatLng pairs.
680
- # Corresponds to the JSON property `latLongRect`
681
- # @return [Google::Apis::VisionV1::LatLongRect]
682
- attr_accessor :lat_long_rect
683
-
684
684
  def initialize(**args)
685
685
  update!(**args)
686
686
  end
687
687
 
688
688
  # Update properties of this object
689
689
  def update!(**args)
690
- @language_hints = args[:language_hints] if args.key?(:language_hints)
691
690
  @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect)
691
+ @language_hints = args[:language_hints] if args.key?(:language_hints)
692
692
  end
693
693
  end
694
694
 
@@ -715,8 +715,9 @@ module Google
715
715
  class EntityAnnotation
716
716
  include Google::Apis::Core::Hashable
717
717
 
718
- # Knowledge Graph entity ID. Maps to a freebase entity ID.
719
- # (for example, "Google" maps to: mid /m/045c7b).
718
+ # Opaque entity ID. Some IDs might be available in Knowledge Graph(KG).
719
+ # For more details on KG please see:
720
+ # https://developers.google.com/knowledge-graph/
720
721
  # Corresponds to the JSON property `mid`
721
722
  # @return [String]
722
723
  attr_accessor :mid
@@ -977,7 +978,7 @@ module Google
977
978
  # return r
978
979
  # def NormalizeLatLng(latitude, longitude):
979
980
  # """Wraps decimal degrees latitude and longitude to
980
- # [-180.0, 180.0] and [-90.0, 90.0], respectively."""
981
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
981
982
  # r = latitude % 360.0
982
983
  # if r <= 90.0:
983
984
  # return r, NormalizeLongitude(longitude)
@@ -1023,11 +1024,6 @@ module Google
1023
1024
  # @return [String]
1024
1025
  attr_accessor :medical
1025
1026
 
1026
- # Violence likelihood.
1027
- # Corresponds to the JSON property `violence`
1028
- # @return [String]
1029
- attr_accessor :violence
1030
-
1031
1027
  # Spoof likelihood. The likelihood that an obvious modification
1032
1028
  # was made to the image's canonical version to make it appear
1033
1029
  # funny or offensive.
@@ -1035,6 +1031,11 @@ module Google
1035
1031
  # @return [String]
1036
1032
  attr_accessor :spoof
1037
1033
 
1034
+ # Violence likelihood.
1035
+ # Corresponds to the JSON property `violence`
1036
+ # @return [String]
1037
+ attr_accessor :violence
1038
+
1038
1039
  # Represents the adult contents likelihood for the image.
1039
1040
  # Corresponds to the JSON property `adult`
1040
1041
  # @return [String]
@@ -1047,8 +1048,8 @@ module Google
1047
1048
  # Update properties of this object
1048
1049
  def update!(**args)
1049
1050
  @medical = args[:medical] if args.key?(:medical)
1050
- @violence = args[:violence] if args.key?(:violence)
1051
1051
  @spoof = args[:spoof] if args.key?(:spoof)
1052
+ @violence = args[:violence] if args.key?(:violence)
1052
1053
  @adult = args[:adult] if args.key?(:adult)
1053
1054
  end
1054
1055
  end
@@ -1104,24 +1105,24 @@ module Google
1104
1105
  class Feature
1105
1106
  include Google::Apis::Core::Hashable
1106
1107
 
1107
- # Maximum number of results of this type.
1108
- # Corresponds to the JSON property `maxResults`
1109
- # @return [Fixnum]
1110
- attr_accessor :max_results
1111
-
1112
1108
  # The feature type.
1113
1109
  # Corresponds to the JSON property `type`
1114
1110
  # @return [String]
1115
1111
  attr_accessor :type
1116
1112
 
1113
+ # Maximum number of results of this type.
1114
+ # Corresponds to the JSON property `maxResults`
1115
+ # @return [Fixnum]
1116
+ attr_accessor :max_results
1117
+
1117
1118
  def initialize(**args)
1118
1119
  update!(**args)
1119
1120
  end
1120
1121
 
1121
1122
  # Update properties of this object
1122
1123
  def update!(**args)
1123
- @max_results = args[:max_results] if args.key?(:max_results)
1124
1124
  @type = args[:type] if args.key?(:type)
1125
+ @max_results = args[:max_results] if args.key?(:max_results)
1125
1126
  end
1126
1127
  end
1127
1128
 
@@ -1163,39 +1164,6 @@ module Google
1163
1164
  end
1164
1165
  end
1165
1166
 
1166
- # A 3D position in the image, used primarily for Face detection landmarks.
1167
- # A valid Position must have both x and y coordinates.
1168
- # The position coordinates are in the same scale as the original image.
1169
- class Position
1170
- include Google::Apis::Core::Hashable
1171
-
1172
- # Y coordinate.
1173
- # Corresponds to the JSON property `y`
1174
- # @return [Float]
1175
- attr_accessor :y
1176
-
1177
- # Z coordinate (or depth).
1178
- # Corresponds to the JSON property `z`
1179
- # @return [Float]
1180
- attr_accessor :z
1181
-
1182
- # X coordinate.
1183
- # Corresponds to the JSON property `x`
1184
- # @return [Float]
1185
- attr_accessor :x
1186
-
1187
- def initialize(**args)
1188
- update!(**args)
1189
- end
1190
-
1191
- # Update properties of this object
1192
- def update!(**args)
1193
- @y = args[:y] if args.key?(:y)
1194
- @z = args[:z] if args.key?(:z)
1195
- @x = args[:x] if args.key?(:x)
1196
- end
1197
- end
1198
-
1199
1167
  # An object representing a latitude/longitude pair. This is expressed as a pair
1200
1168
  # of doubles representing degrees latitude and degrees longitude. Unless
1201
1169
  # specified otherwise, this must conform to the
@@ -1210,7 +1178,7 @@ module Google
1210
1178
  # return r
1211
1179
  # def NormalizeLatLng(latitude, longitude):
1212
1180
  # """Wraps decimal degrees latitude and longitude to
1213
- # [-180.0, 180.0] and [-90.0, 90.0], respectively."""
1181
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1214
1182
  # r = latitude % 360.0
1215
1183
  # if r <= 90.0:
1216
1184
  # return r, NormalizeLongitude(longitude)
@@ -1234,15 +1202,47 @@ module Google
1234
1202
  class LatLng
1235
1203
  include Google::Apis::Core::Hashable
1236
1204
 
1205
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
1206
+ # Corresponds to the JSON property `latitude`
1207
+ # @return [Float]
1208
+ attr_accessor :latitude
1209
+
1237
1210
  # The longitude in degrees. It must be in the range [-180.0, +180.0].
1238
1211
  # Corresponds to the JSON property `longitude`
1239
1212
  # @return [Float]
1240
1213
  attr_accessor :longitude
1241
1214
 
1242
- # The latitude in degrees. It must be in the range [-90.0, +90.0].
1243
- # Corresponds to the JSON property `latitude`
1215
+ def initialize(**args)
1216
+ update!(**args)
1217
+ end
1218
+
1219
+ # Update properties of this object
1220
+ def update!(**args)
1221
+ @latitude = args[:latitude] if args.key?(:latitude)
1222
+ @longitude = args[:longitude] if args.key?(:longitude)
1223
+ end
1224
+ end
1225
+
1226
+ # A 3D position in the image, used primarily for Face detection landmarks.
1227
+ # A valid Position must have both x and y coordinates.
1228
+ # The position coordinates are in the same scale as the original image.
1229
+ class Position
1230
+ include Google::Apis::Core::Hashable
1231
+
1232
+ # Y coordinate.
1233
+ # Corresponds to the JSON property `y`
1244
1234
  # @return [Float]
1245
- attr_accessor :latitude
1235
+ attr_accessor :y
1236
+
1237
+ # X coordinate.
1238
+ # Corresponds to the JSON property `x`
1239
+ # @return [Float]
1240
+ attr_accessor :x
1241
+
1242
+ # Z coordinate (or depth).
1243
+ # Corresponds to the JSON property `z`
1244
+ # @return [Float]
1245
+ attr_accessor :z
1246
1246
 
1247
1247
  def initialize(**args)
1248
1248
  update!(**args)
@@ -1250,8 +1250,9 @@ module Google
1250
1250
 
1251
1251
  # Update properties of this object
1252
1252
  def update!(**args)
1253
- @longitude = args[:longitude] if args.key?(:longitude)
1254
- @latitude = args[:latitude] if args.key?(:latitude)
1253
+ @y = args[:y] if args.key?(:y)
1254
+ @x = args[:x] if args.key?(:x)
1255
+ @z = args[:z] if args.key?(:z)
1255
1256
  end
1256
1257
  end
1257
1258
  end
@@ -154,13 +154,13 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
- class Position
157
+ class LatLng
158
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
159
 
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
- class LatLng
163
+ class Position
164
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
165
 
166
166
  include Google::Apis::Core::JsonObjectSupport
@@ -239,9 +239,9 @@ module Google
239
239
  property :surprise_likelihood, as: 'surpriseLikelihood'
240
240
  property :anger_likelihood, as: 'angerLikelihood'
241
241
  property :headwear_likelihood, as: 'headwearLikelihood'
242
+ property :pan_angle, as: 'panAngle'
242
243
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
243
244
 
244
- property :pan_angle, as: 'panAngle'
245
245
  collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::Landmark, decorator: Google::Apis::VisionV1::Landmark::Representation
246
246
 
247
247
  property :blurred_likelihood, as: 'blurredLikelihood'
@@ -288,9 +288,9 @@ module Google
288
288
  class ImageContext
289
289
  # @private
290
290
  class Representation < Google::Apis::Core::JsonRepresentation
291
- collection :language_hints, as: 'languageHints'
292
291
  property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1::LatLongRect, decorator: Google::Apis::VisionV1::LatLongRect::Representation
293
292
 
293
+ collection :language_hints, as: 'languageHints'
294
294
  end
295
295
  end
296
296
 
@@ -350,8 +350,8 @@ module Google
350
350
  # @private
351
351
  class Representation < Google::Apis::Core::JsonRepresentation
352
352
  property :medical, as: 'medical'
353
- property :violence, as: 'violence'
354
353
  property :spoof, as: 'spoof'
354
+ property :violence, as: 'violence'
355
355
  property :adult, as: 'adult'
356
356
  end
357
357
  end
@@ -376,8 +376,8 @@ module Google
376
376
  class Feature
377
377
  # @private
378
378
  class Representation < Google::Apis::Core::JsonRepresentation
379
- property :max_results, as: 'maxResults'
380
379
  property :type, as: 'type'
380
+ property :max_results, as: 'maxResults'
381
381
  end
382
382
  end
383
383
 
@@ -397,20 +397,20 @@ module Google
397
397
  end
398
398
  end
399
399
 
400
- class Position
400
+ class LatLng
401
401
  # @private
402
402
  class Representation < Google::Apis::Core::JsonRepresentation
403
- property :y, as: 'y'
404
- property :z, as: 'z'
405
- property :x, as: 'x'
403
+ property :latitude, as: 'latitude'
404
+ property :longitude, as: 'longitude'
406
405
  end
407
406
  end
408
407
 
409
- class LatLng
408
+ class Position
410
409
  # @private
411
410
  class Representation < Google::Apis::Core::JsonRepresentation
412
- property :longitude, as: 'longitude'
413
- property :latitude, as: 'latitude'
411
+ property :y, as: 'y'
412
+ property :x, as: 'x'
413
+ property :z, as: 'z'
414
414
  end
415
415
  end
416
416
  end
@@ -22,10 +22,9 @@ module Google
22
22
  module VisionV1
23
23
  # Google Cloud Vision API
24
24
  #
25
- # The Google Cloud Vision API allows developers to easily integrate Google
26
- # vision features, including image labeling, face, logo, and landmark detection,
27
- # optical character recognition (OCR), and detection of explicit content, into
28
- # applications.
25
+ # Integrates Google Vision features, including image labeling, face, logo, and
26
+ # landmark detection, optical character recognition (OCR), and detection of
27
+ # explicit content, into applications.
29
28
  #
30
29
  # @example
31
30
  # require 'google/apis/vision_v1'