google-api-client 0.9.8 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/activity/
26
26
  module AppsactivityV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160129'
28
+ REVISION = '20161101'
29
29
 
30
30
  # View the activity history of your Google Apps
31
31
  AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
@@ -374,6 +374,12 @@ module Google
374
374
  attr_accessor :is_deleted
375
375
  alias_method :is_deleted?, :is_deleted
376
376
 
377
+ # Whether the user is the authenticated user.
378
+ # Corresponds to the JSON property `isMe`
379
+ # @return [Boolean]
380
+ attr_accessor :is_me
381
+ alias_method :is_me?, :is_me
382
+
377
383
  # The displayable name of the user.
378
384
  # Corresponds to the JSON property `name`
379
385
  # @return [String]
@@ -398,6 +404,7 @@ module Google
398
404
  # Update properties of this object
399
405
  def update!(**args)
400
406
  @is_deleted = args[:is_deleted] if args.key?(:is_deleted)
407
+ @is_me = args[:is_me] if args.key?(:is_me)
401
408
  @name = args[:name] if args.key?(:name)
402
409
  @permission_id = args[:permission_id] if args.key?(:permission_id)
403
410
  @photo = args[:photo] if args.key?(:photo)
@@ -197,6 +197,7 @@ module Google
197
197
  # @private
198
198
  class Representation < Google::Apis::Core::JsonRepresentation
199
199
  property :is_deleted, as: 'isDeleted'
200
+ property :is_me, as: 'isMe'
200
201
  property :name, as: 'name'
201
202
  property :permission_id, as: 'permissionId'
202
203
  property :photo, as: 'photo', class: Google::Apis::AppsactivityV1::Photo, decorator: Google::Apis::AppsactivityV1::Photo::Representation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/web/api/states
26
26
  module AppstateV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160519'
28
+ REVISION = '20161103'
29
29
 
30
30
  # View and manage your data for this application
31
31
  AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160511'
28
+ REVISION = '20161029'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -70,7 +70,7 @@ module Google
70
70
  # [Optional] The type to convert the value in cells of this column. The values
71
71
  # are expected to be encoded using HBase Bytes.toBytes function when using the
72
72
  # BINARY encoding value. Following BigQuery types are allowed (case-sensitive) -
73
- # BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. 'type' can also be
73
+ # BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. 'type' can also be
74
74
  # set at the column family level. However, the setting at this level takes
75
75
  # precedence if 'type' is set at both levels.
76
76
  # Corresponds to the JSON property `type`
@@ -130,9 +130,9 @@ module Google
130
130
  # [Optional] The type to convert the value in cells of this column family. The
131
131
  # values are expected to be encoded using HBase Bytes.toBytes function when
132
132
  # using the BINARY encoding value. Following BigQuery types are allowed (case-
133
- # sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. This can
134
- # be overridden for a specific column by listing that column in 'columns' and
135
- # specifying a type for it.
133
+ # sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This
134
+ # can be overridden for a specific column by listing that column in 'columns'
135
+ # and specifying a type for it.
136
136
  # Corresponds to the JSON property `type`
137
137
  # @return [String]
138
138
  attr_accessor :type
@@ -174,6 +174,14 @@ module Google
174
174
  attr_accessor :ignore_unspecified_column_families
175
175
  alias_method :ignore_unspecified_column_families?, :ignore_unspecified_column_families
176
176
 
177
+ # [Optional] If field is true, then the rowkey column families will be read and
178
+ # converted to string. Otherwise they are read with BYTES type values and users
179
+ # need to manually cast them with CAST if necessary. The default value is false.
180
+ # Corresponds to the JSON property `readRowkeyAsString`
181
+ # @return [Boolean]
182
+ attr_accessor :read_rowkey_as_string
183
+ alias_method :read_rowkey_as_string?, :read_rowkey_as_string
184
+
177
185
  def initialize(**args)
178
186
  update!(**args)
179
187
  end
@@ -182,6 +190,7 @@ module Google
182
190
  def update!(**args)
183
191
  @column_families = args[:column_families] if args.key?(:column_families)
184
192
  @ignore_unspecified_column_families = args[:ignore_unspecified_column_families] if args.key?(:ignore_unspecified_column_families)
193
+ @read_rowkey_as_string = args[:read_rowkey_as_string] if args.key?(:read_rowkey_as_string)
185
194
  end
186
195
  end
187
196
 
@@ -325,6 +334,13 @@ module Google
325
334
  # @return [String]
326
335
  attr_accessor :kind
327
336
 
337
+ # [Experimental] The labels associated with this dataset. You can use these to
338
+ # organize and group your datasets. You can set this property when inserting or
339
+ # updating a dataset. See Labeling Datasets for more information.
340
+ # Corresponds to the JSON property `labels`
341
+ # @return [Hash<String,String>]
342
+ attr_accessor :labels
343
+
328
344
  # [Output-only] The date when this dataset or any of its tables was last
329
345
  # modified, in milliseconds since the epoch.
330
346
  # Corresponds to the JSON property `lastModifiedTime`
@@ -358,6 +374,7 @@ module Google
358
374
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
359
375
  @id = args[:id] if args.key?(:id)
360
376
  @kind = args[:kind] if args.key?(:kind)
377
+ @labels = args[:labels] if args.key?(:labels)
361
378
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
362
379
  @location = args[:location] if args.key?(:location)
363
380
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -490,6 +507,12 @@ module Google
490
507
  # @return [String]
491
508
  attr_accessor :kind
492
509
 
510
+ # [Experimental] The labels associated with this dataset. You can use these to
511
+ # organize and group your datasets.
512
+ # Corresponds to the JSON property `labels`
513
+ # @return [Hash<String,String>]
514
+ attr_accessor :labels
515
+
493
516
  def initialize(**args)
494
517
  update!(**args)
495
518
  end
@@ -500,6 +523,7 @@ module Google
500
523
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
501
524
  @id = args[:id] if args.key?(:id)
502
525
  @kind = args[:kind] if args.key?(:kind)
526
+ @labels = args[:labels] if args.key?(:labels)
503
527
  end
504
528
  end
505
529
  end
@@ -834,6 +858,12 @@ module Google
834
858
  # @return [String]
835
859
  attr_accessor :kind
836
860
 
861
+ # [Output-only, Experimental] The number of rows affected by a DML statement.
862
+ # Present only for DML statements INSERT, UPDATE or DELETE.
863
+ # Corresponds to the JSON property `numDmlAffectedRows`
864
+ # @return [String]
865
+ attr_accessor :num_dml_affected_rows
866
+
837
867
  # A token used for paging results.
838
868
  # Corresponds to the JSON property `pageToken`
839
869
  # @return [String]
@@ -876,6 +906,7 @@ module Google
876
906
  @job_complete = args[:job_complete] if args.key?(:job_complete)
877
907
  @job_reference = args[:job_reference] if args.key?(:job_reference)
878
908
  @kind = args[:kind] if args.key?(:kind)
909
+ @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
879
910
  @page_token = args[:page_token] if args.key?(:page_token)
880
911
  @rows = args[:rows] if args.key?(:rows)
881
912
  @schema = args[:schema] if args.key?(:schema)
@@ -1030,6 +1061,16 @@ module Google
1030
1061
  # @return [Google::Apis::BigqueryV2::JobConfigurationExtract]
1031
1062
  attr_accessor :extract
1032
1063
 
1064
+ # [Experimental] The labels associated with this job. You can use these to
1065
+ # organize and group your jobs. Label keys and values can be no longer than 63
1066
+ # characters, can only contain letters, numeric characters, underscores and
1067
+ # dashes. International characters are allowed. Label values are optional. Label
1068
+ # keys must start with a letter and must be unique within a dataset. Both keys
1069
+ # and values are additionally constrained to be <= 128 bytes in size.
1070
+ # Corresponds to the JSON property `labels`
1071
+ # @return [Hash<String,String>]
1072
+ attr_accessor :labels
1073
+
1033
1074
  # [Pick one] Configures a load job.
1034
1075
  # Corresponds to the JSON property `load`
1035
1076
  # @return [Google::Apis::BigqueryV2::JobConfigurationLoad]
@@ -1049,6 +1090,7 @@ module Google
1049
1090
  @copy = args[:copy] if args.key?(:copy)
1050
1091
  @dry_run = args[:dry_run] if args.key?(:dry_run)
1051
1092
  @extract = args[:extract] if args.key?(:extract)
1093
+ @labels = args[:labels] if args.key?(:labels)
1052
1094
  @load = args[:load] if args.key?(:load)
1053
1095
  @query = args[:query] if args.key?(:query)
1054
1096
  end
@@ -1236,6 +1278,18 @@ module Google
1236
1278
  # @return [String]
1237
1279
  attr_accessor :schema_inline_format
1238
1280
 
1281
+ # [Experimental] Allows the schema of the desitination table to be updated as a
1282
+ # side effect of the load job. Schema update options are supported in two cases:
1283
+ # when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE
1284
+ # and the destination table is a partition of a table, specified by partition
1285
+ # decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema.
1286
+ # One or more of the following values are specified: ALLOW_FIELD_ADDITION:
1287
+ # allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow
1288
+ # relaxing a required field in the original schema to nullable.
1289
+ # Corresponds to the JSON property `schemaUpdateOptions`
1290
+ # @return [Array<String>]
1291
+ attr_accessor :schema_update_options
1292
+
1239
1293
  # [Optional] The number of rows at the top of a CSV file that BigQuery will skip
1240
1294
  # when loading the data. The default value is 0. This property is useful if you
1241
1295
  # have header rows in the file that should be skipped.
@@ -1290,6 +1344,7 @@ module Google
1290
1344
  @schema = args[:schema] if args.key?(:schema)
1291
1345
  @schema_inline = args[:schema_inline] if args.key?(:schema_inline)
1292
1346
  @schema_inline_format = args[:schema_inline_format] if args.key?(:schema_inline_format)
1347
+ @schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
1293
1348
  @skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
1294
1349
  @source_format = args[:source_format] if args.key?(:source_format)
1295
1350
  @source_uris = args[:source_uris] if args.key?(:source_uris)
@@ -1344,6 +1399,19 @@ module Google
1344
1399
  # @return [Fixnum]
1345
1400
  attr_accessor :maximum_billing_tier
1346
1401
 
1402
+ # [Optional] Limits the bytes billed for this job. Queries that will have bytes
1403
+ # billed beyond this limit will fail (without incurring a charge). If
1404
+ # unspecified, this will be set to your project default.
1405
+ # Corresponds to the JSON property `maximumBytesBilled`
1406
+ # @return [String]
1407
+ attr_accessor :maximum_bytes_billed
1408
+
1409
+ # [Experimental] Standard SQL only. Whether to use positional (?) or named (@
1410
+ # myparam) query parameters in this query.
1411
+ # Corresponds to the JSON property `parameterMode`
1412
+ # @return [String]
1413
+ attr_accessor :parameter_mode
1414
+
1347
1415
  # [Deprecated] This property is deprecated.
1348
1416
  # Corresponds to the JSON property `preserveNulls`
1349
1417
  # @return [Boolean]
@@ -1361,6 +1429,24 @@ module Google
1361
1429
  # @return [String]
1362
1430
  attr_accessor :query
1363
1431
 
1432
+ # Query parameters for standard SQL queries.
1433
+ # Corresponds to the JSON property `queryParameters`
1434
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
1435
+ attr_accessor :query_parameters
1436
+
1437
+ # [Experimental] Allows the schema of the destination table to be updated as a
1438
+ # side effect of the query job. Schema update options are supported in two cases:
1439
+ # when writeDisposition is WRITE_APPEND; when writeDisposition is
1440
+ # WRITE_TRUNCATE and the destination table is a partition of a table, specified
1441
+ # by partition decorators. For normal tables, WRITE_TRUNCATE will always
1442
+ # overwrite the schema. One or more of the following values are specified:
1443
+ # ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema.
1444
+ # ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema
1445
+ # to nullable.
1446
+ # Corresponds to the JSON property `schemaUpdateOptions`
1447
+ # @return [Array<String>]
1448
+ attr_accessor :schema_update_options
1449
+
1364
1450
  # [Optional] If querying an external data source outside of BigQuery, describes
1365
1451
  # the data format, location and other properties of the data source. By defining
1366
1452
  # these properties, the data source can then be queried as if it were a standard
@@ -1369,12 +1455,11 @@ module Google
1369
1455
  # @return [Hash<String,Google::Apis::BigqueryV2::ExternalDataConfiguration>]
1370
1456
  attr_accessor :table_definitions
1371
1457
 
1372
- # [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
1373
- # query. The default value is true. If set to false, the query will use BigQuery'
1374
- # s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
1375
- # useLegacySql is set to false, the values of allowLargeResults and
1376
- # flattenResults are ignored; query will be run as if allowLargeResults is true
1377
- # and flattenResults is false.
1458
+ # Specifies whether to use BigQuery's legacy SQL dialect for this query. The
1459
+ # default value is true. If set to false, the query will use BigQuery's standard
1460
+ # SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
1461
+ # to false, the values of allowLargeResults and flattenResults are ignored;
1462
+ # query will be run as if allowLargeResults is true and flattenResults is false.
1378
1463
  # Corresponds to the JSON property `useLegacySql`
1379
1464
  # @return [Boolean]
1380
1465
  attr_accessor :use_legacy_sql
@@ -1418,9 +1503,13 @@ module Google
1418
1503
  @destination_table = args[:destination_table] if args.key?(:destination_table)
1419
1504
  @flatten_results = args[:flatten_results] if args.key?(:flatten_results)
1420
1505
  @maximum_billing_tier = args[:maximum_billing_tier] if args.key?(:maximum_billing_tier)
1506
+ @maximum_bytes_billed = args[:maximum_bytes_billed] if args.key?(:maximum_bytes_billed)
1507
+ @parameter_mode = args[:parameter_mode] if args.key?(:parameter_mode)
1421
1508
  @preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls)
1422
1509
  @priority = args[:priority] if args.key?(:priority)
1423
1510
  @query = args[:query] if args.key?(:query)
1511
+ @query_parameters = args[:query_parameters] if args.key?(:query_parameters)
1512
+ @schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
1424
1513
  @table_definitions = args[:table_definitions] if args.key?(:table_definitions)
1425
1514
  @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
1426
1515
  @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
@@ -1692,8 +1781,13 @@ module Google
1692
1781
  attr_accessor :cache_hit
1693
1782
  alias_method :cache_hit?, :cache_hit
1694
1783
 
1695
- # [Output-only, Experimental] Describes execution plan for the query as a list
1696
- # of stages.
1784
+ # [Output-only, Experimental] The number of rows affected by a DML statement.
1785
+ # Present only for DML statements INSERT, UPDATE or DELETE.
1786
+ # Corresponds to the JSON property `numDmlAffectedRows`
1787
+ # @return [String]
1788
+ attr_accessor :num_dml_affected_rows
1789
+
1790
+ # [Output-only, Experimental] Describes execution plan for the query.
1697
1791
  # Corresponds to the JSON property `queryPlan`
1698
1792
  # @return [Array<Google::Apis::BigqueryV2::ExplainQueryStage>]
1699
1793
  attr_accessor :query_plan
@@ -1720,6 +1814,12 @@ module Google
1720
1814
  # @return [String]
1721
1815
  attr_accessor :total_bytes_processed
1722
1816
 
1817
+ # [Output-only, Experimental] Standard SQL only: list of undeclared query
1818
+ # parameters detected during a dry run validation.
1819
+ # Corresponds to the JSON property `undeclaredQueryParameters`
1820
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
1821
+ attr_accessor :undeclared_query_parameters
1822
+
1723
1823
  def initialize(**args)
1724
1824
  update!(**args)
1725
1825
  end
@@ -1728,11 +1828,13 @@ module Google
1728
1828
  def update!(**args)
1729
1829
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
1730
1830
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
1831
+ @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
1731
1832
  @query_plan = args[:query_plan] if args.key?(:query_plan)
1732
1833
  @referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
1733
1834
  @schema = args[:schema] if args.key?(:schema)
1734
1835
  @total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
1735
1836
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
1837
+ @undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
1736
1838
  end
1737
1839
  end
1738
1840
 
@@ -1935,6 +2037,132 @@ module Google
1935
2037
  end
1936
2038
  end
1937
2039
 
2040
+ #
2041
+ class QueryParameter
2042
+ include Google::Apis::Core::Hashable
2043
+
2044
+ # [Optional] If unset, this is a positional parameter. Otherwise, should be
2045
+ # unique within a query.
2046
+ # Corresponds to the JSON property `name`
2047
+ # @return [String]
2048
+ attr_accessor :name
2049
+
2050
+ # [Required] The type of this parameter.
2051
+ # Corresponds to the JSON property `parameterType`
2052
+ # @return [Google::Apis::BigqueryV2::QueryParameterType]
2053
+ attr_accessor :parameter_type
2054
+
2055
+ # [Required] The value of this parameter.
2056
+ # Corresponds to the JSON property `parameterValue`
2057
+ # @return [Google::Apis::BigqueryV2::QueryParameterValue]
2058
+ attr_accessor :parameter_value
2059
+
2060
+ def initialize(**args)
2061
+ update!(**args)
2062
+ end
2063
+
2064
+ # Update properties of this object
2065
+ def update!(**args)
2066
+ @name = args[:name] if args.key?(:name)
2067
+ @parameter_type = args[:parameter_type] if args.key?(:parameter_type)
2068
+ @parameter_value = args[:parameter_value] if args.key?(:parameter_value)
2069
+ end
2070
+ end
2071
+
2072
+ #
2073
+ class QueryParameterType
2074
+ include Google::Apis::Core::Hashable
2075
+
2076
+ # [Optional] The type of the array's elements, if this is an array.
2077
+ # Corresponds to the JSON property `arrayType`
2078
+ # @return [Google::Apis::BigqueryV2::QueryParameterType]
2079
+ attr_accessor :array_type
2080
+
2081
+ # [Optional] The types of the fields of this struct, in order, if this is a
2082
+ # struct.
2083
+ # Corresponds to the JSON property `structTypes`
2084
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameterType::StructType>]
2085
+ attr_accessor :struct_types
2086
+
2087
+ # [Required] The top level type of this field.
2088
+ # Corresponds to the JSON property `type`
2089
+ # @return [String]
2090
+ attr_accessor :type
2091
+
2092
+ def initialize(**args)
2093
+ update!(**args)
2094
+ end
2095
+
2096
+ # Update properties of this object
2097
+ def update!(**args)
2098
+ @array_type = args[:array_type] if args.key?(:array_type)
2099
+ @struct_types = args[:struct_types] if args.key?(:struct_types)
2100
+ @type = args[:type] if args.key?(:type)
2101
+ end
2102
+
2103
+ #
2104
+ class StructType
2105
+ include Google::Apis::Core::Hashable
2106
+
2107
+ # [Optional] Human-oriented description of the field.
2108
+ # Corresponds to the JSON property `description`
2109
+ # @return [String]
2110
+ attr_accessor :description
2111
+
2112
+ # [Optional] The name of this field.
2113
+ # Corresponds to the JSON property `name`
2114
+ # @return [String]
2115
+ attr_accessor :name
2116
+
2117
+ # [Required] The type of this field.
2118
+ # Corresponds to the JSON property `type`
2119
+ # @return [Google::Apis::BigqueryV2::QueryParameterType]
2120
+ attr_accessor :type
2121
+
2122
+ def initialize(**args)
2123
+ update!(**args)
2124
+ end
2125
+
2126
+ # Update properties of this object
2127
+ def update!(**args)
2128
+ @description = args[:description] if args.key?(:description)
2129
+ @name = args[:name] if args.key?(:name)
2130
+ @type = args[:type] if args.key?(:type)
2131
+ end
2132
+ end
2133
+ end
2134
+
2135
+ #
2136
+ class QueryParameterValue
2137
+ include Google::Apis::Core::Hashable
2138
+
2139
+ # [Optional] The array values, if this is an array type.
2140
+ # Corresponds to the JSON property `arrayValues`
2141
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameterValue>]
2142
+ attr_accessor :array_values
2143
+
2144
+ # [Optional] The struct field values, in order of the struct type's declaration.
2145
+ # Corresponds to the JSON property `structValues`
2146
+ # @return [Hash<String,Google::Apis::BigqueryV2::QueryParameterValue>]
2147
+ attr_accessor :struct_values
2148
+
2149
+ # [Optional] The value of this value, if a simple scalar type.
2150
+ # Corresponds to the JSON property `value`
2151
+ # @return [String]
2152
+ attr_accessor :value
2153
+
2154
+ def initialize(**args)
2155
+ update!(**args)
2156
+ end
2157
+
2158
+ # Update properties of this object
2159
+ def update!(**args)
2160
+ @array_values = args[:array_values] if args.key?(:array_values)
2161
+ @struct_values = args[:struct_values] if args.key?(:struct_values)
2162
+ @value = args[:value] if args.key?(:value)
2163
+ end
2164
+ end
2165
+
1938
2166
  #
1939
2167
  class QueryRequest
1940
2168
  include Google::Apis::Core::Hashable
@@ -1969,6 +2197,12 @@ module Google
1969
2197
  # @return [Fixnum]
1970
2198
  attr_accessor :max_results
1971
2199
 
2200
+ # [Experimental] Standard SQL only. Whether to use positional (?) or named (@
2201
+ # myparam) query parameters in this query.
2202
+ # Corresponds to the JSON property `parameterMode`
2203
+ # @return [String]
2204
+ attr_accessor :parameter_mode
2205
+
1972
2206
  # [Deprecated] This property is deprecated.
1973
2207
  # Corresponds to the JSON property `preserveNulls`
1974
2208
  # @return [Boolean]
@@ -1982,6 +2216,11 @@ module Google
1982
2216
  # @return [String]
1983
2217
  attr_accessor :query
1984
2218
 
2219
+ # [Experimental] Query parameters for Standard SQL queries.
2220
+ # Corresponds to the JSON property `queryParameters`
2221
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
2222
+ attr_accessor :query_parameters
2223
+
1985
2224
  # [Optional] How long to wait for the query to complete, in milliseconds, before
1986
2225
  # the request times out and returns. Note that this is only a timeout for the
1987
2226
  # request, not the query. If the query takes longer to run than the timeout
@@ -1992,12 +2231,11 @@ module Google
1992
2231
  # @return [Fixnum]
1993
2232
  attr_accessor :timeout_ms
1994
2233
 
1995
- # [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
1996
- # query. The default value is true. If set to false, the query will use BigQuery'
1997
- # s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
1998
- # useLegacySql is set to false, the values of allowLargeResults and
1999
- # flattenResults are ignored; query will be run as if allowLargeResults is true
2000
- # and flattenResults is false.
2234
+ # Specifies whether to use BigQuery's legacy SQL dialect for this query. The
2235
+ # default value is true. If set to false, the query will use BigQuery's standard
2236
+ # SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
2237
+ # to false, the values of allowLargeResults and flattenResults are ignored;
2238
+ # query will be run as if allowLargeResults is true and flattenResults is false.
2001
2239
  # Corresponds to the JSON property `useLegacySql`
2002
2240
  # @return [Boolean]
2003
2241
  attr_accessor :use_legacy_sql
@@ -2021,8 +2259,10 @@ module Google
2021
2259
  @dry_run = args[:dry_run] if args.key?(:dry_run)
2022
2260
  @kind = args[:kind] if args.key?(:kind)
2023
2261
  @max_results = args[:max_results] if args.key?(:max_results)
2262
+ @parameter_mode = args[:parameter_mode] if args.key?(:parameter_mode)
2024
2263
  @preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls)
2025
2264
  @query = args[:query] if args.key?(:query)
2265
+ @query_parameters = args[:query_parameters] if args.key?(:query_parameters)
2026
2266
  @timeout_ms = args[:timeout_ms] if args.key?(:timeout_ms)
2027
2267
  @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
2028
2268
  @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
@@ -2067,6 +2307,12 @@ module Google
2067
2307
  # @return [String]
2068
2308
  attr_accessor :kind
2069
2309
 
2310
+ # [Output-only, Experimental] The number of rows affected by a DML statement.
2311
+ # Present only for DML statements INSERT, UPDATE or DELETE.
2312
+ # Corresponds to the JSON property `numDmlAffectedRows`
2313
+ # @return [String]
2314
+ attr_accessor :num_dml_affected_rows
2315
+
2070
2316
  # A token used for paging results.
2071
2317
  # Corresponds to the JSON property `pageToken`
2072
2318
  # @return [String]
@@ -2107,6 +2353,7 @@ module Google
2107
2353
  @job_complete = args[:job_complete] if args.key?(:job_complete)
2108
2354
  @job_reference = args[:job_reference] if args.key?(:job_reference)
2109
2355
  @kind = args[:kind] if args.key?(:kind)
2356
+ @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
2110
2357
  @page_token = args[:page_token] if args.key?(:page_token)
2111
2358
  @rows = args[:rows] if args.key?(:rows)
2112
2359
  @schema = args[:schema] if args.key?(:schema)
@@ -2520,8 +2767,8 @@ module Google
2520
2767
  attr_accessor :name
2521
2768
 
2522
2769
  # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
2523
- # FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field
2524
- # contains a nested schema).
2770
+ # FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, or RECORD (where RECORD
2771
+ # indicates that the field contains a nested schema).
2525
2772
  # Corresponds to the JSON property `type`
2526
2773
  # @return [String]
2527
2774
  attr_accessor :type
@@ -2760,6 +3007,15 @@ module Google
2760
3007
  # @return [String]
2761
3008
  attr_accessor :query
2762
3009
 
3010
+ # Specifies whether to use BigQuery's legacy SQL for this view. The default
3011
+ # value is true. If set to false, the view will use BigQuery's standard SQL:
3012
+ # https://cloud.google.com/bigquery/sql-reference/ Queries and views that
3013
+ # reference this view must use the same flag value.
3014
+ # Corresponds to the JSON property `useLegacySql`
3015
+ # @return [Boolean]
3016
+ attr_accessor :use_legacy_sql
3017
+ alias_method :use_legacy_sql?, :use_legacy_sql
3018
+
2763
3019
  # [Experimental] Describes user-defined function resources used in the query.
2764
3020
  # Corresponds to the JSON property `userDefinedFunctionResources`
2765
3021
  # @return [Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>]
@@ -2772,6 +3028,7 @@ module Google
2772
3028
  # Update properties of this object
2773
3029
  def update!(**args)
2774
3030
  @query = args[:query] if args.key?(:query)
3031
+ @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
2775
3032
  @user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
2776
3033
  end
2777
3034
  end