google-api-client 0.30.2 → 0.30.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +90 -0
  3. data/README.md +17 -1
  4. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  5. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +108 -0
  6. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +48 -0
  7. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +32 -6
  9. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +16 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +32 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +16 -1
  13. data/generated/google/apis/analytics_v3.rb +1 -1
  14. data/generated/google/apis/analytics_v3/classes.rb +1 -1
  15. data/generated/google/apis/analytics_v3/service.rb +1 -1
  16. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  17. data/generated/google/apis/androidmanagement_v1/classes.rb +8 -64
  18. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  19. data/generated/google/apis/androidpublisher_v1_1/classes.rb +1 -0
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +6 -4
  22. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v3/classes.rb +6 -4
  24. data/generated/google/apis/bigquery_v2.rb +1 -1
  25. data/generated/google/apis/bigquery_v2/classes.rb +243 -5
  26. data/generated/google/apis/bigquery_v2/representations.rb +77 -0
  27. data/generated/google/apis/bigquery_v2/service.rb +206 -0
  28. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  29. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +18 -76
  30. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +1 -0
  31. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -4
  32. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  33. data/generated/google/apis/bigtableadmin_v1/classes.rb +0 -72
  34. data/generated/google/apis/bigtableadmin_v1/representations.rb +0 -32
  35. data/generated/google/apis/bigtableadmin_v1/service.rb +0 -69
  36. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  37. data/generated/google/apis/bigtableadmin_v2/classes.rb +72 -0
  38. data/generated/google/apis/bigtableadmin_v2/representations.rb +32 -0
  39. data/generated/google/apis/bigtableadmin_v2/service.rb +69 -0
  40. data/generated/google/apis/cloudasset_v1.rb +1 -1
  41. data/generated/google/apis/cloudasset_v1/classes.rb +9 -75
  42. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  43. data/generated/google/apis/cloudasset_v1beta1/classes.rb +9 -75
  44. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +8 -74
  46. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  47. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +8 -74
  48. data/generated/google/apis/cloudiot_v1.rb +1 -1
  49. data/generated/google/apis/cloudiot_v1/classes.rb +8 -74
  50. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +4 -8
  52. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  53. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -5
  54. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -9
  56. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  57. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -9
  58. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  59. data/generated/google/apis/cloudscheduler_v1/classes.rb +20 -84
  60. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  61. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +20 -84
  62. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  63. data/generated/google/apis/cloudsearch_v1/classes.rb +8 -74
  64. data/generated/google/apis/cloudshell_v1.rb +1 -1
  65. data/generated/google/apis/cloudshell_v1/classes.rb +8 -74
  66. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  67. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -74
  68. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  69. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +8 -0
  70. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  71. data/generated/google/apis/cloudtrace_v2/classes.rb +8 -74
  72. data/generated/google/apis/commentanalyzer_v1alpha1.rb +2 -2
  73. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +1 -1
  74. data/generated/google/apis/composer_v1.rb +1 -1
  75. data/generated/google/apis/composer_v1/classes.rb +8 -74
  76. data/generated/google/apis/composer_v1beta1.rb +1 -1
  77. data/generated/google/apis/composer_v1beta1/classes.rb +8 -74
  78. data/generated/google/apis/compute_alpha.rb +1 -1
  79. data/generated/google/apis/compute_alpha/classes.rb +1991 -700
  80. data/generated/google/apis/compute_alpha/representations.rb +604 -154
  81. data/generated/google/apis/compute_alpha/service.rb +693 -89
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +375 -230
  84. data/generated/google/apis/compute_beta/representations.rb +2 -0
  85. data/generated/google/apis/compute_beta/service.rb +92 -6
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +1827 -239
  88. data/generated/google/apis/compute_v1/representations.rb +669 -2
  89. data/generated/google/apis/compute_v1/service.rb +1150 -6
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +104 -0
  92. data/generated/google/apis/container_v1/representations.rb +48 -0
  93. data/generated/google/apis/container_v1beta1.rb +1 -1
  94. data/generated/google/apis/container_v1beta1/classes.rb +67 -2
  95. data/generated/google/apis/container_v1beta1/representations.rb +31 -0
  96. data/generated/google/apis/content_v2.rb +1 -1
  97. data/generated/google/apis/content_v2/classes.rb +4 -0
  98. data/generated/google/apis/content_v2_1.rb +1 -1
  99. data/generated/google/apis/content_v2_1/classes.rb +41 -0
  100. data/generated/google/apis/content_v2_1/representations.rb +19 -0
  101. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  102. data/generated/google/apis/dataflow_v1b3/classes.rb +46 -74
  103. data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
  104. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  105. data/generated/google/apis/datafusion_v1beta1/classes.rb +8 -74
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +147 -64
  108. data/generated/google/apis/dataproc_v1/representations.rb +42 -0
  109. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  110. data/generated/google/apis/dataproc_v1beta2/classes.rb +8 -64
  111. data/generated/google/apis/dataproc_v1beta2/service.rb +4 -2
  112. data/generated/google/apis/dialogflow_v2.rb +2 -2
  113. data/generated/google/apis/dialogflow_v2/classes.rb +32 -32
  114. data/generated/google/apis/dialogflow_v2/representations.rb +2 -0
  115. data/generated/google/apis/dialogflow_v2/service.rb +77 -17
  116. data/generated/google/apis/dialogflow_v2beta1.rb +2 -2
  117. data/generated/google/apis/dialogflow_v2beta1/classes.rb +32 -32
  118. data/generated/google/apis/dialogflow_v2beta1/representations.rb +2 -0
  119. data/generated/google/apis/dialogflow_v2beta1/service.rb +79 -19
  120. data/generated/google/apis/dlp_v2.rb +1 -1
  121. data/generated/google/apis/dlp_v2/classes.rb +4 -3
  122. data/generated/google/apis/dns_v1beta2.rb +1 -1
  123. data/generated/google/apis/dns_v1beta2/service.rb +1 -1
  124. data/generated/google/apis/docs_v1.rb +1 -1
  125. data/generated/google/apis/docs_v1/classes.rb +0 -10
  126. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  127. data/generated/google/apis/file_v1.rb +1 -1
  128. data/generated/google/apis/file_v1/classes.rb +17 -74
  129. data/generated/google/apis/file_v1/representations.rb +1 -0
  130. data/generated/google/apis/file_v1beta1.rb +1 -1
  131. data/generated/google/apis/file_v1beta1/classes.rb +17 -74
  132. data/generated/google/apis/file_v1beta1/representations.rb +1 -0
  133. data/generated/google/apis/firebase_v1beta1.rb +44 -0
  134. data/generated/google/apis/firebase_v1beta1/classes.rb +1063 -0
  135. data/generated/google/apis/firebase_v1beta1/representations.rb +432 -0
  136. data/generated/google/apis/firebase_v1beta1/service.rb +1105 -0
  137. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  138. data/generated/google/apis/healthcare_v1alpha2/service.rb +43 -61
  139. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  140. data/generated/google/apis/healthcare_v1beta1/service.rb +43 -61
  141. data/generated/google/apis/iam_v1.rb +1 -1
  142. data/generated/google/apis/iam_v1/classes.rb +6 -0
  143. data/generated/google/apis/iam_v1/representations.rb +1 -0
  144. data/generated/google/apis/logging_v2.rb +1 -1
  145. data/generated/google/apis/ml_v1.rb +1 -1
  146. data/generated/google/apis/ml_v1/classes.rb +18 -0
  147. data/generated/google/apis/ml_v1/representations.rb +3 -0
  148. data/generated/google/apis/monitoring_v3.rb +1 -1
  149. data/generated/google/apis/monitoring_v3/classes.rb +1 -1
  150. data/generated/google/apis/people_v1.rb +1 -1
  151. data/generated/google/apis/people_v1/classes.rb +12 -111
  152. data/generated/google/apis/pubsub_v1.rb +1 -1
  153. data/generated/google/apis/pubsub_v1/classes.rb +43 -0
  154. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  155. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  156. data/generated/google/apis/remotebuildexecution_v1/classes.rb +89 -26
  157. data/generated/google/apis/remotebuildexecution_v1/representations.rb +3 -0
  158. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  159. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +89 -26
  160. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +3 -0
  161. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +15 -1
  162. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  163. data/generated/google/apis/remotebuildexecution_v2/classes.rb +103 -30
  164. data/generated/google/apis/remotebuildexecution_v2/representations.rb +3 -0
  165. data/generated/google/apis/remotebuildexecution_v2/service.rb +29 -2
  166. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  167. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -1
  168. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  169. data/generated/google/apis/servicecontrol_v1/classes.rb +64 -148
  170. data/generated/google/apis/servicecontrol_v1/representations.rb +17 -0
  171. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  172. data/generated/google/apis/servicemanagement_v1/classes.rb +8 -74
  173. data/generated/google/apis/servicemanagement_v1/service.rb +9 -1
  174. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  175. data/generated/google/apis/servicenetworking_v1/classes.rb +0 -1
  176. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  177. data/generated/google/apis/servicenetworking_v1beta/classes.rb +0 -1
  178. data/generated/google/apis/serviceusage_v1.rb +1 -1
  179. data/generated/google/apis/serviceusage_v1/classes.rb +0 -1
  180. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  181. data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -1
  182. data/generated/google/apis/spanner_v1.rb +1 -1
  183. data/generated/google/apis/spanner_v1/classes.rb +12 -111
  184. data/generated/google/apis/speech_v1.rb +1 -1
  185. data/generated/google/apis/speech_v1/classes.rb +13 -74
  186. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  187. data/generated/google/apis/speech_v1p1beta1/classes.rb +13 -74
  188. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  189. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -3
  190. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  191. data/generated/google/apis/tagmanager_v1.rb +4 -3
  192. data/generated/google/apis/tagmanager_v1/classes.rb +237 -70
  193. data/generated/google/apis/tagmanager_v1/service.rb +223 -374
  194. data/generated/google/apis/tagmanager_v2.rb +4 -3
  195. data/generated/google/apis/tagmanager_v2/classes.rb +221 -208
  196. data/generated/google/apis/tagmanager_v2/representations.rb +1 -16
  197. data/generated/google/apis/tagmanager_v2/service.rb +608 -757
  198. data/generated/google/apis/texttospeech_v1.rb +1 -1
  199. data/generated/google/apis/texttospeech_v1/classes.rb +28 -27
  200. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  201. data/generated/google/apis/texttospeech_v1beta1/classes.rb +28 -27
  202. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  203. data/generated/google/apis/toolresults_v1beta3/classes.rb +35 -0
  204. data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
  205. data/generated/google/apis/tpu_v1.rb +1 -1
  206. data/generated/google/apis/tpu_v1/classes.rb +17 -88
  207. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  208. data/generated/google/apis/tpu_v1alpha1/classes.rb +17 -88
  209. data/generated/google/apis/vault_v1.rb +1 -1
  210. data/generated/google/apis/vault_v1/classes.rb +49 -0
  211. data/generated/google/apis/vault_v1/representations.rb +18 -0
  212. data/generated/google/apis/videointelligence_v1.rb +1 -1
  213. data/generated/google/apis/videointelligence_v1/classes.rb +324 -332
  214. data/generated/google/apis/videointelligence_v1/representations.rb +102 -0
  215. data/generated/google/apis/videointelligence_v1/service.rb +217 -9
  216. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  217. data/generated/google/apis/videointelligence_v1beta2/classes.rb +279 -297
  218. data/generated/google/apis/videointelligence_v1beta2/representations.rb +102 -0
  219. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  220. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +324 -332
  221. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +102 -0
  222. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  223. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +324 -332
  224. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +102 -0
  225. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  226. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +324 -332
  227. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +102 -0
  228. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  229. data/lib/google/apis/version.rb +1 -1
  230. metadata +6 -2
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class Argument
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class BigQueryModelTraining
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -208,6 +214,12 @@ module Google
208
214
  include Google::Apis::Core::JsonObjectSupport
209
215
  end
210
216
 
217
+ class HivePartitioningOptions
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
211
223
  class IterationResult
212
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
225
 
@@ -322,6 +334,12 @@ module Google
322
334
  include Google::Apis::Core::JsonObjectSupport
323
335
  end
324
336
 
337
+ class ListRoutinesResponse
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
325
343
  class LocationMetadata
326
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
345
 
@@ -442,6 +460,12 @@ module Google
442
460
  include Google::Apis::Core::JsonObjectSupport
443
461
  end
444
462
 
463
+ class Routine
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
445
469
  class RoutineReference
446
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
447
471
 
@@ -611,6 +635,17 @@ module Google
611
635
  end
612
636
  end
613
637
 
638
+ class Argument
639
+ # @private
640
+ class Representation < Google::Apis::Core::JsonRepresentation
641
+ property :argument_kind, as: 'argumentKind'
642
+ property :data_type, as: 'dataType', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation
643
+
644
+ property :mode, as: 'mode'
645
+ property :name, as: 'name'
646
+ end
647
+ end
648
+
614
649
  class BigQueryModelTraining
615
650
  # @private
616
651
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -668,6 +703,8 @@ module Google
668
703
  class BinaryConfusionMatrix
669
704
  # @private
670
705
  class Representation < Google::Apis::Core::JsonRepresentation
706
+ property :accuracy, as: 'accuracy'
707
+ property :f1_score, as: 'f1Score'
671
708
  property :false_negatives, :numeric_string => true, as: 'falseNegatives'
672
709
  property :false_positives, :numeric_string => true, as: 'falsePositives'
673
710
  property :positive_class_threshold, as: 'positiveClassThreshold'
@@ -934,6 +971,8 @@ module Google
934
971
  property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation
935
972
 
936
973
  property :hive_partitioning_mode, as: 'hivePartitioningMode'
974
+ property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation
975
+
937
976
  property :ignore_unknown_values, as: 'ignoreUnknownValues'
938
977
  property :max_bad_records, as: 'maxBadRecords'
939
978
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
@@ -981,6 +1020,14 @@ module Google
981
1020
  end
982
1021
  end
983
1022
 
1023
+ class HivePartitioningOptions
1024
+ # @private
1025
+ class Representation < Google::Apis::Core::JsonRepresentation
1026
+ property :mode, as: 'mode'
1027
+ property :source_uri_prefix, as: 'sourceUriPrefix'
1028
+ end
1029
+ end
1030
+
984
1031
  class IterationResult
985
1032
  # @private
986
1033
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1072,6 +1119,8 @@ module Google
1072
1119
  property :encoding, as: 'encoding'
1073
1120
  property :field_delimiter, as: 'fieldDelimiter'
1074
1121
  property :hive_partitioning_mode, as: 'hivePartitioningMode'
1122
+ property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation
1123
+
1075
1124
  property :ignore_unknown_values, as: 'ignoreUnknownValues'
1076
1125
  property :max_bad_records, as: 'maxBadRecords'
1077
1126
  property :null_marker, as: 'nullMarker'
@@ -1302,6 +1351,15 @@ module Google
1302
1351
  end
1303
1352
  end
1304
1353
 
1354
+ class ListRoutinesResponse
1355
+ # @private
1356
+ class Representation < Google::Apis::Core::JsonRepresentation
1357
+ property :next_page_token, as: 'nextPageToken'
1358
+ collection :routines, as: 'routines', class: Google::Apis::BigqueryV2::Routine, decorator: Google::Apis::BigqueryV2::Routine::Representation
1359
+
1360
+ end
1361
+ end
1362
+
1305
1363
  class LocationMetadata
1306
1364
  # @private
1307
1365
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1533,6 +1591,25 @@ module Google
1533
1591
  end
1534
1592
  end
1535
1593
 
1594
+ class Routine
1595
+ # @private
1596
+ class Representation < Google::Apis::Core::JsonRepresentation
1597
+ collection :arguments, as: 'arguments', class: Google::Apis::BigqueryV2::Argument, decorator: Google::Apis::BigqueryV2::Argument::Representation
1598
+
1599
+ property :creation_time, :numeric_string => true, as: 'creationTime'
1600
+ property :definition_body, as: 'definitionBody'
1601
+ property :etag, as: 'etag'
1602
+ collection :imported_libraries, as: 'importedLibraries'
1603
+ property :language, as: 'language'
1604
+ property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
1605
+ property :return_type, as: 'returnType', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation
1606
+
1607
+ property :routine_reference, as: 'routineReference', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation
1608
+
1609
+ property :routine_type, as: 'routineType'
1610
+ end
1611
+ end
1612
+
1536
1613
  class RoutineReference
1537
1614
  # @private
1538
1615
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -809,6 +809,212 @@ module Google
809
809
  execute_or_queue_command(command, &block)
810
810
  end
811
811
 
812
+ # Deletes the routine specified by routineId from the dataset.
813
+ # @param [String] project_id
814
+ # Project ID of the routine to delete
815
+ # @param [String] dataset_id
816
+ # Dataset ID of the routine to delete
817
+ # @param [String] routine_id
818
+ # Routine ID of the routine to delete
819
+ # @param [String] fields
820
+ # Selector specifying which fields to include in a partial response.
821
+ # @param [String] quota_user
822
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
823
+ # characters.
824
+ # @param [String] user_ip
825
+ # Deprecated. Please use quotaUser instead.
826
+ # @param [Google::Apis::RequestOptions] options
827
+ # Request-specific options
828
+ #
829
+ # @yield [result, err] Result & error if block supplied
830
+ # @yieldparam result [NilClass] No result returned for this method
831
+ # @yieldparam err [StandardError] error object if request failed
832
+ #
833
+ # @return [void]
834
+ #
835
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
836
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
837
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
838
+ def delete_routine(project_id, dataset_id, routine_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
839
+ command = make_simple_command(:delete, 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}', options)
840
+ command.params['projectId'] = project_id unless project_id.nil?
841
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
842
+ command.params['routineId'] = routine_id unless routine_id.nil?
843
+ command.query['fields'] = fields unless fields.nil?
844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
845
+ command.query['userIp'] = user_ip unless user_ip.nil?
846
+ execute_or_queue_command(command, &block)
847
+ end
848
+
849
+ # Gets the specified routine resource by routine ID.
850
+ # @param [String] project_id
851
+ # Project ID of the requested routine
852
+ # @param [String] dataset_id
853
+ # Dataset ID of the requested routine
854
+ # @param [String] routine_id
855
+ # Routine ID of the requested routine
856
+ # @param [String] field_mask
857
+ # If set, only the Routine fields in the field mask are returned in the
858
+ # response. If unset, all Routine fields are returned.
859
+ # @param [String] fields
860
+ # Selector specifying which fields to include in a partial response.
861
+ # @param [String] quota_user
862
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
863
+ # characters.
864
+ # @param [String] user_ip
865
+ # Deprecated. Please use quotaUser instead.
866
+ # @param [Google::Apis::RequestOptions] options
867
+ # Request-specific options
868
+ #
869
+ # @yield [result, err] Result & error if block supplied
870
+ # @yieldparam result [Google::Apis::BigqueryV2::Routine] parsed result object
871
+ # @yieldparam err [StandardError] error object if request failed
872
+ #
873
+ # @return [Google::Apis::BigqueryV2::Routine]
874
+ #
875
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
876
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
877
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
878
+ def get_routine(project_id, dataset_id, routine_id, field_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
879
+ command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}', options)
880
+ command.response_representation = Google::Apis::BigqueryV2::Routine::Representation
881
+ command.response_class = Google::Apis::BigqueryV2::Routine
882
+ command.params['projectId'] = project_id unless project_id.nil?
883
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
884
+ command.params['routineId'] = routine_id unless routine_id.nil?
885
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
886
+ command.query['fields'] = fields unless fields.nil?
887
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
888
+ command.query['userIp'] = user_ip unless user_ip.nil?
889
+ execute_or_queue_command(command, &block)
890
+ end
891
+
892
+ # Creates a new routine in the dataset.
893
+ # @param [String] project_id
894
+ # Project ID of the new routine
895
+ # @param [String] dataset_id
896
+ # Dataset ID of the new routine
897
+ # @param [Google::Apis::BigqueryV2::Routine] routine_object
898
+ # @param [String] fields
899
+ # Selector specifying which fields to include in a partial response.
900
+ # @param [String] quota_user
901
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
902
+ # characters.
903
+ # @param [String] user_ip
904
+ # Deprecated. Please use quotaUser instead.
905
+ # @param [Google::Apis::RequestOptions] options
906
+ # Request-specific options
907
+ #
908
+ # @yield [result, err] Result & error if block supplied
909
+ # @yieldparam result [Google::Apis::BigqueryV2::Routine] parsed result object
910
+ # @yieldparam err [StandardError] error object if request failed
911
+ #
912
+ # @return [Google::Apis::BigqueryV2::Routine]
913
+ #
914
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
915
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
916
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
917
+ def insert_routine(project_id, dataset_id, routine_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
918
+ command = make_simple_command(:post, 'projects/{+projectId}/datasets/{+datasetId}/routines', options)
919
+ command.request_representation = Google::Apis::BigqueryV2::Routine::Representation
920
+ command.request_object = routine_object
921
+ command.response_representation = Google::Apis::BigqueryV2::Routine::Representation
922
+ command.response_class = Google::Apis::BigqueryV2::Routine
923
+ command.params['projectId'] = project_id unless project_id.nil?
924
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
925
+ command.query['fields'] = fields unless fields.nil?
926
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
927
+ command.query['userIp'] = user_ip unless user_ip.nil?
928
+ execute_or_queue_command(command, &block)
929
+ end
930
+
931
+ # Lists all routines in the specified dataset. Requires the READER dataset
932
+ # role.
933
+ # @param [String] project_id
934
+ # Project ID of the routines to list
935
+ # @param [String] dataset_id
936
+ # Dataset ID of the routines to list
937
+ # @param [Fixnum] max_results
938
+ # The maximum number of results per page.
939
+ # @param [String] page_token
940
+ # Page token, returned by a previous call, to request the next page of
941
+ # results
942
+ # @param [String] fields
943
+ # Selector specifying which fields to include in a partial response.
944
+ # @param [String] quota_user
945
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
946
+ # characters.
947
+ # @param [String] user_ip
948
+ # Deprecated. Please use quotaUser instead.
949
+ # @param [Google::Apis::RequestOptions] options
950
+ # Request-specific options
951
+ #
952
+ # @yield [result, err] Result & error if block supplied
953
+ # @yieldparam result [Google::Apis::BigqueryV2::ListRoutinesResponse] parsed result object
954
+ # @yieldparam err [StandardError] error object if request failed
955
+ #
956
+ # @return [Google::Apis::BigqueryV2::ListRoutinesResponse]
957
+ #
958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
961
+ def list_routines(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
962
+ command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/routines', options)
963
+ command.response_representation = Google::Apis::BigqueryV2::ListRoutinesResponse::Representation
964
+ command.response_class = Google::Apis::BigqueryV2::ListRoutinesResponse
965
+ command.params['projectId'] = project_id unless project_id.nil?
966
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
967
+ command.query['maxResults'] = max_results unless max_results.nil?
968
+ command.query['pageToken'] = page_token unless page_token.nil?
969
+ command.query['fields'] = fields unless fields.nil?
970
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
971
+ command.query['userIp'] = user_ip unless user_ip.nil?
972
+ execute_or_queue_command(command, &block)
973
+ end
974
+
975
+ # Updates information in an existing routine. The update method replaces the
976
+ # entire Routine resource.
977
+ # @param [String] project_id
978
+ # Project ID of the routine to update
979
+ # @param [String] dataset_id
980
+ # Dataset ID of the routine to update
981
+ # @param [String] routine_id
982
+ # Routine ID of the routine to update
983
+ # @param [Google::Apis::BigqueryV2::Routine] routine_object
984
+ # @param [String] fields
985
+ # Selector specifying which fields to include in a partial response.
986
+ # @param [String] quota_user
987
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
988
+ # characters.
989
+ # @param [String] user_ip
990
+ # Deprecated. Please use quotaUser instead.
991
+ # @param [Google::Apis::RequestOptions] options
992
+ # Request-specific options
993
+ #
994
+ # @yield [result, err] Result & error if block supplied
995
+ # @yieldparam result [Google::Apis::BigqueryV2::Routine] parsed result object
996
+ # @yieldparam err [StandardError] error object if request failed
997
+ #
998
+ # @return [Google::Apis::BigqueryV2::Routine]
999
+ #
1000
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1001
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1002
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1003
+ def update_routine(project_id, dataset_id, routine_id, routine_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1004
+ command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}', options)
1005
+ command.request_representation = Google::Apis::BigqueryV2::Routine::Representation
1006
+ command.request_object = routine_object
1007
+ command.response_representation = Google::Apis::BigqueryV2::Routine::Representation
1008
+ command.response_class = Google::Apis::BigqueryV2::Routine
1009
+ command.params['projectId'] = project_id unless project_id.nil?
1010
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1011
+ command.params['routineId'] = routine_id unless routine_id.nil?
1012
+ command.query['fields'] = fields unless fields.nil?
1013
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1014
+ command.query['userIp'] = user_ip unless user_ip.nil?
1015
+ execute_or_queue_command(command, &block)
1016
+ end
1017
+
812
1018
  # Streams data into BigQuery one record at a time without needing to run a load
813
1019
  # job. Requires the WRITER dataset role.
814
1020
  # @param [String] project_id
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/bigquery/
27
27
  module BigquerydatatransferV1
28
28
  VERSION = 'V1'
29
- REVISION = '20190323'
29
+ REVISION = '20190615'
30
30
 
31
31
  # View and manage your data in Google BigQuery
32
32
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -213,6 +213,13 @@ module Google
213
213
  # @return [Array<String>]
214
214
  attr_accessor :allowed_values
215
215
 
216
+ # If true, it should not be used in new transfers, and it should not be
217
+ # visible to users.
218
+ # Corresponds to the JSON property `deprecated`
219
+ # @return [Boolean]
220
+ attr_accessor :deprecated
221
+ alias_method :deprecated?, :deprecated
222
+
216
223
  # Parameter description.
217
224
  # Corresponds to the JSON property `description`
218
225
  # @return [String]
@@ -295,6 +302,7 @@ module Google
295
302
  # Update properties of this object
296
303
  def update!(**args)
297
304
  @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
305
+ @deprecated = args[:deprecated] if args.key?(:deprecated)
298
306
  @description = args[:description] if args.key?(:description)
299
307
  @display_name = args[:display_name] if args.key?(:display_name)
300
308
  @fields = args[:fields] if args.key?(:fields)
@@ -651,43 +659,10 @@ module Google
651
659
 
652
660
  # The `Status` type defines a logical error model that is suitable for
653
661
  # different programming environments, including REST APIs and RPC APIs. It is
654
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
655
- # - Simple to use and understand for most users
656
- # - Flexible enough to meet unexpected needs
657
- # # Overview
658
- # The `Status` message contains three pieces of data: error code, error
659
- # message, and error details. The error code should be an enum value of
660
- # google.rpc.Code, but it may accept additional error codes if needed. The
661
- # error message should be a developer-facing English message that helps
662
- # developers *understand* and *resolve* the error. If a localized user-facing
663
- # error message is needed, put the localized message in the error details or
664
- # localize it in the client. The optional error details may contain arbitrary
665
- # information about the error. There is a predefined set of error detail types
666
- # in the package `google.rpc` that can be used for common error conditions.
667
- # # Language mapping
668
- # The `Status` message is the logical representation of the error model, but it
669
- # is not necessarily the actual wire format. When the `Status` message is
670
- # exposed in different client libraries and different wire protocols, it can be
671
- # mapped differently. For example, it will likely be mapped to some exceptions
672
- # in Java, but more likely mapped to some error codes in C.
673
- # # Other uses
674
- # The error model and the `Status` message can be used in a variety of
675
- # environments, either with or without APIs, to provide a
676
- # consistent developer experience across different environments.
677
- # Example uses of this error model include:
678
- # - Partial errors. If a service needs to return partial errors to the client,
679
- # it may embed the `Status` in the normal response to indicate the partial
680
- # errors.
681
- # - Workflow errors. A typical workflow has multiple steps. Each step may
682
- # have a `Status` message for error reporting.
683
- # - Batch operations. If a client uses batch request and batch response, the
684
- # `Status` message should be used directly inside batch response, one for
685
- # each error sub-response.
686
- # - Asynchronous operations. If an API call embeds asynchronous operation
687
- # results in its response, the status of those operations should be
688
- # represented directly using the `Status` message.
689
- # - Logging. If some API errors are stored in logs, the message `Status` could
690
- # be used directly after any stripping needed for security/privacy reasons.
662
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
663
+ # three pieces of data: error code, error message, and error details.
664
+ # You can find out more about this error model and how to work with it in the
665
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
691
666
  class Status
692
667
  include Google::Apis::Core::Hashable
693
668
 
@@ -933,43 +908,10 @@ module Google
933
908
 
934
909
  # The `Status` type defines a logical error model that is suitable for
935
910
  # different programming environments, including REST APIs and RPC APIs. It is
936
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
937
- # - Simple to use and understand for most users
938
- # - Flexible enough to meet unexpected needs
939
- # # Overview
940
- # The `Status` message contains three pieces of data: error code, error
941
- # message, and error details. The error code should be an enum value of
942
- # google.rpc.Code, but it may accept additional error codes if needed. The
943
- # error message should be a developer-facing English message that helps
944
- # developers *understand* and *resolve* the error. If a localized user-facing
945
- # error message is needed, put the localized message in the error details or
946
- # localize it in the client. The optional error details may contain arbitrary
947
- # information about the error. There is a predefined set of error detail types
948
- # in the package `google.rpc` that can be used for common error conditions.
949
- # # Language mapping
950
- # The `Status` message is the logical representation of the error model, but it
951
- # is not necessarily the actual wire format. When the `Status` message is
952
- # exposed in different client libraries and different wire protocols, it can be
953
- # mapped differently. For example, it will likely be mapped to some exceptions
954
- # in Java, but more likely mapped to some error codes in C.
955
- # # Other uses
956
- # The error model and the `Status` message can be used in a variety of
957
- # environments, either with or without APIs, to provide a
958
- # consistent developer experience across different environments.
959
- # Example uses of this error model include:
960
- # - Partial errors. If a service needs to return partial errors to the client,
961
- # it may embed the `Status` in the normal response to indicate the partial
962
- # errors.
963
- # - Workflow errors. A typical workflow has multiple steps. Each step may
964
- # have a `Status` message for error reporting.
965
- # - Batch operations. If a client uses batch request and batch response, the
966
- # `Status` message should be used directly inside batch response, one for
967
- # each error sub-response.
968
- # - Asynchronous operations. If an API call embeds asynchronous operation
969
- # results in its response, the status of those operations should be
970
- # represented directly using the `Status` message.
971
- # - Logging. If some API errors are stored in logs, the message `Status` could
972
- # be used directly after any stripping needed for security/privacy reasons.
911
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
912
+ # three pieces of data: error code, error message, and error details.
913
+ # You can find out more about this error model and how to work with it in the
914
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
973
915
  # Corresponds to the JSON property `errorStatus`
974
916
  # @return [Google::Apis::BigquerydatatransferV1::Status]
975
917
  attr_accessor :error_status
@@ -988,8 +930,8 @@ module Google
988
930
  # @return [Hash<String,Object>]
989
931
  attr_accessor :params
990
932
 
991
- # For batch transfer runs, specifies the date and time that
992
- # data should be ingested.
933
+ # For batch transfer runs, specifies the date and time of the data should be
934
+ # ingested.
993
935
  # Corresponds to the JSON property `runTime`
994
936
  # @return [String]
995
937
  attr_accessor :run_time