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
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/sql/docs/reference/latest
27
27
  module SqladminV1beta4
28
28
  VERSION = 'V1beta4'
29
- REVISION = '20160509'
29
+ REVISION = '20161028'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -105,6 +105,11 @@ module Google
105
105
  class BackupRun
106
106
  include Google::Apis::Core::Hashable
107
107
 
108
+ # The description of this run, only applicable to on-demand backups.
109
+ # Corresponds to the JSON property `description`
110
+ # @return [String]
111
+ attr_accessor :description
112
+
108
113
  # The time the backup operation completed in UTC timezone in RFC 3339 format,
109
114
  # for example 2012-11-15T16:19:00.094Z.
110
115
  # Corresponds to the JSON property `endTime`
@@ -154,6 +159,11 @@ module Google
154
159
  # @return [String]
155
160
  attr_accessor :status
156
161
 
162
+ # The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
163
+ # Corresponds to the JSON property `type`
164
+ # @return [String]
165
+ attr_accessor :type
166
+
157
167
  # The start time of the backup window during which this the backup was attempted
158
168
  # in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
159
169
  # Corresponds to the JSON property `windowStartTime`
@@ -166,6 +176,7 @@ module Google
166
176
 
167
177
  # Update properties of this object
168
178
  def update!(**args)
179
+ @description = args[:description] if args.key?(:description)
169
180
  @end_time = args[:end_time] if args.key?(:end_time)
170
181
  @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time)
171
182
  @error = args[:error] if args.key?(:error)
@@ -175,6 +186,7 @@ module Google
175
186
  @self_link = args[:self_link] if args.key?(:self_link)
176
187
  @start_time = args[:start_time] if args.key?(:start_time)
177
188
  @status = args[:status] if args.key?(:status)
189
+ @type = args[:type] if args.key?(:type)
178
190
  @window_start_time = args[:window_start_time] if args.key?(:window_start_time)
179
191
  end
180
192
  end
@@ -377,6 +389,11 @@ module Google
377
389
  # @return [String]
378
390
  attr_accessor :backend_type
379
391
 
392
+ # Connection name of the Cloud SQL instance used in connection strings.
393
+ # Corresponds to the JSON property `connectionName`
394
+ # @return [String]
395
+ attr_accessor :connection_name
396
+
380
397
  # The current disk usage of the instance in bytes. This property has been
381
398
  # deprecated. Users should use the "cloudsql.googleapis.com/database/disk/
382
399
  # bytes_used" metric in Cloud Monitoring API instead. Please see https://groups.
@@ -518,6 +535,7 @@ module Google
518
535
  # Update properties of this object
519
536
  def update!(**args)
520
537
  @backend_type = args[:backend_type] if args.key?(:backend_type)
538
+ @connection_name = args[:connection_name] if args.key?(:connection_name)
521
539
  @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
522
540
  @database_version = args[:database_version] if args.key?(:database_version)
523
541
  @etag = args[:etag] if args.key?(:etag)
@@ -555,7 +573,9 @@ module Google
555
573
  attr_accessor :available
556
574
  alias_method :available?, :available
557
575
 
558
- # The name of the failover replica.
576
+ # The name of the failover replica. If specified at instance creation, a
577
+ # failover replica is created for the instance. The name doesn't include the
578
+ # project ID. This property is applicable only to Second Generation instances.
559
579
  # Corresponds to the JSON property `name`
560
580
  # @return [String]
561
581
  attr_accessor :name
@@ -1541,13 +1561,17 @@ module Google
1541
1561
  class Settings
1542
1562
  include Google::Apis::Core::Hashable
1543
1563
 
1544
- # The activation policy for this instance. This specifies when the instance
1545
- # should be activated and is applicable only when the instance state is RUNNABLE.
1546
- # This can be one of the following.
1547
- # ALWAYS: The instance should always be active.
1548
- # NEVER: The instance should never be activated.
1549
- # ON_DEMAND: The instance is activated upon receiving requests; only applicable
1550
- # to First Generation instances.
1564
+ # The activation policy specifies when the instance is activated; it is
1565
+ # applicable only when the instance state is RUNNABLE. The activation policy
1566
+ # cannot be updated together with other settings for Second Generation instances.
1567
+ # Valid values:
1568
+ # ALWAYS: The instance is on; it is not deactivated by inactivity.
1569
+ # NEVER: The instance is off; it is not activated, even if a connection request
1570
+ # arrives.
1571
+ # ON_DEMAND: The instance responds to incoming requests, and turns itself off
1572
+ # when not in use. Instances with PER_USE pricing turn off after 15 minutes of
1573
+ # inactivity. Instances with PER_PACKAGE pricing turn off after 12 hours of
1574
+ # inactivity.
1551
1575
  # Corresponds to the JSON property `activationPolicy`
1552
1576
  # @return [String]
1553
1577
  attr_accessor :activation_policy
@@ -334,6 +334,7 @@ module Google
334
334
  class BackupRun
335
335
  # @private
336
336
  class Representation < Google::Apis::Core::JsonRepresentation
337
+ property :description, as: 'description'
337
338
  property :end_time, as: 'endTime', type: DateTime
338
339
 
339
340
  property :enqueued_time, as: 'enqueuedTime', type: DateTime
@@ -347,6 +348,7 @@ module Google
347
348
  property :start_time, as: 'startTime', type: DateTime
348
349
 
349
350
  property :status, as: 'status'
351
+ property :type, as: 'type'
350
352
  property :window_start_time, as: 'windowStartTime', type: DateTime
351
353
 
352
354
  end
@@ -407,6 +409,7 @@ module Google
407
409
  # @private
408
410
  class Representation < Google::Apis::Core::JsonRepresentation
409
411
  property :backend_type, as: 'backendType'
412
+ property :connection_name, as: 'connectionName'
410
413
  property :current_disk_size, as: 'currentDiskSize'
411
414
  property :database_version, as: 'databaseVersion'
412
415
  property :etag, as: 'etag'
@@ -136,6 +136,48 @@ module Google
136
136
  execute_or_queue_command(command, &block)
137
137
  end
138
138
 
139
+ # Creates a new backup run on demand. This method is applicable only to Second
140
+ # Generation instances.
141
+ # @param [String] project
142
+ # Project ID of the project that contains the instance.
143
+ # @param [String] instance
144
+ # Cloud SQL instance ID. This does not include the project ID.
145
+ # @param [Google::Apis::SqladminV1beta4::BackupRun] backup_run_object
146
+ # @param [String] fields
147
+ # Selector specifying which fields to include in a partial response.
148
+ # @param [String] quota_user
149
+ # Available to use for quota purposes for server-side applications. Can be any
150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
151
+ # Overrides userIp if both are provided.
152
+ # @param [String] user_ip
153
+ # IP address of the site where the request originates. Use this if you want to
154
+ # enforce per-user limits.
155
+ # @param [Google::Apis::RequestOptions] options
156
+ # Request-specific options
157
+ #
158
+ # @yield [result, err] Result & error if block supplied
159
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
160
+ # @yieldparam err [StandardError] error object if request failed
161
+ #
162
+ # @return [Google::Apis::SqladminV1beta4::Operation]
163
+ #
164
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
167
+ def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
168
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/backupRuns', options)
169
+ command.request_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
170
+ command.request_object = backup_run_object
171
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
172
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
173
+ command.params['project'] = project unless project.nil?
174
+ command.params['instance'] = instance unless instance.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ command.query['userIp'] = user_ip unless user_ip.nil?
178
+ execute_or_queue_command(command, &block)
179
+ end
180
+
139
181
  # Lists all backup runs associated with a given instance and configuration in
140
182
  # the reverse chronological order of the enqueued time.
141
183
  # @param [String] project
@@ -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 = '20160504'
28
+ REVISION = '20161027'
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'
@@ -100,10 +100,12 @@ module Google
100
100
  # @return [String]
101
101
  attr_accessor :self_link
102
102
 
103
- # The bucket's storage class. This defines how objects in the bucket are stored
104
- # and determines the SLA and the cost of storage. Values include STANDARD,
105
- # NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. For more
106
- # information, see storage classes.
103
+ # The bucket's default storage class, used whenever no storageClass is specified
104
+ # for a newly-created object. This defines how objects in the bucket are stored
105
+ # and determines the SLA and the cost of storage. Values include MULTI_REGIONAL,
106
+ # REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If
107
+ # this value is not specified when the bucket is created, it will default to
108
+ # STANDARD. For more information, see storage classes.
107
109
  # Corresponds to the JSON property `storageClass`
108
110
  # @return [String]
109
111
  attr_accessor :storage_class
@@ -123,7 +125,9 @@ module Google
123
125
  # @return [Google::Apis::StorageV1::Bucket::Versioning]
124
126
  attr_accessor :versioning
125
127
 
126
- # The bucket's website configuration.
128
+ # The bucket's website configuration, controlling how the service behaves when
129
+ # accessing bucket contents as a web site. See the Static Website Examples for
130
+ # more information.
127
131
  # Corresponds to the JSON property `website`
128
132
  # @return [Google::Apis::StorageV1::Bucket::Website]
129
133
  attr_accessor :website
@@ -245,7 +249,12 @@ module Google
245
249
  class Action
246
250
  include Google::Apis::Core::Hashable
247
251
 
248
- # Type of the action. Currently, only Delete is supported.
252
+ # Target storage class. Required iff the type of the action is SetStorageClass.
253
+ # Corresponds to the JSON property `storageClass`
254
+ # @return [String]
255
+ attr_accessor :storage_class
256
+
257
+ # Type of the action. Currently, only Delete and SetStorageClass are supported.
249
258
  # Corresponds to the JSON property `type`
250
259
  # @return [String]
251
260
  attr_accessor :type
@@ -256,6 +265,7 @@ module Google
256
265
 
257
266
  # Update properties of this object
258
267
  def update!(**args)
268
+ @storage_class = args[:storage_class] if args.key?(:storage_class)
259
269
  @type = args[:type] if args.key?(:type)
260
270
  end
261
271
  end
@@ -284,6 +294,13 @@ module Google
284
294
  attr_accessor :is_live
285
295
  alias_method :is_live?, :is_live
286
296
 
297
+ # Objects having any of the storage classes specified by this condition will be
298
+ # matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD,
299
+ # and DURABLE_REDUCED_AVAILABILITY.
300
+ # Corresponds to the JSON property `matchesStorageClass`
301
+ # @return [Array<String>]
302
+ attr_accessor :matches_storage_class
303
+
287
304
  # Relevant only for versioned objects. If the value is N, this condition is
288
305
  # satisfied when there are at least N versions (including the live version)
289
306
  # newer than this version of the object.
@@ -300,6 +317,7 @@ module Google
300
317
  @age = args[:age] if args.key?(:age)
301
318
  @created_before = args[:created_before] if args.key?(:created_before)
302
319
  @is_live = args[:is_live] if args.key?(:is_live)
320
+ @matches_storage_class = args[:matches_storage_class] if args.key?(:matches_storage_class)
303
321
  @num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions)
304
322
  end
305
323
  end
@@ -377,17 +395,23 @@ module Google
377
395
  end
378
396
  end
379
397
 
380
- # The bucket's website configuration.
398
+ # The bucket's website configuration, controlling how the service behaves when
399
+ # accessing bucket contents as a web site. See the Static Website Examples for
400
+ # more information.
381
401
  class Website
382
402
  include Google::Apis::Core::Hashable
383
403
 
384
- # Behaves as the bucket's directory index where missing objects are treated as
385
- # potential directories.
404
+ # If the requested object path is missing, the service will ensure the path has
405
+ # a trailing '/', append this suffix, and attempt to retrieve the resulting
406
+ # object. This allows the creation of index.html objects to represent directory
407
+ # pages.
386
408
  # Corresponds to the JSON property `mainPageSuffix`
387
409
  # @return [String]
388
410
  attr_accessor :main_page_suffix
389
411
 
390
- # The custom object to return when a requested resource is not found.
412
+ # If the requested object path is missing, and any mainPageSuffix object is
413
+ # missing, if applicable, the service will return the named object from this
414
+ # bucket as the content for a 404 Not Found result.
391
415
  # Corresponds to the JSON property `notFoundPage`
392
416
  # @return [String]
393
417
  attr_accessor :not_found_page
@@ -466,7 +490,7 @@ module Google
466
490
  # @return [Google::Apis::StorageV1::BucketAccessControl::ProjectTeam]
467
491
  attr_accessor :project_team
468
492
 
469
- # The access permission for the entity. Can be READER, WRITER, or OWNER.
493
+ # The access permission for the entity.
470
494
  # Corresponds to the JSON property `role`
471
495
  # @return [String]
472
496
  attr_accessor :role
@@ -504,7 +528,7 @@ module Google
504
528
  # @return [String]
505
529
  attr_accessor :project_number
506
530
 
507
- # The team. Can be owners, editors, or viewers.
531
+ # The team.
508
532
  # Corresponds to the JSON property `team`
509
533
  # @return [String]
510
534
  attr_accessor :team
@@ -755,7 +779,8 @@ module Google
755
779
  # @return [String]
756
780
  attr_accessor :bucket
757
781
 
758
- # Cache-Control directive for the object data.
782
+ # Cache-Control directive for the object data. If omitted, and the object is
783
+ # accessible to all anonymous users, the default will be public, max-age=3600.
759
784
  # Corresponds to the JSON property `cacheControl`
760
785
  # @return [String]
761
786
  attr_accessor :cache_control
@@ -1017,7 +1042,7 @@ module Google
1017
1042
  # @return [String]
1018
1043
  attr_accessor :etag
1019
1044
 
1020
- # The content generation of the object.
1045
+ # The content generation of the object, if applied to an object.
1021
1046
  # Corresponds to the JSON property `generation`
1022
1047
  # @return [String]
1023
1048
  attr_accessor :generation
@@ -1033,7 +1058,7 @@ module Google
1033
1058
  # @return [String]
1034
1059
  attr_accessor :kind
1035
1060
 
1036
- # The name of the object.
1061
+ # The name of the object, if applied to an object.
1037
1062
  # Corresponds to the JSON property `object`
1038
1063
  # @return [String]
1039
1064
  attr_accessor :object
@@ -1043,7 +1068,7 @@ module Google
1043
1068
  # @return [Google::Apis::StorageV1::ObjectAccessControl::ProjectTeam]
1044
1069
  attr_accessor :project_team
1045
1070
 
1046
- # The access permission for the entity. Can be READER or OWNER.
1071
+ # The access permission for the entity.
1047
1072
  # Corresponds to the JSON property `role`
1048
1073
  # @return [String]
1049
1074
  attr_accessor :role
@@ -1083,7 +1108,7 @@ module Google
1083
1108
  # @return [String]
1084
1109
  attr_accessor :project_number
1085
1110
 
1086
- # The team. Can be owners, editors, or viewers.
1111
+ # The team.
1087
1112
  # Corresponds to the JSON property `team`
1088
1113
  # @return [String]
1089
1114
  attr_accessor :team
@@ -1106,7 +1131,7 @@ module Google
1106
1131
 
1107
1132
  # The list of items.
1108
1133
  # Corresponds to the JSON property `items`
1109
- # @return [Array<Object>]
1134
+ # @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
1110
1135
  attr_accessor :items
1111
1136
 
1112
1137
  # The kind of item this is. For lists of object access control entries, this is
@@ -241,6 +241,7 @@ module Google
241
241
  class Action
242
242
  # @private
243
243
  class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :storage_class, as: 'storageClass'
244
245
  property :type, as: 'type'
245
246
  end
246
247
  end
@@ -252,6 +253,7 @@ module Google
252
253
  property :created_before, as: 'createdBefore', type: Date
253
254
 
254
255
  property :is_live, as: 'isLive'
256
+ collection :matches_storage_class, as: 'matchesStorageClass'
255
257
  property :num_newer_versions, as: 'numNewerVersions'
256
258
  end
257
259
  end
@@ -464,7 +466,8 @@ module Google
464
466
  class ObjectAccessControls
465
467
  # @private
466
468
  class Representation < Google::Apis::Core::JsonRepresentation
467
- collection :items, as: 'items'
469
+ collection :items, as: 'items', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
470
+
468
471
  property :kind, as: 'kind'
469
472
  end
470
473
  end
@@ -469,7 +469,9 @@ module Google
469
469
  execute_or_queue_command(command, &block)
470
470
  end
471
471
 
472
- # Updates a bucket. This method supports patch semantics.
472
+ # Updates a bucket. Changes to the bucket will be readable immediately after
473
+ # writing, but configuration changes may take time to propagate. This method
474
+ # supports patch semantics.
473
475
  # @param [String] bucket
474
476
  # Name of a bucket.
475
477
  # @param [Google::Apis::StorageV1::Bucket] bucket_object
@@ -524,7 +526,8 @@ module Google
524
526
  execute_or_queue_command(command, &block)
525
527
  end
526
528
 
527
- # Updates a bucket.
529
+ # Updates a bucket. Changes to the bucket will be readable immediately after
530
+ # writing, but configuration changes may take time to propagate.
528
531
  # @param [String] bucket
529
532
  # Name of a bucket.
530
533
  # @param [Google::Apis::StorageV1::Bucket] bucket_object
@@ -20,12 +20,12 @@ module Google
20
20
  module Apis
21
21
  # Translate API
22
22
  #
23
- # Lets you translate text from one language to another
23
+ # Translates text from one language to another.
24
24
  #
25
25
  # @see https://developers.google.com/translate/v2/using_rest
26
26
  module TranslateV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160217'
28
+ REVISION = '20160627'
29
29
  end
30
30
  end
31
31
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module TranslateV2
23
23
  # Translate API
24
24
  #
25
- # Lets you translate text from one language to another
25
+ # Translates text from one language to another.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/translate_v2'
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20160519'
30
+ REVISION = '20161031'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -54,7 +54,7 @@ module Google
54
54
  # @return [Google::Apis::VisionV1::Image]
55
55
  attr_accessor :image
56
56
 
57
- # Image context.
57
+ # Image context and/or feature-specific parameters.
58
58
  # Corresponds to the JSON property `imageContext`
59
59
  # @return [Google::Apis::VisionV1::ImageContext]
60
60
  attr_accessor :image_context
@@ -658,7 +658,7 @@ module Google
658
658
  end
659
659
  end
660
660
 
661
- # Image context.
661
+ # Image context and/or feature-specific parameters.
662
662
  class ImageContext
663
663
  include Google::Apis::Core::Hashable
664
664
 
@@ -668,15 +668,14 @@ module Google
668
668
  attr_accessor :lat_long_rect
669
669
 
670
670
  # List of languages to use for TEXT_DETECTION. In most cases, an empty value
671
- # will yield the best results as it will allow text detection to
672
- # automatically detect the text language. For languages based on the latin
673
- # alphabet a hint is not needed. In rare cases, when the language of
674
- # the text in the image is known in advance, setting this hint will help get
675
- # better results (although it will hurt a great deal if the hint is wrong).
676
- # Text detection will return an error if one or more of the languages
677
- # specified here are not supported. The exact list of supported languages are
678
- # specified here:
679
- # https://cloud.google.com/translate/v2/using_rest#language-params
671
+ # yields the best results since it enables automatic language detection. For
672
+ # languages based on the Latin alphabet, setting `language_hints` is not
673
+ # needed. In rare cases, when the language of the text in the image is known,
674
+ # setting a hint will help get better results (although it will be a
675
+ # significant hindrance if the hint is wrong). Text detection returns an
676
+ # error if one or more of the specified languages is not one of the
677
+ # [supported
678
+ # languages](/translate/v2/translate-reference#supported_languages).
680
679
  # Corresponds to the JSON property `languageHints`
681
680
  # @return [Array<String>]
682
681
  attr_accessor :language_hints
@@ -1064,6 +1063,8 @@ module Google
1064
1063
  attr_accessor :source
1065
1064
 
1066
1065
  # Image content, represented as a stream of bytes.
1066
+ # Note: as with all `bytes` fields, protobuffers use a pure binary
1067
+ # representation, whereas JSON representations use base64.
1067
1068
  # Corresponds to the JSON property `content`
1068
1069
  # @return [String]
1069
1070
  attr_accessor :content