google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -22,154 +22,144 @@ module Google
22
22
  module Apis
23
23
  module SpeechV1beta1
24
24
 
25
- class SpeechRecognitionAlternative
25
+ class SyncRecognizeRequest
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class SpeechContext
31
+ class SyncRecognizeResponse
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ListOperationsResponse
37
+ class Status
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class SpeechRecognitionResult
43
+ class Empty
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class AsyncRecognizeRequest
49
+ class ListOperationsResponse
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class RecognitionAudio
55
+ class SpeechContext
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class Operation
61
+ class SpeechRecognitionAlternative
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class RecognitionConfig
67
+ class SpeechRecognitionResult
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class SyncRecognizeRequest
73
+ class AsyncRecognizeRequest
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class Status
79
+ class RecognitionAudio
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class SyncRecognizeResponse
85
+ class Operation
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class Empty
91
+ class RecognitionConfig
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class SpeechRecognitionAlternative
97
+ class SyncRecognizeRequest
98
98
  # @private
99
99
  class Representation < Google::Apis::Core::JsonRepresentation
100
- property :confidence, as: 'confidence'
101
- property :transcript, as: 'transcript'
100
+ property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
101
+
102
+ property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
103
+
102
104
  end
103
105
  end
104
106
 
105
- class SpeechContext
107
+ class SyncRecognizeResponse
106
108
  # @private
107
109
  class Representation < Google::Apis::Core::JsonRepresentation
108
- collection :phrases, as: 'phrases'
110
+ collection :results, as: 'results', class: Google::Apis::SpeechV1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionResult::Representation
111
+
109
112
  end
110
113
  end
111
114
 
112
- class ListOperationsResponse
115
+ class Status
113
116
  # @private
114
117
  class Representation < Google::Apis::Core::JsonRepresentation
115
- property :next_page_token, as: 'nextPageToken'
116
- collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation
117
-
118
+ collection :details, as: 'details'
119
+ property :code, as: 'code'
120
+ property :message, as: 'message'
118
121
  end
119
122
  end
120
123
 
121
- class SpeechRecognitionResult
124
+ class Empty
122
125
  # @private
123
126
  class Representation < Google::Apis::Core::JsonRepresentation
124
- collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative::Representation
125
-
126
127
  end
127
128
  end
128
129
 
129
- class AsyncRecognizeRequest
130
+ class ListOperationsResponse
130
131
  # @private
131
132
  class Representation < Google::Apis::Core::JsonRepresentation
132
- property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
133
-
134
- property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
133
+ property :next_page_token, as: 'nextPageToken'
134
+ collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation
135
135
 
136
136
  end
137
137
  end
138
138
 
139
- class RecognitionAudio
139
+ class SpeechContext
140
140
  # @private
141
141
  class Representation < Google::Apis::Core::JsonRepresentation
142
- property :content, :base64 => true, as: 'content'
143
- property :uri, as: 'uri'
142
+ collection :phrases, as: 'phrases'
144
143
  end
145
144
  end
146
145
 
147
- class Operation
146
+ class SpeechRecognitionAlternative
148
147
  # @private
149
148
  class Representation < Google::Apis::Core::JsonRepresentation
150
- property :done, as: 'done'
151
- hash :response, as: 'response'
152
- property :name, as: 'name'
153
- property :error, as: 'error', class: Google::Apis::SpeechV1beta1::Status, decorator: Google::Apis::SpeechV1beta1::Status::Representation
154
-
155
- hash :metadata, as: 'metadata'
149
+ property :confidence, as: 'confidence'
150
+ property :transcript, as: 'transcript'
156
151
  end
157
152
  end
158
153
 
159
- class RecognitionConfig
154
+ class SpeechRecognitionResult
160
155
  # @private
161
156
  class Representation < Google::Apis::Core::JsonRepresentation
162
- property :max_alternatives, as: 'maxAlternatives'
163
- property :sample_rate, as: 'sampleRate'
164
- property :language_code, as: 'languageCode'
165
- property :speech_context, as: 'speechContext', class: Google::Apis::SpeechV1beta1::SpeechContext, decorator: Google::Apis::SpeechV1beta1::SpeechContext::Representation
157
+ collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative::Representation
166
158
 
167
- property :encoding, as: 'encoding'
168
- property :profanity_filter, as: 'profanityFilter'
169
159
  end
170
160
  end
171
161
 
172
- class SyncRecognizeRequest
162
+ class AsyncRecognizeRequest
173
163
  # @private
174
164
  class Representation < Google::Apis::Core::JsonRepresentation
175
165
  property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
@@ -179,26 +169,36 @@ module Google
179
169
  end
180
170
  end
181
171
 
182
- class Status
172
+ class RecognitionAudio
183
173
  # @private
184
174
  class Representation < Google::Apis::Core::JsonRepresentation
185
- collection :details, as: 'details'
186
- property :code, as: 'code'
187
- property :message, as: 'message'
175
+ property :content, :base64 => true, as: 'content'
176
+ property :uri, as: 'uri'
188
177
  end
189
178
  end
190
179
 
191
- class SyncRecognizeResponse
180
+ class Operation
192
181
  # @private
193
182
  class Representation < Google::Apis::Core::JsonRepresentation
194
- collection :results, as: 'results', class: Google::Apis::SpeechV1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionResult::Representation
183
+ hash :metadata, as: 'metadata'
184
+ property :done, as: 'done'
185
+ hash :response, as: 'response'
186
+ property :name, as: 'name'
187
+ property :error, as: 'error', class: Google::Apis::SpeechV1beta1::Status, decorator: Google::Apis::SpeechV1beta1::Status::Representation
195
188
 
196
189
  end
197
190
  end
198
191
 
199
- class Empty
192
+ class RecognitionConfig
200
193
  # @private
201
194
  class Representation < Google::Apis::Core::JsonRepresentation
195
+ property :max_alternatives, as: 'maxAlternatives'
196
+ property :language_code, as: 'languageCode'
197
+ property :sample_rate, as: 'sampleRate'
198
+ property :encoding, as: 'encoding'
199
+ property :profanity_filter, as: 'profanityFilter'
200
+ property :speech_context, as: 'speechContext', class: Google::Apis::SpeechV1beta1::SpeechContext, decorator: Google::Apis::SpeechV1beta1::SpeechContext::Representation
201
+
202
202
  end
203
203
  end
204
204
  end
@@ -58,11 +58,11 @@ module Google
58
58
  # corresponding to `Code.CANCELLED`.
59
59
  # @param [String] name
60
60
  # The name of the operation resource to be cancelled.
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
61
63
  # @param [String] quota_user
62
64
  # Available to use for quota purposes for server-side applications. Can be any
63
65
  # arbitrary string assigned to a user, but should not exceed 40 characters.
64
- # @param [String] fields
65
- # Selector specifying which fields to include in a partial response.
66
66
  # @param [Google::Apis::RequestOptions] options
67
67
  # Request-specific options
68
68
  #
@@ -75,13 +75,13 @@ module Google
75
75
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
76
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
77
  # @raise [Google::Apis::AuthorizationError] Authorization is required
78
- def cancel_operation(name, quota_user: nil, fields: nil, options: nil, &block)
78
+ def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
79
79
  command = make_simple_command(:post, 'v1beta1/operations/{+name}:cancel', options)
80
80
  command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
81
81
  command.response_class = Google::Apis::SpeechV1beta1::Empty
82
82
  command.params['name'] = name unless name.nil?
83
- command.query['quotaUser'] = quota_user unless quota_user.nil?
84
83
  command.query['fields'] = fields unless fields.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
85
  execute_or_queue_command(command, &block)
86
86
  end
87
87
 
@@ -91,11 +91,11 @@ module Google
91
91
  # `google.rpc.Code.UNIMPLEMENTED`.
92
92
  # @param [String] name
93
93
  # The name of the operation resource to be deleted.
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
94
96
  # @param [String] quota_user
95
97
  # Available to use for quota purposes for server-side applications. Can be any
96
98
  # arbitrary string assigned to a user, but should not exceed 40 characters.
97
- # @param [String] fields
98
- # Selector specifying which fields to include in a partial response.
99
99
  # @param [Google::Apis::RequestOptions] options
100
100
  # Request-specific options
101
101
  #
@@ -108,13 +108,13 @@ module Google
108
108
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
109
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
110
  # @raise [Google::Apis::AuthorizationError] Authorization is required
111
- def delete_operation(name, quota_user: nil, fields: nil, options: nil, &block)
111
+ def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
112
112
  command = make_simple_command(:delete, 'v1beta1/operations/{+name}', options)
113
113
  command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
114
114
  command.response_class = Google::Apis::SpeechV1beta1::Empty
115
115
  command.params['name'] = name unless name.nil?
116
- command.query['quotaUser'] = quota_user unless quota_user.nil?
117
116
  command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
118
  execute_or_queue_command(command, &block)
119
119
  end
120
120
 
@@ -122,19 +122,19 @@ module Google
122
122
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
123
123
  # NOTE: the `name` binding below allows API services to override the binding
124
124
  # to use different resource name schemes, such as `users/*/operations`.
125
- # @param [String] filter
126
- # The standard list filter.
127
125
  # @param [String] name
128
126
  # The name of the operation collection.
129
127
  # @param [String] page_token
130
128
  # The standard list page token.
131
129
  # @param [Fixnum] page_size
132
130
  # The standard list page size.
131
+ # @param [String] filter
132
+ # The standard list filter.
133
+ # @param [String] fields
134
+ # Selector specifying which fields to include in a partial response.
133
135
  # @param [String] quota_user
134
136
  # Available to use for quota purposes for server-side applications. Can be any
135
137
  # arbitrary string assigned to a user, but should not exceed 40 characters.
136
- # @param [String] fields
137
- # Selector specifying which fields to include in a partial response.
138
138
  # @param [Google::Apis::RequestOptions] options
139
139
  # Request-specific options
140
140
  #
@@ -147,16 +147,16 @@ module Google
147
147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
150
- def list_operations(filter: nil, name: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
150
+ def list_operations(name: nil, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
151
151
  command = make_simple_command(:get, 'v1beta1/operations', options)
152
152
  command.response_representation = Google::Apis::SpeechV1beta1::ListOperationsResponse::Representation
153
153
  command.response_class = Google::Apis::SpeechV1beta1::ListOperationsResponse
154
- command.query['filter'] = filter unless filter.nil?
155
154
  command.query['name'] = name unless name.nil?
156
155
  command.query['pageToken'] = page_token unless page_token.nil?
157
156
  command.query['pageSize'] = page_size unless page_size.nil?
158
- command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ command.query['filter'] = filter unless filter.nil?
159
158
  command.query['fields'] = fields unless fields.nil?
159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
160
160
  execute_or_queue_command(command, &block)
161
161
  end
162
162
 
@@ -165,11 +165,11 @@ module Google
165
165
  # service.
166
166
  # @param [String] name
167
167
  # The name of the operation resource.
168
+ # @param [String] fields
169
+ # Selector specifying which fields to include in a partial response.
168
170
  # @param [String] quota_user
169
171
  # Available to use for quota purposes for server-side applications. Can be any
170
172
  # arbitrary string assigned to a user, but should not exceed 40 characters.
171
- # @param [String] fields
172
- # Selector specifying which fields to include in a partial response.
173
173
  # @param [Google::Apis::RequestOptions] options
174
174
  # Request-specific options
175
175
  #
@@ -182,13 +182,13 @@ module Google
182
182
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
183
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
184
  # @raise [Google::Apis::AuthorizationError] Authorization is required
185
- def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
185
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
186
186
  command = make_simple_command(:get, 'v1beta1/operations/{+name}', options)
187
187
  command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
188
188
  command.response_class = Google::Apis::SpeechV1beta1::Operation
189
189
  command.params['name'] = name unless name.nil?
190
- command.query['quotaUser'] = quota_user unless quota_user.nil?
191
190
  command.query['fields'] = fields unless fields.nil?
191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
192
192
  execute_or_queue_command(command, &block)
193
193
  end
194
194
 
@@ -199,11 +199,11 @@ module Google
199
199
  # `Operation.error` or an `Operation.response` which contains
200
200
  # an `AsyncRecognizeResponse` message.
201
201
  # @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object
202
+ # @param [String] fields
203
+ # Selector specifying which fields to include in a partial response.
202
204
  # @param [String] quota_user
203
205
  # Available to use for quota purposes for server-side applications. Can be any
204
206
  # arbitrary string assigned to a user, but should not exceed 40 characters.
205
- # @param [String] fields
206
- # Selector specifying which fields to include in a partial response.
207
207
  # @param [Google::Apis::RequestOptions] options
208
208
  # Request-specific options
209
209
  #
@@ -216,25 +216,25 @@ module Google
216
216
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
217
217
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
218
218
  # @raise [Google::Apis::AuthorizationError] Authorization is required
219
- def async_recognize_speech(async_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
219
+ def async_recognize_speech(async_recognize_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
220
220
  command = make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
221
221
  command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
222
222
  command.request_object = async_recognize_request_object
223
223
  command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
224
224
  command.response_class = Google::Apis::SpeechV1beta1::Operation
225
- command.query['quotaUser'] = quota_user unless quota_user.nil?
226
225
  command.query['fields'] = fields unless fields.nil?
226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
227
227
  execute_or_queue_command(command, &block)
228
228
  end
229
229
 
230
230
  # Performs synchronous speech recognition: receive results after all audio
231
231
  # has been sent and processed.
232
232
  # @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
233
+ # @param [String] fields
234
+ # Selector specifying which fields to include in a partial response.
233
235
  # @param [String] quota_user
234
236
  # Available to use for quota purposes for server-side applications. Can be any
235
237
  # arbitrary string assigned to a user, but should not exceed 40 characters.
236
- # @param [String] fields
237
- # Selector specifying which fields to include in a partial response.
238
238
  # @param [Google::Apis::RequestOptions] options
239
239
  # Request-specific options
240
240
  #
@@ -247,14 +247,14 @@ module Google
247
247
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
248
248
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
249
249
  # @raise [Google::Apis::AuthorizationError] Authorization is required
250
- def sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
250
+ def sync_recognize_speech(sync_recognize_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
251
251
  command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
252
252
  command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
253
253
  command.request_object = sync_recognize_request_object
254
254
  command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
255
255
  command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
256
- command.query['quotaUser'] = quota_user unless quota_user.nil?
257
256
  command.query['fields'] = fields unless fields.nil?
257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
258
258
  execute_or_queue_command(command, &block)
259
259
  end
260
260
 
@@ -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 = '20170308'
28
+ REVISION = '20170317'
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'
@@ -56,6 +56,11 @@ module Google
56
56
  # @return [String]
57
57
  attr_accessor :kind
58
58
 
59
+ # User-provided labels, in key/value pairs.
60
+ # Corresponds to the JSON property `labels`
61
+ # @return [Hash<String,String>]
62
+ attr_accessor :labels
63
+
59
64
  # The bucket's lifecycle configuration. See lifecycle management for more
60
65
  # information.
61
66
  # Corresponds to the JSON property `lifecycle`
@@ -144,6 +149,7 @@ module Google
144
149
  @etag = args[:etag] if args.key?(:etag)
145
150
  @id = args[:id] if args.key?(:id)
146
151
  @kind = args[:kind] if args.key?(:kind)
152
+ @labels = args[:labels] if args.key?(:labels)
147
153
  @lifecycle = args[:lifecycle] if args.key?(:lifecycle)
148
154
  @location = args[:location] if args.key?(:location)
149
155
  @logging = args[:logging] if args.key?(:logging)
@@ -765,6 +771,104 @@ module Google
765
771
  end
766
772
  end
767
773
 
774
+ # A subscription to receive Google PubSub notifications.
775
+ class Notification
776
+ include Google::Apis::Core::Hashable
777
+
778
+ # An optional list of additional attributes to attach to each Cloud PubSub
779
+ # message published for this notification subscription.
780
+ # Corresponds to the JSON property `custom_attributes`
781
+ # @return [Hash<String,String>]
782
+ attr_accessor :custom_attributes
783
+
784
+ # HTTP 1.1 Entity tag for this subscription notification.
785
+ # Corresponds to the JSON property `etag`
786
+ # @return [String]
787
+ attr_accessor :etag
788
+
789
+ # If present, only send notifications about listed event types. If empty, sent
790
+ # notifications for all event types.
791
+ # Corresponds to the JSON property `event_types`
792
+ # @return [Array<String>]
793
+ attr_accessor :event_types
794
+
795
+ # The ID of the notification.
796
+ # Corresponds to the JSON property `id`
797
+ # @return [String]
798
+ attr_accessor :id
799
+
800
+ # The kind of item this is. For notifications, this is always storage#
801
+ # notification.
802
+ # Corresponds to the JSON property `kind`
803
+ # @return [String]
804
+ attr_accessor :kind
805
+
806
+ # If present, only apply this notification configuration to object names that
807
+ # begin with this prefix.
808
+ # Corresponds to the JSON property `object_name_prefix`
809
+ # @return [String]
810
+ attr_accessor :object_name_prefix
811
+
812
+ # The desired content of the Payload.
813
+ # Corresponds to the JSON property `payload_format`
814
+ # @return [String]
815
+ attr_accessor :payload_format
816
+
817
+ # The canonical URL of this notification.
818
+ # Corresponds to the JSON property `selfLink`
819
+ # @return [String]
820
+ attr_accessor :self_link
821
+
822
+ # The Cloud PubSub topic to which this subscription publishes. Formatted as: '//
823
+ # pubsub.googleapis.com/projects/`project-identifier`/topics/`my-topic`'
824
+ # Corresponds to the JSON property `topic`
825
+ # @return [String]
826
+ attr_accessor :topic
827
+
828
+ def initialize(**args)
829
+ update!(**args)
830
+ end
831
+
832
+ # Update properties of this object
833
+ def update!(**args)
834
+ @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
835
+ @etag = args[:etag] if args.key?(:etag)
836
+ @event_types = args[:event_types] if args.key?(:event_types)
837
+ @id = args[:id] if args.key?(:id)
838
+ @kind = args[:kind] if args.key?(:kind)
839
+ @object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix)
840
+ @payload_format = args[:payload_format] if args.key?(:payload_format)
841
+ @self_link = args[:self_link] if args.key?(:self_link)
842
+ @topic = args[:topic] if args.key?(:topic)
843
+ end
844
+ end
845
+
846
+ # A list of notification subscriptions.
847
+ class Notifications
848
+ include Google::Apis::Core::Hashable
849
+
850
+ # The list of items.
851
+ # Corresponds to the JSON property `items`
852
+ # @return [Array<Google::Apis::StorageV1::Notification>]
853
+ attr_accessor :items
854
+
855
+ # The kind of item this is. For lists of notifications, this is always storage#
856
+ # notifications.
857
+ # Corresponds to the JSON property `kind`
858
+ # @return [String]
859
+ attr_accessor :kind
860
+
861
+ def initialize(**args)
862
+ update!(**args)
863
+ end
864
+
865
+ # Update properties of this object
866
+ def update!(**args)
867
+ @items = args[:items] if args.key?(:items)
868
+ @kind = args[:kind] if args.key?(:kind)
869
+ end
870
+ end
871
+
768
872
  # An object.
769
873
  class Object
770
874
  include Google::Apis::Core::Hashable
@@ -1210,6 +1314,7 @@ module Google
1210
1314
 
1211
1315
  # HTTP 1.1 Entity tag for the policy.
1212
1316
  # Corresponds to the JSON property `etag`
1317
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1213
1318
  # @return [String]
1214
1319
  attr_accessor :etag
1215
1320
 
@@ -1362,6 +1467,32 @@ module Google
1362
1467
  end
1363
1468
  end
1364
1469
 
1470
+ # A subscription to receive Google PubSub notifications.
1471
+ class ServiceAccount
1472
+ include Google::Apis::Core::Hashable
1473
+
1474
+ # The ID of the notification.
1475
+ # Corresponds to the JSON property `email_address`
1476
+ # @return [String]
1477
+ attr_accessor :email_address
1478
+
1479
+ # The kind of item this is. For notifications, this is always storage#
1480
+ # notification.
1481
+ # Corresponds to the JSON property `kind`
1482
+ # @return [String]
1483
+ attr_accessor :kind
1484
+
1485
+ def initialize(**args)
1486
+ update!(**args)
1487
+ end
1488
+
1489
+ # Update properties of this object
1490
+ def update!(**args)
1491
+ @email_address = args[:email_address] if args.key?(:email_address)
1492
+ @kind = args[:kind] if args.key?(:kind)
1493
+ end
1494
+ end
1495
+
1365
1496
  # A storage.(buckets|objects).testIamPermissions response.
1366
1497
  class TestIamPermissionsResponse
1367
1498
  include Google::Apis::Core::Hashable