google-api-client 0.25.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
  5. data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
  6. data/.kokoro/build.bat +8 -0
  7. data/.kokoro/build.sh +36 -0
  8. data/.kokoro/common.cfg +22 -0
  9. data/.kokoro/continuous/common.cfg +20 -0
  10. data/.kokoro/continuous/linux.cfg +15 -0
  11. data/.kokoro/continuous/osx.cfg +3 -0
  12. data/.kokoro/continuous/windows.cfg +3 -0
  13. data/.kokoro/osx.sh +35 -0
  14. data/.kokoro/presubmit/common.cfg +19 -0
  15. data/.kokoro/presubmit/linux.cfg +14 -0
  16. data/.kokoro/presubmit/osx.cfg +3 -0
  17. data/.kokoro/presubmit/windows.cfg +3 -0
  18. data/.kokoro/trampoline.sh +24 -0
  19. data/.kokoro/windows.sh +32 -0
  20. data/CHANGELOG.md +83 -0
  21. data/Gemfile +2 -2
  22. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  23. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  24. data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
  25. data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
  26. data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
  27. data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
  28. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  29. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
  30. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
  31. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
  36. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  37. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
  40. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  41. data/generated/google/apis/appengine_v1.rb +1 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/bigquery_v2.rb +1 -1
  44. data/generated/google/apis/bigquery_v2/classes.rb +87 -29
  45. data/generated/google/apis/bigquery_v2/representations.rb +21 -0
  46. data/generated/google/apis/bigquery_v2/service.rb +7 -9
  47. data/generated/google/apis/calendar_v3.rb +2 -2
  48. data/generated/google/apis/calendar_v3/classes.rb +14 -6
  49. data/generated/google/apis/classroom_v1.rb +1 -1
  50. data/generated/google/apis/classroom_v1/service.rb +1 -1
  51. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
  53. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  54. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  55. data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
  56. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  57. data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
  58. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  59. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
  60. data/generated/google/apis/cloudiot_v1.rb +1 -1
  61. data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
  62. data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
  63. data/generated/google/apis/cloudiot_v1/service.rb +172 -2
  64. data/generated/google/apis/cloudkms_v1.rb +1 -1
  65. data/generated/google/apis/cloudkms_v1/service.rb +107 -0
  66. data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
  67. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
  68. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
  69. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
  70. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  71. data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
  72. data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
  73. data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
  74. data/generated/google/apis/composer_v1.rb +1 -1
  75. data/generated/google/apis/composer_v1/classes.rb +9 -0
  76. data/generated/google/apis/composer_v1/representations.rb +1 -0
  77. data/generated/google/apis/compute_alpha.rb +1 -1
  78. data/generated/google/apis/compute_alpha/classes.rb +938 -117
  79. data/generated/google/apis/compute_alpha/representations.rb +310 -2
  80. data/generated/google/apis/compute_alpha/service.rb +1203 -245
  81. data/generated/google/apis/compute_beta.rb +1 -1
  82. data/generated/google/apis/compute_beta/classes.rb +1175 -219
  83. data/generated/google/apis/compute_beta/representations.rb +375 -2
  84. data/generated/google/apis/compute_beta/service.rb +907 -139
  85. data/generated/google/apis/compute_v1.rb +1 -1
  86. data/generated/google/apis/compute_v1/classes.rb +1485 -143
  87. data/generated/google/apis/compute_v1/representations.rb +503 -0
  88. data/generated/google/apis/compute_v1/service.rb +1375 -85
  89. data/generated/google/apis/container_v1.rb +3 -3
  90. data/generated/google/apis/container_v1/classes.rb +99 -6
  91. data/generated/google/apis/container_v1/representations.rb +39 -0
  92. data/generated/google/apis/container_v1/service.rb +2 -2
  93. data/generated/google/apis/container_v1beta1.rb +3 -3
  94. data/generated/google/apis/container_v1beta1/classes.rb +162 -9
  95. data/generated/google/apis/container_v1beta1/representations.rb +80 -0
  96. data/generated/google/apis/container_v1beta1/service.rb +3 -3
  97. data/generated/google/apis/content_v2.rb +1 -1
  98. data/generated/google/apis/content_v2/classes.rb +40 -32
  99. data/generated/google/apis/content_v2/representations.rb +0 -1
  100. data/generated/google/apis/content_v2/service.rb +3 -3
  101. data/generated/google/apis/content_v2_1.rb +35 -0
  102. data/generated/google/apis/content_v2_1/classes.rb +9104 -0
  103. data/generated/google/apis/content_v2_1/representations.rb +3967 -0
  104. data/generated/google/apis/content_v2_1/service.rb +3463 -0
  105. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  106. data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
  107. data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
  108. data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
  109. data/generated/google/apis/dataproc_v1.rb +1 -1
  110. data/generated/google/apis/dataproc_v1/classes.rb +15 -1
  111. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  112. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  113. data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
  114. data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
  115. data/generated/google/apis/dialogflow_v2.rb +1 -1
  116. data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
  117. data/generated/google/apis/dialogflow_v2/service.rb +2 -0
  118. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  119. data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
  120. data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
  121. data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
  122. data/generated/google/apis/dlp_v2.rb +1 -1
  123. data/generated/google/apis/dlp_v2/classes.rb +4 -4
  124. data/generated/google/apis/dns_v1beta2.rb +1 -1
  125. data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
  126. data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
  127. data/generated/google/apis/dns_v1beta2/service.rb +246 -0
  128. data/generated/google/apis/drive_v2.rb +3 -3
  129. data/generated/google/apis/drive_v3.rb +3 -3
  130. data/generated/google/apis/driveactivity_v2.rb +37 -0
  131. data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
  132. data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
  133. data/generated/google/apis/driveactivity_v2/service.rb +89 -0
  134. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  135. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
  136. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
  137. data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
  138. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
  139. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
  140. data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
  141. data/generated/google/apis/firestore_v1.rb +1 -1
  142. data/generated/google/apis/firestore_v1/classes.rb +2225 -520
  143. data/generated/google/apis/firestore_v1/representations.rb +800 -33
  144. data/generated/google/apis/firestore_v1/service.rb +526 -0
  145. data/generated/google/apis/fitness_v1.rb +1 -1
  146. data/generated/google/apis/fitness_v1/classes.rb +1 -2
  147. data/generated/google/apis/fitness_v1/service.rb +7 -3
  148. data/generated/google/apis/games_management_v1management.rb +1 -4
  149. data/generated/google/apis/games_v1.rb +1 -4
  150. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  151. data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
  152. data/generated/google/apis/gmail_v1.rb +2 -2
  153. data/generated/google/apis/iap_v1.rb +34 -0
  154. data/generated/google/apis/iap_v1/classes.rb +308 -0
  155. data/generated/google/apis/iap_v1/representations.rb +126 -0
  156. data/generated/google/apis/iap_v1/service.rb +725 -0
  157. data/generated/google/apis/iap_v1beta1.rb +1 -1
  158. data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
  159. data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
  160. data/generated/google/apis/jobs_v2.rb +1 -1
  161. data/generated/google/apis/jobs_v2/classes.rb +8 -9
  162. data/generated/google/apis/jobs_v3.rb +1 -1
  163. data/generated/google/apis/jobs_v3/classes.rb +6 -6
  164. data/generated/google/apis/jobs_v3/service.rb +8 -8
  165. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  166. data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
  167. data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
  168. data/generated/google/apis/monitoring_v3.rb +1 -1
  169. data/generated/google/apis/monitoring_v3/classes.rb +20 -7
  170. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  171. data/generated/google/apis/monitoring_v3/service.rb +0 -365
  172. data/generated/google/apis/pagespeedonline_v5.rb +32 -0
  173. data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
  174. data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
  175. data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
  176. data/generated/google/apis/people_v1.rb +3 -3
  177. data/generated/google/apis/pubsub_v1.rb +1 -1
  178. data/generated/google/apis/pubsub_v1/classes.rb +63 -12
  179. data/generated/google/apis/pubsub_v1/representations.rb +15 -0
  180. data/generated/google/apis/pubsub_v1/service.rb +26 -18
  181. data/generated/google/apis/redis_v1.rb +2 -3
  182. data/generated/google/apis/redis_v1/service.rb +1 -2
  183. data/generated/google/apis/redis_v1beta1.rb +2 -3
  184. data/generated/google/apis/redis_v1beta1/service.rb +1 -2
  185. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  186. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
  187. data/generated/google/apis/script_v1.rb +24 -6
  188. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  189. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
  190. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
  191. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
  192. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  194. data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
  195. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  196. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  197. data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
  198. data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
  199. data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
  200. data/generated/google/apis/serviceusage_v1.rb +1 -1
  201. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  202. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  203. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  204. data/generated/google/apis/sheets_v4.rb +4 -4
  205. data/generated/google/apis/slides_v1.rb +4 -4
  206. data/generated/google/apis/slides_v1/classes.rb +187 -2
  207. data/generated/google/apis/slides_v1/representations.rb +67 -0
  208. data/generated/google/apis/slides_v1/service.rb +4 -3
  209. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  210. data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
  211. data/generated/google/apis/speech_v1.rb +1 -1
  212. data/generated/google/apis/speech_v1/classes.rb +58 -10
  213. data/generated/google/apis/speech_v1/representations.rb +29 -1
  214. data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
  215. data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
  216. data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
  217. data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
  218. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  219. data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
  220. data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
  221. data/generated/google/apis/storage_v1.rb +1 -1
  222. data/generated/google/apis/storage_v1/classes.rb +54 -0
  223. data/generated/google/apis/storage_v1/representations.rb +31 -0
  224. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  225. data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
  226. data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
  227. data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
  228. data/generated/google/apis/tasks_v1.rb +1 -1
  229. data/generated/google/apis/testing_v1.rb +1 -1
  230. data/generated/google/apis/testing_v1/classes.rb +49 -19
  231. data/generated/google/apis/testing_v1/representations.rb +20 -2
  232. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  233. data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
  234. data/generated/google/apis/vault_v1.rb +1 -1
  235. data/generated/google/apis/vault_v1/classes.rb +78 -7
  236. data/generated/google/apis/vault_v1/representations.rb +34 -1
  237. data/generated/google/apis/vault_v1/service.rb +141 -0
  238. data/generated/google/apis/vision_v1.rb +1 -1
  239. data/generated/google/apis/vision_v1/classes.rb +33 -0
  240. data/generated/google/apis/vision_v1/representations.rb +16 -0
  241. data/generated/google/apis/vision_v1/service.rb +2 -2
  242. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  243. data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
  244. data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
  245. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  246. data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
  247. data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
  248. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  249. data/google-api-client.gemspec +1 -1
  250. data/lib/google/api_client/auth/installed_app.rb +17 -2
  251. data/lib/google/api_client/client_secrets.rb +1 -1
  252. data/lib/google/apis/core/download.rb +2 -2
  253. data/lib/google/apis/errors.rb +9 -0
  254. data/lib/google/apis/generator/annotator.rb +2 -2
  255. data/lib/google/apis/version.rb +1 -1
  256. metadata +46 -17
  257. data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
  258. data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
  259. data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
  260. data/generated/google/apis/dfareporting_v3_0.rb +0 -40
  261. data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
  262. data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
  263. data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
  264. data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
  265. data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -60,6 +60,31 @@ module Google
60
60
  end
61
61
  end
62
62
 
63
+ # An Admin API warning message.
64
+ class ApiWarning
65
+ include Google::Apis::Core::Hashable
66
+
67
+ # Code to uniquely identify the warning type.
68
+ # Corresponds to the JSON property `code`
69
+ # @return [String]
70
+ attr_accessor :code
71
+
72
+ # The warning message.
73
+ # Corresponds to the JSON property `message`
74
+ # @return [String]
75
+ attr_accessor :message
76
+
77
+ def initialize(**args)
78
+ update!(**args)
79
+ end
80
+
81
+ # Update properties of this object
82
+ def update!(**args)
83
+ @code = args[:code] if args.key?(:code)
84
+ @message = args[:message] if args.key?(:message)
85
+ end
86
+ end
87
+
63
88
  # Database instance backup configuration.
64
89
  class BackupConfiguration
65
90
  include Google::Apis::Core::Hashable
@@ -849,6 +874,11 @@ module Google
849
874
  class SqlExportOptions
850
875
  include Google::Apis::Core::Hashable
851
876
 
877
+ # Options for exporting from MySQL.
878
+ # Corresponds to the JSON property `mysqlExportOptions`
879
+ # @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions]
880
+ attr_accessor :mysql_export_options
881
+
852
882
  # Export only schemas.
853
883
  # Corresponds to the JSON property `schemaOnly`
854
884
  # @return [Boolean]
@@ -868,9 +898,32 @@ module Google
868
898
 
869
899
  # Update properties of this object
870
900
  def update!(**args)
901
+ @mysql_export_options = args[:mysql_export_options] if args.key?(:mysql_export_options)
871
902
  @schema_only = args[:schema_only] if args.key?(:schema_only)
872
903
  @tables = args[:tables] if args.key?(:tables)
873
904
  end
905
+
906
+ # Options for exporting from MySQL.
907
+ class MysqlExportOptions
908
+ include Google::Apis::Core::Hashable
909
+
910
+ # Option to include SQL statement required to set up replication. If set to 1,
911
+ # the dump file includes a CHANGE MASTER TO statement with the binary log
912
+ # coordinates. If set to 2, the CHANGE MASTER TO statement is written as a SQL
913
+ # comment, and has no effect. All other values are ignored.
914
+ # Corresponds to the JSON property `masterData`
915
+ # @return [Fixnum]
916
+ attr_accessor :master_data
917
+
918
+ def initialize(**args)
919
+ update!(**args)
920
+ end
921
+
922
+ # Update properties of this object
923
+ def update!(**args)
924
+ @master_data = args[:master_data] if args.key?(:master_data)
925
+ end
926
+ end
874
927
  end
875
928
  end
876
929
 
@@ -1196,6 +1249,11 @@ module Google
1196
1249
  # @return [String]
1197
1250
  attr_accessor :next_page_token
1198
1251
 
1252
+ # List of warnings that ocurred while handling the request.
1253
+ # Corresponds to the JSON property `warnings`
1254
+ # @return [Array<Google::Apis::SqladminV1beta4::ApiWarning>]
1255
+ attr_accessor :warnings
1256
+
1199
1257
  def initialize(**args)
1200
1258
  update!(**args)
1201
1259
  end
@@ -1205,6 +1263,7 @@ module Google
1205
1263
  @items = args[:items] if args.key?(:items)
1206
1264
  @kind = args[:kind] if args.key?(:kind)
1207
1265
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1266
+ @warnings = args[:warnings] if args.key?(:warnings)
1208
1267
  end
1209
1268
  end
1210
1269
 
@@ -1313,7 +1372,9 @@ module Google
1313
1372
  attr_accessor :ipv4_enabled
1314
1373
  alias_method :ipv4_enabled?, :ipv4_enabled
1315
1374
 
1316
- # Reserved for future use.
1375
+ # The resource link for the VPC network from which the Cloud SQL instance is
1376
+ # accessible for private IP. For example, /projects/myProject/global/networks/
1377
+ # default. This setting can be updated, but it cannot be removed after it is set.
1317
1378
  # Corresponds to the JSON property `privateNetwork`
1318
1379
  # @return [String]
1319
1380
  attr_accessor :private_network
@@ -1409,7 +1470,7 @@ module Google
1409
1470
  end
1410
1471
 
1411
1472
  # Maintenance window. This specifies when a v2 Cloud SQL instance should
1412
- # preferably be restarted for system maintenance puruposes.
1473
+ # preferably be restarted for system maintenance purposes.
1413
1474
  class MaintenanceWindow
1414
1475
  include Google::Apis::Core::Hashable
1415
1476
 
@@ -1943,7 +2004,7 @@ module Google
1943
2004
  attr_accessor :location_preference
1944
2005
 
1945
2006
  # Maintenance window. This specifies when a v2 Cloud SQL instance should
1946
- # preferably be restarted for system maintenance puruposes.
2007
+ # preferably be restarted for system maintenance purposes.
1947
2008
  # Corresponds to the JSON property `maintenanceWindow`
1948
2009
  # @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
1949
2010
  attr_accessor :maintenance_window
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class ApiWarning
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class BackupConfiguration
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -117,6 +123,12 @@ module Google
117
123
 
118
124
  class SqlExportOptions
119
125
  class Representation < Google::Apis::Core::JsonRepresentation; end
126
+
127
+ class MysqlExportOptions
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
120
132
 
121
133
  include Google::Apis::Core::JsonObjectSupport
122
134
  end
@@ -375,6 +387,14 @@ module Google
375
387
  end
376
388
  end
377
389
 
390
+ class ApiWarning
391
+ # @private
392
+ class Representation < Google::Apis::Core::JsonRepresentation
393
+ property :code, as: 'code'
394
+ property :message, as: 'message'
395
+ end
396
+ end
397
+
378
398
  class BackupConfiguration
379
399
  # @private
380
400
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -570,9 +590,18 @@ module Google
570
590
  class SqlExportOptions
571
591
  # @private
572
592
  class Representation < Google::Apis::Core::JsonRepresentation
593
+ property :mysql_export_options, as: 'mysqlExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions::Representation
594
+
573
595
  property :schema_only, as: 'schemaOnly'
574
596
  collection :tables, as: 'tables'
575
597
  end
598
+
599
+ class MysqlExportOptions
600
+ # @private
601
+ class Representation < Google::Apis::Core::JsonRepresentation
602
+ property :master_data, as: 'masterData'
603
+ end
604
+ end
576
605
  end
577
606
  end
578
607
 
@@ -675,6 +704,8 @@ module Google
675
704
 
676
705
  property :kind, as: 'kind'
677
706
  property :next_page_token, as: 'nextPageToken'
707
+ collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1beta4::ApiWarning, decorator: Google::Apis::SqladminV1beta4::ApiWarning::Representation
708
+
678
709
  end
679
710
  end
680
711
 
@@ -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 = '20181013'
28
+ REVISION = '20181109'
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'
@@ -73,6 +73,11 @@ module Google
73
73
  # @return [String]
74
74
  attr_accessor :etag
75
75
 
76
+ # The bucket's IAM configuration.
77
+ # Corresponds to the JSON property `iamConfiguration`
78
+ # @return [Google::Apis::StorageV1::Bucket::IamConfiguration]
79
+ attr_accessor :iam_configuration
80
+
76
81
  # The ID of the bucket. For buckets, the id and name properties are the same.
77
82
  # Corresponds to the JSON property `id`
78
83
  # @return [String]
@@ -190,6 +195,7 @@ module Google
190
195
  @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
191
196
  @encryption = args[:encryption] if args.key?(:encryption)
192
197
  @etag = args[:etag] if args.key?(:etag)
198
+ @iam_configuration = args[:iam_configuration] if args.key?(:iam_configuration)
193
199
  @id = args[:id] if args.key?(:id)
194
200
  @kind = args[:kind] if args.key?(:kind)
195
201
  @labels = args[:labels] if args.key?(:labels)
@@ -291,6 +297,54 @@ module Google
291
297
  end
292
298
  end
293
299
 
300
+ # The bucket's IAM configuration.
301
+ class IamConfiguration
302
+ include Google::Apis::Core::Hashable
303
+
304
+ #
305
+ # Corresponds to the JSON property `bucketPolicyOnly`
306
+ # @return [Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly]
307
+ attr_accessor :bucket_policy_only
308
+
309
+ def initialize(**args)
310
+ update!(**args)
311
+ end
312
+
313
+ # Update properties of this object
314
+ def update!(**args)
315
+ @bucket_policy_only = args[:bucket_policy_only] if args.key?(:bucket_policy_only)
316
+ end
317
+
318
+ #
319
+ class BucketPolicyOnly
320
+ include Google::Apis::Core::Hashable
321
+
322
+ # If set, access checks only use bucket-level IAM policies or above.
323
+ # Corresponds to the JSON property `enabled`
324
+ # @return [Boolean]
325
+ attr_accessor :enabled
326
+ alias_method :enabled?, :enabled
327
+
328
+ # The deadline time for changing iamConfiguration.bucketPolicyOnly.enabled from
329
+ # true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled
330
+ # may be changed from true to false until the locked time, after which the field
331
+ # is immutable.
332
+ # Corresponds to the JSON property `lockedTime`
333
+ # @return [DateTime]
334
+ attr_accessor :locked_time
335
+
336
+ def initialize(**args)
337
+ update!(**args)
338
+ end
339
+
340
+ # Update properties of this object
341
+ def update!(**args)
342
+ @enabled = args[:enabled] if args.key?(:enabled)
343
+ @locked_time = args[:locked_time] if args.key?(:locked_time)
344
+ end
345
+ end
346
+ end
347
+
294
348
  # The bucket's lifecycle configuration. See lifecycle management for more
295
349
  # information.
296
350
  class Lifecycle
@@ -43,6 +43,18 @@ module Google
43
43
  include Google::Apis::Core::JsonObjectSupport
44
44
  end
45
45
 
46
+ class IamConfiguration
47
+ class Representation < Google::Apis::Core::JsonRepresentation; end
48
+
49
+ class BucketPolicyOnly
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ include Google::Apis::Core::JsonObjectSupport
56
+ end
57
+
46
58
  class Lifecycle
47
59
  class Representation < Google::Apis::Core::JsonRepresentation; end
48
60
 
@@ -247,6 +259,8 @@ module Google
247
259
  property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
248
260
 
249
261
  property :etag, as: 'etag'
262
+ property :iam_configuration, as: 'iamConfiguration', class: Google::Apis::StorageV1::Bucket::IamConfiguration, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::Representation
263
+
250
264
  property :id, as: 'id'
251
265
  property :kind, as: 'kind'
252
266
  hash :labels, as: 'labels'
@@ -298,6 +312,23 @@ module Google
298
312
  end
299
313
  end
300
314
 
315
+ class IamConfiguration
316
+ # @private
317
+ class Representation < Google::Apis::Core::JsonRepresentation
318
+ property :bucket_policy_only, as: 'bucketPolicyOnly', class: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly::Representation
319
+
320
+ end
321
+
322
+ class BucketPolicyOnly
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :enabled, as: 'enabled'
326
+ property :locked_time, as: 'lockedTime', type: DateTime
327
+
328
+ end
329
+ end
330
+ end
331
+
301
332
  class Lifecycle
302
333
  # @private
303
334
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://developers.google.com/streetview/publish/
28
28
  module StreetviewpublishV1
29
29
  VERSION = 'V1'
30
- REVISION = '20180927'
30
+ REVISION = '20181204'
31
31
 
32
32
  # Publish and manage your 360 photos on Google Street View
33
33
  AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'
@@ -376,6 +376,12 @@ module Google
376
376
  # @return [String]
377
377
  attr_accessor :download_url
378
378
 
379
+ # Output only. Status in Google Maps, whether this photo was published, or
380
+ # rejected for a possibly specified reason.
381
+ # Corresponds to the JSON property `mapsPublishStatus`
382
+ # @return [String]
383
+ attr_accessor :maps_publish_status
384
+
379
385
  # Identifier for a Photo.
380
386
  # Corresponds to the JSON property `photoId`
381
387
  # @return [Google::Apis::StreetviewpublishV1::PhotoId]
@@ -401,6 +407,11 @@ module Google
401
407
  # @return [String]
402
408
  attr_accessor :thumbnail_url
403
409
 
410
+ # Output only. Status of rights transfer on this photo.
411
+ # Corresponds to the JSON property `transferStatus`
412
+ # @return [String]
413
+ attr_accessor :transfer_status
414
+
404
415
  # Upload reference for media files.
405
416
  # Corresponds to the JSON property `uploadReference`
406
417
  # @return [Google::Apis::StreetviewpublishV1::UploadRef]
@@ -420,11 +431,13 @@ module Google
420
431
  @capture_time = args[:capture_time] if args.key?(:capture_time)
421
432
  @connections = args[:connections] if args.key?(:connections)
422
433
  @download_url = args[:download_url] if args.key?(:download_url)
434
+ @maps_publish_status = args[:maps_publish_status] if args.key?(:maps_publish_status)
423
435
  @photo_id = args[:photo_id] if args.key?(:photo_id)
424
436
  @places = args[:places] if args.key?(:places)
425
437
  @pose = args[:pose] if args.key?(:pose)
426
438
  @share_link = args[:share_link] if args.key?(:share_link)
427
439
  @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
440
+ @transfer_status = args[:transfer_status] if args.key?(:transfer_status)
428
441
  @upload_reference = args[:upload_reference] if args.key?(:upload_reference)
429
442
  @view_count = args[:view_count] if args.key?(:view_count)
430
443
  end
@@ -521,6 +534,17 @@ module Google
521
534
  class Place
522
535
  include Google::Apis::Core::Hashable
523
536
 
537
+ # Output-only. The language_code that the name is localized with. This should
538
+ # be the language_code specified in the request, but may be a fallback.
539
+ # Corresponds to the JSON property `languageCode`
540
+ # @return [String]
541
+ attr_accessor :language_code
542
+
543
+ # Output-only. The name of the place, localized to the language_code.
544
+ # Corresponds to the JSON property `name`
545
+ # @return [String]
546
+ attr_accessor :name
547
+
524
548
  # Place identifier, as described in
525
549
  # https://developers.google.com/places/place-id.
526
550
  # Corresponds to the JSON property `placeId`
@@ -533,6 +557,8 @@ module Google
533
557
 
534
558
  # Update properties of this object
535
559
  def update!(**args)
560
+ @language_code = args[:language_code] if args.key?(:language_code)
561
+ @name = args[:name] if args.key?(:name)
536
562
  @place_id = args[:place_id] if args.key?(:place_id)
537
563
  end
538
564
  end
@@ -233,6 +233,7 @@ module Google
233
233
  collection :connections, as: 'connections', class: Google::Apis::StreetviewpublishV1::Connection, decorator: Google::Apis::StreetviewpublishV1::Connection::Representation
234
234
 
235
235
  property :download_url, as: 'downloadUrl'
236
+ property :maps_publish_status, as: 'mapsPublishStatus'
236
237
  property :photo_id, as: 'photoId', class: Google::Apis::StreetviewpublishV1::PhotoId, decorator: Google::Apis::StreetviewpublishV1::PhotoId::Representation
237
238
 
238
239
  collection :places, as: 'places', class: Google::Apis::StreetviewpublishV1::Place, decorator: Google::Apis::StreetviewpublishV1::Place::Representation
@@ -241,6 +242,7 @@ module Google
241
242
 
242
243
  property :share_link, as: 'shareLink'
243
244
  property :thumbnail_url, as: 'thumbnailUrl'
245
+ property :transfer_status, as: 'transferStatus'
244
246
  property :upload_reference, as: 'uploadReference', class: Google::Apis::StreetviewpublishV1::UploadRef, decorator: Google::Apis::StreetviewpublishV1::UploadRef::Representation
245
247
 
246
248
  property :view_count, :numeric_string => true, as: 'viewCount'
@@ -267,6 +269,8 @@ module Google
267
269
  class Place
268
270
  # @private
269
271
  class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :language_code, as: 'languageCode'
273
+ property :name, as: 'name'
270
274
  property :place_id, as: 'placeId'
271
275
  end
272
276
  end
@@ -140,6 +140,12 @@ module Google
140
140
  # Photo is still being indexed.
141
141
  # @param [String] photo_id
142
142
  # Required. ID of the Photo.
143
+ # @param [String] language_code
144
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
145
+ # information, see
146
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
147
+ # If language_code is unspecified, the user's language preference for Google
148
+ # services will be used.
143
149
  # @param [String] view
144
150
  # Specifies if a download URL for the photo bytes should be returned in the
145
151
  # Photo response.
@@ -160,11 +166,12 @@ module Google
160
166
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
161
167
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
162
168
  # @raise [Google::Apis::AuthorizationError] Authorization is required
163
- def get_photo(photo_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
169
+ def get_photo(photo_id, language_code: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
164
170
  command = make_simple_command(:get, 'v1/photo/{photoId}', options)
165
171
  command.response_representation = Google::Apis::StreetviewpublishV1::Photo::Representation
166
172
  command.response_class = Google::Apis::StreetviewpublishV1::Photo
167
173
  command.params['photoId'] = photo_id unless photo_id.nil?
174
+ command.query['languageCode'] = language_code unless language_code.nil?
168
175
  command.query['view'] = view unless view.nil?
169
176
  command.query['fields'] = fields unless fields.nil?
170
177
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -349,6 +356,12 @@ module Google
349
356
  # See
350
357
  # GetPhoto
351
358
  # for specific failures that can occur per photo.
359
+ # @param [String] language_code
360
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
361
+ # information, see
362
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
363
+ # If language_code is unspecified, the user's language preference for Google
364
+ # services will be used.
352
365
  # @param [Array<String>, String] photo_ids
353
366
  # Required. IDs of the Photos. For HTTP
354
367
  # GET requests, the URL query parameter should be
@@ -373,10 +386,11 @@ module Google
373
386
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
374
387
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
375
388
  # @raise [Google::Apis::AuthorizationError] Authorization is required
376
- def batch_photo_get(photo_ids: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
389
+ def batch_photo_get(language_code: nil, photo_ids: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
377
390
  command = make_simple_command(:get, 'v1/photos:batchGet', options)
378
391
  command.response_representation = Google::Apis::StreetviewpublishV1::BatchGetPhotosResponse::Representation
379
392
  command.response_class = Google::Apis::StreetviewpublishV1::BatchGetPhotosResponse
393
+ command.query['languageCode'] = language_code unless language_code.nil?
380
394
  command.query['photoIds'] = photo_ids unless photo_ids.nil?
381
395
  command.query['view'] = view unless view.nil?
382
396
  command.query['fields'] = fields unless fields.nil?
@@ -404,6 +418,11 @@ module Google
404
418
  # updateMask
405
419
  # field are used. If `updateMask` is not present, the update applies to all
406
420
  # fields.
421
+ # The number of
422
+ # UpdatePhotoRequest
423
+ # messages in a
424
+ # BatchUpdatePhotosRequest
425
+ # must not exceed 20.
407
426
  # <aside class="note"><b>Note:</b> To update
408
427
  # Pose.altitude,
409
428
  # Pose.latLngPair has to be
@@ -444,6 +463,12 @@ module Google
444
463
  # @param [String] filter
445
464
  # The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.
446
465
  # The only filter supported at the moment is `placeId`.
466
+ # @param [String] language_code
467
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
468
+ # information, see
469
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
470
+ # If language_code is unspecified, the user's language preference for Google
471
+ # services will be used.
447
472
  # @param [Fixnum] page_size
448
473
  # The maximum number of photos to return.
449
474
  # `pageSize` must be non-negative. If `pageSize` is zero or is not provided,
@@ -476,11 +501,12 @@ module Google
476
501
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
477
502
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
478
503
  # @raise [Google::Apis::AuthorizationError] Authorization is required
479
- def list_photos(filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
504
+ def list_photos(filter: nil, language_code: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
480
505
  command = make_simple_command(:get, 'v1/photos', options)
481
506
  command.response_representation = Google::Apis::StreetviewpublishV1::ListPhotosResponse::Representation
482
507
  command.response_class = Google::Apis::StreetviewpublishV1::ListPhotosResponse
483
508
  command.query['filter'] = filter unless filter.nil?
509
+ command.query['languageCode'] = language_code unless language_code.nil?
484
510
  command.query['pageSize'] = page_size unless page_size.nil?
485
511
  command.query['pageToken'] = page_token unless page_token.nil?
486
512
  command.query['view'] = view unless view.nil?