google-apis-securitycenter_v1 0.44.0 → 0.45.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c085b0f57c7234d4ba84b7876632ed0571dead5970f1d0379e0305f76c690ea
4
- data.tar.gz: 6819ecf35d349aa095f829e54f9208df4dc79cc4500dabf1df9bdd45565056bd
3
+ metadata.gz: 58a482c8b40bfc3bbeeee0e7ea8a8f728445de18770ba4986f7e47726be7d235
4
+ data.tar.gz: 6a1cfa8507a0ed8ef1504cdd29bc9ad11590b8d2d9a624da99a4c8faf28c4eb3
5
5
  SHA512:
6
- metadata.gz: aebe1e04abe9ea1bbba0e2115a1e6d73fe9e315818dc08648254336c449cb8c16d09c4b09f568b750b771ac645654ebaf2c4b84042541842f344191122b37388
7
- data.tar.gz: a2218f6a0d3071c87dbaf143acf9b8974d6754025504d80bc2bbf2bc7446080fd3bb3830e7a3b37a7b221fb1d54eb90334929d859f76e77c839eb3172d983d7f
6
+ metadata.gz: d800728104d2282fdc6ab5e524e9e98267fb78490664823b36a9a828e18e7a417198e72d6aa7ac354befb529957a5294e3f7f20b03cf157f3ec597e223e419a9
7
+ data.tar.gz: ad098cd352b8ca1384b93b5f4af24a6ebb0740b435726740d70c163593c7a4109f4bd7ef15016e2ee500d6e7360d13ff01447145e1671e139a675a71ea3f2d45
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-securitycenter_v1
2
2
 
3
+ ### v0.45.0 (2022-11-04)
4
+
5
+ * Regenerated from discovery document revision 20221027
6
+ * Regenerated using generator version 0.11.0
7
+
3
8
  ### v0.44.0 (2022-09-28)
4
9
 
5
10
  * Regenerated from discovery document revision 20220921
@@ -95,9 +95,9 @@ module Google
95
95
  # instance, this may be the system user name if the finding is VM-related, or
96
96
  # this may be some type of application login user name, depending on the type of
97
97
  # finding.
98
- # Corresponds to the JSON property `username`
98
+ # Corresponds to the JSON property `userName`
99
99
  # @return [String]
100
- attr_accessor :username
100
+ attr_accessor :user_name
101
101
 
102
102
  def initialize(**args)
103
103
  update!(**args)
@@ -114,7 +114,7 @@ module Google
114
114
  @service_account_key_name = args[:service_account_key_name] if args.key?(:service_account_key_name)
115
115
  @service_name = args[:service_name] if args.key?(:service_name)
116
116
  @user_agent_family = args[:user_agent_family] if args.key?(:user_agent_family)
117
- @username = args[:username] if args.key?(:username)
117
+ @user_name = args[:user_name] if args.key?(:user_name)
118
118
  end
119
119
  end
120
120
 
@@ -285,6 +285,32 @@ module Google
285
285
  end
286
286
  end
287
287
 
288
+ # A finding that is associated with this node in the exposure path.
289
+ class AssociatedFinding
290
+ include Google::Apis::Core::Hashable
291
+
292
+ # Canonical name of the associated findings. Example: organizations/123/sources/
293
+ # 456/findings/789
294
+ # Corresponds to the JSON property `canonicalFindingName`
295
+ # @return [String]
296
+ attr_accessor :canonical_finding_name
297
+
298
+ # The additional taxonomy group within findings from a given source.
299
+ # Corresponds to the JSON property `findingCategory`
300
+ # @return [String]
301
+ attr_accessor :finding_category
302
+
303
+ def initialize(**args)
304
+ update!(**args)
305
+ end
306
+
307
+ # Update properties of this object
308
+ def update!(**args)
309
+ @canonical_finding_name = args[:canonical_finding_name] if args.key?(:canonical_finding_name)
310
+ @finding_category = args[:finding_category] if args.key?(:finding_category)
311
+ end
312
+ end
313
+
288
314
  # Specifies the audit configuration for a service. The configuration determines
289
315
  # which permission types are logged, and what identities, if any, are exempted
290
316
  # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -815,6 +841,32 @@ module Google
815
841
  end
816
842
  end
817
843
 
844
+ # Represents a connection between a source node and a destination node in this
845
+ # exposure path.
846
+ class Edge
847
+ include Google::Apis::Core::Hashable
848
+
849
+ # This is the resource name of the destination node.
850
+ # Corresponds to the JSON property `destination`
851
+ # @return [String]
852
+ attr_accessor :destination
853
+
854
+ # This is the resource name of the source node.
855
+ # Corresponds to the JSON property `source`
856
+ # @return [String]
857
+ attr_accessor :source
858
+
859
+ def initialize(**args)
860
+ update!(**args)
861
+ end
862
+
863
+ # Update properties of this object
864
+ def update!(**args)
865
+ @destination = args[:destination] if args.key?(:destination)
866
+ @source = args[:source] if args.key?(:source)
867
+ end
868
+ end
869
+
818
870
  # A generic empty message that you can re-use to avoid defining duplicated empty
819
871
  # messages in your APIs. A typical example is to use it as the request or the
820
872
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1521,12 +1573,51 @@ module Google
1521
1573
  class GoogleCloudSecuritycenterV1ExposedResource
1522
1574
  include Google::Apis::Core::Hashable
1523
1575
 
1576
+ # Human readable name of the resource that is exposed.
1577
+ # Corresponds to the JSON property `displayName`
1578
+ # @return [String]
1579
+ attr_accessor :display_name
1580
+
1581
+ # The ways in which this resource is exposed. Examples: Read, Write
1582
+ # Corresponds to the JSON property `methods`
1583
+ # @return [Array<String>]
1584
+ attr_accessor :methods_prop
1585
+
1586
+ # Exposed Resource Name e.g.: `organizations/123/attackExposureResults/456/
1587
+ # exposedResources/789`
1588
+ # Corresponds to the JSON property `name`
1589
+ # @return [String]
1590
+ attr_accessor :name
1591
+
1592
+ # The name of the resource that is exposed. See: https://cloud.google.com/apis/
1593
+ # design/resource_names#full_resource_name
1594
+ # Corresponds to the JSON property `resource`
1595
+ # @return [String]
1596
+ attr_accessor :resource
1597
+
1598
+ # The resource type of the exposed resource. See: https://cloud.google.com/asset-
1599
+ # inventory/docs/supported-asset-types
1600
+ # Corresponds to the JSON property `resourceType`
1601
+ # @return [String]
1602
+ attr_accessor :resource_type
1603
+
1604
+ # How valuable this resource is.
1605
+ # Corresponds to the JSON property `resourceValue`
1606
+ # @return [String]
1607
+ attr_accessor :resource_value
1608
+
1524
1609
  def initialize(**args)
1525
1610
  update!(**args)
1526
1611
  end
1527
1612
 
1528
1613
  # Update properties of this object
1529
1614
  def update!(**args)
1615
+ @display_name = args[:display_name] if args.key?(:display_name)
1616
+ @methods_prop = args[:methods_prop] if args.key?(:methods_prop)
1617
+ @name = args[:name] if args.key?(:name)
1618
+ @resource = args[:resource] if args.key?(:resource)
1619
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1620
+ @resource_value = args[:resource_value] if args.key?(:resource_value)
1530
1621
  end
1531
1622
  end
1532
1623
 
@@ -1534,12 +1625,37 @@ module Google
1534
1625
  class GoogleCloudSecuritycenterV1ExposurePath
1535
1626
  include Google::Apis::Core::Hashable
1536
1627
 
1628
+ # A list of the edges between nodes in this exposure path.
1629
+ # Corresponds to the JSON property `edges`
1630
+ # @return [Array<Google::Apis::SecuritycenterV1::Edge>]
1631
+ attr_accessor :edges
1632
+
1633
+ # A resource that is exposed as a result of a finding.
1634
+ # Corresponds to the JSON property `exposedResource`
1635
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExposedResource]
1636
+ attr_accessor :exposed_resource
1637
+
1638
+ # Exposure Path Name e.g.: `organizations/123/attackExposureResults/456/
1639
+ # exposurePaths/789`
1640
+ # Corresponds to the JSON property `name`
1641
+ # @return [String]
1642
+ attr_accessor :name
1643
+
1644
+ # A list of nodes that exist in this exposure path.
1645
+ # Corresponds to the JSON property `pathNodes`
1646
+ # @return [Array<Google::Apis::SecuritycenterV1::PathNode>]
1647
+ attr_accessor :path_nodes
1648
+
1537
1649
  def initialize(**args)
1538
1650
  update!(**args)
1539
1651
  end
1540
1652
 
1541
1653
  # Update properties of this object
1542
1654
  def update!(**args)
1655
+ @edges = args[:edges] if args.key?(:edges)
1656
+ @exposed_resource = args[:exposed_resource] if args.key?(:exposed_resource)
1657
+ @name = args[:name] if args.key?(:name)
1658
+ @path_nodes = args[:path_nodes] if args.key?(:path_nodes)
1543
1659
  end
1544
1660
  end
1545
1661
 
@@ -1772,11 +1888,26 @@ module Google
1772
1888
  # @return [String]
1773
1889
  attr_accessor :name
1774
1890
 
1891
+ # Apply resource_value only to resources that match resource_type. resource_type
1892
+ # will be checked with "AND" of other resources. E.g. "storage.googleapis.com/
1893
+ # Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.
1894
+ # googleapis.com/Bucket" resources.
1895
+ # Corresponds to the JSON property `resourceType`
1896
+ # @return [String]
1897
+ attr_accessor :resource_type
1898
+
1775
1899
  # Required. Resource value level this expression represents
1776
1900
  # Corresponds to the JSON property `resourceValue`
1777
1901
  # @return [String]
1778
1902
  attr_accessor :resource_value
1779
1903
 
1904
+ # Project or folder to scope this config to. For example, "project/456" would
1905
+ # apply this config only to resources in "project/456" scope will be checked
1906
+ # with "AND" of other resources.
1907
+ # Corresponds to the JSON property `scope`
1908
+ # @return [String]
1909
+ attr_accessor :scope
1910
+
1780
1911
  # Required. Tag values combined with AND to check against. Values in the form "
1781
1912
  # tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
1782
1913
  # https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
@@ -1791,7 +1922,9 @@ module Google
1791
1922
  # Update properties of this object
1792
1923
  def update!(**args)
1793
1924
  @name = args[:name] if args.key?(:name)
1925
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1794
1926
  @resource_value = args[:resource_value] if args.key?(:resource_value)
1927
+ @scope = args[:scope] if args.key?(:scope)
1795
1928
  @tag_values = args[:tag_values] if args.key?(:tag_values)
1796
1929
  end
1797
1930
  end
@@ -3178,6 +3311,46 @@ module Google
3178
3311
  end
3179
3312
  end
3180
3313
 
3314
+ # Represents one point that an attacker passes through in this exposure path.
3315
+ class PathNode
3316
+ include Google::Apis::Core::Hashable
3317
+
3318
+ # The findings associated with this node in the exposure path.
3319
+ # Corresponds to the JSON property `associatedFindings`
3320
+ # @return [Array<Google::Apis::SecuritycenterV1::AssociatedFinding>]
3321
+ attr_accessor :associated_findings
3322
+
3323
+ # Human readable name of this resource.
3324
+ # Corresponds to the JSON property `displayName`
3325
+ # @return [String]
3326
+ attr_accessor :display_name
3327
+
3328
+ # The name of the resource at this point in the exposure path. The format of the
3329
+ # name is: https://cloud.google.com/apis/design/resource_names#
3330
+ # full_resource_name
3331
+ # Corresponds to the JSON property `resource`
3332
+ # @return [String]
3333
+ attr_accessor :resource
3334
+
3335
+ # The resource type of this resource. See: https://cloud.google.com/asset-
3336
+ # inventory/docs/supported-asset-types
3337
+ # Corresponds to the JSON property `resourceType`
3338
+ # @return [String]
3339
+ attr_accessor :resource_type
3340
+
3341
+ def initialize(**args)
3342
+ update!(**args)
3343
+ end
3344
+
3345
+ # Update properties of this object
3346
+ def update!(**args)
3347
+ @associated_findings = args[:associated_findings] if args.key?(:associated_findings)
3348
+ @display_name = args[:display_name] if args.key?(:display_name)
3349
+ @resource = args[:resource] if args.key?(:resource)
3350
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
3351
+ end
3352
+ end
3353
+
3181
3354
  # Kubernetes Pod.
3182
3355
  class Pod
3183
3356
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SecuritycenterV1
18
18
  # Version of the google-apis-securitycenter_v1 gem
19
- GEM_VERSION = "0.44.0"
19
+ GEM_VERSION = "0.45.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220921"
25
+ REVISION = "20221027"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class AssociatedFinding
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class AuditConfig
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -124,6 +130,12 @@ module Google
124
130
  include Google::Apis::Core::JsonObjectSupport
125
131
  end
126
132
 
133
+ class Edge
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
127
139
  class Empty
128
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
141
 
@@ -454,6 +466,12 @@ module Google
454
466
  include Google::Apis::Core::JsonObjectSupport
455
467
  end
456
468
 
469
+ class PathNode
470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
471
+
472
+ include Google::Apis::Core::JsonObjectSupport
473
+ end
474
+
457
475
  class Pod
458
476
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
477
 
@@ -600,7 +618,7 @@ module Google
600
618
  property :service_account_key_name, as: 'serviceAccountKeyName'
601
619
  property :service_name, as: 'serviceName'
602
620
  property :user_agent_family, as: 'userAgentFamily'
603
- property :username, as: 'username'
621
+ property :user_name, as: 'userName'
604
622
  end
605
623
  end
606
624
 
@@ -643,6 +661,14 @@ module Google
643
661
  end
644
662
  end
645
663
 
664
+ class AssociatedFinding
665
+ # @private
666
+ class Representation < Google::Apis::Core::JsonRepresentation
667
+ property :canonical_finding_name, as: 'canonicalFindingName'
668
+ property :finding_category, as: 'findingCategory'
669
+ end
670
+ end
671
+
646
672
  class AuditConfig
647
673
  # @private
648
674
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -770,6 +796,14 @@ module Google
770
796
  end
771
797
  end
772
798
 
799
+ class Edge
800
+ # @private
801
+ class Representation < Google::Apis::Core::JsonRepresentation
802
+ property :destination, as: 'destination'
803
+ property :source, as: 'source'
804
+ end
805
+ end
806
+
773
807
  class Empty
774
808
  # @private
775
809
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -943,12 +977,25 @@ module Google
943
977
  class GoogleCloudSecuritycenterV1ExposedResource
944
978
  # @private
945
979
  class Representation < Google::Apis::Core::JsonRepresentation
980
+ property :display_name, as: 'displayName'
981
+ collection :methods_prop, as: 'methods'
982
+ property :name, as: 'name'
983
+ property :resource, as: 'resource'
984
+ property :resource_type, as: 'resourceType'
985
+ property :resource_value, as: 'resourceValue'
946
986
  end
947
987
  end
948
988
 
949
989
  class GoogleCloudSecuritycenterV1ExposurePath
950
990
  # @private
951
991
  class Representation < Google::Apis::Core::JsonRepresentation
992
+ collection :edges, as: 'edges', class: Google::Apis::SecuritycenterV1::Edge, decorator: Google::Apis::SecuritycenterV1::Edge::Representation
993
+
994
+ property :exposed_resource, as: 'exposedResource', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExposedResource, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExposedResource::Representation
995
+
996
+ property :name, as: 'name'
997
+ collection :path_nodes, as: 'pathNodes', class: Google::Apis::SecuritycenterV1::PathNode, decorator: Google::Apis::SecuritycenterV1::PathNode::Representation
998
+
952
999
  end
953
1000
  end
954
1001
 
@@ -1006,7 +1053,9 @@ module Google
1006
1053
  # @private
1007
1054
  class Representation < Google::Apis::Core::JsonRepresentation
1008
1055
  property :name, as: 'name'
1056
+ property :resource_type, as: 'resourceType'
1009
1057
  property :resource_value, as: 'resourceValue'
1058
+ property :scope, as: 'scope'
1010
1059
  collection :tag_values, as: 'tagValues'
1011
1060
  end
1012
1061
  end
@@ -1359,6 +1408,17 @@ module Google
1359
1408
  end
1360
1409
  end
1361
1410
 
1411
+ class PathNode
1412
+ # @private
1413
+ class Representation < Google::Apis::Core::JsonRepresentation
1414
+ collection :associated_findings, as: 'associatedFindings', class: Google::Apis::SecuritycenterV1::AssociatedFinding, decorator: Google::Apis::SecuritycenterV1::AssociatedFinding::Representation
1415
+
1416
+ property :display_name, as: 'displayName'
1417
+ property :resource, as: 'resource'
1418
+ property :resource_type, as: 'resourceType'
1419
+ end
1420
+ end
1421
+
1362
1422
  class Pod
1363
1423
  # @private
1364
1424
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -661,6 +661,189 @@ module Google
661
661
  execute_or_queue_command(command, &block)
662
662
  end
663
663
 
664
+ # Creates a notification config.
665
+ # @param [String] parent
666
+ # Required. Resource name of the new notification config's parent. Its format is
667
+ # "organizations/[organization_id]", "folders/[folder_id]", or "projects/[
668
+ # project_id]".
669
+ # @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
670
+ # @param [String] config_id
671
+ # Required. Unique identifier provided by the client within the parent scope. It
672
+ # must be between 1 and 128 characters, and contains alphanumeric characters,
673
+ # underscores or hyphens only.
674
+ # @param [String] fields
675
+ # Selector specifying which fields to include in a partial response.
676
+ # @param [String] quota_user
677
+ # Available to use for quota purposes for server-side applications. Can be any
678
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
679
+ # @param [Google::Apis::RequestOptions] options
680
+ # Request-specific options
681
+ #
682
+ # @yield [result, err] Result & error if block supplied
683
+ # @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
684
+ # @yieldparam err [StandardError] error object if request failed
685
+ #
686
+ # @return [Google::Apis::SecuritycenterV1::NotificationConfig]
687
+ #
688
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
689
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
690
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
691
+ def create_folder_notification_config(parent, notification_config_object = nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
692
+ command = make_simple_command(:post, 'v1/{+parent}/notificationConfigs', options)
693
+ command.request_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
694
+ command.request_object = notification_config_object
695
+ command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
696
+ command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
697
+ command.params['parent'] = parent unless parent.nil?
698
+ command.query['configId'] = config_id unless config_id.nil?
699
+ command.query['fields'] = fields unless fields.nil?
700
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
701
+ execute_or_queue_command(command, &block)
702
+ end
703
+
704
+ # Deletes a notification config.
705
+ # @param [String] name
706
+ # Required. Name of the notification config to delete. Its format is "
707
+ # organizations/[organization_id]/notificationConfigs/[config_id]".
708
+ # @param [String] fields
709
+ # Selector specifying which fields to include in a partial response.
710
+ # @param [String] quota_user
711
+ # Available to use for quota purposes for server-side applications. Can be any
712
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
713
+ # @param [Google::Apis::RequestOptions] options
714
+ # Request-specific options
715
+ #
716
+ # @yield [result, err] Result & error if block supplied
717
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
718
+ # @yieldparam err [StandardError] error object if request failed
719
+ #
720
+ # @return [Google::Apis::SecuritycenterV1::Empty]
721
+ #
722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
725
+ def delete_folder_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
726
+ command = make_simple_command(:delete, 'v1/{+name}', options)
727
+ command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
728
+ command.response_class = Google::Apis::SecuritycenterV1::Empty
729
+ command.params['name'] = name unless name.nil?
730
+ command.query['fields'] = fields unless fields.nil?
731
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
732
+ execute_or_queue_command(command, &block)
733
+ end
734
+
735
+ # Gets a notification config.
736
+ # @param [String] name
737
+ # Required. Name of the notification config to get. Its format is "organizations/
738
+ # [organization_id]/notificationConfigs/[config_id]".
739
+ # @param [String] fields
740
+ # Selector specifying which fields to include in a partial response.
741
+ # @param [String] quota_user
742
+ # Available to use for quota purposes for server-side applications. Can be any
743
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
744
+ # @param [Google::Apis::RequestOptions] options
745
+ # Request-specific options
746
+ #
747
+ # @yield [result, err] Result & error if block supplied
748
+ # @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
749
+ # @yieldparam err [StandardError] error object if request failed
750
+ #
751
+ # @return [Google::Apis::SecuritycenterV1::NotificationConfig]
752
+ #
753
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
754
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
755
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
756
+ def get_folder_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
757
+ command = make_simple_command(:get, 'v1/{+name}', options)
758
+ command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
759
+ command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
760
+ command.params['name'] = name unless name.nil?
761
+ command.query['fields'] = fields unless fields.nil?
762
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
763
+ execute_or_queue_command(command, &block)
764
+ end
765
+
766
+ # Lists notification configs.
767
+ # @param [String] parent
768
+ # Required. Name of the organization to list notification configs. Its format is
769
+ # "organizations/[organization_id]", "folders/[folder_id]", or "projects/[
770
+ # project_id]".
771
+ # @param [Fixnum] page_size
772
+ # The maximum number of results to return in a single response. Default is 10,
773
+ # minimum is 1, maximum is 1000.
774
+ # @param [String] page_token
775
+ # The value returned by the last `ListNotificationConfigsResponse`; indicates
776
+ # that this is a continuation of a prior `ListNotificationConfigs` call, and
777
+ # that the system should return the next page of data.
778
+ # @param [String] fields
779
+ # Selector specifying which fields to include in a partial response.
780
+ # @param [String] quota_user
781
+ # Available to use for quota purposes for server-side applications. Can be any
782
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
783
+ # @param [Google::Apis::RequestOptions] options
784
+ # Request-specific options
785
+ #
786
+ # @yield [result, err] Result & error if block supplied
787
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse] parsed result object
788
+ # @yieldparam err [StandardError] error object if request failed
789
+ #
790
+ # @return [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse]
791
+ #
792
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
793
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
794
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
795
+ def list_folder_notification_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
796
+ command = make_simple_command(:get, 'v1/{+parent}/notificationConfigs', options)
797
+ command.response_representation = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse::Representation
798
+ command.response_class = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse
799
+ command.params['parent'] = parent unless parent.nil?
800
+ command.query['pageSize'] = page_size unless page_size.nil?
801
+ command.query['pageToken'] = page_token unless page_token.nil?
802
+ command.query['fields'] = fields unless fields.nil?
803
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
804
+ execute_or_queue_command(command, &block)
805
+ end
806
+
807
+ # Updates a notification config. The following update fields are allowed:
808
+ # description, pubsub_topic, streaming_config.filter
809
+ # @param [String] name
810
+ # The relative resource name of this notification config. See: https://cloud.
811
+ # google.com/apis/design/resource_names#relative_resource_name Example: "
812
+ # organizations/`organization_id`/notificationConfigs/notify_public_bucket".
813
+ # @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
814
+ # @param [String] update_mask
815
+ # The FieldMask to use when updating the notification config. If empty all
816
+ # mutable fields will be updated.
817
+ # @param [String] fields
818
+ # Selector specifying which fields to include in a partial response.
819
+ # @param [String] quota_user
820
+ # Available to use for quota purposes for server-side applications. Can be any
821
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
822
+ # @param [Google::Apis::RequestOptions] options
823
+ # Request-specific options
824
+ #
825
+ # @yield [result, err] Result & error if block supplied
826
+ # @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
827
+ # @yieldparam err [StandardError] error object if request failed
828
+ #
829
+ # @return [Google::Apis::SecuritycenterV1::NotificationConfig]
830
+ #
831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
834
+ def patch_folder_notification_config(name, notification_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
835
+ command = make_simple_command(:patch, 'v1/{+name}', options)
836
+ command.request_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
837
+ command.request_object = notification_config_object
838
+ command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
839
+ command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
840
+ command.params['name'] = name unless name.nil?
841
+ command.query['updateMask'] = update_mask unless update_mask.nil?
842
+ command.query['fields'] = fields unless fields.nil?
843
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
844
+ execute_or_queue_command(command, &block)
845
+ end
846
+
664
847
  # Lists all sources belonging to an organization.
665
848
  # @param [String] parent
666
849
  # Required. Resource name of the parent of sources to list. Its format should be
@@ -1779,7 +1962,8 @@ module Google
1779
1962
  # Creates a notification config.
1780
1963
  # @param [String] parent
1781
1964
  # Required. Resource name of the new notification config's parent. Its format is
1782
- # "organizations/[organization_id]" or "projects/[project_id]".
1965
+ # "organizations/[organization_id]", "folders/[folder_id]", or "projects/[
1966
+ # project_id]".
1783
1967
  # @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
1784
1968
  # @param [String] config_id
1785
1969
  # Required. Unique identifier provided by the client within the parent scope. It
@@ -1880,7 +2064,8 @@ module Google
1880
2064
  # Lists notification configs.
1881
2065
  # @param [String] parent
1882
2066
  # Required. Name of the organization to list notification configs. Its format is
1883
- # "organizations/[organization_id]" or "projects/[project_id]".
2067
+ # "organizations/[organization_id]", "folders/[folder_id]", or "projects/[
2068
+ # project_id]".
1884
2069
  # @param [Fixnum] page_size
1885
2070
  # The maximum number of results to return in a single response. Default is 10,
1886
2071
  # minimum is 1, maximum is 1000.
@@ -3362,6 +3547,189 @@ module Google
3362
3547
  execute_or_queue_command(command, &block)
3363
3548
  end
3364
3549
 
3550
+ # Creates a notification config.
3551
+ # @param [String] parent
3552
+ # Required. Resource name of the new notification config's parent. Its format is
3553
+ # "organizations/[organization_id]", "folders/[folder_id]", or "projects/[
3554
+ # project_id]".
3555
+ # @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
3556
+ # @param [String] config_id
3557
+ # Required. Unique identifier provided by the client within the parent scope. It
3558
+ # must be between 1 and 128 characters, and contains alphanumeric characters,
3559
+ # underscores or hyphens only.
3560
+ # @param [String] fields
3561
+ # Selector specifying which fields to include in a partial response.
3562
+ # @param [String] quota_user
3563
+ # Available to use for quota purposes for server-side applications. Can be any
3564
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3565
+ # @param [Google::Apis::RequestOptions] options
3566
+ # Request-specific options
3567
+ #
3568
+ # @yield [result, err] Result & error if block supplied
3569
+ # @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
3570
+ # @yieldparam err [StandardError] error object if request failed
3571
+ #
3572
+ # @return [Google::Apis::SecuritycenterV1::NotificationConfig]
3573
+ #
3574
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3575
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3576
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3577
+ def create_project_notification_config(parent, notification_config_object = nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3578
+ command = make_simple_command(:post, 'v1/{+parent}/notificationConfigs', options)
3579
+ command.request_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
3580
+ command.request_object = notification_config_object
3581
+ command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
3582
+ command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
3583
+ command.params['parent'] = parent unless parent.nil?
3584
+ command.query['configId'] = config_id unless config_id.nil?
3585
+ command.query['fields'] = fields unless fields.nil?
3586
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3587
+ execute_or_queue_command(command, &block)
3588
+ end
3589
+
3590
+ # Deletes a notification config.
3591
+ # @param [String] name
3592
+ # Required. Name of the notification config to delete. Its format is "
3593
+ # organizations/[organization_id]/notificationConfigs/[config_id]".
3594
+ # @param [String] fields
3595
+ # Selector specifying which fields to include in a partial response.
3596
+ # @param [String] quota_user
3597
+ # Available to use for quota purposes for server-side applications. Can be any
3598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3599
+ # @param [Google::Apis::RequestOptions] options
3600
+ # Request-specific options
3601
+ #
3602
+ # @yield [result, err] Result & error if block supplied
3603
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
3604
+ # @yieldparam err [StandardError] error object if request failed
3605
+ #
3606
+ # @return [Google::Apis::SecuritycenterV1::Empty]
3607
+ #
3608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3611
+ def delete_project_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
3612
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3613
+ command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
3614
+ command.response_class = Google::Apis::SecuritycenterV1::Empty
3615
+ command.params['name'] = name unless name.nil?
3616
+ command.query['fields'] = fields unless fields.nil?
3617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3618
+ execute_or_queue_command(command, &block)
3619
+ end
3620
+
3621
+ # Gets a notification config.
3622
+ # @param [String] name
3623
+ # Required. Name of the notification config to get. Its format is "organizations/
3624
+ # [organization_id]/notificationConfigs/[config_id]".
3625
+ # @param [String] fields
3626
+ # Selector specifying which fields to include in a partial response.
3627
+ # @param [String] quota_user
3628
+ # Available to use for quota purposes for server-side applications. Can be any
3629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3630
+ # @param [Google::Apis::RequestOptions] options
3631
+ # Request-specific options
3632
+ #
3633
+ # @yield [result, err] Result & error if block supplied
3634
+ # @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
3635
+ # @yieldparam err [StandardError] error object if request failed
3636
+ #
3637
+ # @return [Google::Apis::SecuritycenterV1::NotificationConfig]
3638
+ #
3639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3642
+ def get_project_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
3643
+ command = make_simple_command(:get, 'v1/{+name}', options)
3644
+ command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
3645
+ command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
3646
+ command.params['name'] = name unless name.nil?
3647
+ command.query['fields'] = fields unless fields.nil?
3648
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3649
+ execute_or_queue_command(command, &block)
3650
+ end
3651
+
3652
+ # Lists notification configs.
3653
+ # @param [String] parent
3654
+ # Required. Name of the organization to list notification configs. Its format is
3655
+ # "organizations/[organization_id]", "folders/[folder_id]", or "projects/[
3656
+ # project_id]".
3657
+ # @param [Fixnum] page_size
3658
+ # The maximum number of results to return in a single response. Default is 10,
3659
+ # minimum is 1, maximum is 1000.
3660
+ # @param [String] page_token
3661
+ # The value returned by the last `ListNotificationConfigsResponse`; indicates
3662
+ # that this is a continuation of a prior `ListNotificationConfigs` call, and
3663
+ # that the system should return the next page of data.
3664
+ # @param [String] fields
3665
+ # Selector specifying which fields to include in a partial response.
3666
+ # @param [String] quota_user
3667
+ # Available to use for quota purposes for server-side applications. Can be any
3668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3669
+ # @param [Google::Apis::RequestOptions] options
3670
+ # Request-specific options
3671
+ #
3672
+ # @yield [result, err] Result & error if block supplied
3673
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse] parsed result object
3674
+ # @yieldparam err [StandardError] error object if request failed
3675
+ #
3676
+ # @return [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse]
3677
+ #
3678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3681
+ def list_project_notification_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3682
+ command = make_simple_command(:get, 'v1/{+parent}/notificationConfigs', options)
3683
+ command.response_representation = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse::Representation
3684
+ command.response_class = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse
3685
+ command.params['parent'] = parent unless parent.nil?
3686
+ command.query['pageSize'] = page_size unless page_size.nil?
3687
+ command.query['pageToken'] = page_token unless page_token.nil?
3688
+ command.query['fields'] = fields unless fields.nil?
3689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3690
+ execute_or_queue_command(command, &block)
3691
+ end
3692
+
3693
+ # Updates a notification config. The following update fields are allowed:
3694
+ # description, pubsub_topic, streaming_config.filter
3695
+ # @param [String] name
3696
+ # The relative resource name of this notification config. See: https://cloud.
3697
+ # google.com/apis/design/resource_names#relative_resource_name Example: "
3698
+ # organizations/`organization_id`/notificationConfigs/notify_public_bucket".
3699
+ # @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
3700
+ # @param [String] update_mask
3701
+ # The FieldMask to use when updating the notification config. If empty all
3702
+ # mutable fields will be updated.
3703
+ # @param [String] fields
3704
+ # Selector specifying which fields to include in a partial response.
3705
+ # @param [String] quota_user
3706
+ # Available to use for quota purposes for server-side applications. Can be any
3707
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3708
+ # @param [Google::Apis::RequestOptions] options
3709
+ # Request-specific options
3710
+ #
3711
+ # @yield [result, err] Result & error if block supplied
3712
+ # @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
3713
+ # @yieldparam err [StandardError] error object if request failed
3714
+ #
3715
+ # @return [Google::Apis::SecuritycenterV1::NotificationConfig]
3716
+ #
3717
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3718
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3719
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3720
+ def patch_project_notification_config(name, notification_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3721
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3722
+ command.request_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
3723
+ command.request_object = notification_config_object
3724
+ command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
3725
+ command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
3726
+ command.params['name'] = name unless name.nil?
3727
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3728
+ command.query['fields'] = fields unless fields.nil?
3729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3730
+ execute_or_queue_command(command, &block)
3731
+ end
3732
+
3365
3733
  # Lists all sources belonging to an organization.
3366
3734
  # @param [String] parent
3367
3735
  # Required. Resource name of the parent of sources to list. Its format should be
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-securitycenter_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-03 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.44.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.45.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1
63
63
  post_install_message:
64
64
  rdoc_options: []