google-apis-securitycenter_v1 0.87.0 → 0.88.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05033f8385b99ecf6d26a04c49c0b4e558a68240b0f3d10aa04d47a94bed5633
|
4
|
+
data.tar.gz: 9d867c831659b45650ed6f2d9855440d7f103d4e07ff21940b65c7a29a73ffc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c5c126ddf075f8c16bebadeebefe8d71598908d7270ca28deae06bef18943d4225fe1021f7a8988bccb7fd9ae5e1ab572d5003fed9b3e37267e360cccb06b9f
|
7
|
+
data.tar.gz: 100df5e21b1afb6a36f45fe11dec05c3e9e72e22e937a92a3671398f3ffd02a50d38cb1360e46ea0f4596fa19abed41f0fc32277a666276b2971ca83adee1ad2
|
data/CHANGELOG.md
CHANGED
@@ -848,6 +848,11 @@ module Google
|
|
848
848
|
class AzureResourceGroup
|
849
849
|
include Google::Apis::Core::Hashable
|
850
850
|
|
851
|
+
# The ID of the Azure resource group.
|
852
|
+
# Corresponds to the JSON property `id`
|
853
|
+
# @return [String]
|
854
|
+
attr_accessor :id
|
855
|
+
|
851
856
|
# The name of the Azure resource group. This is not a UUID.
|
852
857
|
# Corresponds to the JSON property `name`
|
853
858
|
# @return [String]
|
@@ -859,6 +864,7 @@ module Google
|
|
859
864
|
|
860
865
|
# Update properties of this object
|
861
866
|
def update!(**args)
|
867
|
+
@id = args[:id] if args.key?(:id)
|
862
868
|
@name = args[:name] if args.key?(:name)
|
863
869
|
end
|
864
870
|
end
|
@@ -1195,6 +1201,40 @@ module Google
|
|
1195
1201
|
end
|
1196
1202
|
end
|
1197
1203
|
|
1204
|
+
# YAML-based rule that uses CEL, which supports the declaration of variables and
|
1205
|
+
# a filtering predicate. A vulnerable resource is emitted if the evaluation is
|
1206
|
+
# false. Given: 1) the resource types as: - resource_types: "compute.googleapis.
|
1207
|
+
# com/Instance" - resource_types: "compute.googleapis.com/Firewall" 2) the CEL
|
1208
|
+
# policy spec as: name: bad_instance resource_filters: - name: instance
|
1209
|
+
# resource_type: compute.googleapis.com/Instance filter: > instance.status == '
|
1210
|
+
# RUNNING' && 'public' in instance.tags.items - name: firewall resource_type:
|
1211
|
+
# compute.googleapis.com/Firewall filter: > firewall.direction == 'INGRESS' && !
|
1212
|
+
# firewall.disabled && firewall.allowed.exists(rule, rule.IPProtocol.upperAscii()
|
1213
|
+
# in ['TCP', 'ALL'] && rule.ports.exists(port, network.portsInRange(port, '11-
|
1214
|
+
# 256'))) rule: match: - predicate: > instance.networkInterfaces.exists(net,
|
1215
|
+
# firewall.network == net.network) output: > `'message': 'Compute instance with
|
1216
|
+
# publicly accessible ports', 'instance': instance.name` Users are able to join
|
1217
|
+
# resource types together using the exact format as Kubernetes Validating
|
1218
|
+
# Admission policies.
|
1219
|
+
class CelPolicySpec
|
1220
|
+
include Google::Apis::Core::Hashable
|
1221
|
+
|
1222
|
+
# The CEL policy to evaluate to produce findings. A finding is generated when
|
1223
|
+
# the policy validation evaluates to false.
|
1224
|
+
# Corresponds to the JSON property `spec`
|
1225
|
+
# @return [String]
|
1226
|
+
attr_accessor :spec
|
1227
|
+
|
1228
|
+
def initialize(**args)
|
1229
|
+
update!(**args)
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
# Update properties of this object
|
1233
|
+
def update!(**args)
|
1234
|
+
@spec = args[:spec] if args.key?(:spec)
|
1235
|
+
end
|
1236
|
+
end
|
1237
|
+
|
1198
1238
|
# Fields related to Google Cloud Armor findings.
|
1199
1239
|
class CloudArmor
|
1200
1240
|
include Google::Apis::Core::Hashable
|
@@ -3095,6 +3135,25 @@ module Google
|
|
3095
3135
|
class GoogleCloudSecuritycenterV1CustomConfig
|
3096
3136
|
include Google::Apis::Core::Hashable
|
3097
3137
|
|
3138
|
+
# YAML-based rule that uses CEL, which supports the declaration of variables and
|
3139
|
+
# a filtering predicate. A vulnerable resource is emitted if the evaluation is
|
3140
|
+
# false. Given: 1) the resource types as: - resource_types: "compute.googleapis.
|
3141
|
+
# com/Instance" - resource_types: "compute.googleapis.com/Firewall" 2) the CEL
|
3142
|
+
# policy spec as: name: bad_instance resource_filters: - name: instance
|
3143
|
+
# resource_type: compute.googleapis.com/Instance filter: > instance.status == '
|
3144
|
+
# RUNNING' && 'public' in instance.tags.items - name: firewall resource_type:
|
3145
|
+
# compute.googleapis.com/Firewall filter: > firewall.direction == 'INGRESS' && !
|
3146
|
+
# firewall.disabled && firewall.allowed.exists(rule, rule.IPProtocol.upperAscii()
|
3147
|
+
# in ['TCP', 'ALL'] && rule.ports.exists(port, network.portsInRange(port, '11-
|
3148
|
+
# 256'))) rule: match: - predicate: > instance.networkInterfaces.exists(net,
|
3149
|
+
# firewall.network == net.network) output: > `'message': 'Compute instance with
|
3150
|
+
# publicly accessible ports', 'instance': instance.name` Users are able to join
|
3151
|
+
# resource types together using the exact format as Kubernetes Validating
|
3152
|
+
# Admission policies.
|
3153
|
+
# Corresponds to the JSON property `celPolicy`
|
3154
|
+
# @return [Google::Apis::SecuritycenterV1::CelPolicySpec]
|
3155
|
+
attr_accessor :cel_policy
|
3156
|
+
|
3098
3157
|
# A set of optional name-value pairs that define custom source properties to
|
3099
3158
|
# return with each finding that is generated by the custom module. The custom
|
3100
3159
|
# source properties that are defined here are included in the finding JSON under
|
@@ -3153,6 +3212,7 @@ module Google
|
|
3153
3212
|
|
3154
3213
|
# Update properties of this object
|
3155
3214
|
def update!(**args)
|
3215
|
+
@cel_policy = args[:cel_policy] if args.key?(:cel_policy)
|
3156
3216
|
@custom_output = args[:custom_output] if args.key?(:custom_output)
|
3157
3217
|
@description = args[:description] if args.key?(:description)
|
3158
3218
|
@predicate = args[:predicate] if args.key?(:predicate)
|
@@ -4671,6 +4731,11 @@ module Google
|
|
4671
4731
|
class GoogleCloudSecuritycenterV2AzureResourceGroup
|
4672
4732
|
include Google::Apis::Core::Hashable
|
4673
4733
|
|
4734
|
+
# The ID of the Azure resource group.
|
4735
|
+
# Corresponds to the JSON property `id`
|
4736
|
+
# @return [String]
|
4737
|
+
attr_accessor :id
|
4738
|
+
|
4674
4739
|
# The name of the Azure resource group. This is not a UUID.
|
4675
4740
|
# Corresponds to the JSON property `name`
|
4676
4741
|
# @return [String]
|
@@ -4682,6 +4747,7 @@ module Google
|
|
4682
4747
|
|
4683
4748
|
# Update properties of this object
|
4684
4749
|
def update!(**args)
|
4750
|
+
@id = args[:id] if args.key?(:id)
|
4685
4751
|
@name = args[:name] if args.key?(:name)
|
4686
4752
|
end
|
4687
4753
|
end
|
@@ -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.88.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240926"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -190,6 +190,12 @@ module Google
|
|
190
190
|
include Google::Apis::Core::JsonObjectSupport
|
191
191
|
end
|
192
192
|
|
193
|
+
class CelPolicySpec
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
193
199
|
class CloudArmor
|
194
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
201
|
|
@@ -1804,6 +1810,7 @@ module Google
|
|
1804
1810
|
class AzureResourceGroup
|
1805
1811
|
# @private
|
1806
1812
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1813
|
+
property :id, as: 'id'
|
1807
1814
|
property :name, as: 'name'
|
1808
1815
|
end
|
1809
1816
|
end
|
@@ -1875,6 +1882,13 @@ module Google
|
|
1875
1882
|
end
|
1876
1883
|
end
|
1877
1884
|
|
1885
|
+
class CelPolicySpec
|
1886
|
+
# @private
|
1887
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1888
|
+
property :spec, as: 'spec'
|
1889
|
+
end
|
1890
|
+
end
|
1891
|
+
|
1878
1892
|
class CloudArmor
|
1879
1893
|
# @private
|
1880
1894
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2352,6 +2366,8 @@ module Google
|
|
2352
2366
|
class GoogleCloudSecuritycenterV1CustomConfig
|
2353
2367
|
# @private
|
2354
2368
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2369
|
+
property :cel_policy, as: 'celPolicy', class: Google::Apis::SecuritycenterV1::CelPolicySpec, decorator: Google::Apis::SecuritycenterV1::CelPolicySpec::Representation
|
2370
|
+
|
2355
2371
|
property :custom_output, as: 'customOutput', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomOutputSpec, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomOutputSpec::Representation
|
2356
2372
|
|
2357
2373
|
property :description, as: 'description'
|
@@ -2722,6 +2738,7 @@ module Google
|
|
2722
2738
|
class GoogleCloudSecuritycenterV2AzureResourceGroup
|
2723
2739
|
# @private
|
2724
2740
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2741
|
+
property :id, as: 'id'
|
2725
2742
|
property :name, as: 'name'
|
2726
2743
|
end
|
2727
2744
|
end
|
@@ -845,47 +845,6 @@ module Google
|
|
845
845
|
execute_or_queue_command(command, &block)
|
846
846
|
end
|
847
847
|
|
848
|
-
# Creates a mute config.
|
849
|
-
# @param [String] parent
|
850
|
-
# Required. Resource name of the new mute configs's parent. Its format is `
|
851
|
-
# organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[
|
852
|
-
# project_id]`.
|
853
|
-
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
|
854
|
-
# @param [String] mute_config_id
|
855
|
-
# Required. Unique identifier provided by the client within the parent scope. It
|
856
|
-
# must consist of only lowercase letters, numbers, and hyphens, must start with
|
857
|
-
# a letter, must end with either a letter or a number, and must be 63 characters
|
858
|
-
# or less.
|
859
|
-
# @param [String] fields
|
860
|
-
# Selector specifying which fields to include in a partial response.
|
861
|
-
# @param [String] quota_user
|
862
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
863
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
864
|
-
# @param [Google::Apis::RequestOptions] options
|
865
|
-
# Request-specific options
|
866
|
-
#
|
867
|
-
# @yield [result, err] Result & error if block supplied
|
868
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
|
869
|
-
# @yieldparam err [StandardError] error object if request failed
|
870
|
-
#
|
871
|
-
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
|
872
|
-
#
|
873
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
874
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
875
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
876
|
-
def create_folder_location_mute_config(parent, google_cloud_securitycenter_v1_mute_config_object = nil, mute_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
877
|
-
command = make_simple_command(:post, 'v1/{+parent}/muteConfigs', options)
|
878
|
-
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
879
|
-
command.request_object = google_cloud_securitycenter_v1_mute_config_object
|
880
|
-
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
881
|
-
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
|
882
|
-
command.params['parent'] = parent unless parent.nil?
|
883
|
-
command.query['muteConfigId'] = mute_config_id unless mute_config_id.nil?
|
884
|
-
command.query['fields'] = fields unless fields.nil?
|
885
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
886
|
-
execute_or_queue_command(command, &block)
|
887
|
-
end
|
888
|
-
|
889
848
|
# Deletes an existing mute config.
|
890
849
|
# @param [String] name
|
891
850
|
# Required. Name of the mute config to delete. Its format is `organizations/`
|
@@ -956,48 +915,6 @@ module Google
|
|
956
915
|
execute_or_queue_command(command, &block)
|
957
916
|
end
|
958
917
|
|
959
|
-
# Lists mute configs.
|
960
|
-
# @param [String] parent
|
961
|
-
# Required. The parent, which owns the collection of mute configs. Its format is
|
962
|
-
# `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[
|
963
|
-
# project_id]`.
|
964
|
-
# @param [Fixnum] page_size
|
965
|
-
# The maximum number of configs to return. The service may return fewer than
|
966
|
-
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
967
|
-
# value is 1000; values above 1000 will be coerced to 1000.
|
968
|
-
# @param [String] page_token
|
969
|
-
# A page token, received from a previous `ListMuteConfigs` call. Provide this to
|
970
|
-
# retrieve the subsequent page. When paginating, all other parameters provided
|
971
|
-
# to `ListMuteConfigs` must match the call that provided the page token.
|
972
|
-
# @param [String] fields
|
973
|
-
# Selector specifying which fields to include in a partial response.
|
974
|
-
# @param [String] quota_user
|
975
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
976
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
977
|
-
# @param [Google::Apis::RequestOptions] options
|
978
|
-
# Request-specific options
|
979
|
-
#
|
980
|
-
# @yield [result, err] Result & error if block supplied
|
981
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse] parsed result object
|
982
|
-
# @yieldparam err [StandardError] error object if request failed
|
983
|
-
#
|
984
|
-
# @return [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse]
|
985
|
-
#
|
986
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
987
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
988
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
989
|
-
def list_folder_location_mute_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
990
|
-
command = make_simple_command(:get, 'v1/{+parent}', options)
|
991
|
-
command.response_representation = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse::Representation
|
992
|
-
command.response_class = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse
|
993
|
-
command.params['parent'] = parent unless parent.nil?
|
994
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
995
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
996
|
-
command.query['fields'] = fields unless fields.nil?
|
997
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
998
|
-
execute_or_queue_command(command, &block)
|
999
|
-
end
|
1000
|
-
|
1001
918
|
# Updates a mute config.
|
1002
919
|
# @param [String] name
|
1003
920
|
# This field will be ignored if provided on config creation. Format `
|
@@ -3077,47 +2994,6 @@ module Google
|
|
3077
2994
|
execute_or_queue_command(command, &block)
|
3078
2995
|
end
|
3079
2996
|
|
3080
|
-
# Creates a mute config.
|
3081
|
-
# @param [String] parent
|
3082
|
-
# Required. Resource name of the new mute configs's parent. Its format is `
|
3083
|
-
# organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[
|
3084
|
-
# project_id]`.
|
3085
|
-
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
|
3086
|
-
# @param [String] mute_config_id
|
3087
|
-
# Required. Unique identifier provided by the client within the parent scope. It
|
3088
|
-
# must consist of only lowercase letters, numbers, and hyphens, must start with
|
3089
|
-
# a letter, must end with either a letter or a number, and must be 63 characters
|
3090
|
-
# or less.
|
3091
|
-
# @param [String] fields
|
3092
|
-
# Selector specifying which fields to include in a partial response.
|
3093
|
-
# @param [String] quota_user
|
3094
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
3095
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3096
|
-
# @param [Google::Apis::RequestOptions] options
|
3097
|
-
# Request-specific options
|
3098
|
-
#
|
3099
|
-
# @yield [result, err] Result & error if block supplied
|
3100
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
|
3101
|
-
# @yieldparam err [StandardError] error object if request failed
|
3102
|
-
#
|
3103
|
-
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
|
3104
|
-
#
|
3105
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3106
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3107
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3108
|
-
def create_organization_location_mute_config(parent, google_cloud_securitycenter_v1_mute_config_object = nil, mute_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3109
|
-
command = make_simple_command(:post, 'v1/{+parent}/muteConfigs', options)
|
3110
|
-
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
3111
|
-
command.request_object = google_cloud_securitycenter_v1_mute_config_object
|
3112
|
-
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
3113
|
-
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
|
3114
|
-
command.params['parent'] = parent unless parent.nil?
|
3115
|
-
command.query['muteConfigId'] = mute_config_id unless mute_config_id.nil?
|
3116
|
-
command.query['fields'] = fields unless fields.nil?
|
3117
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3118
|
-
execute_or_queue_command(command, &block)
|
3119
|
-
end
|
3120
|
-
|
3121
2997
|
# Deletes an existing mute config.
|
3122
2998
|
# @param [String] name
|
3123
2999
|
# Required. Name of the mute config to delete. Its format is `organizations/`
|
@@ -3188,48 +3064,6 @@ module Google
|
|
3188
3064
|
execute_or_queue_command(command, &block)
|
3189
3065
|
end
|
3190
3066
|
|
3191
|
-
# Lists mute configs.
|
3192
|
-
# @param [String] parent
|
3193
|
-
# Required. The parent, which owns the collection of mute configs. Its format is
|
3194
|
-
# `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[
|
3195
|
-
# project_id]`.
|
3196
|
-
# @param [Fixnum] page_size
|
3197
|
-
# The maximum number of configs to return. The service may return fewer than
|
3198
|
-
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
3199
|
-
# value is 1000; values above 1000 will be coerced to 1000.
|
3200
|
-
# @param [String] page_token
|
3201
|
-
# A page token, received from a previous `ListMuteConfigs` call. Provide this to
|
3202
|
-
# retrieve the subsequent page. When paginating, all other parameters provided
|
3203
|
-
# to `ListMuteConfigs` must match the call that provided the page token.
|
3204
|
-
# @param [String] fields
|
3205
|
-
# Selector specifying which fields to include in a partial response.
|
3206
|
-
# @param [String] quota_user
|
3207
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
3208
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3209
|
-
# @param [Google::Apis::RequestOptions] options
|
3210
|
-
# Request-specific options
|
3211
|
-
#
|
3212
|
-
# @yield [result, err] Result & error if block supplied
|
3213
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse] parsed result object
|
3214
|
-
# @yieldparam err [StandardError] error object if request failed
|
3215
|
-
#
|
3216
|
-
# @return [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse]
|
3217
|
-
#
|
3218
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3219
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3220
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3221
|
-
def list_organization_location_mute_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3222
|
-
command = make_simple_command(:get, 'v1/{+parent}', options)
|
3223
|
-
command.response_representation = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse::Representation
|
3224
|
-
command.response_class = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse
|
3225
|
-
command.params['parent'] = parent unless parent.nil?
|
3226
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
3227
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
3228
|
-
command.query['fields'] = fields unless fields.nil?
|
3229
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3230
|
-
execute_or_queue_command(command, &block)
|
3231
|
-
end
|
3232
|
-
|
3233
3067
|
# Updates a mute config.
|
3234
3068
|
# @param [String] name
|
3235
3069
|
# This field will be ignored if provided on config creation. Format `
|
@@ -6138,47 +5972,6 @@ module Google
|
|
6138
5972
|
execute_or_queue_command(command, &block)
|
6139
5973
|
end
|
6140
5974
|
|
6141
|
-
# Creates a mute config.
|
6142
|
-
# @param [String] parent
|
6143
|
-
# Required. Resource name of the new mute configs's parent. Its format is `
|
6144
|
-
# organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[
|
6145
|
-
# project_id]`.
|
6146
|
-
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
|
6147
|
-
# @param [String] mute_config_id
|
6148
|
-
# Required. Unique identifier provided by the client within the parent scope. It
|
6149
|
-
# must consist of only lowercase letters, numbers, and hyphens, must start with
|
6150
|
-
# a letter, must end with either a letter or a number, and must be 63 characters
|
6151
|
-
# or less.
|
6152
|
-
# @param [String] fields
|
6153
|
-
# Selector specifying which fields to include in a partial response.
|
6154
|
-
# @param [String] quota_user
|
6155
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
6156
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6157
|
-
# @param [Google::Apis::RequestOptions] options
|
6158
|
-
# Request-specific options
|
6159
|
-
#
|
6160
|
-
# @yield [result, err] Result & error if block supplied
|
6161
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
|
6162
|
-
# @yieldparam err [StandardError] error object if request failed
|
6163
|
-
#
|
6164
|
-
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
|
6165
|
-
#
|
6166
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6167
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6168
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6169
|
-
def create_project_location_mute_config(parent, google_cloud_securitycenter_v1_mute_config_object = nil, mute_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6170
|
-
command = make_simple_command(:post, 'v1/{+parent}/muteConfigs', options)
|
6171
|
-
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
6172
|
-
command.request_object = google_cloud_securitycenter_v1_mute_config_object
|
6173
|
-
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
6174
|
-
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
|
6175
|
-
command.params['parent'] = parent unless parent.nil?
|
6176
|
-
command.query['muteConfigId'] = mute_config_id unless mute_config_id.nil?
|
6177
|
-
command.query['fields'] = fields unless fields.nil?
|
6178
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6179
|
-
execute_or_queue_command(command, &block)
|
6180
|
-
end
|
6181
|
-
|
6182
5975
|
# Deletes an existing mute config.
|
6183
5976
|
# @param [String] name
|
6184
5977
|
# Required. Name of the mute config to delete. Its format is `organizations/`
|
@@ -6249,48 +6042,6 @@ module Google
|
|
6249
6042
|
execute_or_queue_command(command, &block)
|
6250
6043
|
end
|
6251
6044
|
|
6252
|
-
# Lists mute configs.
|
6253
|
-
# @param [String] parent
|
6254
|
-
# Required. The parent, which owns the collection of mute configs. Its format is
|
6255
|
-
# `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[
|
6256
|
-
# project_id]`.
|
6257
|
-
# @param [Fixnum] page_size
|
6258
|
-
# The maximum number of configs to return. The service may return fewer than
|
6259
|
-
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
6260
|
-
# value is 1000; values above 1000 will be coerced to 1000.
|
6261
|
-
# @param [String] page_token
|
6262
|
-
# A page token, received from a previous `ListMuteConfigs` call. Provide this to
|
6263
|
-
# retrieve the subsequent page. When paginating, all other parameters provided
|
6264
|
-
# to `ListMuteConfigs` must match the call that provided the page token.
|
6265
|
-
# @param [String] fields
|
6266
|
-
# Selector specifying which fields to include in a partial response.
|
6267
|
-
# @param [String] quota_user
|
6268
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
6269
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6270
|
-
# @param [Google::Apis::RequestOptions] options
|
6271
|
-
# Request-specific options
|
6272
|
-
#
|
6273
|
-
# @yield [result, err] Result & error if block supplied
|
6274
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse] parsed result object
|
6275
|
-
# @yieldparam err [StandardError] error object if request failed
|
6276
|
-
#
|
6277
|
-
# @return [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse]
|
6278
|
-
#
|
6279
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6280
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6281
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6282
|
-
def list_project_location_mute_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6283
|
-
command = make_simple_command(:get, 'v1/{+parent}', options)
|
6284
|
-
command.response_representation = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse::Representation
|
6285
|
-
command.response_class = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse
|
6286
|
-
command.params['parent'] = parent unless parent.nil?
|
6287
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
6288
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
6289
|
-
command.query['fields'] = fields unless fields.nil?
|
6290
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6291
|
-
execute_or_queue_command(command, &block)
|
6292
|
-
end
|
6293
|
-
|
6294
6045
|
# Updates a mute config.
|
6295
6046
|
# @param [String] name
|
6296
6047
|
# This field will be ignored if provided on config creation. Format `
|
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.88.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: 2024-
|
11
|
+
date: 2024-10-06 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.88.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: []
|