google-api-client 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile +1 -1
  4. data/README.md +1 -1
  5. data/api_names.yaml +55 -117
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +76 -8
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +23 -0
  8. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +10 -4
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  11. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  12. data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
  13. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +2 -2
  15. data/generated/google/apis/admin_directory_v1.rb +1 -1
  16. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  17. data/generated/google/apis/admin_reports_v1.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4.rb +1 -1
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/analytics_v3/classes.rb +371 -1
  21. data/generated/google/apis/analytics_v3/representations.rb +135 -0
  22. data/generated/google/apis/analytics_v3/service.rb +218 -0
  23. data/generated/google/apis/analytics_v3.rb +1 -1
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +18 -8
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/androidenterprise_v1/classes.rb +208 -37
  27. data/generated/google/apis/androidenterprise_v1/representations.rb +83 -0
  28. data/generated/google/apis/androidenterprise_v1/service.rb +469 -20
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
  31. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  32. data/generated/google/apis/appengine_v1beta5/classes.rb +379 -297
  33. data/generated/google/apis/appengine_v1beta5/representations.rb +55 -10
  34. data/generated/google/apis/appengine_v1beta5/service.rb +281 -35
  35. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  36. data/generated/google/apis/appsactivity_v1.rb +1 -1
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/bigquery_v2/classes.rb +50 -2
  39. data/generated/google/apis/bigquery_v2/representations.rb +6 -0
  40. data/generated/google/apis/bigquery_v2/service.rb +8 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/calendar_v3.rb +1 -1
  43. data/generated/google/apis/civicinfo_v2/classes.rb +6 -0
  44. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  45. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  46. data/generated/google/apis/civicinfo_v2.rb +3 -2
  47. data/generated/google/apis/classroom_v1/classes.rb +176 -37
  48. data/generated/google/apis/classroom_v1/representations.rb +73 -9
  49. data/generated/google/apis/classroom_v1/service.rb +392 -37
  50. data/generated/google/apis/classroom_v1.rb +1 -1
  51. data/generated/google/apis/cloudbuild_v1/classes.rb +190 -12
  52. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -2
  53. data/generated/google/apis/cloudbuild_v1/service.rb +170 -0
  54. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  55. data/generated/google/apis/clouddebugger_v2/service.rb +2 -2
  56. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  57. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  58. data/generated/google/apis/compute_beta/classes.rb +599 -77
  59. data/generated/google/apis/compute_beta/representations.rb +240 -0
  60. data/generated/google/apis/compute_beta/service.rb +1999 -710
  61. data/generated/google/apis/compute_beta.rb +1 -1
  62. data/generated/google/apis/compute_v1/classes.rb +140 -58
  63. data/generated/google/apis/compute_v1/representations.rb +17 -0
  64. data/generated/google/apis/compute_v1/service.rb +462 -521
  65. data/generated/google/apis/compute_v1.rb +1 -1
  66. data/generated/google/apis/content_v2/classes.rb +689 -1
  67. data/generated/google/apis/content_v2/representations.rb +316 -0
  68. data/generated/google/apis/content_v2/service.rb +244 -0
  69. data/generated/google/apis/content_v2.rb +1 -1
  70. data/generated/google/apis/datastore_v1beta3/classes.rb +48 -0
  71. data/generated/google/apis/datastore_v1beta3/representations.rb +5 -0
  72. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  73. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  74. data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
  75. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  76. data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
  77. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  78. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  79. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  80. data/generated/google/apis/drive_v2/classes.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v3.rb +1 -1
  83. data/generated/google/apis/fitness_v1/classes.rb +8 -0
  84. data/generated/google/apis/fitness_v1/representations.rb +1 -0
  85. data/generated/google/apis/fitness_v1/service.rb +2 -2
  86. data/generated/google/apis/fitness_v1.rb +7 -1
  87. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  88. data/generated/google/apis/games_management_v1management.rb +1 -1
  89. data/generated/google/apis/games_v1.rb +1 -1
  90. data/generated/google/apis/genomics_v1/classes.rb +13 -2
  91. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  92. data/generated/google/apis/genomics_v1/service.rb +2 -3
  93. data/generated/google/apis/genomics_v1.rb +1 -1
  94. data/generated/google/apis/gmail_v1/classes.rb +8 -11
  95. data/generated/google/apis/gmail_v1/service.rb +5 -5
  96. data/generated/google/apis/gmail_v1.rb +1 -1
  97. data/generated/google/apis/identitytoolkit_v3/classes.rb +38 -0
  98. data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -0
  99. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  100. data/generated/google/apis/monitoring_v3/classes.rb +340 -421
  101. data/generated/google/apis/monitoring_v3/representations.rb +0 -17
  102. data/generated/google/apis/monitoring_v3/service.rb +136 -168
  103. data/generated/google/apis/monitoring_v3.rb +1 -1
  104. data/generated/google/apis/oauth2_v2.rb +1 -1
  105. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  106. data/generated/google/apis/plus_domains_v1.rb +1 -1
  107. data/generated/google/apis/plus_v1.rb +1 -1
  108. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  109. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  110. data/generated/google/apis/qpx_express_v1.rb +1 -1
  111. data/generated/google/apis/script_v1/classes.rb +6 -0
  112. data/generated/google/apis/script_v1/representations.rb +1 -0
  113. data/generated/google/apis/script_v1.rb +1 -1
  114. data/generated/google/apis/sheets_v4/classes.rb +35 -0
  115. data/generated/google/apis/sheets_v4/representations.rb +16 -0
  116. data/generated/google/apis/sheets_v4/service.rb +55 -0
  117. data/generated/google/apis/sheets_v4.rb +1 -1
  118. data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
  119. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  120. data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
  121. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  122. data/generated/google/apis/storage_v1/classes.rb +36 -1
  123. data/generated/google/apis/storage_v1/representations.rb +16 -0
  124. data/generated/google/apis/storage_v1/service.rb +18 -3
  125. data/generated/google/apis/storage_v1.rb +1 -1
  126. data/generated/google/apis/vision_v1.rb +1 -1
  127. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  128. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  129. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  130. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  131. data/generated/google/apis/youtube_v3.rb +1 -1
  132. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  133. data/lib/google/apis/generator/annotator.rb +6 -0
  134. data/lib/google/apis/version.rb +1 -1
  135. metadata +6 -3
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/monitoring/api/
28
28
  module MonitoringV3
29
29
  VERSION = 'V3'
30
- REVISION = '20160620'
30
+ REVISION = '20160816'
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'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/accounts/docs/OAuth2
26
26
  module Oauth2V2
27
27
  VERSION = 'V2'
28
- REVISION = '20160624'
28
+ REVISION = '20160804'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/speed/docs/insights/v2/getting-started
27
27
  module PagespeedonlineV2
28
28
  VERSION = 'V2'
29
- REVISION = '20160615'
29
+ REVISION = '20160811'
30
30
  end
31
31
  end
32
32
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160629'
28
+ REVISION = '20160815'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160629'
28
+ REVISION = '20160815'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -1165,6 +1165,11 @@ module Google
1165
1165
  # @return [Fixnum]
1166
1166
  attr_accessor :solutions
1167
1167
 
1168
+ # IATA country code representing the point of ticketing.
1169
+ # Corresponds to the JSON property `ticketingCountry`
1170
+ # @return [String]
1171
+ attr_accessor :ticketing_country
1172
+
1168
1173
  def initialize(**args)
1169
1174
  update!(**args)
1170
1175
  end
@@ -1177,6 +1182,7 @@ module Google
1177
1182
  @sale_country = args[:sale_country] if args.key?(:sale_country)
1178
1183
  @slice = args[:slice] if args.key?(:slice)
1179
1184
  @solutions = args[:solutions] if args.key?(:solutions)
1185
+ @ticketing_country = args[:ticketing_country] if args.key?(:ticketing_country)
1180
1186
  end
1181
1187
  end
1182
1188
 
@@ -436,6 +436,7 @@ module Google
436
436
  collection :slice, as: 'slice', class: Google::Apis::QpxExpressV1::SliceInput, decorator: Google::Apis::QpxExpressV1::SliceInput::Representation
437
437
 
438
438
  property :solutions, as: 'solutions'
439
+ property :ticketing_country, as: 'ticketingCountry'
439
440
  end
440
441
  end
441
442
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see http://developers.google.com/qpx-express
26
26
  module QpxExpressV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160307'
28
+ REVISION = '20160708'
29
29
  end
30
30
  end
31
31
  end
@@ -245,6 +245,11 @@ module Google
245
245
  # @return [Object]
246
246
  attr_accessor :result
247
247
 
248
+ #
249
+ # Corresponds to the JSON property `status`
250
+ # @return [String]
251
+ attr_accessor :status
252
+
248
253
  def initialize(**args)
249
254
  update!(**args)
250
255
  end
@@ -252,6 +257,7 @@ module Google
252
257
  # Update properties of this object
253
258
  def update!(**args)
254
259
  @result = args[:result] if args.key?(:result)
260
+ @status = args[:status] if args.key?(:status)
255
261
  end
256
262
  end
257
263
  end
@@ -111,6 +111,7 @@ module Google
111
111
  # @private
112
112
  class Representation < Google::Apis::Core::JsonRepresentation
113
113
  property :result, as: 'result'
114
+ property :status, as: 'status'
114
115
  end
115
116
  end
116
117
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
26
26
  module ScriptV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160426'
28
+ REVISION = '20160801'
29
29
 
30
30
  # View and manage your mail
31
31
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -1972,6 +1972,8 @@ module Google
1972
1972
  # The range the values cover, in A1 notation.
1973
1973
  # For output, this range indicates the entire requested range,
1974
1974
  # even though the values will exclude trailing rows and columns.
1975
+ # When appending values, this field represents the range to search for a
1976
+ # table, after which values will be appended.
1975
1977
  # Corresponds to the JSON property `range`
1976
1978
  # @return [String]
1977
1979
  attr_accessor :range
@@ -2047,6 +2049,39 @@ module Google
2047
2049
  end
2048
2050
  end
2049
2051
 
2052
+ # The response when updating a range of values in a spreadsheet.
2053
+ class AppendValuesResponse
2054
+ include Google::Apis::Core::Hashable
2055
+
2056
+ # The spreadsheet the updates were applied to.
2057
+ # Corresponds to the JSON property `spreadsheetId`
2058
+ # @return [String]
2059
+ attr_accessor :spreadsheet_id
2060
+
2061
+ # The range (in A1 notation) of the table that values are being appended to
2062
+ # (before the values were appended).
2063
+ # Empty if no table was found.
2064
+ # Corresponds to the JSON property `tableRange`
2065
+ # @return [String]
2066
+ attr_accessor :table_range
2067
+
2068
+ # The response when updating a range of values in a spreadsheet.
2069
+ # Corresponds to the JSON property `updates`
2070
+ # @return [Google::Apis::SheetsV4::UpdateValuesResponse]
2071
+ attr_accessor :updates
2072
+
2073
+ def initialize(**args)
2074
+ update!(**args)
2075
+ end
2076
+
2077
+ # Update properties of this object
2078
+ def update!(**args)
2079
+ @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
2080
+ @table_range = args[:table_range] if args.key?(:table_range)
2081
+ @updates = args[:updates] if args.key?(:updates)
2082
+ end
2083
+ end
2084
+
2050
2085
  # The format of a cell.
2051
2086
  class CellFormat
2052
2087
  include Google::Apis::Core::Hashable
@@ -316,6 +316,12 @@ module Google
316
316
  include Google::Apis::Core::JsonObjectSupport
317
317
  end
318
318
 
319
+ class AppendValuesResponse
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
319
325
  class CellFormat
320
326
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
327
 
@@ -1259,6 +1265,16 @@ module Google
1259
1265
  end
1260
1266
  end
1261
1267
 
1268
+ class AppendValuesResponse
1269
+ # @private
1270
+ class Representation < Google::Apis::Core::JsonRepresentation
1271
+ property :spreadsheet_id, as: 'spreadsheetId'
1272
+ property :table_range, as: 'tableRange'
1273
+ property :updates, as: 'updates', class: Google::Apis::SheetsV4::UpdateValuesResponse, decorator: Google::Apis::SheetsV4::UpdateValuesResponse::Representation
1274
+
1275
+ end
1276
+ end
1277
+
1262
1278
  class CellFormat
1263
1279
  # @private
1264
1280
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -176,6 +176,61 @@ module Google
176
176
  execute_or_queue_command(command, &block)
177
177
  end
178
178
 
179
+ # Appends values to a spreadsheet. The input range is used to search for
180
+ # existing data and find a "table" within that range. Values will be
181
+ # appended to the next row of the table, starting with the first column of
182
+ # the table. See the
183
+ # [guide](/sheets/guides/values#appending_values)
184
+ # and
185
+ # [sample code](/sheets/samples/writing#append_values)
186
+ # for specific details of how tables are detected and data is appended.
187
+ # The caller must specify the spreadsheet ID, range, and
188
+ # a valueInputOption. The `valueInputOption` only
189
+ # controls how the input data will be added to the sheet (column-wise or
190
+ # row-wise), it does not influence what cell the data starts being written
191
+ # to.
192
+ # @param [String] spreadsheet_id
193
+ # The ID of the spreadsheet to update.
194
+ # @param [String] range
195
+ # The A1 notation of a range to search for a logical table of data.
196
+ # Values will be appended after the last row of the table.
197
+ # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
198
+ # @param [String] value_input_option
199
+ # How the input data should be interpreted.
200
+ # @param [String] insert_data_option
201
+ # How the input data should be inserted.
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [Google::Apis::RequestOptions] options
208
+ # Request-specific options
209
+ #
210
+ # @yield [result, err] Result & error if block supplied
211
+ # @yieldparam result [Google::Apis::SheetsV4::AppendValuesResponse] parsed result object
212
+ # @yieldparam err [StandardError] error object if request failed
213
+ #
214
+ # @return [Google::Apis::SheetsV4::AppendValuesResponse]
215
+ #
216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
219
+ def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, insert_data_option: nil, quota_user: nil, fields: nil, options: nil, &block)
220
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
221
+ command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
222
+ command.request_object = value_range_object
223
+ command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
224
+ command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
225
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
226
+ command.params['range'] = range unless range.nil?
227
+ command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
228
+ command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ command.query['fields'] = fields unless fields.nil?
231
+ execute_or_queue_command(command, &block)
232
+ end
233
+
179
234
  # Sets values in a range of a spreadsheet.
180
235
  # The caller must specify the spreadsheet ID, range, and
181
236
  # a valueInputOption.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/sheets/
26
26
  module SheetsV4
27
27
  VERSION = 'V4'
28
- REVISION = '20160623'
28
+ REVISION = '20160815'
29
29
 
30
30
  # View the files in your Google Drive
31
31
  AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
@@ -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
@@ -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
@@ -136,6 +136,47 @@ module Google
136
136
  execute_or_queue_command(command, &block)
137
137
  end
138
138
 
139
+ # Creates a new backup run on demand.
140
+ # @param [String] project
141
+ # Project ID of the project that contains the instance.
142
+ # @param [String] instance
143
+ # Cloud SQL instance ID. This does not include the project ID.
144
+ # @param [Google::Apis::SqladminV1beta4::BackupRun] backup_run_object
145
+ # @param [String] fields
146
+ # Selector specifying which fields to include in a partial response.
147
+ # @param [String] quota_user
148
+ # Available to use for quota purposes for server-side applications. Can be any
149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
150
+ # Overrides userIp if both are provided.
151
+ # @param [String] user_ip
152
+ # IP address of the site where the request originates. Use this if you want to
153
+ # enforce per-user limits.
154
+ # @param [Google::Apis::RequestOptions] options
155
+ # Request-specific options
156
+ #
157
+ # @yield [result, err] Result & error if block supplied
158
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
159
+ # @yieldparam err [StandardError] error object if request failed
160
+ #
161
+ # @return [Google::Apis::SqladminV1beta4::Operation]
162
+ #
163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
166
+ def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
167
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/backupRuns', options)
168
+ command.request_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
169
+ command.request_object = backup_run_object
170
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
171
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
172
+ command.params['project'] = project unless project.nil?
173
+ command.params['instance'] = instance unless instance.nil?
174
+ command.query['fields'] = fields unless fields.nil?
175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
176
+ command.query['userIp'] = user_ip unless user_ip.nil?
177
+ execute_or_queue_command(command, &block)
178
+ end
179
+
139
180
  # Lists all backup runs associated with a given instance and configuration in
140
181
  # the reverse chronological order of the enqueued time.
141
182
  # @param [String] project
@@ -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 = '20160630'
29
+ REVISION = '20160712'
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'
@@ -41,6 +41,12 @@ module Google
41
41
  # @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
42
42
  attr_accessor :default_object_acl
43
43
 
44
+ # Encryption configuration used by default for newly inserted objects, when no
45
+ # encryption config is specified.
46
+ # Corresponds to the JSON property `encryption`
47
+ # @return [Google::Apis::StorageV1::Bucket::Encryption]
48
+ attr_accessor :encryption
49
+
44
50
  # HTTP 1.1 Entity tag for the bucket.
45
51
  # Corresponds to the JSON property `etag`
46
52
  # @return [String]
@@ -139,6 +145,7 @@ module Google
139
145
  @acl = args[:acl] if args.key?(:acl)
140
146
  @cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
141
147
  @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
148
+ @encryption = args[:encryption] if args.key?(:encryption)
142
149
  @etag = args[:etag] if args.key?(:etag)
143
150
  @id = args[:id] if args.key?(:id)
144
151
  @kind = args[:kind] if args.key?(:kind)
@@ -199,6 +206,26 @@ module Google
199
206
  end
200
207
  end
201
208
 
209
+ # Encryption configuration used by default for newly inserted objects, when no
210
+ # encryption config is specified.
211
+ class Encryption
212
+ include Google::Apis::Core::Hashable
213
+
214
+ #
215
+ # Corresponds to the JSON property `default_kms_key_name`
216
+ # @return [String]
217
+ attr_accessor :default_kms_key_name
218
+
219
+ def initialize(**args)
220
+ update!(**args)
221
+ end
222
+
223
+ # Update properties of this object
224
+ def update!(**args)
225
+ @default_kms_key_name = args[:default_kms_key_name] if args.key?(:default_kms_key_name)
226
+ end
227
+ end
228
+
202
229
  # The bucket's lifecycle configuration. See lifecycle management for more
203
230
  # information.
204
231
  class Lifecycle
@@ -763,7 +790,8 @@ module Google
763
790
  # @return [String]
764
791
  attr_accessor :bucket
765
792
 
766
- # Cache-Control directive for the object data.
793
+ # Cache-Control directive for the object data. If omitted, and the object is
794
+ # accessible to all anonymous users, the default will be public, max-age=3600.
767
795
  # Corresponds to the JSON property `cacheControl`
768
796
  # @return [String]
769
797
  attr_accessor :cache_control
@@ -828,6 +856,12 @@ module Google
828
856
  # @return [String]
829
857
  attr_accessor :kind
830
858
 
859
+ # Cloud KMS Key used to encrypt this object, if the object is encrypted by such
860
+ # a key.
861
+ # Corresponds to the JSON property `kmsKeyName`
862
+ # @return [String]
863
+ attr_accessor :kms_key_name
864
+
831
865
  # MD5 hash of the data; encoded using base64. For more information about using
832
866
  # the MD5 hash, see Hashes and ETags: Best Practices.
833
867
  # Corresponds to the JSON property `md5Hash`
@@ -913,6 +947,7 @@ module Google
913
947
  @generation = args[:generation] if args.key?(:generation)
914
948
  @id = args[:id] if args.key?(:id)
915
949
  @kind = args[:kind] if args.key?(:kind)
950
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
916
951
  @md5_hash = args[:md5_hash] if args.key?(:md5_hash)
917
952
  @media_link = args[:media_link] if args.key?(:media_link)
918
953
  @metadata = args[:metadata] if args.key?(:metadata)