google-api-client 0.13.5 → 0.13.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +58 -0
  3. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1 -1
  8. data/generated/google/apis/adexchangeseller_v1/service.rb +1 -1
  9. data/generated/google/apis/adexchangeseller_v1_1/service.rb +1 -1
  10. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -1
  11. data/generated/google/apis/admin_datatransfer_v1/service.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/service.rb +1 -1
  13. data/generated/google/apis/admin_reports_v1/service.rb +1 -1
  14. data/generated/google/apis/adsense_v1_4.rb +1 -1
  15. data/generated/google/apis/adsense_v1_4/service.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -1
  18. data/generated/google/apis/analytics_v2_4.rb +1 -1
  19. data/generated/google/apis/analytics_v2_4/service.rb +1 -1
  20. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  21. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +74 -54
  22. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +14 -0
  23. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +54 -17
  24. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  25. data/generated/google/apis/androidenterprise_v1/classes.rb +15 -18
  26. data/generated/google/apis/androidenterprise_v1/service.rb +1 -1
  27. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  28. data/generated/google/apis/androidmanagement_v1/classes.rb +15 -7
  29. data/generated/google/apis/androidmanagement_v1/representations.rb +2 -1
  30. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v1/service.rb +1 -1
  32. data/generated/google/apis/androidpublisher_v1_1/service.rb +1 -1
  33. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  34. data/generated/google/apis/appengine_v1.rb +1 -1
  35. data/generated/google/apis/appengine_v1/classes.rb +324 -0
  36. data/generated/google/apis/appengine_v1/representations.rb +152 -0
  37. data/generated/google/apis/appengine_v1/service.rb +406 -0
  38. data/generated/google/apis/appengine_v1beta.rb +1 -1
  39. data/generated/google/apis/appengine_v1beta/classes.rb +59 -1
  40. data/generated/google/apis/appengine_v1beta/representations.rb +18 -0
  41. data/generated/google/apis/appsactivity_v1.rb +1 -1
  42. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  43. data/generated/google/apis/appsmarket_v2/service.rb +1 -1
  44. data/generated/google/apis/appstate_v1.rb +1 -1
  45. data/generated/google/apis/appstate_v1/service.rb +1 -1
  46. data/generated/google/apis/bigquery_v2.rb +1 -1
  47. data/generated/google/apis/bigquery_v2/classes.rb +70 -0
  48. data/generated/google/apis/bigquery_v2/representations.rb +35 -0
  49. data/generated/google/apis/bigquery_v2/service.rb +37 -1
  50. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  51. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +42 -37
  52. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +4 -3
  53. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +8 -8
  54. data/generated/google/apis/blogger_v2/service.rb +1 -1
  55. data/generated/google/apis/blogger_v3/service.rb +1 -1
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/calendar_v3/service.rb +1 -1
  58. data/generated/google/apis/civicinfo_v2/service.rb +1 -1
  59. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  60. data/generated/google/apis/cloudfunctions_v1/classes.rb +1 -1
  61. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  62. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +1 -1
  63. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  64. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1 -1
  65. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -1
  66. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1 -1
  67. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +1 -1
  68. data/generated/google/apis/consumersurveys_v2/service.rb +1 -1
  69. data/generated/google/apis/container_v1.rb +1 -1
  70. data/generated/google/apis/container_v1/classes.rb +1 -1
  71. data/generated/google/apis/container_v1beta1.rb +1 -1
  72. data/generated/google/apis/container_v1beta1/classes.rb +15 -1
  73. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  74. data/generated/google/apis/content_v2.rb +1 -1
  75. data/generated/google/apis/content_v2/service.rb +1 -1
  76. data/generated/google/apis/content_v2sandbox.rb +1 -1
  77. data/generated/google/apis/content_v2sandbox/service.rb +1 -1
  78. data/generated/google/apis/customsearch_v1/service.rb +1 -1
  79. data/generated/google/apis/datastore_v1.rb +1 -1
  80. data/generated/google/apis/datastore_v1/classes.rb +14 -13
  81. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  82. data/generated/google/apis/datastore_v1beta1/classes.rb +19 -18
  83. data/generated/google/apis/datastore_v1beta1/service.rb +2 -2
  84. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  85. data/generated/google/apis/datastore_v1beta3/classes.rb +13 -12
  86. data/generated/google/apis/deploymentmanager_alpha/service.rb +1 -1
  87. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -1
  88. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -1
  89. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -1
  90. data/generated/google/apis/discovery_v1/service.rb +1 -1
  91. data/generated/google/apis/dns_v1.rb +1 -1
  92. data/generated/google/apis/dns_v2beta1.rb +1 -1
  93. data/generated/google/apis/dns_v2beta1/service.rb +1 -1
  94. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +1 -1
  95. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  96. data/generated/google/apis/doubleclicksearch_v2/service.rb +1 -1
  97. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  98. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +224 -0
  99. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +63 -0
  100. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +30 -0
  101. data/generated/google/apis/fitness_v1.rb +1 -1
  102. data/generated/google/apis/fitness_v1/classes.rb +39 -0
  103. data/generated/google/apis/fitness_v1/representations.rb +18 -0
  104. data/generated/google/apis/fitness_v1/service.rb +49 -1
  105. data/generated/google/apis/fusiontables_v1/service.rb +1 -1
  106. data/generated/google/apis/fusiontables_v2/service.rb +1 -1
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -1
  109. data/generated/google/apis/games_management_v1management/service.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/games_v1/service.rb +1 -1
  112. data/generated/google/apis/gmail_v1.rb +1 -1
  113. data/generated/google/apis/gmail_v1/classes.rb +36 -0
  114. data/generated/google/apis/gmail_v1/representations.rb +16 -0
  115. data/generated/google/apis/gmail_v1/service.rb +1 -1
  116. data/generated/google/apis/groupsmigration_v1/service.rb +1 -1
  117. data/generated/google/apis/groupssettings_v1/service.rb +1 -1
  118. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  119. data/generated/google/apis/identitytoolkit_v3/classes.rb +24 -0
  120. data/generated/google/apis/identitytoolkit_v3/representations.rb +4 -0
  121. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -1
  122. data/generated/google/apis/language_v1beta2.rb +1 -1
  123. data/generated/google/apis/language_v1beta2/classes.rb +78 -0
  124. data/generated/google/apis/language_v1beta2/representations.rb +45 -0
  125. data/generated/google/apis/language_v1beta2/service.rb +30 -0
  126. data/generated/google/apis/licensing_v1/service.rb +1 -1
  127. data/generated/google/apis/logging_v2.rb +1 -1
  128. data/generated/google/apis/logging_v2/classes.rb +11 -18
  129. data/generated/google/apis/logging_v2/service.rb +116 -48
  130. data/generated/google/apis/logging_v2beta1.rb +1 -1
  131. data/generated/google/apis/logging_v2beta1/classes.rb +11 -18
  132. data/generated/google/apis/logging_v2beta1/service.rb +16 -8
  133. data/generated/google/apis/mirror_v1/service.rb +1 -1
  134. data/generated/google/apis/oauth2_v1.rb +1 -1
  135. data/generated/google/apis/oauth2_v1/service.rb +1 -1
  136. data/generated/google/apis/oauth2_v2.rb +1 -1
  137. data/generated/google/apis/pagespeedonline_v1/service.rb +1 -1
  138. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  139. data/generated/google/apis/playcustomapp_v1/service.rb +1 -1
  140. data/generated/google/apis/plus_domains_v1.rb +1 -1
  141. data/generated/google/apis/plus_domains_v1/service.rb +1 -1
  142. data/generated/google/apis/plus_v1.rb +1 -1
  143. data/generated/google/apis/plus_v1/service.rb +1 -1
  144. data/generated/google/apis/prediction_v1_2/service.rb +1 -1
  145. data/generated/google/apis/prediction_v1_3/service.rb +1 -1
  146. data/generated/google/apis/prediction_v1_4/service.rb +1 -1
  147. data/generated/google/apis/prediction_v1_5/service.rb +1 -1
  148. data/generated/google/apis/prediction_v1_6/service.rb +1 -1
  149. data/generated/google/apis/qpx_express_v1/service.rb +1 -1
  150. data/generated/google/apis/replicapool_v1beta1/service.rb +1 -1
  151. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -1
  152. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  153. data/generated/google/apis/reseller_v1/service.rb +1 -1
  154. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -1
  155. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  156. data/generated/google/apis/servicemanagement_v1/classes.rb +3 -256
  157. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -99
  158. data/generated/google/apis/serviceuser_v1.rb +1 -1
  159. data/generated/google/apis/serviceuser_v1/classes.rb +3 -3
  160. data/generated/google/apis/site_verification_v1/service.rb +1 -1
  161. data/generated/google/apis/spanner_v1.rb +1 -1
  162. data/generated/google/apis/spanner_v1/classes.rb +0 -458
  163. data/generated/google/apis/spanner_v1/representations.rb +0 -165
  164. data/generated/google/apis/spectrum_v1explorer/service.rb +1 -1
  165. data/generated/google/apis/sqladmin_v1beta3/service.rb +1 -1
  166. data/generated/google/apis/storage_v1.rb +1 -1
  167. data/generated/google/apis/storage_v1/classes.rb +6 -0
  168. data/generated/google/apis/storage_v1/representations.rb +1 -0
  169. data/generated/google/apis/storage_v1/service.rb +10 -3
  170. data/generated/google/apis/storage_v1beta1.rb +1 -1
  171. data/generated/google/apis/storage_v1beta1/service.rb +1 -1
  172. data/generated/google/apis/storage_v1beta2.rb +1 -1
  173. data/generated/google/apis/storage_v1beta2/service.rb +1 -1
  174. data/generated/google/apis/surveys_v2/service.rb +1 -1
  175. data/generated/google/apis/tagmanager_v1/service.rb +1 -1
  176. data/generated/google/apis/tagmanager_v2/service.rb +1 -1
  177. data/generated/google/apis/taskqueue_v1beta1/service.rb +1 -1
  178. data/generated/google/apis/tasks_v1/service.rb +1 -1
  179. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  180. data/generated/google/apis/toolresults_v1beta3/service.rb +5 -5
  181. data/generated/google/apis/toolresults_v1beta3firstparty.rb +1 -1
  182. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +5 -5
  183. data/generated/google/apis/urlshortener_v1/service.rb +1 -1
  184. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  185. data/generated/google/apis/videointelligence_v1beta1/classes.rb +379 -1
  186. data/generated/google/apis/videointelligence_v1beta1/representations.rb +175 -0
  187. data/generated/google/apis/webfonts_v1/service.rb +1 -1
  188. data/generated/google/apis/webmasters_v3.rb +1 -1
  189. data/generated/google/apis/webmasters_v3/service.rb +1 -1
  190. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  191. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
  192. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  193. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +1 -1
  194. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  195. data/generated/google/apis/youtube_partner_v1/service.rb +1 -1
  196. data/lib/google/apis/version.rb +1 -1
  197. metadata +2 -2
@@ -286,6 +286,11 @@ module Google
286
286
  class AnnotateTextResponse
287
287
  include Google::Apis::Core::Hashable
288
288
 
289
+ # Categories identified in the input document.
290
+ # Corresponds to the JSON property `categories`
291
+ # @return [Array<Google::Apis::LanguageV1beta2::ClassificationCategory>]
292
+ attr_accessor :categories
293
+
289
294
  # Represents the feeling associated with the entire text or entities in
290
295
  # the text.
291
296
  # Corresponds to the JSON property `documentSentiment`
@@ -325,6 +330,7 @@ module Google
325
330
 
326
331
  # Update properties of this object
327
332
  def update!(**args)
333
+ @categories = args[:categories] if args.key?(:categories)
328
334
  @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
329
335
  @entities = args[:entities] if args.key?(:entities)
330
336
  @language = args[:language] if args.key?(:language)
@@ -333,6 +339,71 @@ module Google
333
339
  end
334
340
  end
335
341
 
342
+ # Represents a category returned from the text classifier.
343
+ class ClassificationCategory
344
+ include Google::Apis::Core::Hashable
345
+
346
+ # The classifier's confidence of the category. Number represents how certain
347
+ # the classifier is that this category represents the given text.
348
+ # Corresponds to the JSON property `confidence`
349
+ # @return [Float]
350
+ attr_accessor :confidence
351
+
352
+ # The name of the category representing the document.
353
+ # Corresponds to the JSON property `name`
354
+ # @return [String]
355
+ attr_accessor :name
356
+
357
+ def initialize(**args)
358
+ update!(**args)
359
+ end
360
+
361
+ # Update properties of this object
362
+ def update!(**args)
363
+ @confidence = args[:confidence] if args.key?(:confidence)
364
+ @name = args[:name] if args.key?(:name)
365
+ end
366
+ end
367
+
368
+ # The document classification request message.
369
+ class ClassifyTextRequest
370
+ include Google::Apis::Core::Hashable
371
+
372
+ # ################################################################ #
373
+ # Represents the input to API methods.
374
+ # Corresponds to the JSON property `document`
375
+ # @return [Google::Apis::LanguageV1beta2::Document]
376
+ attr_accessor :document
377
+
378
+ def initialize(**args)
379
+ update!(**args)
380
+ end
381
+
382
+ # Update properties of this object
383
+ def update!(**args)
384
+ @document = args[:document] if args.key?(:document)
385
+ end
386
+ end
387
+
388
+ # The document classification response message.
389
+ class ClassifyTextResponse
390
+ include Google::Apis::Core::Hashable
391
+
392
+ # Categories representing the input document.
393
+ # Corresponds to the JSON property `categories`
394
+ # @return [Array<Google::Apis::LanguageV1beta2::ClassificationCategory>]
395
+ attr_accessor :categories
396
+
397
+ def initialize(**args)
398
+ update!(**args)
399
+ end
400
+
401
+ # Update properties of this object
402
+ def update!(**args)
403
+ @categories = args[:categories] if args.key?(:categories)
404
+ end
405
+ end
406
+
336
407
  # Represents dependency parse tree information for a token.
337
408
  class DependencyEdge
338
409
  include Google::Apis::Core::Hashable
@@ -508,6 +579,12 @@ module Google
508
579
  class Features
509
580
  include Google::Apis::Core::Hashable
510
581
 
582
+ # Classify the full document into categories.
583
+ # Corresponds to the JSON property `classifyText`
584
+ # @return [Boolean]
585
+ attr_accessor :classify_text
586
+ alias_method :classify_text?, :classify_text
587
+
511
588
  # Extract document-level sentiment.
512
589
  # Corresponds to the JSON property `extractDocumentSentiment`
513
590
  # @return [Boolean]
@@ -538,6 +615,7 @@ module Google
538
615
 
539
616
  # Update properties of this object
540
617
  def update!(**args)
618
+ @classify_text = args[:classify_text] if args.key?(:classify_text)
541
619
  @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
542
620
  @extract_entities = args[:extract_entities] if args.key?(:extract_entities)
543
621
  @extract_entity_sentiment = args[:extract_entity_sentiment] if args.key?(:extract_entity_sentiment)
@@ -82,6 +82,24 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class ClassificationCategory
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ClassifyTextRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ClassifyTextResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
85
103
  class DependencyEdge
86
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
105
 
@@ -238,6 +256,8 @@ module Google
238
256
  class AnnotateTextResponse
239
257
  # @private
240
258
  class Representation < Google::Apis::Core::JsonRepresentation
259
+ collection :categories, as: 'categories', class: Google::Apis::LanguageV1beta2::ClassificationCategory, decorator: Google::Apis::LanguageV1beta2::ClassificationCategory::Representation
260
+
241
261
  property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta2::Sentiment, decorator: Google::Apis::LanguageV1beta2::Sentiment::Representation
242
262
 
243
263
  collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta2::Entity, decorator: Google::Apis::LanguageV1beta2::Entity::Representation
@@ -250,6 +270,30 @@ module Google
250
270
  end
251
271
  end
252
272
 
273
+ class ClassificationCategory
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :confidence, as: 'confidence'
277
+ property :name, as: 'name'
278
+ end
279
+ end
280
+
281
+ class ClassifyTextRequest
282
+ # @private
283
+ class Representation < Google::Apis::Core::JsonRepresentation
284
+ property :document, as: 'document', class: Google::Apis::LanguageV1beta2::Document, decorator: Google::Apis::LanguageV1beta2::Document::Representation
285
+
286
+ end
287
+ end
288
+
289
+ class ClassifyTextResponse
290
+ # @private
291
+ class Representation < Google::Apis::Core::JsonRepresentation
292
+ collection :categories, as: 'categories', class: Google::Apis::LanguageV1beta2::ClassificationCategory, decorator: Google::Apis::LanguageV1beta2::ClassificationCategory::Representation
293
+
294
+ end
295
+ end
296
+
253
297
  class DependencyEdge
254
298
  # @private
255
299
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -296,6 +340,7 @@ module Google
296
340
  class Features
297
341
  # @private
298
342
  class Representation < Google::Apis::Core::JsonRepresentation
343
+ property :classify_text, as: 'classifyText'
299
344
  property :extract_document_sentiment, as: 'extractDocumentSentiment'
300
345
  property :extract_entities, as: 'extractEntities'
301
346
  property :extract_entity_sentiment, as: 'extractEntitySentiment'
@@ -204,6 +204,36 @@ module Google
204
204
  command.query['quotaUser'] = quota_user unless quota_user.nil?
205
205
  execute_or_queue_command(command, &block)
206
206
  end
207
+
208
+ # Classifies a document into categories.
209
+ # @param [Google::Apis::LanguageV1beta2::ClassifyTextRequest] classify_text_request_object
210
+ # @param [String] fields
211
+ # Selector specifying which fields to include in a partial response.
212
+ # @param [String] quota_user
213
+ # Available to use for quota purposes for server-side applications. Can be any
214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
215
+ # @param [Google::Apis::RequestOptions] options
216
+ # Request-specific options
217
+ #
218
+ # @yield [result, err] Result & error if block supplied
219
+ # @yieldparam result [Google::Apis::LanguageV1beta2::ClassifyTextResponse] parsed result object
220
+ # @yieldparam err [StandardError] error object if request failed
221
+ #
222
+ # @return [Google::Apis::LanguageV1beta2::ClassifyTextResponse]
223
+ #
224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
227
+ def classify_document_text(classify_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
228
+ command = make_simple_command(:post, 'v1beta2/documents:classifyText', options)
229
+ command.request_representation = Google::Apis::LanguageV1beta2::ClassifyTextRequest::Representation
230
+ command.request_object = classify_text_request_object
231
+ command.response_representation = Google::Apis::LanguageV1beta2::ClassifyTextResponse::Representation
232
+ command.response_class = Google::Apis::LanguageV1beta2::ClassifyTextResponse
233
+ command.query['fields'] = fields unless fields.nil?
234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
235
+ execute_or_queue_command(command, &block)
236
+ end
207
237
 
208
238
  protected
209
239
 
@@ -50,7 +50,7 @@ module Google
50
50
 
51
51
  def initialize
52
52
  super('https://www.googleapis.com/', 'apps/licensing/v1/product/')
53
- @batch_path = 'batch'
53
+ @batch_path = 'batch/licensing/v1'
54
54
  end
55
55
 
56
56
  # Revoke License.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/logging/docs/
26
26
  module LoggingV2
27
27
  VERSION = 'V2'
28
- REVISION = '20170828'
28
+ REVISION = '20170905'
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'
@@ -1028,18 +1028,14 @@ module Google
1028
1028
  # @return [String]
1029
1029
  attr_accessor :destination
1030
1030
 
1031
- # Optional. The time at which this sink will stop exporting log entries. Log
1032
- # entries are exported only if their timestamp is earlier than the end time. If
1033
- # this field is not supplied, there is no end time. If both a start time and an
1034
- # end time are provided, then the end time must be later than the start time.
1031
+ # Deprecated. This field is ignored when creating or updating sinks.
1035
1032
  # Corresponds to the JSON property `endTime`
1036
1033
  # @return [String]
1037
1034
  attr_accessor :end_time
1038
1035
 
1039
1036
  # Optional. An advanced logs filter. The only exported log entries are those
1040
- # that are in the resource owning the sink and that match the filter. The filter
1041
- # must use the log entry format specified by the output_version_format parameter.
1042
- # For example, in the v2 format:
1037
+ # that are in the resource owning the sink and that match the filter. For
1038
+ # example:
1043
1039
  # logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
1044
1040
  # Corresponds to the JSON property `filter`
1045
1041
  # @return [String]
@@ -1076,10 +1072,7 @@ module Google
1076
1072
  # @return [String]
1077
1073
  attr_accessor :output_version_format
1078
1074
 
1079
- # Optional. The time at which this sink will begin exporting log entries. Log
1080
- # entries are exported only if their timestamp is not earlier than the start
1081
- # time. The default value of this field is the time the sink is created or
1082
- # updated.
1075
+ # Deprecated. This field is ignored when creating or updating sinks.
1083
1076
  # Corresponds to the JSON property `startTime`
1084
1077
  # @return [String]
1085
1078
  attr_accessor :start_time
@@ -1639,13 +1632,13 @@ module Google
1639
1632
  # missing in log entries, then this method supplies the current time or a unique
1640
1633
  # identifier, respectively. The supplied values are chosen so that, among the
1641
1634
  # log entries that did not supply their own values, the entries earlier in the
1642
- # list will sort before the entries later in the list. See entries.list.Log
1643
- # entries with timestamps that are more than the logs retention period in the
1644
- # past or more than 24 hours in the future might be discarded. Discarding does
1645
- # not return an error.To improve throughput and to avoid exceeding the quota
1646
- # limit for calls to entries.write, you should try to include several log
1647
- # entries in this list, rather than calling this method for each individual log
1648
- # entry.
1635
+ # list will sort before the entries later in the list. See the entries.list
1636
+ # method.Log entries with timestamps that are more than the logs retention
1637
+ # period in the past or more than 24 hours in the future might be discarded.
1638
+ # Discarding does not return an error.To improve throughput and to avoid
1639
+ # exceeding the quota limit for calls to entries.write, you should try to
1640
+ # include several log entries in this list, rather than calling this method for
1641
+ # each individual log entry.
1649
1642
  # Corresponds to the JSON property `entries`
1650
1643
  # @return [Array<Google::Apis::LoggingV2::LogEntry>]
1651
1644
  attr_accessor :entries
@@ -334,10 +334,9 @@ module Google
334
334
  end
335
335
 
336
336
  # Creates a sink that exports specified log entries to a destination. The export
337
- # of newly-ingested log entries begins immediately, unless the current time is
338
- # outside the sink's start and end times or the sink's writer_identity is not
339
- # permitted to write to the destination. A sink can export log entries only from
340
- # the resource owning the sink.
337
+ # of newly-ingested log entries begins immediately, unless the sink's
338
+ # writer_identity is not permitted to write to the destination. A sink can
339
+ # export log entries only from the resource owning the sink.
341
340
  # @param [String] parent
342
341
  # Required. The resource in which to create the sink:
343
342
  # "projects/[PROJECT_ID]"
@@ -504,9 +503,8 @@ module Google
504
503
  end
505
504
 
506
505
  # Updates a sink. This method replaces the following fields in the existing sink
507
- # with values from the new sink: destination, filter, output_version_format,
508
- # start_time, and end_time. The updated sink might also have a new
509
- # writer_identity; see the unique_writer_identity field.
506
+ # with values from the new sink: destination, and filter. The updated sink might
507
+ # also have a new writer_identity; see the unique_writer_identity field.
510
508
  # @param [String] sink_name
511
509
  # Required. The full resource name of the sink to update, including the parent
512
510
  # resource and the sink identifier:
@@ -526,6 +524,15 @@ module Google
526
524
  # changed to a unique service account.
527
525
  # It is an error if the old value is true and the new value is set to false or
528
526
  # defaulted to false.
527
+ # @param [String] update_mask
528
+ # Optional. Field mask that specifies the fields in sink that need an update. A
529
+ # sink field will be overwritten if, and only if, it is in the update mask. name
530
+ # and output only fields cannot be updated.An empty updateMask is temporarily
531
+ # treated as using the following mask for backwards compatibility purposes:
532
+ # destination,filter,includeChildren At some point in the future, behavior will
533
+ # be removed and specifying an empty updateMask will be an error.For a detailed
534
+ # FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
535
+ # reference/google.protobuf#fieldmaskExample: updateMask=filter.
529
536
  # @param [String] fields
530
537
  # Selector specifying which fields to include in a partial response.
531
538
  # @param [String] quota_user
@@ -543,7 +550,7 @@ module Google
543
550
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
544
551
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
545
552
  # @raise [Google::Apis::AuthorizationError] Authorization is required
546
- def patch_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
553
+ def patch_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
547
554
  command = make_simple_command(:patch, 'v2/{+sinkName}', options)
548
555
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
549
556
  command.request_object = log_sink_object
@@ -551,15 +558,15 @@ module Google
551
558
  command.response_class = Google::Apis::LoggingV2::LogSink
552
559
  command.params['sinkName'] = sink_name unless sink_name.nil?
553
560
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
561
+ command.query['updateMask'] = update_mask unless update_mask.nil?
554
562
  command.query['fields'] = fields unless fields.nil?
555
563
  command.query['quotaUser'] = quota_user unless quota_user.nil?
556
564
  execute_or_queue_command(command, &block)
557
565
  end
558
566
 
559
567
  # Updates a sink. This method replaces the following fields in the existing sink
560
- # with values from the new sink: destination, filter, output_version_format,
561
- # start_time, and end_time. The updated sink might also have a new
562
- # writer_identity; see the unique_writer_identity field.
568
+ # with values from the new sink: destination, and filter. The updated sink might
569
+ # also have a new writer_identity; see the unique_writer_identity field.
563
570
  # @param [String] sink_name
564
571
  # Required. The full resource name of the sink to update, including the parent
565
572
  # resource and the sink identifier:
@@ -579,6 +586,15 @@ module Google
579
586
  # changed to a unique service account.
580
587
  # It is an error if the old value is true and the new value is set to false or
581
588
  # defaulted to false.
589
+ # @param [String] update_mask
590
+ # Optional. Field mask that specifies the fields in sink that need an update. A
591
+ # sink field will be overwritten if, and only if, it is in the update mask. name
592
+ # and output only fields cannot be updated.An empty updateMask is temporarily
593
+ # treated as using the following mask for backwards compatibility purposes:
594
+ # destination,filter,includeChildren At some point in the future, behavior will
595
+ # be removed and specifying an empty updateMask will be an error.For a detailed
596
+ # FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
597
+ # reference/google.protobuf#fieldmaskExample: updateMask=filter.
582
598
  # @param [String] fields
583
599
  # Selector specifying which fields to include in a partial response.
584
600
  # @param [String] quota_user
@@ -596,7 +612,7 @@ module Google
596
612
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
597
613
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
598
614
  # @raise [Google::Apis::AuthorizationError] Authorization is required
599
- def update_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
615
+ def update_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
600
616
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
601
617
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
602
618
  command.request_object = log_sink_object
@@ -604,6 +620,7 @@ module Google
604
620
  command.response_class = Google::Apis::LoggingV2::LogSink
605
621
  command.params['sinkName'] = sink_name unless sink_name.nil?
606
622
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
623
+ command.query['updateMask'] = update_mask unless update_mask.nil?
607
624
  command.query['fields'] = fields unless fields.nil?
608
625
  command.query['quotaUser'] = quota_user unless quota_user.nil?
609
626
  execute_or_queue_command(command, &block)
@@ -960,10 +977,9 @@ module Google
960
977
  end
961
978
 
962
979
  # Creates a sink that exports specified log entries to a destination. The export
963
- # of newly-ingested log entries begins immediately, unless the current time is
964
- # outside the sink's start and end times or the sink's writer_identity is not
965
- # permitted to write to the destination. A sink can export log entries only from
966
- # the resource owning the sink.
980
+ # of newly-ingested log entries begins immediately, unless the sink's
981
+ # writer_identity is not permitted to write to the destination. A sink can
982
+ # export log entries only from the resource owning the sink.
967
983
  # @param [String] parent
968
984
  # Required. The resource in which to create the sink:
969
985
  # "projects/[PROJECT_ID]"
@@ -1130,9 +1146,8 @@ module Google
1130
1146
  end
1131
1147
 
1132
1148
  # Updates a sink. This method replaces the following fields in the existing sink
1133
- # with values from the new sink: destination, filter, output_version_format,
1134
- # start_time, and end_time. The updated sink might also have a new
1135
- # writer_identity; see the unique_writer_identity field.
1149
+ # with values from the new sink: destination, and filter. The updated sink might
1150
+ # also have a new writer_identity; see the unique_writer_identity field.
1136
1151
  # @param [String] sink_name
1137
1152
  # Required. The full resource name of the sink to update, including the parent
1138
1153
  # resource and the sink identifier:
@@ -1152,6 +1167,15 @@ module Google
1152
1167
  # changed to a unique service account.
1153
1168
  # It is an error if the old value is true and the new value is set to false or
1154
1169
  # defaulted to false.
1170
+ # @param [String] update_mask
1171
+ # Optional. Field mask that specifies the fields in sink that need an update. A
1172
+ # sink field will be overwritten if, and only if, it is in the update mask. name
1173
+ # and output only fields cannot be updated.An empty updateMask is temporarily
1174
+ # treated as using the following mask for backwards compatibility purposes:
1175
+ # destination,filter,includeChildren At some point in the future, behavior will
1176
+ # be removed and specifying an empty updateMask will be an error.For a detailed
1177
+ # FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
1178
+ # reference/google.protobuf#fieldmaskExample: updateMask=filter.
1155
1179
  # @param [String] fields
1156
1180
  # Selector specifying which fields to include in a partial response.
1157
1181
  # @param [String] quota_user
@@ -1169,7 +1193,7 @@ module Google
1169
1193
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1170
1194
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1171
1195
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1172
- def patch_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
1196
+ def patch_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1173
1197
  command = make_simple_command(:patch, 'v2/{+sinkName}', options)
1174
1198
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1175
1199
  command.request_object = log_sink_object
@@ -1177,15 +1201,15 @@ module Google
1177
1201
  command.response_class = Google::Apis::LoggingV2::LogSink
1178
1202
  command.params['sinkName'] = sink_name unless sink_name.nil?
1179
1203
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1204
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1180
1205
  command.query['fields'] = fields unless fields.nil?
1181
1206
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1182
1207
  execute_or_queue_command(command, &block)
1183
1208
  end
1184
1209
 
1185
1210
  # Updates a sink. This method replaces the following fields in the existing sink
1186
- # with values from the new sink: destination, filter, output_version_format,
1187
- # start_time, and end_time. The updated sink might also have a new
1188
- # writer_identity; see the unique_writer_identity field.
1211
+ # with values from the new sink: destination, and filter. The updated sink might
1212
+ # also have a new writer_identity; see the unique_writer_identity field.
1189
1213
  # @param [String] sink_name
1190
1214
  # Required. The full resource name of the sink to update, including the parent
1191
1215
  # resource and the sink identifier:
@@ -1205,6 +1229,15 @@ module Google
1205
1229
  # changed to a unique service account.
1206
1230
  # It is an error if the old value is true and the new value is set to false or
1207
1231
  # defaulted to false.
1232
+ # @param [String] update_mask
1233
+ # Optional. Field mask that specifies the fields in sink that need an update. A
1234
+ # sink field will be overwritten if, and only if, it is in the update mask. name
1235
+ # and output only fields cannot be updated.An empty updateMask is temporarily
1236
+ # treated as using the following mask for backwards compatibility purposes:
1237
+ # destination,filter,includeChildren At some point in the future, behavior will
1238
+ # be removed and specifying an empty updateMask will be an error.For a detailed
1239
+ # FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
1240
+ # reference/google.protobuf#fieldmaskExample: updateMask=filter.
1208
1241
  # @param [String] fields
1209
1242
  # Selector specifying which fields to include in a partial response.
1210
1243
  # @param [String] quota_user
@@ -1222,7 +1255,7 @@ module Google
1222
1255
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1223
1256
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1224
1257
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1225
- def update_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
1258
+ def update_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1226
1259
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
1227
1260
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1228
1261
  command.request_object = log_sink_object
@@ -1230,6 +1263,7 @@ module Google
1230
1263
  command.response_class = Google::Apis::LoggingV2::LogSink
1231
1264
  command.params['sinkName'] = sink_name unless sink_name.nil?
1232
1265
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1266
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1233
1267
  command.query['fields'] = fields unless fields.nil?
1234
1268
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1235
1269
  execute_or_queue_command(command, &block)
@@ -1560,10 +1594,9 @@ module Google
1560
1594
  end
1561
1595
 
1562
1596
  # Creates a sink that exports specified log entries to a destination. The export
1563
- # of newly-ingested log entries begins immediately, unless the current time is
1564
- # outside the sink's start and end times or the sink's writer_identity is not
1565
- # permitted to write to the destination. A sink can export log entries only from
1566
- # the resource owning the sink.
1597
+ # of newly-ingested log entries begins immediately, unless the sink's
1598
+ # writer_identity is not permitted to write to the destination. A sink can
1599
+ # export log entries only from the resource owning the sink.
1567
1600
  # @param [String] parent
1568
1601
  # Required. The resource in which to create the sink:
1569
1602
  # "projects/[PROJECT_ID]"
@@ -1730,9 +1763,8 @@ module Google
1730
1763
  end
1731
1764
 
1732
1765
  # Updates a sink. This method replaces the following fields in the existing sink
1733
- # with values from the new sink: destination, filter, output_version_format,
1734
- # start_time, and end_time. The updated sink might also have a new
1735
- # writer_identity; see the unique_writer_identity field.
1766
+ # with values from the new sink: destination, and filter. The updated sink might
1767
+ # also have a new writer_identity; see the unique_writer_identity field.
1736
1768
  # @param [String] sink_name
1737
1769
  # Required. The full resource name of the sink to update, including the parent
1738
1770
  # resource and the sink identifier:
@@ -1752,6 +1784,15 @@ module Google
1752
1784
  # changed to a unique service account.
1753
1785
  # It is an error if the old value is true and the new value is set to false or
1754
1786
  # defaulted to false.
1787
+ # @param [String] update_mask
1788
+ # Optional. Field mask that specifies the fields in sink that need an update. A
1789
+ # sink field will be overwritten if, and only if, it is in the update mask. name
1790
+ # and output only fields cannot be updated.An empty updateMask is temporarily
1791
+ # treated as using the following mask for backwards compatibility purposes:
1792
+ # destination,filter,includeChildren At some point in the future, behavior will
1793
+ # be removed and specifying an empty updateMask will be an error.For a detailed
1794
+ # FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
1795
+ # reference/google.protobuf#fieldmaskExample: updateMask=filter.
1755
1796
  # @param [String] fields
1756
1797
  # Selector specifying which fields to include in a partial response.
1757
1798
  # @param [String] quota_user
@@ -1769,7 +1810,7 @@ module Google
1769
1810
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1770
1811
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1771
1812
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1772
- def patch_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
1813
+ def patch_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1773
1814
  command = make_simple_command(:patch, 'v2/{+sinkName}', options)
1774
1815
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1775
1816
  command.request_object = log_sink_object
@@ -1777,15 +1818,15 @@ module Google
1777
1818
  command.response_class = Google::Apis::LoggingV2::LogSink
1778
1819
  command.params['sinkName'] = sink_name unless sink_name.nil?
1779
1820
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1821
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1780
1822
  command.query['fields'] = fields unless fields.nil?
1781
1823
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1782
1824
  execute_or_queue_command(command, &block)
1783
1825
  end
1784
1826
 
1785
1827
  # Updates a sink. This method replaces the following fields in the existing sink
1786
- # with values from the new sink: destination, filter, output_version_format,
1787
- # start_time, and end_time. The updated sink might also have a new
1788
- # writer_identity; see the unique_writer_identity field.
1828
+ # with values from the new sink: destination, and filter. The updated sink might
1829
+ # also have a new writer_identity; see the unique_writer_identity field.
1789
1830
  # @param [String] sink_name
1790
1831
  # Required. The full resource name of the sink to update, including the parent
1791
1832
  # resource and the sink identifier:
@@ -1805,6 +1846,15 @@ module Google
1805
1846
  # changed to a unique service account.
1806
1847
  # It is an error if the old value is true and the new value is set to false or
1807
1848
  # defaulted to false.
1849
+ # @param [String] update_mask
1850
+ # Optional. Field mask that specifies the fields in sink that need an update. A
1851
+ # sink field will be overwritten if, and only if, it is in the update mask. name
1852
+ # and output only fields cannot be updated.An empty updateMask is temporarily
1853
+ # treated as using the following mask for backwards compatibility purposes:
1854
+ # destination,filter,includeChildren At some point in the future, behavior will
1855
+ # be removed and specifying an empty updateMask will be an error.For a detailed
1856
+ # FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
1857
+ # reference/google.protobuf#fieldmaskExample: updateMask=filter.
1808
1858
  # @param [String] fields
1809
1859
  # Selector specifying which fields to include in a partial response.
1810
1860
  # @param [String] quota_user
@@ -1822,7 +1872,7 @@ module Google
1822
1872
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1823
1873
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1824
1874
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1825
- def update_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
1875
+ def update_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1826
1876
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
1827
1877
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1828
1878
  command.request_object = log_sink_object
@@ -1830,6 +1880,7 @@ module Google
1830
1880
  command.response_class = Google::Apis::LoggingV2::LogSink
1831
1881
  command.params['sinkName'] = sink_name unless sink_name.nil?
1832
1882
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1883
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1833
1884
  command.query['fields'] = fields unless fields.nil?
1834
1885
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1835
1886
  execute_or_queue_command(command, &block)
@@ -2298,10 +2349,9 @@ module Google
2298
2349
  end
2299
2350
 
2300
2351
  # Creates a sink that exports specified log entries to a destination. The export
2301
- # of newly-ingested log entries begins immediately, unless the current time is
2302
- # outside the sink's start and end times or the sink's writer_identity is not
2303
- # permitted to write to the destination. A sink can export log entries only from
2304
- # the resource owning the sink.
2352
+ # of newly-ingested log entries begins immediately, unless the sink's
2353
+ # writer_identity is not permitted to write to the destination. A sink can
2354
+ # export log entries only from the resource owning the sink.
2305
2355
  # @param [String] parent
2306
2356
  # Required. The resource in which to create the sink:
2307
2357
  # "projects/[PROJECT_ID]"
@@ -2468,9 +2518,8 @@ module Google
2468
2518
  end
2469
2519
 
2470
2520
  # Updates a sink. This method replaces the following fields in the existing sink
2471
- # with values from the new sink: destination, filter, output_version_format,
2472
- # start_time, and end_time. The updated sink might also have a new
2473
- # writer_identity; see the unique_writer_identity field.
2521
+ # with values from the new sink: destination, and filter. The updated sink might
2522
+ # also have a new writer_identity; see the unique_writer_identity field.
2474
2523
  # @param [String] sink_name
2475
2524
  # Required. The full resource name of the sink to update, including the parent
2476
2525
  # resource and the sink identifier:
@@ -2490,6 +2539,15 @@ module Google
2490
2539
  # changed to a unique service account.
2491
2540
  # It is an error if the old value is true and the new value is set to false or
2492
2541
  # defaulted to false.
2542
+ # @param [String] update_mask
2543
+ # Optional. Field mask that specifies the fields in sink that need an update. A
2544
+ # sink field will be overwritten if, and only if, it is in the update mask. name
2545
+ # and output only fields cannot be updated.An empty updateMask is temporarily
2546
+ # treated as using the following mask for backwards compatibility purposes:
2547
+ # destination,filter,includeChildren At some point in the future, behavior will
2548
+ # be removed and specifying an empty updateMask will be an error.For a detailed
2549
+ # FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
2550
+ # reference/google.protobuf#fieldmaskExample: updateMask=filter.
2493
2551
  # @param [String] fields
2494
2552
  # Selector specifying which fields to include in a partial response.
2495
2553
  # @param [String] quota_user
@@ -2507,7 +2565,7 @@ module Google
2507
2565
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2508
2566
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2509
2567
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2510
- def patch_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
2568
+ def patch_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2511
2569
  command = make_simple_command(:patch, 'v2/{+sinkName}', options)
2512
2570
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
2513
2571
  command.request_object = log_sink_object
@@ -2515,15 +2573,15 @@ module Google
2515
2573
  command.response_class = Google::Apis::LoggingV2::LogSink
2516
2574
  command.params['sinkName'] = sink_name unless sink_name.nil?
2517
2575
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
2576
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2518
2577
  command.query['fields'] = fields unless fields.nil?
2519
2578
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2520
2579
  execute_or_queue_command(command, &block)
2521
2580
  end
2522
2581
 
2523
2582
  # Updates a sink. This method replaces the following fields in the existing sink
2524
- # with values from the new sink: destination, filter, output_version_format,
2525
- # start_time, and end_time. The updated sink might also have a new
2526
- # writer_identity; see the unique_writer_identity field.
2583
+ # with values from the new sink: destination, and filter. The updated sink might
2584
+ # also have a new writer_identity; see the unique_writer_identity field.
2527
2585
  # @param [String] sink_name
2528
2586
  # Required. The full resource name of the sink to update, including the parent
2529
2587
  # resource and the sink identifier:
@@ -2543,6 +2601,15 @@ module Google
2543
2601
  # changed to a unique service account.
2544
2602
  # It is an error if the old value is true and the new value is set to false or
2545
2603
  # defaulted to false.
2604
+ # @param [String] update_mask
2605
+ # Optional. Field mask that specifies the fields in sink that need an update. A
2606
+ # sink field will be overwritten if, and only if, it is in the update mask. name
2607
+ # and output only fields cannot be updated.An empty updateMask is temporarily
2608
+ # treated as using the following mask for backwards compatibility purposes:
2609
+ # destination,filter,includeChildren At some point in the future, behavior will
2610
+ # be removed and specifying an empty updateMask will be an error.For a detailed
2611
+ # FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
2612
+ # reference/google.protobuf#fieldmaskExample: updateMask=filter.
2546
2613
  # @param [String] fields
2547
2614
  # Selector specifying which fields to include in a partial response.
2548
2615
  # @param [String] quota_user
@@ -2560,7 +2627,7 @@ module Google
2560
2627
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2561
2628
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2562
2629
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2563
- def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
2630
+ def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2564
2631
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
2565
2632
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
2566
2633
  command.request_object = log_sink_object
@@ -2568,6 +2635,7 @@ module Google
2568
2635
  command.response_class = Google::Apis::LoggingV2::LogSink
2569
2636
  command.params['sinkName'] = sink_name unless sink_name.nil?
2570
2637
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
2638
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2571
2639
  command.query['fields'] = fields unless fields.nil?
2572
2640
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2573
2641
  execute_or_queue_command(command, &block)