google-apis-securitycenter_v1 0.43.0 → 0.45.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9b88ea174cb1d8c7e85f6458c8bf93276019b2fdb1ca7d7010c99684157f1dd
4
- data.tar.gz: 9ebb684d0100f73ac0eb2593b72e66d004c3c1d95c2ca3ed29ea273bd763a73e
3
+ metadata.gz: 58a482c8b40bfc3bbeeee0e7ea8a8f728445de18770ba4986f7e47726be7d235
4
+ data.tar.gz: 6a1cfa8507a0ed8ef1504cdd29bc9ad11590b8d2d9a624da99a4c8faf28c4eb3
5
5
  SHA512:
6
- metadata.gz: 34c06f52cc8cda41d3ad7dc633f1f87f28f569b9040c7a43c05a07d4be161a59caa376f205448f4460d9cec6dbc861a71e2c471303ac51f56300832e2c6e4f3c
7
- data.tar.gz: 2fd63d13aa14a2bacec9f40d9386aa3da6dd74c0ea74e9a22c30d73258939608a7069b55af8626067b5eadba987724421df15a0fe798e1957708c258039700c6
6
+ metadata.gz: d800728104d2282fdc6ab5e524e9e98267fb78490664823b36a9a828e18e7a417198e72d6aa7ac354befb529957a5294e3f7f20b03cf157f3ec597e223e419a9
7
+ data.tar.gz: ad098cd352b8ca1384b93b5f4af24a6ebb0740b435726740d70c163593c7a4109f4bd7ef15016e2ee500d6e7360d13ff01447145e1671e139a675a71ea3f2d45
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ ### v0.44.0 (2022-09-28)
9
+
10
+ * Regenerated from discovery document revision 20220921
11
+
3
12
  ### v0.43.0 (2022-09-21)
4
13
 
5
14
  * Regenerated from discovery document revision 20220915
@@ -91,6 +91,14 @@ module Google
91
91
  # @return [String]
92
92
  attr_accessor :user_agent_family
93
93
 
94
+ # A string representing a username. This is likely not an IAM principal. For
95
+ # instance, this may be the system user name if the finding is VM-related, or
96
+ # this may be some type of application login user name, depending on the type of
97
+ # finding.
98
+ # Corresponds to the JSON property `userName`
99
+ # @return [String]
100
+ attr_accessor :user_name
101
+
94
102
  def initialize(**args)
95
103
  update!(**args)
96
104
  end
@@ -106,6 +114,7 @@ module Google
106
114
  @service_account_key_name = args[:service_account_key_name] if args.key?(:service_account_key_name)
107
115
  @service_name = args[:service_name] if args.key?(:service_name)
108
116
  @user_agent_family = args[:user_agent_family] if args.key?(:user_agent_family)
117
+ @user_name = args[:user_name] if args.key?(:user_name)
109
118
  end
110
119
  end
111
120
 
@@ -276,6 +285,32 @@ module Google
276
285
  end
277
286
  end
278
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
+
279
314
  # Specifies the audit configuration for a service. The configuration determines
280
315
  # which permission types are logged, and what identities, if any, are exempted
281
316
  # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -806,6 +841,32 @@ module Google
806
841
  end
807
842
  end
808
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
+
809
870
  # A generic empty message that you can re-use to avoid defining duplicated empty
810
871
  # messages in your APIs. A typical example is to use it as the request or the
811
872
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1508,6 +1569,96 @@ module Google
1508
1569
  end
1509
1570
  end
1510
1571
 
1572
+ # A resource that is exposed as a result of a finding.
1573
+ class GoogleCloudSecuritycenterV1ExposedResource
1574
+ include Google::Apis::Core::Hashable
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
+
1609
+ def initialize(**args)
1610
+ update!(**args)
1611
+ end
1612
+
1613
+ # Update properties of this object
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)
1621
+ end
1622
+ end
1623
+
1624
+ # A path that an attacker could take to reach an exposed resource.
1625
+ class GoogleCloudSecuritycenterV1ExposurePath
1626
+ include Google::Apis::Core::Hashable
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
+
1649
+ def initialize(**args)
1650
+ update!(**args)
1651
+ end
1652
+
1653
+ # Update properties of this object
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)
1659
+ end
1660
+ end
1661
+
1511
1662
  # Representation of third party SIEM/SOAR fields within SCC.
1512
1663
  class GoogleCloudSecuritycenterV1ExternalSystem
1513
1664
  include Google::Apis::Core::Hashable
@@ -1737,11 +1888,26 @@ module Google
1737
1888
  # @return [String]
1738
1889
  attr_accessor :name
1739
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
+
1740
1899
  # Required. Resource value level this expression represents
1741
1900
  # Corresponds to the JSON property `resourceValue`
1742
1901
  # @return [String]
1743
1902
  attr_accessor :resource_value
1744
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
+
1745
1911
  # Required. Tag values combined with AND to check against. Values in the form "
1746
1912
  # tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
1747
1913
  # https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
@@ -1756,7 +1922,9 @@ module Google
1756
1922
  # Update properties of this object
1757
1923
  def update!(**args)
1758
1924
  @name = args[:name] if args.key?(:name)
1925
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1759
1926
  @resource_value = args[:resource_value] if args.key?(:resource_value)
1927
+ @scope = args[:scope] if args.key?(:scope)
1760
1928
  @tag_values = args[:tag_values] if args.key?(:tag_values)
1761
1929
  end
1762
1930
  end
@@ -3143,6 +3311,46 @@ module Google
3143
3311
  end
3144
3312
  end
3145
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
+
3146
3354
  # Kubernetes Pod.
3147
3355
  class Pod
3148
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.43.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 = "20220915"
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
 
@@ -208,6 +220,18 @@ module Google
208
220
  include Google::Apis::Core::JsonObjectSupport
209
221
  end
210
222
 
223
+ class GoogleCloudSecuritycenterV1ExposedResource
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class GoogleCloudSecuritycenterV1ExposurePath
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
211
235
  class GoogleCloudSecuritycenterV1ExternalSystem
212
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
237
 
@@ -442,6 +466,12 @@ module Google
442
466
  include Google::Apis::Core::JsonObjectSupport
443
467
  end
444
468
 
469
+ class PathNode
470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
471
+
472
+ include Google::Apis::Core::JsonObjectSupport
473
+ end
474
+
445
475
  class Pod
446
476
  class Representation < Google::Apis::Core::JsonRepresentation; end
447
477
 
@@ -588,6 +618,7 @@ module Google
588
618
  property :service_account_key_name, as: 'serviceAccountKeyName'
589
619
  property :service_name, as: 'serviceName'
590
620
  property :user_agent_family, as: 'userAgentFamily'
621
+ property :user_name, as: 'userName'
591
622
  end
592
623
  end
593
624
 
@@ -630,6 +661,14 @@ module Google
630
661
  end
631
662
  end
632
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
+
633
672
  class AuditConfig
634
673
  # @private
635
674
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -757,6 +796,14 @@ module Google
757
796
  end
758
797
  end
759
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
+
760
807
  class Empty
761
808
  # @private
762
809
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -927,6 +974,31 @@ module Google
927
974
  end
928
975
  end
929
976
 
977
+ class GoogleCloudSecuritycenterV1ExposedResource
978
+ # @private
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'
986
+ end
987
+ end
988
+
989
+ class GoogleCloudSecuritycenterV1ExposurePath
990
+ # @private
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
+
999
+ end
1000
+ end
1001
+
930
1002
  class GoogleCloudSecuritycenterV1ExternalSystem
931
1003
  # @private
932
1004
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -981,7 +1053,9 @@ module Google
981
1053
  # @private
982
1054
  class Representation < Google::Apis::Core::JsonRepresentation
983
1055
  property :name, as: 'name'
1056
+ property :resource_type, as: 'resourceType'
984
1057
  property :resource_value, as: 'resourceValue'
1058
+ property :scope, as: 'scope'
985
1059
  collection :tag_values, as: 'tagValues'
986
1060
  end
987
1061
  end
@@ -1334,6 +1408,17 @@ module Google
1334
1408
  end
1335
1409
  end
1336
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
+
1337
1422
  class Pod
1338
1423
  # @private
1339
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.43.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-09-26 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.43.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: []