google-apis-securitycenter_v1 0.66.0 → 0.67.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/securitycenter_v1/classes.rb +181 -1
- data/lib/google/apis/securitycenter_v1/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1/representations.rb +79 -0
- data/lib/google/apis/securitycenter_v1/service.rb +474 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99a92a13cfd51ed222b5b5386f92a36b4914ba9066a36b116f3a85f64725b2b4
|
4
|
+
data.tar.gz: 5ef2d8138f3e102d4c5ca944ece70439aaea26efd80e5b5091552e41cccdc75f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9547015242691cd2db2e0a6e672b2156c730358223cd51d078a0fcde8b816aeee3c2e967d8f8176a17ab676ac4ac6a9911b8a3f935742439bccb59054beafe1f
|
7
|
+
data.tar.gz: b9ad28c3447704eecd096de31a2702b5600eedae1773fda03be31f56be6aa460703b35325251a92108deb55392b4228ce462503debfc3cb90b4320a6f0529e03
|
data/CHANGELOG.md
CHANGED
@@ -1743,6 +1743,11 @@ module Google
|
|
1743
1743
|
# @return [String]
|
1744
1744
|
attr_accessor :next_steps
|
1745
1745
|
|
1746
|
+
# Contains information about the org policies associated with the finding.
|
1747
|
+
# Corresponds to the JSON property `orgPolicies`
|
1748
|
+
# @return [Array<Google::Apis::SecuritycenterV1::OrgPolicy>]
|
1749
|
+
attr_accessor :org_policies
|
1750
|
+
|
1746
1751
|
# The relative resource name of the source the finding belongs to. See: https://
|
1747
1752
|
# cloud.google.com/apis/design/resource_names#relative_resource_name This field
|
1748
1753
|
# is immutable after creation time. For example: "organizations/`organization_id`
|
@@ -1848,6 +1853,7 @@ module Google
|
|
1848
1853
|
@mute_update_time = args[:mute_update_time] if args.key?(:mute_update_time)
|
1849
1854
|
@name = args[:name] if args.key?(:name)
|
1850
1855
|
@next_steps = args[:next_steps] if args.key?(:next_steps)
|
1856
|
+
@org_policies = args[:org_policies] if args.key?(:org_policies)
|
1851
1857
|
@parent = args[:parent] if args.key?(:parent)
|
1852
1858
|
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
|
1853
1859
|
@processes = args[:processes] if args.key?(:processes)
|
@@ -2329,7 +2335,10 @@ module Google
|
|
2329
2335
|
|
2330
2336
|
# This field will be ignored if provided on config creation. Format "
|
2331
2337
|
# organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
|
2332
|
-
# muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`"
|
2338
|
+
# muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
|
2339
|
+
# organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
|
2340
|
+
# folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
|
2341
|
+
# project`/locations/global/muteConfigs/`mute_config`"
|
2333
2342
|
# Corresponds to the JSON property `name`
|
2334
2343
|
# @return [String]
|
2335
2344
|
attr_accessor :name
|
@@ -4359,6 +4368,26 @@ module Google
|
|
4359
4368
|
end
|
4360
4369
|
end
|
4361
4370
|
|
4371
|
+
# Contains information about the org policies associated with the finding.
|
4372
|
+
class OrgPolicy
|
4373
|
+
include Google::Apis::Core::Hashable
|
4374
|
+
|
4375
|
+
# The resource name of the org policy. Example: "organizations/`organization_id`/
|
4376
|
+
# policies/`constraint_name`"
|
4377
|
+
# Corresponds to the JSON property `name`
|
4378
|
+
# @return [String]
|
4379
|
+
attr_accessor :name
|
4380
|
+
|
4381
|
+
def initialize(**args)
|
4382
|
+
update!(**args)
|
4383
|
+
end
|
4384
|
+
|
4385
|
+
# Update properties of this object
|
4386
|
+
def update!(**args)
|
4387
|
+
@name = args[:name] if args.key?(:name)
|
4388
|
+
end
|
4389
|
+
end
|
4390
|
+
|
4362
4391
|
# User specified settings that are attached to the Security Command Center
|
4363
4392
|
# organization.
|
4364
4393
|
class OrganizationSettings
|
@@ -5143,6 +5172,157 @@ module Google
|
|
5143
5172
|
end
|
5144
5173
|
end
|
5145
5174
|
|
5175
|
+
# Request message to simulate a CustomConfig against a given test resource.
|
5176
|
+
# Maximum size of the request is 4 MB by default.
|
5177
|
+
class SimulateSecurityHealthAnalyticsCustomModuleRequest
|
5178
|
+
include Google::Apis::Core::Hashable
|
5179
|
+
|
5180
|
+
# Defines the properties in a custom module configuration for Security Health
|
5181
|
+
# Analytics. Use the custom module configuration to create custom detectors that
|
5182
|
+
# generate custom findings for resources that you specify.
|
5183
|
+
# Corresponds to the JSON property `customConfig`
|
5184
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomConfig]
|
5185
|
+
attr_accessor :custom_config
|
5186
|
+
|
5187
|
+
# Manually constructed resource. If the custom module only evaluates against the
|
5188
|
+
# resource data, the iam_policy_data field can be omitted, and vice versa.
|
5189
|
+
# Corresponds to the JSON property `resource`
|
5190
|
+
# @return [Google::Apis::SecuritycenterV1::SimulatedResource]
|
5191
|
+
attr_accessor :resource
|
5192
|
+
|
5193
|
+
def initialize(**args)
|
5194
|
+
update!(**args)
|
5195
|
+
end
|
5196
|
+
|
5197
|
+
# Update properties of this object
|
5198
|
+
def update!(**args)
|
5199
|
+
@custom_config = args[:custom_config] if args.key?(:custom_config)
|
5200
|
+
@resource = args[:resource] if args.key?(:resource)
|
5201
|
+
end
|
5202
|
+
end
|
5203
|
+
|
5204
|
+
# Response message for simulating a SecurityHealthAnalyticsCustomModule against
|
5205
|
+
# a given resource.
|
5206
|
+
class SimulateSecurityHealthAnalyticsCustomModuleResponse
|
5207
|
+
include Google::Apis::Core::Hashable
|
5208
|
+
|
5209
|
+
# Possible test result.
|
5210
|
+
# Corresponds to the JSON property `result`
|
5211
|
+
# @return [Google::Apis::SecuritycenterV1::SimulatedResult]
|
5212
|
+
attr_accessor :result
|
5213
|
+
|
5214
|
+
def initialize(**args)
|
5215
|
+
update!(**args)
|
5216
|
+
end
|
5217
|
+
|
5218
|
+
# Update properties of this object
|
5219
|
+
def update!(**args)
|
5220
|
+
@result = args[:result] if args.key?(:result)
|
5221
|
+
end
|
5222
|
+
end
|
5223
|
+
|
5224
|
+
# Manually constructed resource. If the custom module only evaluates against the
|
5225
|
+
# resource data, the iam_policy_data field can be omitted, and vice versa.
|
5226
|
+
class SimulatedResource
|
5227
|
+
include Google::Apis::Core::Hashable
|
5228
|
+
|
5229
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
5230
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
5231
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
5232
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
5233
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
5234
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
5235
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
5236
|
+
# logical expression that allows access to a resource only if the expression
|
5237
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
5238
|
+
# the request, the resource, or both. To learn which resources support
|
5239
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
5240
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
5241
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
5242
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
5243
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
5244
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
5245
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
5246
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
5247
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
5248
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
5249
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
5250
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
5251
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
5252
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
5253
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
5254
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
5255
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
5256
|
+
# Corresponds to the JSON property `iamPolicyData`
|
5257
|
+
# @return [Google::Apis::SecuritycenterV1::Policy]
|
5258
|
+
attr_accessor :iam_policy_data
|
5259
|
+
|
5260
|
+
# Optional. A representation of the GCP resource. Should match the GCP resource
|
5261
|
+
# JSON format.
|
5262
|
+
# Corresponds to the JSON property `resourceData`
|
5263
|
+
# @return [Hash<String,Object>]
|
5264
|
+
attr_accessor :resource_data
|
5265
|
+
|
5266
|
+
# Required. The type of the resource, e.g. `compute.googleapis.com/Disk`.
|
5267
|
+
# Corresponds to the JSON property `resourceType`
|
5268
|
+
# @return [String]
|
5269
|
+
attr_accessor :resource_type
|
5270
|
+
|
5271
|
+
def initialize(**args)
|
5272
|
+
update!(**args)
|
5273
|
+
end
|
5274
|
+
|
5275
|
+
# Update properties of this object
|
5276
|
+
def update!(**args)
|
5277
|
+
@iam_policy_data = args[:iam_policy_data] if args.key?(:iam_policy_data)
|
5278
|
+
@resource_data = args[:resource_data] if args.key?(:resource_data)
|
5279
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
5280
|
+
end
|
5281
|
+
end
|
5282
|
+
|
5283
|
+
# Possible test result.
|
5284
|
+
class SimulatedResult
|
5285
|
+
include Google::Apis::Core::Hashable
|
5286
|
+
|
5287
|
+
# The `Status` type defines a logical error model that is suitable for different
|
5288
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
5289
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
5290
|
+
# data: error code, error message, and error details. You can find out more
|
5291
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
5292
|
+
# //cloud.google.com/apis/design/errors).
|
5293
|
+
# Corresponds to the JSON property `error`
|
5294
|
+
# @return [Google::Apis::SecuritycenterV1::Status]
|
5295
|
+
attr_accessor :error
|
5296
|
+
|
5297
|
+
# Security Command Center finding. A finding is a record of assessment data like
|
5298
|
+
# security, risk, health, or privacy, that is ingested into Security Command
|
5299
|
+
# Center for presentation, notification, analysis, policy testing, and
|
5300
|
+
# enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
|
5301
|
+
# Engine application is a finding.
|
5302
|
+
# Corresponds to the JSON property `finding`
|
5303
|
+
# @return [Google::Apis::SecuritycenterV1::Finding]
|
5304
|
+
attr_accessor :finding
|
5305
|
+
|
5306
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
5307
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
5308
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
5309
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
5310
|
+
# Corresponds to the JSON property `noViolation`
|
5311
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
5312
|
+
attr_accessor :no_violation
|
5313
|
+
|
5314
|
+
def initialize(**args)
|
5315
|
+
update!(**args)
|
5316
|
+
end
|
5317
|
+
|
5318
|
+
# Update properties of this object
|
5319
|
+
def update!(**args)
|
5320
|
+
@error = args[:error] if args.key?(:error)
|
5321
|
+
@finding = args[:finding] if args.key?(:finding)
|
5322
|
+
@no_violation = args[:no_violation] if args.key?(:no_violation)
|
5323
|
+
end
|
5324
|
+
end
|
5325
|
+
|
5146
5326
|
# Attack path simulation
|
5147
5327
|
class Simulation
|
5148
5328
|
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.
|
19
|
+
GEM_VERSION = "0.67.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 = "
|
25
|
+
REVISION = "20231023"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -610,6 +610,12 @@ module Google
|
|
610
610
|
include Google::Apis::Core::JsonObjectSupport
|
611
611
|
end
|
612
612
|
|
613
|
+
class OrgPolicy
|
614
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
615
|
+
|
616
|
+
include Google::Apis::Core::JsonObjectSupport
|
617
|
+
end
|
618
|
+
|
613
619
|
class OrganizationSettings
|
614
620
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
615
621
|
|
@@ -724,6 +730,30 @@ module Google
|
|
724
730
|
include Google::Apis::Core::JsonObjectSupport
|
725
731
|
end
|
726
732
|
|
733
|
+
class SimulateSecurityHealthAnalyticsCustomModuleRequest
|
734
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
735
|
+
|
736
|
+
include Google::Apis::Core::JsonObjectSupport
|
737
|
+
end
|
738
|
+
|
739
|
+
class SimulateSecurityHealthAnalyticsCustomModuleResponse
|
740
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
741
|
+
|
742
|
+
include Google::Apis::Core::JsonObjectSupport
|
743
|
+
end
|
744
|
+
|
745
|
+
class SimulatedResource
|
746
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
747
|
+
|
748
|
+
include Google::Apis::Core::JsonObjectSupport
|
749
|
+
end
|
750
|
+
|
751
|
+
class SimulatedResult
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
753
|
+
|
754
|
+
include Google::Apis::Core::JsonObjectSupport
|
755
|
+
end
|
756
|
+
|
727
757
|
class Simulation
|
728
758
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
729
759
|
|
@@ -1224,6 +1254,8 @@ module Google
|
|
1224
1254
|
property :mute_update_time, as: 'muteUpdateTime'
|
1225
1255
|
property :name, as: 'name'
|
1226
1256
|
property :next_steps, as: 'nextSteps'
|
1257
|
+
collection :org_policies, as: 'orgPolicies', class: Google::Apis::SecuritycenterV1::OrgPolicy, decorator: Google::Apis::SecuritycenterV1::OrgPolicy::Representation
|
1258
|
+
|
1227
1259
|
property :parent, as: 'parent'
|
1228
1260
|
property :parent_display_name, as: 'parentDisplayName'
|
1229
1261
|
collection :processes, as: 'processes', class: Google::Apis::SecuritycenterV1::Process, decorator: Google::Apis::SecuritycenterV1::Process::Representation
|
@@ -1868,6 +1900,13 @@ module Google
|
|
1868
1900
|
end
|
1869
1901
|
end
|
1870
1902
|
|
1903
|
+
class OrgPolicy
|
1904
|
+
# @private
|
1905
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1906
|
+
property :name, as: 'name'
|
1907
|
+
end
|
1908
|
+
end
|
1909
|
+
|
1871
1910
|
class OrganizationSettings
|
1872
1911
|
# @private
|
1873
1912
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2062,6 +2101,46 @@ module Google
|
|
2062
2101
|
end
|
2063
2102
|
end
|
2064
2103
|
|
2104
|
+
class SimulateSecurityHealthAnalyticsCustomModuleRequest
|
2105
|
+
# @private
|
2106
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2107
|
+
property :custom_config, as: 'customConfig', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomConfig, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomConfig::Representation
|
2108
|
+
|
2109
|
+
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::SimulatedResource, decorator: Google::Apis::SecuritycenterV1::SimulatedResource::Representation
|
2110
|
+
|
2111
|
+
end
|
2112
|
+
end
|
2113
|
+
|
2114
|
+
class SimulateSecurityHealthAnalyticsCustomModuleResponse
|
2115
|
+
# @private
|
2116
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2117
|
+
property :result, as: 'result', class: Google::Apis::SecuritycenterV1::SimulatedResult, decorator: Google::Apis::SecuritycenterV1::SimulatedResult::Representation
|
2118
|
+
|
2119
|
+
end
|
2120
|
+
end
|
2121
|
+
|
2122
|
+
class SimulatedResource
|
2123
|
+
# @private
|
2124
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2125
|
+
property :iam_policy_data, as: 'iamPolicyData', class: Google::Apis::SecuritycenterV1::Policy, decorator: Google::Apis::SecuritycenterV1::Policy::Representation
|
2126
|
+
|
2127
|
+
hash :resource_data, as: 'resourceData'
|
2128
|
+
property :resource_type, as: 'resourceType'
|
2129
|
+
end
|
2130
|
+
end
|
2131
|
+
|
2132
|
+
class SimulatedResult
|
2133
|
+
# @private
|
2134
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2135
|
+
property :error, as: 'error', class: Google::Apis::SecuritycenterV1::Status, decorator: Google::Apis::SecuritycenterV1::Status::Representation
|
2136
|
+
|
2137
|
+
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::Finding, decorator: Google::Apis::SecuritycenterV1::Finding::Representation
|
2138
|
+
|
2139
|
+
property :no_violation, as: 'noViolation', class: Google::Apis::SecuritycenterV1::Empty, decorator: Google::Apis::SecuritycenterV1::Empty::Representation
|
2140
|
+
|
2141
|
+
end
|
2142
|
+
end
|
2143
|
+
|
2065
2144
|
class Simulation
|
2066
2145
|
# @private
|
2067
2146
|
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
|
-
# ,
|
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
|
-
# ,
|
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
|
-
# ,
|
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
|
-
# ,
|
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
|
-
# ,
|
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
|
-
# ,
|
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.
|
4
|
+
version: 0.67.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-
|
11
|
+
date: 2023-10-29 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.67.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: []
|