google-apis-securitycenter_v1 0.80.0 → 0.81.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: 49992907bd5b4927360e3f6e6e116b84a7c2d6a0f9e9d7696502fc0c88881cc8
4
- data.tar.gz: 87588b14ffed8d66ae7113b9be6ade9f84bdad2d6f1d3e395f1fd56129687e49
3
+ metadata.gz: eab8937e38c356a515fff785f9751797d94107b3e0d90f9ef7d2f8c55536b2cf
4
+ data.tar.gz: f4c3bd798c390dd8ba2c8c3e785a0afa8ead9491ef24d00345a468a4f00d6ee1
5
5
  SHA512:
6
- metadata.gz: 5d1928b513f9d98e43ad9f5147aa1a86a130943dc72ce86d29bd33df18b2fbe8afccb8ff4d453fa19e2d6eb90676983cb3c8a81722c32ec9151a08658b82333d
7
- data.tar.gz: 55c99c739b1fef8347fee85fa122145f525aeb53842d5800e4887407fa2afd3abecec08394c3a706cf44fda69bf176f54b2d1123e2033868256f416918b89566
6
+ metadata.gz: 23830f4242dca69d37d4c7085565bc8a674307020e01a93d24355d9813712467610ee8ddc3e8cdfa56e8b55c8cbc499af4643795ff7b0957122e9d17891b0864
7
+ data.tar.gz: 6e36dec133e64484a8abda58275a91e923d26c5eaef72b459f83ae450606e8bf7315de3b6004699ca653022afa99c3c290fcfeb13a4bc13de933f2ffe927da34
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-securitycenter_v1
2
2
 
3
+ ### v0.81.0 (2024-05-19)
4
+
5
+ * Regenerated from discovery document revision 20240513
6
+ * Regenerated using generator version 0.15.0
7
+
3
8
  ### v0.80.0 (2024-04-28)
4
9
 
5
10
  * Regenerated from discovery document revision 20240422
@@ -7524,9 +7524,7 @@ module Google
7524
7524
  # Required. Expression that defines what assets fields to use for grouping (
7525
7525
  # including `state_change`). The string value should follow SQL syntax: comma
7526
7526
  # separated list of fields. For example: "parent,resource_name". The following
7527
- # fields are supported: * resource_name * category * state * parent * severity
7528
- # The following fields are supported when compare_duration is set: *
7529
- # state_change
7527
+ # fields are supported when compare_duration is set: * state_change
7530
7528
  # Corresponds to the JSON property `groupBy`
7531
7529
  # @return [String]
7532
7530
  attr_accessor :group_by
@@ -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.80.0"
19
+ GEM_VERSION = "0.81.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240422"
25
+ REVISION = "20240513"
26
26
  end
27
27
  end
28
28
  end
@@ -843,6 +843,47 @@ module Google
843
843
  execute_or_queue_command(command, &block)
844
844
  end
845
845
 
846
+ # Creates a mute config.
847
+ # @param [String] parent
848
+ # Required. Resource name of the new mute configs's parent. Its format is "
849
+ # organizations/[organization_id]", "folders/[folder_id]", or "projects/[
850
+ # project_id]".
851
+ # @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
852
+ # @param [String] mute_config_id
853
+ # Required. Unique identifier provided by the client within the parent scope. It
854
+ # must consist of only lowercase letters, numbers, and hyphens, must start with
855
+ # a letter, must end with either a letter or a number, and must be 63 characters
856
+ # or less.
857
+ # @param [String] fields
858
+ # Selector specifying which fields to include in a partial response.
859
+ # @param [String] quota_user
860
+ # Available to use for quota purposes for server-side applications. Can be any
861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
862
+ # @param [Google::Apis::RequestOptions] options
863
+ # Request-specific options
864
+ #
865
+ # @yield [result, err] Result & error if block supplied
866
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
867
+ # @yieldparam err [StandardError] error object if request failed
868
+ #
869
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
870
+ #
871
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
872
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
873
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
874
+ 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)
875
+ command = make_simple_command(:post, 'v1/{+parent}/muteConfigs', options)
876
+ command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
877
+ command.request_object = google_cloud_securitycenter_v1_mute_config_object
878
+ command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
879
+ command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
880
+ command.params['parent'] = parent unless parent.nil?
881
+ command.query['muteConfigId'] = mute_config_id unless mute_config_id.nil?
882
+ command.query['fields'] = fields unless fields.nil?
883
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
884
+ execute_or_queue_command(command, &block)
885
+ end
886
+
846
887
  # Deletes an existing mute config.
847
888
  # @param [String] name
848
889
  # Required. Name of the mute config to delete. Its format is organizations/`
@@ -913,6 +954,48 @@ module Google
913
954
  execute_or_queue_command(command, &block)
914
955
  end
915
956
 
957
+ # Lists mute configs.
958
+ # @param [String] parent
959
+ # Required. The parent, which owns the collection of mute configs. Its format is
960
+ # "organizations/[organization_id]", "folders/[folder_id]", "projects/[
961
+ # project_id]".
962
+ # @param [Fixnum] page_size
963
+ # The maximum number of configs to return. The service may return fewer than
964
+ # this value. If unspecified, at most 10 configs will be returned. The maximum
965
+ # value is 1000; values above 1000 will be coerced to 1000.
966
+ # @param [String] page_token
967
+ # A page token, received from a previous `ListMuteConfigs` call. Provide this to
968
+ # retrieve the subsequent page. When paginating, all other parameters provided
969
+ # to `ListMuteConfigs` must match the call that provided the page token.
970
+ # @param [String] fields
971
+ # Selector specifying which fields to include in a partial response.
972
+ # @param [String] quota_user
973
+ # Available to use for quota purposes for server-side applications. Can be any
974
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
975
+ # @param [Google::Apis::RequestOptions] options
976
+ # Request-specific options
977
+ #
978
+ # @yield [result, err] Result & error if block supplied
979
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse] parsed result object
980
+ # @yieldparam err [StandardError] error object if request failed
981
+ #
982
+ # @return [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse]
983
+ #
984
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
985
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
986
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
987
+ def list_folder_location_mute_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
988
+ command = make_simple_command(:get, 'v1/{+parent}', options)
989
+ command.response_representation = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse::Representation
990
+ command.response_class = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse
991
+ command.params['parent'] = parent unless parent.nil?
992
+ command.query['pageSize'] = page_size unless page_size.nil?
993
+ command.query['pageToken'] = page_token unless page_token.nil?
994
+ command.query['fields'] = fields unless fields.nil?
995
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
996
+ execute_or_queue_command(command, &block)
997
+ end
998
+
916
999
  # Updates a mute config.
917
1000
  # @param [String] name
918
1001
  # This field will be ignored if provided on config creation. Format "
@@ -2989,6 +3072,47 @@ module Google
2989
3072
  execute_or_queue_command(command, &block)
2990
3073
  end
2991
3074
 
3075
+ # Creates a mute config.
3076
+ # @param [String] parent
3077
+ # Required. Resource name of the new mute configs's parent. Its format is "
3078
+ # organizations/[organization_id]", "folders/[folder_id]", or "projects/[
3079
+ # project_id]".
3080
+ # @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
3081
+ # @param [String] mute_config_id
3082
+ # Required. Unique identifier provided by the client within the parent scope. It
3083
+ # must consist of only lowercase letters, numbers, and hyphens, must start with
3084
+ # a letter, must end with either a letter or a number, and must be 63 characters
3085
+ # or less.
3086
+ # @param [String] fields
3087
+ # Selector specifying which fields to include in a partial response.
3088
+ # @param [String] quota_user
3089
+ # Available to use for quota purposes for server-side applications. Can be any
3090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3091
+ # @param [Google::Apis::RequestOptions] options
3092
+ # Request-specific options
3093
+ #
3094
+ # @yield [result, err] Result & error if block supplied
3095
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
3096
+ # @yieldparam err [StandardError] error object if request failed
3097
+ #
3098
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
3099
+ #
3100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3103
+ 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)
3104
+ command = make_simple_command(:post, 'v1/{+parent}/muteConfigs', options)
3105
+ command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
3106
+ command.request_object = google_cloud_securitycenter_v1_mute_config_object
3107
+ command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
3108
+ command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
3109
+ command.params['parent'] = parent unless parent.nil?
3110
+ command.query['muteConfigId'] = mute_config_id unless mute_config_id.nil?
3111
+ command.query['fields'] = fields unless fields.nil?
3112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3113
+ execute_or_queue_command(command, &block)
3114
+ end
3115
+
2992
3116
  # Deletes an existing mute config.
2993
3117
  # @param [String] name
2994
3118
  # Required. Name of the mute config to delete. Its format is organizations/`
@@ -3059,6 +3183,48 @@ module Google
3059
3183
  execute_or_queue_command(command, &block)
3060
3184
  end
3061
3185
 
3186
+ # Lists mute configs.
3187
+ # @param [String] parent
3188
+ # Required. The parent, which owns the collection of mute configs. Its format is
3189
+ # "organizations/[organization_id]", "folders/[folder_id]", "projects/[
3190
+ # project_id]".
3191
+ # @param [Fixnum] page_size
3192
+ # The maximum number of configs to return. The service may return fewer than
3193
+ # this value. If unspecified, at most 10 configs will be returned. The maximum
3194
+ # value is 1000; values above 1000 will be coerced to 1000.
3195
+ # @param [String] page_token
3196
+ # A page token, received from a previous `ListMuteConfigs` call. Provide this to
3197
+ # retrieve the subsequent page. When paginating, all other parameters provided
3198
+ # to `ListMuteConfigs` must match the call that provided the page token.
3199
+ # @param [String] fields
3200
+ # Selector specifying which fields to include in a partial response.
3201
+ # @param [String] quota_user
3202
+ # Available to use for quota purposes for server-side applications. Can be any
3203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3204
+ # @param [Google::Apis::RequestOptions] options
3205
+ # Request-specific options
3206
+ #
3207
+ # @yield [result, err] Result & error if block supplied
3208
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse] parsed result object
3209
+ # @yieldparam err [StandardError] error object if request failed
3210
+ #
3211
+ # @return [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse]
3212
+ #
3213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3216
+ def list_organization_location_mute_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3217
+ command = make_simple_command(:get, 'v1/{+parent}', options)
3218
+ command.response_representation = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse::Representation
3219
+ command.response_class = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse
3220
+ command.params['parent'] = parent unless parent.nil?
3221
+ command.query['pageSize'] = page_size unless page_size.nil?
3222
+ command.query['pageToken'] = page_token unless page_token.nil?
3223
+ command.query['fields'] = fields unless fields.nil?
3224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3225
+ execute_or_queue_command(command, &block)
3226
+ end
3227
+
3062
3228
  # Updates a mute config.
3063
3229
  # @param [String] name
3064
3230
  # This field will be ignored if provided on config creation. Format "
@@ -5910,6 +6076,47 @@ module Google
5910
6076
  execute_or_queue_command(command, &block)
5911
6077
  end
5912
6078
 
6079
+ # Creates a mute config.
6080
+ # @param [String] parent
6081
+ # Required. Resource name of the new mute configs's parent. Its format is "
6082
+ # organizations/[organization_id]", "folders/[folder_id]", or "projects/[
6083
+ # project_id]".
6084
+ # @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
6085
+ # @param [String] mute_config_id
6086
+ # Required. Unique identifier provided by the client within the parent scope. It
6087
+ # must consist of only lowercase letters, numbers, and hyphens, must start with
6088
+ # a letter, must end with either a letter or a number, and must be 63 characters
6089
+ # or less.
6090
+ # @param [String] fields
6091
+ # Selector specifying which fields to include in a partial response.
6092
+ # @param [String] quota_user
6093
+ # Available to use for quota purposes for server-side applications. Can be any
6094
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6095
+ # @param [Google::Apis::RequestOptions] options
6096
+ # Request-specific options
6097
+ #
6098
+ # @yield [result, err] Result & error if block supplied
6099
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
6100
+ # @yieldparam err [StandardError] error object if request failed
6101
+ #
6102
+ # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
6103
+ #
6104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6107
+ 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)
6108
+ command = make_simple_command(:post, 'v1/{+parent}/muteConfigs', options)
6109
+ command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
6110
+ command.request_object = google_cloud_securitycenter_v1_mute_config_object
6111
+ command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
6112
+ command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
6113
+ command.params['parent'] = parent unless parent.nil?
6114
+ command.query['muteConfigId'] = mute_config_id unless mute_config_id.nil?
6115
+ command.query['fields'] = fields unless fields.nil?
6116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6117
+ execute_or_queue_command(command, &block)
6118
+ end
6119
+
5913
6120
  # Deletes an existing mute config.
5914
6121
  # @param [String] name
5915
6122
  # Required. Name of the mute config to delete. Its format is organizations/`
@@ -5980,6 +6187,48 @@ module Google
5980
6187
  execute_or_queue_command(command, &block)
5981
6188
  end
5982
6189
 
6190
+ # Lists mute configs.
6191
+ # @param [String] parent
6192
+ # Required. The parent, which owns the collection of mute configs. Its format is
6193
+ # "organizations/[organization_id]", "folders/[folder_id]", "projects/[
6194
+ # project_id]".
6195
+ # @param [Fixnum] page_size
6196
+ # The maximum number of configs to return. The service may return fewer than
6197
+ # this value. If unspecified, at most 10 configs will be returned. The maximum
6198
+ # value is 1000; values above 1000 will be coerced to 1000.
6199
+ # @param [String] page_token
6200
+ # A page token, received from a previous `ListMuteConfigs` call. Provide this to
6201
+ # retrieve the subsequent page. When paginating, all other parameters provided
6202
+ # to `ListMuteConfigs` must match the call that provided the page token.
6203
+ # @param [String] fields
6204
+ # Selector specifying which fields to include in a partial response.
6205
+ # @param [String] quota_user
6206
+ # Available to use for quota purposes for server-side applications. Can be any
6207
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6208
+ # @param [Google::Apis::RequestOptions] options
6209
+ # Request-specific options
6210
+ #
6211
+ # @yield [result, err] Result & error if block supplied
6212
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse] parsed result object
6213
+ # @yieldparam err [StandardError] error object if request failed
6214
+ #
6215
+ # @return [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse]
6216
+ #
6217
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6218
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6219
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6220
+ def list_project_location_mute_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
6221
+ command = make_simple_command(:get, 'v1/{+parent}', options)
6222
+ command.response_representation = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse::Representation
6223
+ command.response_class = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse
6224
+ command.params['parent'] = parent unless parent.nil?
6225
+ command.query['pageSize'] = page_size unless page_size.nil?
6226
+ command.query['pageToken'] = page_token unless page_token.nil?
6227
+ command.query['fields'] = fields unless fields.nil?
6228
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6229
+ execute_or_queue_command(command, &block)
6230
+ end
6231
+
5983
6232
  # Updates a mute config.
5984
6233
  # @param [String] name
5985
6234
  # 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.80.0
4
+ version: 0.81.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-04-28 00:00:00.000000000 Z
11
+ date: 2024-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.80.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.81.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: []