google-apis-securitycenter_v1 0.66.0 → 0.68.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: 5036f37521fb6e883890b0bcd0926b3bfba500d5d4bfe6a24b3cde543e73d037
4
- data.tar.gz: baa33b43004445d5e258474b47a99375dd7c0d200a9dd24a983889401071be1c
3
+ metadata.gz: 54a82879f1cfdef2685e032924013865cfd504675e3a4241a9d17d58e96ce15a
4
+ data.tar.gz: 5c1cf71c1841fd047e56dafdbe4f50e9d61cb7d2bdc0e94fbe24ebbd763cdd64
5
5
  SHA512:
6
- metadata.gz: 4c7b1319a81ddd833c2cc6531dded32c117e4baa4cdde167ba196bebce297f94105d293b54ac85d399cf9e7a54605b8053cb7130d3f8088d8a7180f9cdfd9d92
7
- data.tar.gz: ea6db33bda4b683901289457ad41f072b2540552e0ca0b7f27ee904a4501a7847b11d74789c873abc479a256d1668e0a85b2eea06806f7c370341bbcdabf9186
6
+ metadata.gz: f06b3f9f9c3ad0554ebf472d14b17589aa1398e50268091f831af561e1a7cfe963217fe42b9b29cf6b229b97719736723718edeeca68670cec017ca27b64b861
7
+ data.tar.gz: 1a87858fec21a3a5187e08031c8d9326be0fd41463250d36ccb649392b30ddf8ff32338717582eee154f05ba6d1f0b3ab6cdd0fcf0cff54a11420811af358566
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-securitycenter_v1
2
2
 
3
+ ### v0.68.0 (2023-11-05)
4
+
5
+ * Regenerated from discovery document revision 20231102
6
+
7
+ ### v0.67.0 (2023-10-29)
8
+
9
+ * Regenerated from discovery document revision 20231023
10
+
3
11
  ### v0.66.0 (2023-10-15)
4
12
 
5
13
  * Regenerated from discovery document revision 20231005
@@ -801,6 +801,48 @@ module Google
801
801
  end
802
802
  end
803
803
 
804
+ # Metadata taken from a [Cloud Logging LogEntry](https://cloud.google.com/
805
+ # logging/docs/reference/v2/rest/v2/LogEntry)
806
+ class CloudLoggingEntry
807
+ include Google::Apis::Core::Hashable
808
+
809
+ # A unique identifier for the log entry.
810
+ # Corresponds to the JSON property `insertId`
811
+ # @return [String]
812
+ attr_accessor :insert_id
813
+
814
+ # The type of the log (part of `log_name`. `log_name` is the resource name of
815
+ # the log to which this log entry belongs). For example: `cloudresourcemanager.
816
+ # googleapis.com/activity`. Note that this field is not URL-encoded, unlike the `
817
+ # LOG_ID` field in `LogEntry`.
818
+ # Corresponds to the JSON property `logId`
819
+ # @return [String]
820
+ attr_accessor :log_id
821
+
822
+ # The organization, folder, or project of the monitored resource that produced
823
+ # this log entry.
824
+ # Corresponds to the JSON property `resourceContainer`
825
+ # @return [String]
826
+ attr_accessor :resource_container
827
+
828
+ # The time the event described by the log entry occurred.
829
+ # Corresponds to the JSON property `timestamp`
830
+ # @return [String]
831
+ attr_accessor :timestamp
832
+
833
+ def initialize(**args)
834
+ update!(**args)
835
+ end
836
+
837
+ # Update properties of this object
838
+ def update!(**args)
839
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
840
+ @log_id = args[:log_id] if args.key?(:log_id)
841
+ @resource_container = args[:resource_container] if args.key?(:resource_container)
842
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
843
+ end
844
+ end
845
+
804
846
  # Contains compliance information about a security standard indicating unmet
805
847
  # recommendations.
806
848
  class Compliance
@@ -1698,6 +1740,11 @@ module Google
1698
1740
  # @return [Array<Google::Apis::SecuritycenterV1::LoadBalancer>]
1699
1741
  attr_accessor :load_balancers
1700
1742
 
1743
+ # Log entries that are relevant to the finding.
1744
+ # Corresponds to the JSON property `logEntries`
1745
+ # @return [Array<Google::Apis::SecuritycenterV1::LogEntry>]
1746
+ attr_accessor :log_entries
1747
+
1701
1748
  # MITRE ATT&CK tactics and techniques related to this finding. See: https://
1702
1749
  # attack.mitre.org
1703
1750
  # Corresponds to the JSON property `mitreAttack`
@@ -1743,6 +1790,11 @@ module Google
1743
1790
  # @return [String]
1744
1791
  attr_accessor :next_steps
1745
1792
 
1793
+ # Contains information about the org policies associated with the finding.
1794
+ # Corresponds to the JSON property `orgPolicies`
1795
+ # @return [Array<Google::Apis::SecuritycenterV1::OrgPolicy>]
1796
+ attr_accessor :org_policies
1797
+
1746
1798
  # The relative resource name of the source the finding belongs to. See: https://
1747
1799
  # cloud.google.com/apis/design/resource_names#relative_resource_name This field
1748
1800
  # is immutable after creation time. For example: "organizations/`organization_id`
@@ -1841,6 +1893,7 @@ module Google
1841
1893
  @kernel_rootkit = args[:kernel_rootkit] if args.key?(:kernel_rootkit)
1842
1894
  @kubernetes = args[:kubernetes] if args.key?(:kubernetes)
1843
1895
  @load_balancers = args[:load_balancers] if args.key?(:load_balancers)
1896
+ @log_entries = args[:log_entries] if args.key?(:log_entries)
1844
1897
  @mitre_attack = args[:mitre_attack] if args.key?(:mitre_attack)
1845
1898
  @module_name = args[:module_name] if args.key?(:module_name)
1846
1899
  @mute = args[:mute] if args.key?(:mute)
@@ -1848,6 +1901,7 @@ module Google
1848
1901
  @mute_update_time = args[:mute_update_time] if args.key?(:mute_update_time)
1849
1902
  @name = args[:name] if args.key?(:name)
1850
1903
  @next_steps = args[:next_steps] if args.key?(:next_steps)
1904
+ @org_policies = args[:org_policies] if args.key?(:org_policies)
1851
1905
  @parent = args[:parent] if args.key?(:parent)
1852
1906
  @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
1853
1907
  @processes = args[:processes] if args.key?(:processes)
@@ -2329,7 +2383,10 @@ module Google
2329
2383
 
2330
2384
  # This field will be ignored if provided on config creation. Format "
2331
2385
  # organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
2332
- # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`"
2386
+ # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
2387
+ # organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
2388
+ # folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
2389
+ # project`/locations/global/muteConfigs/`mute_config`"
2333
2390
  # Corresponds to the JSON property `name`
2334
2391
  # @return [String]
2335
2392
  attr_accessor :name
@@ -4084,6 +4141,26 @@ module Google
4084
4141
  end
4085
4142
  end
4086
4143
 
4144
+ # An individual entry in a log.
4145
+ class LogEntry
4146
+ include Google::Apis::Core::Hashable
4147
+
4148
+ # Metadata taken from a [Cloud Logging LogEntry](https://cloud.google.com/
4149
+ # logging/docs/reference/v2/rest/v2/LogEntry)
4150
+ # Corresponds to the JSON property `cloudLoggingEntry`
4151
+ # @return [Google::Apis::SecuritycenterV1::CloudLoggingEntry]
4152
+ attr_accessor :cloud_logging_entry
4153
+
4154
+ def initialize(**args)
4155
+ update!(**args)
4156
+ end
4157
+
4158
+ # Update properties of this object
4159
+ def update!(**args)
4160
+ @cloud_logging_entry = args[:cloud_logging_entry] if args.key?(:cloud_logging_entry)
4161
+ end
4162
+ end
4163
+
4087
4164
  # A signature corresponding to memory page hashes.
4088
4165
  class MemoryHashSignature
4089
4166
  include Google::Apis::Core::Hashable
@@ -4261,6 +4338,11 @@ module Google
4261
4338
  class Object
4262
4339
  include Google::Apis::Core::Hashable
4263
4340
 
4341
+ # Pod containers associated with this finding, if any.
4342
+ # Corresponds to the JSON property `containers`
4343
+ # @return [Array<Google::Apis::SecuritycenterV1::Container>]
4344
+ attr_accessor :containers
4345
+
4264
4346
  # Kubernetes object group, such as "policy.k8s.io/v1".
4265
4347
  # Corresponds to the JSON property `group`
4266
4348
  # @return [String]
@@ -4290,6 +4372,7 @@ module Google
4290
4372
 
4291
4373
  # Update properties of this object
4292
4374
  def update!(**args)
4375
+ @containers = args[:containers] if args.key?(:containers)
4293
4376
  @group = args[:group] if args.key?(:group)
4294
4377
  @kind = args[:kind] if args.key?(:kind)
4295
4378
  @name = args[:name] if args.key?(:name)
@@ -4359,6 +4442,26 @@ module Google
4359
4442
  end
4360
4443
  end
4361
4444
 
4445
+ # Contains information about the org policies associated with the finding.
4446
+ class OrgPolicy
4447
+ include Google::Apis::Core::Hashable
4448
+
4449
+ # The resource name of the org policy. Example: "organizations/`organization_id`/
4450
+ # policies/`constraint_name`"
4451
+ # Corresponds to the JSON property `name`
4452
+ # @return [String]
4453
+ attr_accessor :name
4454
+
4455
+ def initialize(**args)
4456
+ update!(**args)
4457
+ end
4458
+
4459
+ # Update properties of this object
4460
+ def update!(**args)
4461
+ @name = args[:name] if args.key?(:name)
4462
+ end
4463
+ end
4464
+
4362
4465
  # User specified settings that are attached to the Security Command Center
4363
4466
  # organization.
4364
4467
  class OrganizationSettings
@@ -5143,6 +5246,157 @@ module Google
5143
5246
  end
5144
5247
  end
5145
5248
 
5249
+ # Request message to simulate a CustomConfig against a given test resource.
5250
+ # Maximum size of the request is 4 MB by default.
5251
+ class SimulateSecurityHealthAnalyticsCustomModuleRequest
5252
+ include Google::Apis::Core::Hashable
5253
+
5254
+ # Defines the properties in a custom module configuration for Security Health
5255
+ # Analytics. Use the custom module configuration to create custom detectors that
5256
+ # generate custom findings for resources that you specify.
5257
+ # Corresponds to the JSON property `customConfig`
5258
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomConfig]
5259
+ attr_accessor :custom_config
5260
+
5261
+ # Manually constructed resource. If the custom module only evaluates against the
5262
+ # resource data, the iam_policy_data field can be omitted, and vice versa.
5263
+ # Corresponds to the JSON property `resource`
5264
+ # @return [Google::Apis::SecuritycenterV1::SimulatedResource]
5265
+ attr_accessor :resource
5266
+
5267
+ def initialize(**args)
5268
+ update!(**args)
5269
+ end
5270
+
5271
+ # Update properties of this object
5272
+ def update!(**args)
5273
+ @custom_config = args[:custom_config] if args.key?(:custom_config)
5274
+ @resource = args[:resource] if args.key?(:resource)
5275
+ end
5276
+ end
5277
+
5278
+ # Response message for simulating a SecurityHealthAnalyticsCustomModule against
5279
+ # a given resource.
5280
+ class SimulateSecurityHealthAnalyticsCustomModuleResponse
5281
+ include Google::Apis::Core::Hashable
5282
+
5283
+ # Possible test result.
5284
+ # Corresponds to the JSON property `result`
5285
+ # @return [Google::Apis::SecuritycenterV1::SimulatedResult]
5286
+ attr_accessor :result
5287
+
5288
+ def initialize(**args)
5289
+ update!(**args)
5290
+ end
5291
+
5292
+ # Update properties of this object
5293
+ def update!(**args)
5294
+ @result = args[:result] if args.key?(:result)
5295
+ end
5296
+ end
5297
+
5298
+ # Manually constructed resource. If the custom module only evaluates against the
5299
+ # resource data, the iam_policy_data field can be omitted, and vice versa.
5300
+ class SimulatedResource
5301
+ include Google::Apis::Core::Hashable
5302
+
5303
+ # An Identity and Access Management (IAM) policy, which specifies access
5304
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
5305
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
5306
+ # Principals can be user accounts, service accounts, Google groups, and domains (
5307
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
5308
+ # an IAM predefined role or a user-created custom role. For some types of Google
5309
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
5310
+ # logical expression that allows access to a resource only if the expression
5311
+ # evaluates to `true`. A condition can add constraints based on attributes of
5312
+ # the request, the resource, or both. To learn which resources support
5313
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
5314
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
5315
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
5316
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
5317
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
5318
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
5319
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
5320
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
5321
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
5322
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
5323
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
5324
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
5325
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
5326
+ # title: expirable access description: Does not grant access after Sep 2020
5327
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
5328
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
5329
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
5330
+ # Corresponds to the JSON property `iamPolicyData`
5331
+ # @return [Google::Apis::SecuritycenterV1::Policy]
5332
+ attr_accessor :iam_policy_data
5333
+
5334
+ # Optional. A representation of the GCP resource. Should match the GCP resource
5335
+ # JSON format.
5336
+ # Corresponds to the JSON property `resourceData`
5337
+ # @return [Hash<String,Object>]
5338
+ attr_accessor :resource_data
5339
+
5340
+ # Required. The type of the resource, e.g. `compute.googleapis.com/Disk`.
5341
+ # Corresponds to the JSON property `resourceType`
5342
+ # @return [String]
5343
+ attr_accessor :resource_type
5344
+
5345
+ def initialize(**args)
5346
+ update!(**args)
5347
+ end
5348
+
5349
+ # Update properties of this object
5350
+ def update!(**args)
5351
+ @iam_policy_data = args[:iam_policy_data] if args.key?(:iam_policy_data)
5352
+ @resource_data = args[:resource_data] if args.key?(:resource_data)
5353
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
5354
+ end
5355
+ end
5356
+
5357
+ # Possible test result.
5358
+ class SimulatedResult
5359
+ include Google::Apis::Core::Hashable
5360
+
5361
+ # The `Status` type defines a logical error model that is suitable for different
5362
+ # programming environments, including REST APIs and RPC APIs. It is used by [
5363
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
5364
+ # data: error code, error message, and error details. You can find out more
5365
+ # about this error model and how to work with it in the [API Design Guide](https:
5366
+ # //cloud.google.com/apis/design/errors).
5367
+ # Corresponds to the JSON property `error`
5368
+ # @return [Google::Apis::SecuritycenterV1::Status]
5369
+ attr_accessor :error
5370
+
5371
+ # Security Command Center finding. A finding is a record of assessment data like
5372
+ # security, risk, health, or privacy, that is ingested into Security Command
5373
+ # Center for presentation, notification, analysis, policy testing, and
5374
+ # enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
5375
+ # Engine application is a finding.
5376
+ # Corresponds to the JSON property `finding`
5377
+ # @return [Google::Apis::SecuritycenterV1::Finding]
5378
+ attr_accessor :finding
5379
+
5380
+ # A generic empty message that you can re-use to avoid defining duplicated empty
5381
+ # messages in your APIs. A typical example is to use it as the request or the
5382
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
5383
+ # protobuf.Empty) returns (google.protobuf.Empty); `
5384
+ # Corresponds to the JSON property `noViolation`
5385
+ # @return [Google::Apis::SecuritycenterV1::Empty]
5386
+ attr_accessor :no_violation
5387
+
5388
+ def initialize(**args)
5389
+ update!(**args)
5390
+ end
5391
+
5392
+ # Update properties of this object
5393
+ def update!(**args)
5394
+ @error = args[:error] if args.key?(:error)
5395
+ @finding = args[:finding] if args.key?(:finding)
5396
+ @no_violation = args[:no_violation] if args.key?(:no_violation)
5397
+ end
5398
+ end
5399
+
5146
5400
  # Attack path simulation
5147
5401
  class Simulation
5148
5402
  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.66.0"
19
+ GEM_VERSION = "0.68.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231005"
25
+ REVISION = "20231102"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class CloudLoggingEntry
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class Compliance
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -568,6 +574,12 @@ module Google
568
574
  include Google::Apis::Core::JsonObjectSupport
569
575
  end
570
576
 
577
+ class LogEntry
578
+ class Representation < Google::Apis::Core::JsonRepresentation; end
579
+
580
+ include Google::Apis::Core::JsonObjectSupport
581
+ end
582
+
571
583
  class MemoryHashSignature
572
584
  class Representation < Google::Apis::Core::JsonRepresentation; end
573
585
 
@@ -610,6 +622,12 @@ module Google
610
622
  include Google::Apis::Core::JsonObjectSupport
611
623
  end
612
624
 
625
+ class OrgPolicy
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
613
631
  class OrganizationSettings
614
632
  class Representation < Google::Apis::Core::JsonRepresentation; end
615
633
 
@@ -724,6 +742,30 @@ module Google
724
742
  include Google::Apis::Core::JsonObjectSupport
725
743
  end
726
744
 
745
+ class SimulateSecurityHealthAnalyticsCustomModuleRequest
746
+ class Representation < Google::Apis::Core::JsonRepresentation; end
747
+
748
+ include Google::Apis::Core::JsonObjectSupport
749
+ end
750
+
751
+ class SimulateSecurityHealthAnalyticsCustomModuleResponse
752
+ class Representation < Google::Apis::Core::JsonRepresentation; end
753
+
754
+ include Google::Apis::Core::JsonObjectSupport
755
+ end
756
+
757
+ class SimulatedResource
758
+ class Representation < Google::Apis::Core::JsonRepresentation; end
759
+
760
+ include Google::Apis::Core::JsonObjectSupport
761
+ end
762
+
763
+ class SimulatedResult
764
+ class Representation < Google::Apis::Core::JsonRepresentation; end
765
+
766
+ include Google::Apis::Core::JsonObjectSupport
767
+ end
768
+
727
769
  class Simulation
728
770
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
771
 
@@ -980,6 +1022,16 @@ module Google
980
1022
  end
981
1023
  end
982
1024
 
1025
+ class CloudLoggingEntry
1026
+ # @private
1027
+ class Representation < Google::Apis::Core::JsonRepresentation
1028
+ property :insert_id, as: 'insertId'
1029
+ property :log_id, as: 'logId'
1030
+ property :resource_container, as: 'resourceContainer'
1031
+ property :timestamp, as: 'timestamp'
1032
+ end
1033
+ end
1034
+
983
1035
  class Compliance
984
1036
  # @private
985
1037
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1216,6 +1268,8 @@ module Google
1216
1268
 
1217
1269
  collection :load_balancers, as: 'loadBalancers', class: Google::Apis::SecuritycenterV1::LoadBalancer, decorator: Google::Apis::SecuritycenterV1::LoadBalancer::Representation
1218
1270
 
1271
+ collection :log_entries, as: 'logEntries', class: Google::Apis::SecuritycenterV1::LogEntry, decorator: Google::Apis::SecuritycenterV1::LogEntry::Representation
1272
+
1219
1273
  property :mitre_attack, as: 'mitreAttack', class: Google::Apis::SecuritycenterV1::MitreAttack, decorator: Google::Apis::SecuritycenterV1::MitreAttack::Representation
1220
1274
 
1221
1275
  property :module_name, as: 'moduleName'
@@ -1224,6 +1278,8 @@ module Google
1224
1278
  property :mute_update_time, as: 'muteUpdateTime'
1225
1279
  property :name, as: 'name'
1226
1280
  property :next_steps, as: 'nextSteps'
1281
+ collection :org_policies, as: 'orgPolicies', class: Google::Apis::SecuritycenterV1::OrgPolicy, decorator: Google::Apis::SecuritycenterV1::OrgPolicy::Representation
1282
+
1227
1283
  property :parent, as: 'parent'
1228
1284
  property :parent_display_name, as: 'parentDisplayName'
1229
1285
  collection :processes, as: 'processes', class: Google::Apis::SecuritycenterV1::Process, decorator: Google::Apis::SecuritycenterV1::Process::Representation
@@ -1798,6 +1854,14 @@ module Google
1798
1854
  end
1799
1855
  end
1800
1856
 
1857
+ class LogEntry
1858
+ # @private
1859
+ class Representation < Google::Apis::Core::JsonRepresentation
1860
+ property :cloud_logging_entry, as: 'cloudLoggingEntry', class: Google::Apis::SecuritycenterV1::CloudLoggingEntry, decorator: Google::Apis::SecuritycenterV1::CloudLoggingEntry::Representation
1861
+
1862
+ end
1863
+ end
1864
+
1801
1865
  class MemoryHashSignature
1802
1866
  # @private
1803
1867
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1849,6 +1913,8 @@ module Google
1849
1913
  class Object
1850
1914
  # @private
1851
1915
  class Representation < Google::Apis::Core::JsonRepresentation
1916
+ collection :containers, as: 'containers', class: Google::Apis::SecuritycenterV1::Container, decorator: Google::Apis::SecuritycenterV1::Container::Representation
1917
+
1852
1918
  property :group, as: 'group'
1853
1919
  property :kind, as: 'kind'
1854
1920
  property :name, as: 'name'
@@ -1868,6 +1934,13 @@ module Google
1868
1934
  end
1869
1935
  end
1870
1936
 
1937
+ class OrgPolicy
1938
+ # @private
1939
+ class Representation < Google::Apis::Core::JsonRepresentation
1940
+ property :name, as: 'name'
1941
+ end
1942
+ end
1943
+
1871
1944
  class OrganizationSettings
1872
1945
  # @private
1873
1946
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2062,6 +2135,46 @@ module Google
2062
2135
  end
2063
2136
  end
2064
2137
 
2138
+ class SimulateSecurityHealthAnalyticsCustomModuleRequest
2139
+ # @private
2140
+ class Representation < Google::Apis::Core::JsonRepresentation
2141
+ property :custom_config, as: 'customConfig', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomConfig, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomConfig::Representation
2142
+
2143
+ property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::SimulatedResource, decorator: Google::Apis::SecuritycenterV1::SimulatedResource::Representation
2144
+
2145
+ end
2146
+ end
2147
+
2148
+ class SimulateSecurityHealthAnalyticsCustomModuleResponse
2149
+ # @private
2150
+ class Representation < Google::Apis::Core::JsonRepresentation
2151
+ property :result, as: 'result', class: Google::Apis::SecuritycenterV1::SimulatedResult, decorator: Google::Apis::SecuritycenterV1::SimulatedResult::Representation
2152
+
2153
+ end
2154
+ end
2155
+
2156
+ class SimulatedResource
2157
+ # @private
2158
+ class Representation < Google::Apis::Core::JsonRepresentation
2159
+ property :iam_policy_data, as: 'iamPolicyData', class: Google::Apis::SecuritycenterV1::Policy, decorator: Google::Apis::SecuritycenterV1::Policy::Representation
2160
+
2161
+ hash :resource_data, as: 'resourceData'
2162
+ property :resource_type, as: 'resourceType'
2163
+ end
2164
+ end
2165
+
2166
+ class SimulatedResult
2167
+ # @private
2168
+ class Representation < Google::Apis::Core::JsonRepresentation
2169
+ property :error, as: 'error', class: Google::Apis::SecuritycenterV1::Status, decorator: Google::Apis::SecuritycenterV1::Status::Representation
2170
+
2171
+ property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::Finding, decorator: Google::Apis::SecuritycenterV1::Finding::Representation
2172
+
2173
+ property :no_violation, as: 'noViolation', class: Google::Apis::SecuritycenterV1::Empty, decorator: Google::Apis::SecuritycenterV1::Empty::Representation
2174
+
2175
+ end
2176
+ end
2177
+
2065
2178
  class Simulation
2066
2179
  # @private
2067
2180
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -480,6 +480,117 @@ module Google
480
480
  execute_or_queue_command(command, &block)
481
481
  end
482
482
 
483
+ # Deletes an existing mute config.
484
+ # @param [String] name
485
+ # Required. Name of the mute config to delete. Its format is organizations/`
486
+ # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
487
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
488
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
489
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
490
+ # config_id`.
491
+ # @param [String] fields
492
+ # Selector specifying which fields to include in a partial response.
493
+ # @param [String] quota_user
494
+ # Available to use for quota purposes for server-side applications. Can be any
495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
496
+ # @param [Google::Apis::RequestOptions] options
497
+ # Request-specific options
498
+ #
499
+ # @yield [result, err] Result & error if block supplied
500
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
501
+ # @yieldparam err [StandardError] error object if request failed
502
+ #
503
+ # @return [Google::Apis::SecuritycenterV1::Empty]
504
+ #
505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
508
+ def delete_folder_location_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
509
+ command = make_simple_command(:delete, 'v1/{+name}', options)
510
+ command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
511
+ command.response_class = Google::Apis::SecuritycenterV1::Empty
512
+ command.params['name'] = name unless name.nil?
513
+ command.query['fields'] = fields unless fields.nil?
514
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
515
+ execute_or_queue_command(command, &block)
516
+ end
517
+
518
+ # Gets a mute config.
519
+ # @param [String] name
520
+ # Required. Name of the mute config to retrieve. Its format is organizations/`
521
+ # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
522
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
523
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
524
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
525
+ # config_id`.
526
+ # @param [String] fields
527
+ # Selector specifying which fields to include in a partial response.
528
+ # @param [String] quota_user
529
+ # Available to use for quota purposes for server-side applications. Can be any
530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
531
+ # @param [Google::Apis::RequestOptions] options
532
+ # Request-specific options
533
+ #
534
+ # @yield [result, err] Result & error if block supplied
535
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
536
+ # @yieldparam err [StandardError] error object if request failed
537
+ #
538
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
539
+ #
540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
543
+ def get_folder_location_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
544
+ command = make_simple_command(:get, 'v1/{+name}', options)
545
+ command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
546
+ command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
547
+ command.params['name'] = name unless name.nil?
548
+ command.query['fields'] = fields unless fields.nil?
549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
550
+ execute_or_queue_command(command, &block)
551
+ end
552
+
553
+ # Updates a mute config.
554
+ # @param [String] name
555
+ # This field will be ignored if provided on config creation. Format "
556
+ # organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
557
+ # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
558
+ # organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
559
+ # folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
560
+ # project`/locations/global/muteConfigs/`mute_config`"
561
+ # @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
562
+ # @param [String] update_mask
563
+ # The list of fields to be updated. If empty all mutable fields will be updated.
564
+ # @param [String] fields
565
+ # Selector specifying which fields to include in a partial response.
566
+ # @param [String] quota_user
567
+ # Available to use for quota purposes for server-side applications. Can be any
568
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
569
+ # @param [Google::Apis::RequestOptions] options
570
+ # Request-specific options
571
+ #
572
+ # @yield [result, err] Result & error if block supplied
573
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
574
+ # @yieldparam err [StandardError] error object if request failed
575
+ #
576
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
577
+ #
578
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
579
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
580
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
581
+ def patch_folder_location_mute_config(name, google_cloud_securitycenter_v1_mute_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
582
+ command = make_simple_command(:patch, 'v1/{+name}', options)
583
+ command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
584
+ command.request_object = google_cloud_securitycenter_v1_mute_config_object
585
+ command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
586
+ command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
587
+ command.params['name'] = name unless name.nil?
588
+ command.query['updateMask'] = update_mask unless update_mask.nil?
589
+ command.query['fields'] = fields unless fields.nil?
590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
591
+ execute_or_queue_command(command, &block)
592
+ end
593
+
483
594
  # Creates a mute config.
484
595
  # @param [String] parent
485
596
  # Required. Resource name of the new mute configs's parent. Its format is "
@@ -525,7 +636,10 @@ module Google
525
636
  # @param [String] name
526
637
  # Required. Name of the mute config to delete. Its format is organizations/`
527
638
  # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
528
- # , or projects/`project`/muteConfigs/`config_id`
639
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
640
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
641
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
642
+ # config_id`.
529
643
  # @param [String] fields
530
644
  # Selector specifying which fields to include in a partial response.
531
645
  # @param [String] quota_user
@@ -557,7 +671,10 @@ module Google
557
671
  # @param [String] name
558
672
  # Required. Name of the mute config to retrieve. Its format is organizations/`
559
673
  # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
560
- # , or projects/`project`/muteConfigs/`config_id`
674
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
675
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
676
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
677
+ # config_id`.
561
678
  # @param [String] fields
562
679
  # Selector specifying which fields to include in a partial response.
563
680
  # @param [String] quota_user
@@ -631,7 +748,10 @@ module Google
631
748
  # @param [String] name
632
749
  # This field will be ignored if provided on config creation. Format "
633
750
  # organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
634
- # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`"
751
+ # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
752
+ # organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
753
+ # folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
754
+ # project`/locations/global/muteConfigs/`mute_config`"
635
755
  # @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
636
756
  # @param [String] update_mask
637
757
  # The list of fields to be updated. If empty all mutable fields will be updated.
@@ -1092,6 +1212,41 @@ module Google
1092
1212
  execute_or_queue_command(command, &block)
1093
1213
  end
1094
1214
 
1215
+ # Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
1216
+ # @param [String] parent
1217
+ # Required. The relative resource name of the organization, project, or folder.
1218
+ # See: https://cloud.google.com/apis/design/resource_names#
1219
+ # relative_resource_name An example is: "organizations/`organization_id`".
1220
+ # @param [Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleRequest] simulate_security_health_analytics_custom_module_request_object
1221
+ # @param [String] fields
1222
+ # Selector specifying which fields to include in a partial response.
1223
+ # @param [String] quota_user
1224
+ # Available to use for quota purposes for server-side applications. Can be any
1225
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1226
+ # @param [Google::Apis::RequestOptions] options
1227
+ # Request-specific options
1228
+ #
1229
+ # @yield [result, err] Result & error if block supplied
1230
+ # @yieldparam result [Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse] parsed result object
1231
+ # @yieldparam err [StandardError] error object if request failed
1232
+ #
1233
+ # @return [Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse]
1234
+ #
1235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1238
+ def simulate_folder_security_health_analytics_setting_custom_module(parent, simulate_security_health_analytics_custom_module_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1239
+ command = make_simple_command(:post, 'v1/{+parent}/customModules:simulate', options)
1240
+ command.request_representation = Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleRequest::Representation
1241
+ command.request_object = simulate_security_health_analytics_custom_module_request_object
1242
+ command.response_representation = Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse::Representation
1243
+ command.response_class = Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse
1244
+ command.params['parent'] = parent unless parent.nil?
1245
+ command.query['fields'] = fields unless fields.nil?
1246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1247
+ execute_or_queue_command(command, &block)
1248
+ end
1249
+
1095
1250
  # Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
1096
1251
  # @param [String] name
1097
1252
  # Required. Name of the effective custom module to get. Its format is "
@@ -2319,6 +2474,117 @@ module Google
2319
2474
  execute_or_queue_command(command, &block)
2320
2475
  end
2321
2476
 
2477
+ # Deletes an existing mute config.
2478
+ # @param [String] name
2479
+ # Required. Name of the mute config to delete. Its format is organizations/`
2480
+ # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
2481
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
2482
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
2483
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
2484
+ # config_id`.
2485
+ # @param [String] fields
2486
+ # Selector specifying which fields to include in a partial response.
2487
+ # @param [String] quota_user
2488
+ # Available to use for quota purposes for server-side applications. Can be any
2489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2490
+ # @param [Google::Apis::RequestOptions] options
2491
+ # Request-specific options
2492
+ #
2493
+ # @yield [result, err] Result & error if block supplied
2494
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
2495
+ # @yieldparam err [StandardError] error object if request failed
2496
+ #
2497
+ # @return [Google::Apis::SecuritycenterV1::Empty]
2498
+ #
2499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2502
+ def delete_organization_location_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
2503
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2504
+ command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
2505
+ command.response_class = Google::Apis::SecuritycenterV1::Empty
2506
+ command.params['name'] = name unless name.nil?
2507
+ command.query['fields'] = fields unless fields.nil?
2508
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2509
+ execute_or_queue_command(command, &block)
2510
+ end
2511
+
2512
+ # Gets a mute config.
2513
+ # @param [String] name
2514
+ # Required. Name of the mute config to retrieve. Its format is organizations/`
2515
+ # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
2516
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
2517
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
2518
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
2519
+ # config_id`.
2520
+ # @param [String] fields
2521
+ # Selector specifying which fields to include in a partial response.
2522
+ # @param [String] quota_user
2523
+ # Available to use for quota purposes for server-side applications. Can be any
2524
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2525
+ # @param [Google::Apis::RequestOptions] options
2526
+ # Request-specific options
2527
+ #
2528
+ # @yield [result, err] Result & error if block supplied
2529
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
2530
+ # @yieldparam err [StandardError] error object if request failed
2531
+ #
2532
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
2533
+ #
2534
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2535
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2536
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2537
+ def get_organization_location_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
2538
+ command = make_simple_command(:get, 'v1/{+name}', options)
2539
+ command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
2540
+ command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
2541
+ command.params['name'] = name unless name.nil?
2542
+ command.query['fields'] = fields unless fields.nil?
2543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2544
+ execute_or_queue_command(command, &block)
2545
+ end
2546
+
2547
+ # Updates a mute config.
2548
+ # @param [String] name
2549
+ # This field will be ignored if provided on config creation. Format "
2550
+ # organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
2551
+ # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
2552
+ # organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
2553
+ # folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
2554
+ # project`/locations/global/muteConfigs/`mute_config`"
2555
+ # @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
2556
+ # @param [String] update_mask
2557
+ # The list of fields to be updated. If empty all mutable fields will be updated.
2558
+ # @param [String] fields
2559
+ # Selector specifying which fields to include in a partial response.
2560
+ # @param [String] quota_user
2561
+ # Available to use for quota purposes for server-side applications. Can be any
2562
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2563
+ # @param [Google::Apis::RequestOptions] options
2564
+ # Request-specific options
2565
+ #
2566
+ # @yield [result, err] Result & error if block supplied
2567
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
2568
+ # @yieldparam err [StandardError] error object if request failed
2569
+ #
2570
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
2571
+ #
2572
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2573
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2574
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2575
+ def patch_organization_location_mute_config(name, google_cloud_securitycenter_v1_mute_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2576
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2577
+ command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
2578
+ command.request_object = google_cloud_securitycenter_v1_mute_config_object
2579
+ command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
2580
+ command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
2581
+ command.params['name'] = name unless name.nil?
2582
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2583
+ command.query['fields'] = fields unless fields.nil?
2584
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2585
+ execute_or_queue_command(command, &block)
2586
+ end
2587
+
2322
2588
  # Creates a mute config.
2323
2589
  # @param [String] parent
2324
2590
  # Required. Resource name of the new mute configs's parent. Its format is "
@@ -2364,7 +2630,10 @@ module Google
2364
2630
  # @param [String] name
2365
2631
  # Required. Name of the mute config to delete. Its format is organizations/`
2366
2632
  # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
2367
- # , or projects/`project`/muteConfigs/`config_id`
2633
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
2634
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
2635
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
2636
+ # config_id`.
2368
2637
  # @param [String] fields
2369
2638
  # Selector specifying which fields to include in a partial response.
2370
2639
  # @param [String] quota_user
@@ -2396,7 +2665,10 @@ module Google
2396
2665
  # @param [String] name
2397
2666
  # Required. Name of the mute config to retrieve. Its format is organizations/`
2398
2667
  # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
2399
- # , or projects/`project`/muteConfigs/`config_id`
2668
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
2669
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
2670
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
2671
+ # config_id`.
2400
2672
  # @param [String] fields
2401
2673
  # Selector specifying which fields to include in a partial response.
2402
2674
  # @param [String] quota_user
@@ -2470,7 +2742,10 @@ module Google
2470
2742
  # @param [String] name
2471
2743
  # This field will be ignored if provided on config creation. Format "
2472
2744
  # organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
2473
- # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`"
2745
+ # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
2746
+ # organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
2747
+ # folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
2748
+ # project`/locations/global/muteConfigs/`mute_config`"
2474
2749
  # @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
2475
2750
  # @param [String] update_mask
2476
2751
  # The list of fields to be updated. If empty all mutable fields will be updated.
@@ -3248,6 +3523,41 @@ module Google
3248
3523
  execute_or_queue_command(command, &block)
3249
3524
  end
3250
3525
 
3526
+ # Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
3527
+ # @param [String] parent
3528
+ # Required. The relative resource name of the organization, project, or folder.
3529
+ # See: https://cloud.google.com/apis/design/resource_names#
3530
+ # relative_resource_name An example is: "organizations/`organization_id`".
3531
+ # @param [Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleRequest] simulate_security_health_analytics_custom_module_request_object
3532
+ # @param [String] fields
3533
+ # Selector specifying which fields to include in a partial response.
3534
+ # @param [String] quota_user
3535
+ # Available to use for quota purposes for server-side applications. Can be any
3536
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3537
+ # @param [Google::Apis::RequestOptions] options
3538
+ # Request-specific options
3539
+ #
3540
+ # @yield [result, err] Result & error if block supplied
3541
+ # @yieldparam result [Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse] parsed result object
3542
+ # @yieldparam err [StandardError] error object if request failed
3543
+ #
3544
+ # @return [Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse]
3545
+ #
3546
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3547
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3548
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3549
+ def simulate_organization_security_health_analytics_setting_custom_module(parent, simulate_security_health_analytics_custom_module_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3550
+ command = make_simple_command(:post, 'v1/{+parent}/customModules:simulate', options)
3551
+ command.request_representation = Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleRequest::Representation
3552
+ command.request_object = simulate_security_health_analytics_custom_module_request_object
3553
+ command.response_representation = Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse::Representation
3554
+ command.response_class = Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse
3555
+ command.params['parent'] = parent unless parent.nil?
3556
+ command.query['fields'] = fields unless fields.nil?
3557
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3558
+ execute_or_queue_command(command, &block)
3559
+ end
3560
+
3251
3561
  # Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
3252
3562
  # @param [String] name
3253
3563
  # Required. Name of the effective custom module to get. Its format is "
@@ -4674,6 +4984,117 @@ module Google
4674
4984
  execute_or_queue_command(command, &block)
4675
4985
  end
4676
4986
 
4987
+ # Deletes an existing mute config.
4988
+ # @param [String] name
4989
+ # Required. Name of the mute config to delete. Its format is organizations/`
4990
+ # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
4991
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
4992
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
4993
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
4994
+ # config_id`.
4995
+ # @param [String] fields
4996
+ # Selector specifying which fields to include in a partial response.
4997
+ # @param [String] quota_user
4998
+ # Available to use for quota purposes for server-side applications. Can be any
4999
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5000
+ # @param [Google::Apis::RequestOptions] options
5001
+ # Request-specific options
5002
+ #
5003
+ # @yield [result, err] Result & error if block supplied
5004
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
5005
+ # @yieldparam err [StandardError] error object if request failed
5006
+ #
5007
+ # @return [Google::Apis::SecuritycenterV1::Empty]
5008
+ #
5009
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5010
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5011
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5012
+ def delete_project_location_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
5013
+ command = make_simple_command(:delete, 'v1/{+name}', options)
5014
+ command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
5015
+ command.response_class = Google::Apis::SecuritycenterV1::Empty
5016
+ command.params['name'] = name unless name.nil?
5017
+ command.query['fields'] = fields unless fields.nil?
5018
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5019
+ execute_or_queue_command(command, &block)
5020
+ end
5021
+
5022
+ # Gets a mute config.
5023
+ # @param [String] name
5024
+ # Required. Name of the mute config to retrieve. Its format is organizations/`
5025
+ # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
5026
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
5027
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
5028
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
5029
+ # config_id`.
5030
+ # @param [String] fields
5031
+ # Selector specifying which fields to include in a partial response.
5032
+ # @param [String] quota_user
5033
+ # Available to use for quota purposes for server-side applications. Can be any
5034
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5035
+ # @param [Google::Apis::RequestOptions] options
5036
+ # Request-specific options
5037
+ #
5038
+ # @yield [result, err] Result & error if block supplied
5039
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
5040
+ # @yieldparam err [StandardError] error object if request failed
5041
+ #
5042
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
5043
+ #
5044
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5045
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5046
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5047
+ def get_project_location_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
5048
+ command = make_simple_command(:get, 'v1/{+name}', options)
5049
+ command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
5050
+ command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
5051
+ command.params['name'] = name unless name.nil?
5052
+ command.query['fields'] = fields unless fields.nil?
5053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5054
+ execute_or_queue_command(command, &block)
5055
+ end
5056
+
5057
+ # Updates a mute config.
5058
+ # @param [String] name
5059
+ # This field will be ignored if provided on config creation. Format "
5060
+ # organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
5061
+ # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
5062
+ # organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
5063
+ # folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
5064
+ # project`/locations/global/muteConfigs/`mute_config`"
5065
+ # @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
5066
+ # @param [String] update_mask
5067
+ # The list of fields to be updated. If empty all mutable fields will be updated.
5068
+ # @param [String] fields
5069
+ # Selector specifying which fields to include in a partial response.
5070
+ # @param [String] quota_user
5071
+ # Available to use for quota purposes for server-side applications. Can be any
5072
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5073
+ # @param [Google::Apis::RequestOptions] options
5074
+ # Request-specific options
5075
+ #
5076
+ # @yield [result, err] Result & error if block supplied
5077
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
5078
+ # @yieldparam err [StandardError] error object if request failed
5079
+ #
5080
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
5081
+ #
5082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5085
+ def patch_project_location_mute_config(name, google_cloud_securitycenter_v1_mute_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
5086
+ command = make_simple_command(:patch, 'v1/{+name}', options)
5087
+ command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
5088
+ command.request_object = google_cloud_securitycenter_v1_mute_config_object
5089
+ command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
5090
+ command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
5091
+ command.params['name'] = name unless name.nil?
5092
+ command.query['updateMask'] = update_mask unless update_mask.nil?
5093
+ command.query['fields'] = fields unless fields.nil?
5094
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5095
+ execute_or_queue_command(command, &block)
5096
+ end
5097
+
4677
5098
  # Creates a mute config.
4678
5099
  # @param [String] parent
4679
5100
  # Required. Resource name of the new mute configs's parent. Its format is "
@@ -4719,7 +5140,10 @@ module Google
4719
5140
  # @param [String] name
4720
5141
  # Required. Name of the mute config to delete. Its format is organizations/`
4721
5142
  # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
4722
- # , or projects/`project`/muteConfigs/`config_id`
5143
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
5144
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
5145
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
5146
+ # config_id`.
4723
5147
  # @param [String] fields
4724
5148
  # Selector specifying which fields to include in a partial response.
4725
5149
  # @param [String] quota_user
@@ -4751,7 +5175,10 @@ module Google
4751
5175
  # @param [String] name
4752
5176
  # Required. Name of the mute config to retrieve. Its format is organizations/`
4753
5177
  # organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
4754
- # , or projects/`project`/muteConfigs/`config_id`
5178
+ # , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
5179
+ # locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
5180
+ # muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
5181
+ # config_id`.
4755
5182
  # @param [String] fields
4756
5183
  # Selector specifying which fields to include in a partial response.
4757
5184
  # @param [String] quota_user
@@ -4825,7 +5252,10 @@ module Google
4825
5252
  # @param [String] name
4826
5253
  # This field will be ignored if provided on config creation. Format "
4827
5254
  # organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
4828
- # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`"
5255
+ # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
5256
+ # organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
5257
+ # folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
5258
+ # project`/locations/global/muteConfigs/`mute_config`"
4829
5259
  # @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
4830
5260
  # @param [String] update_mask
4831
5261
  # The list of fields to be updated. If empty all mutable fields will be updated.
@@ -5286,6 +5716,41 @@ module Google
5286
5716
  execute_or_queue_command(command, &block)
5287
5717
  end
5288
5718
 
5719
+ # Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
5720
+ # @param [String] parent
5721
+ # Required. The relative resource name of the organization, project, or folder.
5722
+ # See: https://cloud.google.com/apis/design/resource_names#
5723
+ # relative_resource_name An example is: "organizations/`organization_id`".
5724
+ # @param [Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleRequest] simulate_security_health_analytics_custom_module_request_object
5725
+ # @param [String] fields
5726
+ # Selector specifying which fields to include in a partial response.
5727
+ # @param [String] quota_user
5728
+ # Available to use for quota purposes for server-side applications. Can be any
5729
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5730
+ # @param [Google::Apis::RequestOptions] options
5731
+ # Request-specific options
5732
+ #
5733
+ # @yield [result, err] Result & error if block supplied
5734
+ # @yieldparam result [Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse] parsed result object
5735
+ # @yieldparam err [StandardError] error object if request failed
5736
+ #
5737
+ # @return [Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse]
5738
+ #
5739
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5740
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5741
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5742
+ def simulate_project_security_health_analytics_setting_custom_module(parent, simulate_security_health_analytics_custom_module_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5743
+ command = make_simple_command(:post, 'v1/{+parent}/customModules:simulate', options)
5744
+ command.request_representation = Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleRequest::Representation
5745
+ command.request_object = simulate_security_health_analytics_custom_module_request_object
5746
+ command.response_representation = Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse::Representation
5747
+ command.response_class = Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleResponse
5748
+ command.params['parent'] = parent unless parent.nil?
5749
+ command.query['fields'] = fields unless fields.nil?
5750
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5751
+ execute_or_queue_command(command, &block)
5752
+ end
5753
+
5289
5754
  # Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
5290
5755
  # @param [String] name
5291
5756
  # Required. Name of the effective custom module to get. Its format is "
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.66.0
4
+ version: 0.68.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: 2023-10-15 00:00:00.000000000 Z
11
+ date: 2023-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.66.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.68.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: []