google-api-client 0.37.2 → 0.37.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +74 -0
  3. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1/classes.rb +11 -1
  5. data/generated/google/apis/accesscontextmanager_v1/representations.rb +1 -0
  6. data/generated/google/apis/accesscontextmanager_v1/service.rb +6 -5
  7. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  8. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +2 -1
  9. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
  10. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  11. data/generated/google/apis/alertcenter_v1beta1/classes.rb +7 -71
  12. data/generated/google/apis/alertcenter_v1beta1/representations.rb +0 -31
  13. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  14. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  15. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  16. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +111 -9
  17. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +56 -0
  18. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +151 -0
  19. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  20. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +2 -2
  21. data/generated/google/apis/billingbudgets_v1beta1/service.rb +11 -0
  22. data/generated/google/apis/chat_v1.rb +1 -1
  23. data/generated/google/apis/chat_v1/classes.rb +4 -2
  24. data/generated/google/apis/classroom_v1.rb +1 -1
  25. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  26. data/generated/google/apis/cloudbuild_v1/classes.rb +23 -0
  27. data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
  28. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  29. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
  30. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  31. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -5
  32. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
  34. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  35. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  36. data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
  37. data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
  38. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +1 -1
  39. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  40. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +2 -2
  41. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  42. data/generated/google/apis/cloudtasks_v2/classes.rb +30 -0
  43. data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
  44. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  45. data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
  46. data/generated/google/apis/cloudtrace_v2.rb +4 -4
  47. data/generated/google/apis/cloudtrace_v2/service.rb +3 -3
  48. data/generated/google/apis/cloudtrace_v2beta1.rb +4 -4
  49. data/generated/google/apis/cloudtrace_v2beta1/service.rb +3 -3
  50. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  51. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +2 -2
  52. data/generated/google/apis/container_v1.rb +1 -1
  53. data/generated/google/apis/container_v1/classes.rb +224 -66
  54. data/generated/google/apis/container_v1/representations.rb +70 -0
  55. data/generated/google/apis/container_v1/service.rb +116 -116
  56. data/generated/google/apis/container_v1beta1/classes.rb +18 -4
  57. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  58. data/generated/google/apis/content_v2.rb +1 -1
  59. data/generated/google/apis/content_v2/classes.rb +18 -2
  60. data/generated/google/apis/content_v2/service.rb +3 -1
  61. data/generated/google/apis/content_v2_1.rb +1 -1
  62. data/generated/google/apis/content_v2_1/classes.rb +51 -0
  63. data/generated/google/apis/content_v2_1/representations.rb +15 -0
  64. data/generated/google/apis/content_v2_1/service.rb +73 -1
  65. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  66. data/generated/google/apis/datacatalog_v1beta1/classes.rb +27 -0
  67. data/generated/google/apis/datacatalog_v1beta1/representations.rb +15 -0
  68. data/generated/google/apis/datacatalog_v1beta1/service.rb +43 -0
  69. data/generated/google/apis/dataproc_v1.rb +1 -1
  70. data/generated/google/apis/dataproc_v1/classes.rb +15 -0
  71. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  72. data/generated/google/apis/dialogflow_v2.rb +1 -1
  73. data/generated/google/apis/dialogflow_v2/classes.rb +11 -3
  74. data/generated/google/apis/dialogflow_v2/service.rb +555 -16
  75. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  76. data/generated/google/apis/dialogflow_v2beta1/classes.rb +11 -3
  77. data/generated/google/apis/dialogflow_v2beta1/service.rb +26 -42
  78. data/generated/google/apis/displayvideo_v1.rb +1 -1
  79. data/generated/google/apis/dlp_v2.rb +1 -1
  80. data/generated/google/apis/dlp_v2/classes.rb +417 -2
  81. data/generated/google/apis/dlp_v2/representations.rb +175 -0
  82. data/generated/google/apis/dlp_v2/service.rb +116 -0
  83. data/generated/google/apis/file_v1.rb +1 -1
  84. data/generated/google/apis/file_v1/classes.rb +1 -145
  85. data/generated/google/apis/file_v1/representations.rb +0 -34
  86. data/generated/google/apis/file_v1beta1.rb +1 -1
  87. data/generated/google/apis/file_v1beta1/classes.rb +1 -145
  88. data/generated/google/apis/file_v1beta1/representations.rb +0 -34
  89. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  90. data/generated/google/apis/firebase_v1beta1/service.rb +3 -3
  91. data/generated/google/apis/firebaserules_v1.rb +1 -1
  92. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  93. data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -0
  94. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  95. data/generated/google/apis/iap_v1beta1.rb +1 -1
  96. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  97. data/generated/google/apis/logging_v2.rb +6 -7
  98. data/generated/google/apis/logging_v2/service.rb +5 -6
  99. data/generated/google/apis/manufacturers_v1.rb +1 -1
  100. data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
  101. data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
  102. data/generated/google/apis/ml_v1.rb +1 -1
  103. data/generated/google/apis/ml_v1/classes.rb +966 -21
  104. data/generated/google/apis/ml_v1/representations.rb +477 -0
  105. data/generated/google/apis/ml_v1/service.rb +491 -0
  106. data/generated/google/apis/{toolresults_v1.rb → networkmanagement_v1beta1.rb} +13 -9
  107. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1856 -0
  108. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
  109. data/generated/google/apis/networkmanagement_v1beta1/service.rb +664 -0
  110. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  111. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  112. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  113. data/generated/google/apis/recommender_v1beta1/classes.rb +214 -0
  114. data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
  115. data/generated/google/apis/recommender_v1beta1/service.rb +123 -0
  116. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  117. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  118. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  119. data/generated/google/apis/run_v1.rb +1 -1
  120. data/generated/google/apis/run_v1/classes.rb +84 -0
  121. data/generated/google/apis/run_v1/representations.rb +44 -0
  122. data/generated/google/apis/run_v1/service.rb +138 -0
  123. data/generated/google/apis/run_v1alpha1.rb +1 -1
  124. data/generated/google/apis/securitycenter_v1.rb +1 -1
  125. data/generated/google/apis/securitycenter_v1/classes.rb +154 -6
  126. data/generated/google/apis/securitycenter_v1/representations.rb +61 -0
  127. data/generated/google/apis/securitycenter_v1/service.rb +194 -6
  128. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  129. data/generated/google/apis/securitycenter_v1beta1/classes.rb +171 -0
  130. data/generated/google/apis/securitycenter_v1beta1/representations.rb +52 -0
  131. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  132. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +171 -0
  133. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +52 -0
  134. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  135. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +183 -6
  136. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +52 -0
  137. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -6
  138. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  139. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -7
  140. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  141. data/generated/google/apis/servicemanagement_v1/classes.rb +58 -1
  142. data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
  143. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  144. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  145. data/generated/google/apis/serviceusage_v1.rb +1 -1
  146. data/generated/google/apis/serviceusage_v1/classes.rb +8 -7
  147. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  148. data/generated/google/apis/serviceusage_v1beta1/classes.rb +280 -7
  149. data/generated/google/apis/serviceusage_v1beta1/representations.rb +117 -0
  150. data/generated/google/apis/serviceusage_v1beta1/service.rb +515 -0
  151. data/generated/google/apis/sheets_v4.rb +1 -1
  152. data/generated/google/apis/testing_v1.rb +1 -1
  153. data/generated/google/apis/testing_v1/classes.rb +7 -1
  154. data/generated/google/apis/testing_v1/representations.rb +1 -0
  155. data/generated/google/apis/tpu_v1.rb +1 -1
  156. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  157. data/generated/google/apis/translate_v3.rb +1 -1
  158. data/generated/google/apis/translate_v3/classes.rb +6 -3
  159. data/generated/google/apis/videointelligence_v1.rb +1 -1
  160. data/generated/google/apis/videointelligence_v1/classes.rb +13 -13
  161. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  162. data/generated/google/apis/videointelligence_v1beta2/classes.rb +13 -13
  163. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  164. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +13 -13
  165. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  166. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +13 -13
  167. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  168. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +13 -13
  169. data/generated/google/apis/vision_v1.rb +1 -1
  170. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  171. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  172. data/lib/google/apis/core/api_command.rb +4 -0
  173. data/lib/google/apis/version.rb +1 -1
  174. metadata +7 -7
  175. data/generated/google/apis/toolresults_v1/classes.rb +0 -696
  176. data/generated/google/apis/toolresults_v1/representations.rb +0 -438
  177. data/generated/google/apis/toolresults_v1/service.rb +0 -59
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class GoogleCloudSecuritycenterV1NotificationMessage
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -202,6 +208,12 @@ module Google
202
208
  include Google::Apis::Core::JsonObjectSupport
203
209
  end
204
210
 
211
+ class ListNotificationConfigsResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class ListOperationsResponse
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
@@ -214,6 +226,12 @@ module Google
214
226
  include Google::Apis::Core::JsonObjectSupport
215
227
  end
216
228
 
229
+ class NotificationConfig
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
217
235
  class Operation
218
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
237
 
@@ -280,6 +298,12 @@ module Google
280
298
  include Google::Apis::Core::JsonObjectSupport
281
299
  end
282
300
 
301
+ class StreamingConfig
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
283
307
  class TestIamPermissionsRequest
284
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
309
 
@@ -391,6 +415,15 @@ module Google
391
415
  end
392
416
  end
393
417
 
418
+ class GoogleCloudSecuritycenterV1NotificationMessage
419
+ # @private
420
+ class Representation < Google::Apis::Core::JsonRepresentation
421
+ property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::Finding, decorator: Google::Apis::SecuritycenterV1::Finding::Representation
422
+
423
+ property :notification_config_name, as: 'notificationConfigName'
424
+ end
425
+ end
426
+
394
427
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
395
428
  # @private
396
429
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -600,6 +633,15 @@ module Google
600
633
  end
601
634
  end
602
635
 
636
+ class ListNotificationConfigsResponse
637
+ # @private
638
+ class Representation < Google::Apis::Core::JsonRepresentation
639
+ property :next_page_token, as: 'nextPageToken'
640
+ collection :notification_configs, as: 'notificationConfigs', class: Google::Apis::SecuritycenterV1::NotificationConfig, decorator: Google::Apis::SecuritycenterV1::NotificationConfig::Representation
641
+
642
+ end
643
+ end
644
+
603
645
  class ListOperationsResponse
604
646
  # @private
605
647
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -618,6 +660,18 @@ module Google
618
660
  end
619
661
  end
620
662
 
663
+ class NotificationConfig
664
+ # @private
665
+ class Representation < Google::Apis::Core::JsonRepresentation
666
+ property :description, as: 'description'
667
+ property :name, as: 'name'
668
+ property :pubsub_topic, as: 'pubsubTopic'
669
+ property :service_account, as: 'serviceAccount'
670
+ property :streaming_config, as: 'streamingConfig', class: Google::Apis::SecuritycenterV1::StreamingConfig, decorator: Google::Apis::SecuritycenterV1::StreamingConfig::Representation
671
+
672
+ end
673
+ end
674
+
621
675
  class Operation
622
676
  # @private
623
677
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -726,6 +780,13 @@ module Google
726
780
  end
727
781
  end
728
782
 
783
+ class StreamingConfig
784
+ # @private
785
+ class Representation < Google::Apis::Core::JsonRepresentation
786
+ property :filter, as: 'filter'
787
+ end
788
+ end
789
+
729
790
  class TestIamPermissionsRequest
730
791
  # @private
731
792
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -383,6 +383,188 @@ module Google
383
383
  execute_or_queue_command(command, &block)
384
384
  end
385
385
 
386
+ # Creates a notification config.
387
+ # @param [String] parent
388
+ # Required. Resource name of the new notification config's parent. Its format is
389
+ # "organizations/[organization_id]".
390
+ # @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
391
+ # @param [String] config_id
392
+ # Required.
393
+ # Unique identifier provided by the client within the parent scope.
394
+ # It must be between 1 and 128 characters, and contains alphanumeric
395
+ # characters, underscores or hyphens only.
396
+ # @param [String] fields
397
+ # Selector specifying which fields to include in a partial response.
398
+ # @param [String] quota_user
399
+ # Available to use for quota purposes for server-side applications. Can be any
400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
401
+ # @param [Google::Apis::RequestOptions] options
402
+ # Request-specific options
403
+ #
404
+ # @yield [result, err] Result & error if block supplied
405
+ # @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
406
+ # @yieldparam err [StandardError] error object if request failed
407
+ #
408
+ # @return [Google::Apis::SecuritycenterV1::NotificationConfig]
409
+ #
410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
413
+ def create_organization_notification_config(parent, notification_config_object = nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
414
+ command = make_simple_command(:post, 'v1/{+parent}/notificationConfigs', options)
415
+ command.request_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
416
+ command.request_object = notification_config_object
417
+ command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
418
+ command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
419
+ command.params['parent'] = parent unless parent.nil?
420
+ command.query['configId'] = config_id unless config_id.nil?
421
+ command.query['fields'] = fields unless fields.nil?
422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
423
+ execute_or_queue_command(command, &block)
424
+ end
425
+
426
+ # Deletes a notification config.
427
+ # @param [String] name
428
+ # Required. Name of the notification config to delete. Its format is
429
+ # "organizations/[organization_id]/notificationConfigs/[config_id]".
430
+ # @param [String] fields
431
+ # Selector specifying which fields to include in a partial response.
432
+ # @param [String] quota_user
433
+ # Available to use for quota purposes for server-side applications. Can be any
434
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
435
+ # @param [Google::Apis::RequestOptions] options
436
+ # Request-specific options
437
+ #
438
+ # @yield [result, err] Result & error if block supplied
439
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
440
+ # @yieldparam err [StandardError] error object if request failed
441
+ #
442
+ # @return [Google::Apis::SecuritycenterV1::Empty]
443
+ #
444
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
445
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
446
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
447
+ def delete_organization_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
448
+ command = make_simple_command(:delete, 'v1/{+name}', options)
449
+ command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
450
+ command.response_class = Google::Apis::SecuritycenterV1::Empty
451
+ command.params['name'] = name unless name.nil?
452
+ command.query['fields'] = fields unless fields.nil?
453
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
454
+ execute_or_queue_command(command, &block)
455
+ end
456
+
457
+ # Gets a notification config.
458
+ # @param [String] name
459
+ # Required. Name of the notification config to get. Its format is
460
+ # "organizations/[organization_id]/notificationConfigs/[config_id]".
461
+ # @param [String] fields
462
+ # Selector specifying which fields to include in a partial response.
463
+ # @param [String] quota_user
464
+ # Available to use for quota purposes for server-side applications. Can be any
465
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
466
+ # @param [Google::Apis::RequestOptions] options
467
+ # Request-specific options
468
+ #
469
+ # @yield [result, err] Result & error if block supplied
470
+ # @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
471
+ # @yieldparam err [StandardError] error object if request failed
472
+ #
473
+ # @return [Google::Apis::SecuritycenterV1::NotificationConfig]
474
+ #
475
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
476
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
477
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
478
+ def get_organization_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
479
+ command = make_simple_command(:get, 'v1/{+name}', options)
480
+ command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
481
+ command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
482
+ command.params['name'] = name unless name.nil?
483
+ command.query['fields'] = fields unless fields.nil?
484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
485
+ execute_or_queue_command(command, &block)
486
+ end
487
+
488
+ # Lists notification configs.
489
+ # @param [String] parent
490
+ # Required. Name of the organization to list notification configs.
491
+ # Its format is "organizations/[organization_id]".
492
+ # @param [Fixnum] page_size
493
+ # The maximum number of results to return in a single response. Default is
494
+ # 10, minimum is 1, maximum is 1000.
495
+ # @param [String] page_token
496
+ # The value returned by the last `ListNotificationConfigsResponse`; indicates
497
+ # that this is a continuation of a prior `ListNotificationConfigs` call, and
498
+ # that the system should return the next page of data.
499
+ # @param [String] fields
500
+ # Selector specifying which fields to include in a partial response.
501
+ # @param [String] quota_user
502
+ # Available to use for quota purposes for server-side applications. Can be any
503
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
504
+ # @param [Google::Apis::RequestOptions] options
505
+ # Request-specific options
506
+ #
507
+ # @yield [result, err] Result & error if block supplied
508
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse] parsed result object
509
+ # @yieldparam err [StandardError] error object if request failed
510
+ #
511
+ # @return [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse]
512
+ #
513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
516
+ def list_organization_notification_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
517
+ command = make_simple_command(:get, 'v1/{+parent}/notificationConfigs', options)
518
+ command.response_representation = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse::Representation
519
+ command.response_class = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse
520
+ command.params['parent'] = parent unless parent.nil?
521
+ command.query['pageSize'] = page_size unless page_size.nil?
522
+ command.query['pageToken'] = page_token unless page_token.nil?
523
+ command.query['fields'] = fields unless fields.nil?
524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
525
+ execute_or_queue_command(command, &block)
526
+ end
527
+
528
+ # Updates a notification config.
529
+ # @param [String] name
530
+ # The relative resource name of this notification config. See:
531
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
532
+ # Example:
533
+ # "organizations/`organization_id`/notificationConfigs/notify_public_bucket".
534
+ # @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
535
+ # @param [String] update_mask
536
+ # The FieldMask to use when updating the notification config.
537
+ # If empty all mutable fields will be updated.
538
+ # @param [String] fields
539
+ # Selector specifying which fields to include in a partial response.
540
+ # @param [String] quota_user
541
+ # Available to use for quota purposes for server-side applications. Can be any
542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
543
+ # @param [Google::Apis::RequestOptions] options
544
+ # Request-specific options
545
+ #
546
+ # @yield [result, err] Result & error if block supplied
547
+ # @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
548
+ # @yieldparam err [StandardError] error object if request failed
549
+ #
550
+ # @return [Google::Apis::SecuritycenterV1::NotificationConfig]
551
+ #
552
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
553
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
554
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
555
+ def patch_organization_notification_config(name, notification_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
556
+ command = make_simple_command(:patch, 'v1/{+name}', options)
557
+ command.request_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
558
+ command.request_object = notification_config_object
559
+ command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
560
+ command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
561
+ command.params['name'] = name unless name.nil?
562
+ command.query['updateMask'] = update_mask unless update_mask.nil?
563
+ command.query['fields'] = fields unless fields.nil?
564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
565
+ execute_or_queue_command(command, &block)
566
+ end
567
+
386
568
  # Starts asynchronous cancellation on a long-running operation. The server
387
569
  # makes a best effort to cancel the operation, but success is not
388
570
  # guaranteed. If the server doesn't support this method, it returns
@@ -880,12 +1062,18 @@ module Google
880
1062
  # two times don't affect the result. For example, the results aren't affected
881
1063
  # if the finding is made inactive and then active again.
882
1064
  # Possible "state_change" values when compare_duration is specified:
883
- # * "CHANGED": indicates that the finding was present at the start of
884
- # compare_duration, but changed its state at read_time.
885
- # * "UNCHANGED": indicates that the finding was present at the start of
886
- # compare_duration and did not change state at read_time.
887
- # * "ADDED": indicates that the finding was not present at the start
888
- # of compare_duration, but was present at read_time.
1065
+ # * "CHANGED": indicates that the finding was present and matched the given
1066
+ # filter at the start of compare_duration, but changed its
1067
+ # state at read_time.
1068
+ # * "UNCHANGED": indicates that the finding was present and matched the given
1069
+ # filter at the start of compare_duration and did not change
1070
+ # state at read_time.
1071
+ # * "ADDED": indicates that the finding did not match the given filter or
1072
+ # was not present at the start of compare_duration, but was
1073
+ # present at read_time.
1074
+ # * "REMOVED": indicates that the finding was present and matched the
1075
+ # filter at the start of compare_duration, but did not match
1076
+ # the filter at read_time.
889
1077
  # If compare_duration is not specified, then the only possible state_change
890
1078
  # is "UNUSED", which will be the state_change set for all findings present at
891
1079
  # read_time.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
27
27
  module SecuritycenterV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20200224'
29
+ REVISION = '20200306'
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'
@@ -403,6 +403,108 @@ module Google
403
403
  end
404
404
  end
405
405
 
406
+ # Cloud Security Command Center (Cloud SCC) finding.
407
+ # A finding is a record of assessment data like security, risk, health, or
408
+ # privacy, that is ingested into Cloud SCC for presentation, notification,
409
+ # analysis, policy testing, and enforcement. For example, a
410
+ # cross-site scripting (XSS) vulnerability in an App Engine application is a
411
+ # finding.
412
+ class Finding
413
+ include Google::Apis::Core::Hashable
414
+
415
+ # The additional taxonomy group within findings from a given source.
416
+ # This field is immutable after creation time.
417
+ # Example: "XSS_FLASH_INJECTION"
418
+ # Corresponds to the JSON property `category`
419
+ # @return [String]
420
+ attr_accessor :category
421
+
422
+ # The time at which the finding was created in Cloud SCC.
423
+ # Corresponds to the JSON property `createTime`
424
+ # @return [String]
425
+ attr_accessor :create_time
426
+
427
+ # The time at which the event took place. For example, if the finding
428
+ # represents an open firewall it would capture the time the detector believes
429
+ # the firewall became open. The accuracy is determined by the detector.
430
+ # Corresponds to the JSON property `eventTime`
431
+ # @return [String]
432
+ attr_accessor :event_time
433
+
434
+ # The URI that, if available, points to a web page outside of Cloud SCC
435
+ # where additional information about the finding can be found. This field is
436
+ # guaranteed to be either empty or a well formed URL.
437
+ # Corresponds to the JSON property `externalUri`
438
+ # @return [String]
439
+ attr_accessor :external_uri
440
+
441
+ # The relative resource name of this finding. See:
442
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
443
+ # Example:
444
+ # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`"
445
+ # Corresponds to the JSON property `name`
446
+ # @return [String]
447
+ attr_accessor :name
448
+
449
+ # The relative resource name of the source the finding belongs to. See:
450
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
451
+ # This field is immutable after creation time.
452
+ # For example:
453
+ # "organizations/`organization_id`/sources/`source_id`"
454
+ # Corresponds to the JSON property `parent`
455
+ # @return [String]
456
+ attr_accessor :parent
457
+
458
+ # For findings on Google Cloud Platform (GCP) resources, the full resource
459
+ # name of the GCP resource this finding is for. See:
460
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name
461
+ # When the finding is for a non-GCP resource, the resourceName can be a
462
+ # customer or partner defined string.
463
+ # This field is immutable after creation time.
464
+ # Corresponds to the JSON property `resourceName`
465
+ # @return [String]
466
+ attr_accessor :resource_name
467
+
468
+ # User specified security marks that are attached to the parent Cloud Security
469
+ # Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
470
+ # SCC organization -- they can be modified and viewed by all users who have
471
+ # proper permissions on the organization.
472
+ # Corresponds to the JSON property `securityMarks`
473
+ # @return [Google::Apis::SecuritycenterV1beta1::SecurityMarks]
474
+ attr_accessor :security_marks
475
+
476
+ # Source specific properties. These properties are managed by the source
477
+ # that writes the finding. The key names in the source_properties map must be
478
+ # between 1 and 255 characters, and must start with a letter and contain
479
+ # alphanumeric characters or underscores only.
480
+ # Corresponds to the JSON property `sourceProperties`
481
+ # @return [Hash<String,Object>]
482
+ attr_accessor :source_properties
483
+
484
+ # The state of the finding.
485
+ # Corresponds to the JSON property `state`
486
+ # @return [String]
487
+ attr_accessor :state
488
+
489
+ def initialize(**args)
490
+ update!(**args)
491
+ end
492
+
493
+ # Update properties of this object
494
+ def update!(**args)
495
+ @category = args[:category] if args.key?(:category)
496
+ @create_time = args[:create_time] if args.key?(:create_time)
497
+ @event_time = args[:event_time] if args.key?(:event_time)
498
+ @external_uri = args[:external_uri] if args.key?(:external_uri)
499
+ @name = args[:name] if args.key?(:name)
500
+ @parent = args[:parent] if args.key?(:parent)
501
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
502
+ @security_marks = args[:security_marks] if args.key?(:security_marks)
503
+ @source_properties = args[:source_properties] if args.key?(:source_properties)
504
+ @state = args[:state] if args.key?(:state)
505
+ end
506
+ end
507
+
406
508
  # Request message for `GetIamPolicy` method.
407
509
  class GetIamPolicyRequest
408
510
  include Google::Apis::Core::Hashable
@@ -446,6 +548,36 @@ module Google
446
548
  end
447
549
  end
448
550
 
551
+ # Cloud SCC's Notification
552
+ class GoogleCloudSecuritycenterV1NotificationMessage
553
+ include Google::Apis::Core::Hashable
554
+
555
+ # Cloud Security Command Center (Cloud SCC) finding.
556
+ # A finding is a record of assessment data like security, risk, health, or
557
+ # privacy, that is ingested into Cloud SCC for presentation, notification,
558
+ # analysis, policy testing, and enforcement. For example, a
559
+ # cross-site scripting (XSS) vulnerability in an App Engine application is a
560
+ # finding.
561
+ # Corresponds to the JSON property `finding`
562
+ # @return [Google::Apis::SecuritycenterV1beta1::Finding]
563
+ attr_accessor :finding
564
+
565
+ # Name of the notification config that generated current notification.
566
+ # Corresponds to the JSON property `notificationConfigName`
567
+ # @return [String]
568
+ attr_accessor :notification_config_name
569
+
570
+ def initialize(**args)
571
+ update!(**args)
572
+ end
573
+
574
+ # Update properties of this object
575
+ def update!(**args)
576
+ @finding = args[:finding] if args.key?(:finding)
577
+ @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
578
+ end
579
+ end
580
+
449
581
  # Response of asset discovery run
450
582
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
451
583
  include Google::Apis::Core::Hashable
@@ -1742,6 +1874,45 @@ module Google
1742
1874
  end
1743
1875
  end
1744
1876
 
1877
+ # User specified security marks that are attached to the parent Cloud Security
1878
+ # Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
1879
+ # SCC organization -- they can be modified and viewed by all users who have
1880
+ # proper permissions on the organization.
1881
+ class SecurityMarks
1882
+ include Google::Apis::Core::Hashable
1883
+
1884
+ # Mutable user specified security marks belonging to the parent resource.
1885
+ # Constraints are as follows:
1886
+ # * Keys and values are treated as case insensitive
1887
+ # * Keys must be between 1 - 256 characters (inclusive)
1888
+ # * Keys must be letters, numbers, underscores, or dashes
1889
+ # * Values have leading and trailing whitespace trimmed, remaining
1890
+ # characters must be between 1 - 4096 characters (inclusive)
1891
+ # Corresponds to the JSON property `marks`
1892
+ # @return [Hash<String,String>]
1893
+ attr_accessor :marks
1894
+
1895
+ # The relative resource name of the SecurityMarks. See:
1896
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
1897
+ # Examples:
1898
+ # "organizations/`organization_id`/assets/`asset_id`/securityMarks"
1899
+ # "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/
1900
+ # securityMarks".
1901
+ # Corresponds to the JSON property `name`
1902
+ # @return [String]
1903
+ attr_accessor :name
1904
+
1905
+ def initialize(**args)
1906
+ update!(**args)
1907
+ end
1908
+
1909
+ # Update properties of this object
1910
+ def update!(**args)
1911
+ @marks = args[:marks] if args.key?(:marks)
1912
+ @name = args[:name] if args.key?(:name)
1913
+ end
1914
+ end
1915
+
1745
1916
  # Request message for updating a finding's state.
1746
1917
  class SetFindingStateRequest
1747
1918
  include Google::Apis::Core::Hashable