google-apis-securitycenter_v1 0.52.0 → 0.54.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 +8 -0
- data/lib/google/apis/securitycenter_v1/classes.rb +309 -242
- data/lib/google/apis/securitycenter_v1/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1/representations.rb +112 -86
- data/lib/google/apis/securitycenter_v1/service.rb +987 -42
- metadata +3 -3
@@ -852,6 +852,321 @@ module Google
|
|
852
852
|
execute_or_queue_command(command, &block)
|
853
853
|
end
|
854
854
|
|
855
|
+
# Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
|
856
|
+
# given CRM parent, and also creates inherited
|
857
|
+
# SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
|
858
|
+
# parent. These modules are enabled by default.
|
859
|
+
# @param [String] parent
|
860
|
+
# Required. Resource name of the new custom module's parent. Its format is "
|
861
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
862
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
863
|
+
# securityHealthAnalyticsSettings"
|
864
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
865
|
+
# @param [String] fields
|
866
|
+
# Selector specifying which fields to include in a partial response.
|
867
|
+
# @param [String] quota_user
|
868
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
869
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
870
|
+
# @param [Google::Apis::RequestOptions] options
|
871
|
+
# Request-specific options
|
872
|
+
#
|
873
|
+
# @yield [result, err] Result & error if block supplied
|
874
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
875
|
+
# @yieldparam err [StandardError] error object if request failed
|
876
|
+
#
|
877
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
878
|
+
#
|
879
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
880
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
881
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
882
|
+
def create_folder_security_health_analytics_setting_custom_module(parent, google_cloud_securitycenter_v1_security_health_analytics_custom_module_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
883
|
+
command = make_simple_command(:post, 'v1/{+parent}/customModules', options)
|
884
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
885
|
+
command.request_object = google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
886
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
887
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
888
|
+
command.params['parent'] = parent unless parent.nil?
|
889
|
+
command.query['fields'] = fields unless fields.nil?
|
890
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
891
|
+
execute_or_queue_command(command, &block)
|
892
|
+
end
|
893
|
+
|
894
|
+
# Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
|
895
|
+
# descendants in the CRM hierarchy. This method is only supported for resident
|
896
|
+
# custom modules.
|
897
|
+
# @param [String] name
|
898
|
+
# Required. Name of the custom module to delete. Its format is "organizations/`
|
899
|
+
# organization`/securityHealthAnalyticsSettings/customModules/`customModule`", "
|
900
|
+
# folders/`folder`/securityHealthAnalyticsSettings/customModules/`customModule`",
|
901
|
+
# or "projects/`project`/securityHealthAnalyticsSettings/customModules/`
|
902
|
+
# customModule`"
|
903
|
+
# @param [String] fields
|
904
|
+
# Selector specifying which fields to include in a partial response.
|
905
|
+
# @param [String] quota_user
|
906
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
907
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
908
|
+
# @param [Google::Apis::RequestOptions] options
|
909
|
+
# Request-specific options
|
910
|
+
#
|
911
|
+
# @yield [result, err] Result & error if block supplied
|
912
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
913
|
+
# @yieldparam err [StandardError] error object if request failed
|
914
|
+
#
|
915
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
916
|
+
#
|
917
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
918
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
919
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
920
|
+
def delete_folder_security_health_analytics_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
921
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
922
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
923
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
924
|
+
command.params['name'] = name unless name.nil?
|
925
|
+
command.query['fields'] = fields unless fields.nil?
|
926
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
927
|
+
execute_or_queue_command(command, &block)
|
928
|
+
end
|
929
|
+
|
930
|
+
# Retrieves a SecurityHealthAnalyticsCustomModule.
|
931
|
+
# @param [String] name
|
932
|
+
# Required. Name of the custom module to get. Its format is "organizations/`
|
933
|
+
# organization`/securityHealthAnalyticsSettings/customModules/`customModule`", "
|
934
|
+
# folders/`folder`/securityHealthAnalyticsSettings/customModules/`customModule`",
|
935
|
+
# or "projects/`project`/securityHealthAnalyticsSettings/customModules/`
|
936
|
+
# customModule`"
|
937
|
+
# @param [String] fields
|
938
|
+
# Selector specifying which fields to include in a partial response.
|
939
|
+
# @param [String] quota_user
|
940
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
941
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
942
|
+
# @param [Google::Apis::RequestOptions] options
|
943
|
+
# Request-specific options
|
944
|
+
#
|
945
|
+
# @yield [result, err] Result & error if block supplied
|
946
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
947
|
+
# @yieldparam err [StandardError] error object if request failed
|
948
|
+
#
|
949
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
950
|
+
#
|
951
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
952
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
953
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
954
|
+
def get_folder_security_health_analytics_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
955
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
956
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
957
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
958
|
+
command.params['name'] = name unless name.nil?
|
959
|
+
command.query['fields'] = fields unless fields.nil?
|
960
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
961
|
+
execute_or_queue_command(command, &block)
|
962
|
+
end
|
963
|
+
|
964
|
+
# Returns a list of all SecurityHealthAnalyticsCustomModules for the given
|
965
|
+
# parent. This includes resident modules defined at the scope of the parent, and
|
966
|
+
# inherited modules, inherited from CRM ancestors.
|
967
|
+
# @param [String] parent
|
968
|
+
# Required. Name of parent to list custom modules. Its format is "organizations/`
|
969
|
+
# organization`/securityHealthAnalyticsSettings", "folders/`folder`/
|
970
|
+
# securityHealthAnalyticsSettings", or "projects/`project`/
|
971
|
+
# securityHealthAnalyticsSettings"
|
972
|
+
# @param [Fixnum] page_size
|
973
|
+
# The maximum number of results to return in a single response. Default is 10,
|
974
|
+
# minimum is 1, maximum is 1000.
|
975
|
+
# @param [String] page_token
|
976
|
+
# The value returned by the last call indicating a continuation
|
977
|
+
# @param [String] fields
|
978
|
+
# Selector specifying which fields to include in a partial response.
|
979
|
+
# @param [String] quota_user
|
980
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
981
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
982
|
+
# @param [Google::Apis::RequestOptions] options
|
983
|
+
# Request-specific options
|
984
|
+
#
|
985
|
+
# @yield [result, err] Result & error if block supplied
|
986
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
987
|
+
# @yieldparam err [StandardError] error object if request failed
|
988
|
+
#
|
989
|
+
# @return [Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse]
|
990
|
+
#
|
991
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
992
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
993
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
994
|
+
def list_folder_security_health_analytics_setting_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
995
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules', options)
|
996
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse::Representation
|
997
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse
|
998
|
+
command.params['parent'] = parent unless parent.nil?
|
999
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1000
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1001
|
+
command.query['fields'] = fields unless fields.nil?
|
1002
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1003
|
+
execute_or_queue_command(command, &block)
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
# Returns a list of all resident SecurityHealthAnalyticsCustomModules under the
|
1007
|
+
# given CRM parent and all of the parent’s CRM descendants.
|
1008
|
+
# @param [String] parent
|
1009
|
+
# Required. Name of parent to list descendant custom modules. Its format is "
|
1010
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
1011
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
1012
|
+
# securityHealthAnalyticsSettings"
|
1013
|
+
# @param [Fixnum] page_size
|
1014
|
+
# The maximum number of results to return in a single response. Default is 10,
|
1015
|
+
# minimum is 1, maximum is 1000.
|
1016
|
+
# @param [String] page_token
|
1017
|
+
# The value returned by the last call indicating a continuation
|
1018
|
+
# @param [String] fields
|
1019
|
+
# Selector specifying which fields to include in a partial response.
|
1020
|
+
# @param [String] quota_user
|
1021
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1022
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1023
|
+
# @param [Google::Apis::RequestOptions] options
|
1024
|
+
# Request-specific options
|
1025
|
+
#
|
1026
|
+
# @yield [result, err] Result & error if block supplied
|
1027
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
1028
|
+
# @yieldparam err [StandardError] error object if request failed
|
1029
|
+
#
|
1030
|
+
# @return [Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse]
|
1031
|
+
#
|
1032
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1033
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1034
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1035
|
+
def list_folder_security_health_analytics_setting_custom_module_descendant(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1036
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules:listDescendant', options)
|
1037
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse::Representation
|
1038
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse
|
1039
|
+
command.params['parent'] = parent unless parent.nil?
|
1040
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1041
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1042
|
+
command.query['fields'] = fields unless fields.nil?
|
1043
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1044
|
+
execute_or_queue_command(command, &block)
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
# Updates the SecurityHealthAnalyticsCustomModule under the given name based on
|
1048
|
+
# the given update mask. Updating the enablement state is supported on both
|
1049
|
+
# resident and inherited modules (though resident modules cannot have an
|
1050
|
+
# enablement state of “inherited”). Updating the display name and custom config
|
1051
|
+
# of a module is supported on resident modules only.
|
1052
|
+
# @param [String] name
|
1053
|
+
# Immutable. The resource name of the custom module. Its format is "
|
1054
|
+
# organizations/`organization`/securityHealthAnalyticsSettings/customModules/`
|
1055
|
+
# customModule`", or "folders/`folder`/securityHealthAnalyticsSettings/
|
1056
|
+
# customModules/`customModule`", or "projects/`project`/
|
1057
|
+
# securityHealthAnalyticsSettings/customModules/`customModule`" The id `
|
1058
|
+
# customModule` is server-generated and is not user settable. It will be a
|
1059
|
+
# numeric id containing 1-20 digits.
|
1060
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
1061
|
+
# @param [String] update_mask
|
1062
|
+
# The list of fields to update.
|
1063
|
+
# @param [String] fields
|
1064
|
+
# Selector specifying which fields to include in a partial response.
|
1065
|
+
# @param [String] quota_user
|
1066
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1067
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1068
|
+
# @param [Google::Apis::RequestOptions] options
|
1069
|
+
# Request-specific options
|
1070
|
+
#
|
1071
|
+
# @yield [result, err] Result & error if block supplied
|
1072
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
1073
|
+
# @yieldparam err [StandardError] error object if request failed
|
1074
|
+
#
|
1075
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
1076
|
+
#
|
1077
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1078
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1079
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1080
|
+
def patch_folder_security_health_analytics_setting_custom_module(name, google_cloud_securitycenter_v1_security_health_analytics_custom_module_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1081
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1082
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
1083
|
+
command.request_object = google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
1084
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
1085
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
1086
|
+
command.params['name'] = name unless name.nil?
|
1087
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1088
|
+
command.query['fields'] = fields unless fields.nil?
|
1089
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1090
|
+
execute_or_queue_command(command, &block)
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
# Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
|
1094
|
+
# @param [String] name
|
1095
|
+
# Required. Name of the effective custom module to get. Its format is "
|
1096
|
+
# organizations/`organization`/securityHealthAnalyticsSettings/
|
1097
|
+
# effectiveCustomModules/`customModule`", "folders/`folder`/
|
1098
|
+
# securityHealthAnalyticsSettings/effectiveCustomModules/`customModule`", or "
|
1099
|
+
# projects/`project`/securityHealthAnalyticsSettings/effectiveCustomModules/`
|
1100
|
+
# customModule`"
|
1101
|
+
# @param [String] fields
|
1102
|
+
# Selector specifying which fields to include in a partial response.
|
1103
|
+
# @param [String] quota_user
|
1104
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1105
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1106
|
+
# @param [Google::Apis::RequestOptions] options
|
1107
|
+
# Request-specific options
|
1108
|
+
#
|
1109
|
+
# @yield [result, err] Result & error if block supplied
|
1110
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule] parsed result object
|
1111
|
+
# @yieldparam err [StandardError] error object if request failed
|
1112
|
+
#
|
1113
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule]
|
1114
|
+
#
|
1115
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1116
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1117
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1118
|
+
def get_folder_security_health_analytics_setting_effective_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
1119
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1120
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule::Representation
|
1121
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule
|
1122
|
+
command.params['name'] = name unless name.nil?
|
1123
|
+
command.query['fields'] = fields unless fields.nil?
|
1124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1125
|
+
execute_or_queue_command(command, &block)
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
# Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
|
1129
|
+
# given parent. This includes resident modules defined at the scope of the
|
1130
|
+
# parent, and inherited modules, inherited from CRM ancestors.
|
1131
|
+
# @param [String] parent
|
1132
|
+
# Required. Name of parent to list effective custom modules. Its format is "
|
1133
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
1134
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
1135
|
+
# securityHealthAnalyticsSettings"
|
1136
|
+
# @param [Fixnum] page_size
|
1137
|
+
# The maximum number of results to return in a single response. Default is 10,
|
1138
|
+
# minimum is 1, maximum is 1000.
|
1139
|
+
# @param [String] page_token
|
1140
|
+
# The value returned by the last call indicating a continuation
|
1141
|
+
# @param [String] fields
|
1142
|
+
# Selector specifying which fields to include in a partial response.
|
1143
|
+
# @param [String] quota_user
|
1144
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1145
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1146
|
+
# @param [Google::Apis::RequestOptions] options
|
1147
|
+
# Request-specific options
|
1148
|
+
#
|
1149
|
+
# @yield [result, err] Result & error if block supplied
|
1150
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
1151
|
+
# @yieldparam err [StandardError] error object if request failed
|
1152
|
+
#
|
1153
|
+
# @return [Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse]
|
1154
|
+
#
|
1155
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1156
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1157
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1158
|
+
def list_folder_security_health_analytics_setting_effective_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1159
|
+
command = make_simple_command(:get, 'v1/{+parent}/effectiveCustomModules', options)
|
1160
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse::Representation
|
1161
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse
|
1162
|
+
command.params['parent'] = parent unless parent.nil?
|
1163
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1164
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1165
|
+
command.query['fields'] = fields unless fields.nil?
|
1166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1167
|
+
execute_or_queue_command(command, &block)
|
1168
|
+
end
|
1169
|
+
|
855
1170
|
# Lists all sources belonging to an organization.
|
856
1171
|
# @param [String] parent
|
857
1172
|
# Required. Resource name of the parent of sources to list. Its format should be
|
@@ -2179,30 +2494,336 @@ module Google
|
|
2179
2494
|
# Request-specific options
|
2180
2495
|
#
|
2181
2496
|
# @yield [result, err] Result & error if block supplied
|
2182
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
2497
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
2498
|
+
# @yieldparam err [StandardError] error object if request failed
|
2499
|
+
#
|
2500
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
2501
|
+
#
|
2502
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2503
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2504
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2505
|
+
def cancel_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
2506
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
2507
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
2508
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
2509
|
+
command.params['name'] = name unless name.nil?
|
2510
|
+
command.query['fields'] = fields unless fields.nil?
|
2511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2512
|
+
execute_or_queue_command(command, &block)
|
2513
|
+
end
|
2514
|
+
|
2515
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
2516
|
+
# longer interested in the operation result. It does not cancel the operation.
|
2517
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
2518
|
+
# UNIMPLEMENTED`.
|
2519
|
+
# @param [String] name
|
2520
|
+
# The name of the operation resource to be deleted.
|
2521
|
+
# @param [String] fields
|
2522
|
+
# Selector specifying which fields to include in a partial response.
|
2523
|
+
# @param [String] quota_user
|
2524
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2525
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2526
|
+
# @param [Google::Apis::RequestOptions] options
|
2527
|
+
# Request-specific options
|
2528
|
+
#
|
2529
|
+
# @yield [result, err] Result & error if block supplied
|
2530
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
2531
|
+
# @yieldparam err [StandardError] error object if request failed
|
2532
|
+
#
|
2533
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
2534
|
+
#
|
2535
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2536
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2537
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2538
|
+
def delete_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
2539
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
2540
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
2541
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
2542
|
+
command.params['name'] = name unless name.nil?
|
2543
|
+
command.query['fields'] = fields unless fields.nil?
|
2544
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2545
|
+
execute_or_queue_command(command, &block)
|
2546
|
+
end
|
2547
|
+
|
2548
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
2549
|
+
# to poll the operation result at intervals as recommended by the API service.
|
2550
|
+
# @param [String] name
|
2551
|
+
# The name of the operation resource.
|
2552
|
+
# @param [String] fields
|
2553
|
+
# Selector specifying which fields to include in a partial response.
|
2554
|
+
# @param [String] quota_user
|
2555
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2556
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2557
|
+
# @param [Google::Apis::RequestOptions] options
|
2558
|
+
# Request-specific options
|
2559
|
+
#
|
2560
|
+
# @yield [result, err] Result & error if block supplied
|
2561
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Operation] parsed result object
|
2562
|
+
# @yieldparam err [StandardError] error object if request failed
|
2563
|
+
#
|
2564
|
+
# @return [Google::Apis::SecuritycenterV1::Operation]
|
2565
|
+
#
|
2566
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2567
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2568
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2569
|
+
def get_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
2570
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2571
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Operation::Representation
|
2572
|
+
command.response_class = Google::Apis::SecuritycenterV1::Operation
|
2573
|
+
command.params['name'] = name unless name.nil?
|
2574
|
+
command.query['fields'] = fields unless fields.nil?
|
2575
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2576
|
+
execute_or_queue_command(command, &block)
|
2577
|
+
end
|
2578
|
+
|
2579
|
+
# Lists operations that match the specified filter in the request. If the server
|
2580
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
2581
|
+
# @param [String] name
|
2582
|
+
# The name of the operation's parent resource.
|
2583
|
+
# @param [String] filter
|
2584
|
+
# The standard list filter.
|
2585
|
+
# @param [Fixnum] page_size
|
2586
|
+
# The standard list page size.
|
2587
|
+
# @param [String] page_token
|
2588
|
+
# The standard list page token.
|
2589
|
+
# @param [String] fields
|
2590
|
+
# Selector specifying which fields to include in a partial response.
|
2591
|
+
# @param [String] quota_user
|
2592
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2593
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2594
|
+
# @param [Google::Apis::RequestOptions] options
|
2595
|
+
# Request-specific options
|
2596
|
+
#
|
2597
|
+
# @yield [result, err] Result & error if block supplied
|
2598
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListOperationsResponse] parsed result object
|
2599
|
+
# @yieldparam err [StandardError] error object if request failed
|
2600
|
+
#
|
2601
|
+
# @return [Google::Apis::SecuritycenterV1::ListOperationsResponse]
|
2602
|
+
#
|
2603
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2604
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2605
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2606
|
+
def list_organization_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2607
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2608
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListOperationsResponse::Representation
|
2609
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListOperationsResponse
|
2610
|
+
command.params['name'] = name unless name.nil?
|
2611
|
+
command.query['filter'] = filter unless filter.nil?
|
2612
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2613
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2614
|
+
command.query['fields'] = fields unless fields.nil?
|
2615
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2616
|
+
execute_or_queue_command(command, &block)
|
2617
|
+
end
|
2618
|
+
|
2619
|
+
# Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
|
2620
|
+
# given CRM parent, and also creates inherited
|
2621
|
+
# SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
|
2622
|
+
# parent. These modules are enabled by default.
|
2623
|
+
# @param [String] parent
|
2624
|
+
# Required. Resource name of the new custom module's parent. Its format is "
|
2625
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
2626
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
2627
|
+
# securityHealthAnalyticsSettings"
|
2628
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
2629
|
+
# @param [String] fields
|
2630
|
+
# Selector specifying which fields to include in a partial response.
|
2631
|
+
# @param [String] quota_user
|
2632
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2633
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2634
|
+
# @param [Google::Apis::RequestOptions] options
|
2635
|
+
# Request-specific options
|
2636
|
+
#
|
2637
|
+
# @yield [result, err] Result & error if block supplied
|
2638
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
2639
|
+
# @yieldparam err [StandardError] error object if request failed
|
2640
|
+
#
|
2641
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
2642
|
+
#
|
2643
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2644
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2645
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2646
|
+
def create_organization_security_health_analytics_setting_custom_module(parent, google_cloud_securitycenter_v1_security_health_analytics_custom_module_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2647
|
+
command = make_simple_command(:post, 'v1/{+parent}/customModules', options)
|
2648
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
2649
|
+
command.request_object = google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
2650
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
2651
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
2652
|
+
command.params['parent'] = parent unless parent.nil?
|
2653
|
+
command.query['fields'] = fields unless fields.nil?
|
2654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2655
|
+
execute_or_queue_command(command, &block)
|
2656
|
+
end
|
2657
|
+
|
2658
|
+
# Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
|
2659
|
+
# descendants in the CRM hierarchy. This method is only supported for resident
|
2660
|
+
# custom modules.
|
2661
|
+
# @param [String] name
|
2662
|
+
# Required. Name of the custom module to delete. Its format is "organizations/`
|
2663
|
+
# organization`/securityHealthAnalyticsSettings/customModules/`customModule`", "
|
2664
|
+
# folders/`folder`/securityHealthAnalyticsSettings/customModules/`customModule`",
|
2665
|
+
# or "projects/`project`/securityHealthAnalyticsSettings/customModules/`
|
2666
|
+
# customModule`"
|
2667
|
+
# @param [String] fields
|
2668
|
+
# Selector specifying which fields to include in a partial response.
|
2669
|
+
# @param [String] quota_user
|
2670
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2671
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2672
|
+
# @param [Google::Apis::RequestOptions] options
|
2673
|
+
# Request-specific options
|
2674
|
+
#
|
2675
|
+
# @yield [result, err] Result & error if block supplied
|
2676
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
2677
|
+
# @yieldparam err [StandardError] error object if request failed
|
2678
|
+
#
|
2679
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
2680
|
+
#
|
2681
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2682
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2683
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2684
|
+
def delete_organization_security_health_analytics_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
2685
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
2686
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
2687
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
2688
|
+
command.params['name'] = name unless name.nil?
|
2689
|
+
command.query['fields'] = fields unless fields.nil?
|
2690
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2691
|
+
execute_or_queue_command(command, &block)
|
2692
|
+
end
|
2693
|
+
|
2694
|
+
# Retrieves a SecurityHealthAnalyticsCustomModule.
|
2695
|
+
# @param [String] name
|
2696
|
+
# Required. Name of the custom module to get. Its format is "organizations/`
|
2697
|
+
# organization`/securityHealthAnalyticsSettings/customModules/`customModule`", "
|
2698
|
+
# folders/`folder`/securityHealthAnalyticsSettings/customModules/`customModule`",
|
2699
|
+
# or "projects/`project`/securityHealthAnalyticsSettings/customModules/`
|
2700
|
+
# customModule`"
|
2701
|
+
# @param [String] fields
|
2702
|
+
# Selector specifying which fields to include in a partial response.
|
2703
|
+
# @param [String] quota_user
|
2704
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2705
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2706
|
+
# @param [Google::Apis::RequestOptions] options
|
2707
|
+
# Request-specific options
|
2708
|
+
#
|
2709
|
+
# @yield [result, err] Result & error if block supplied
|
2710
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
2711
|
+
# @yieldparam err [StandardError] error object if request failed
|
2712
|
+
#
|
2713
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
2714
|
+
#
|
2715
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2716
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2717
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2718
|
+
def get_organization_security_health_analytics_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
2719
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2720
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
2721
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
2722
|
+
command.params['name'] = name unless name.nil?
|
2723
|
+
command.query['fields'] = fields unless fields.nil?
|
2724
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2725
|
+
execute_or_queue_command(command, &block)
|
2726
|
+
end
|
2727
|
+
|
2728
|
+
# Returns a list of all SecurityHealthAnalyticsCustomModules for the given
|
2729
|
+
# parent. This includes resident modules defined at the scope of the parent, and
|
2730
|
+
# inherited modules, inherited from CRM ancestors.
|
2731
|
+
# @param [String] parent
|
2732
|
+
# Required. Name of parent to list custom modules. Its format is "organizations/`
|
2733
|
+
# organization`/securityHealthAnalyticsSettings", "folders/`folder`/
|
2734
|
+
# securityHealthAnalyticsSettings", or "projects/`project`/
|
2735
|
+
# securityHealthAnalyticsSettings"
|
2736
|
+
# @param [Fixnum] page_size
|
2737
|
+
# The maximum number of results to return in a single response. Default is 10,
|
2738
|
+
# minimum is 1, maximum is 1000.
|
2739
|
+
# @param [String] page_token
|
2740
|
+
# The value returned by the last call indicating a continuation
|
2741
|
+
# @param [String] fields
|
2742
|
+
# Selector specifying which fields to include in a partial response.
|
2743
|
+
# @param [String] quota_user
|
2744
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2745
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2746
|
+
# @param [Google::Apis::RequestOptions] options
|
2747
|
+
# Request-specific options
|
2748
|
+
#
|
2749
|
+
# @yield [result, err] Result & error if block supplied
|
2750
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
2751
|
+
# @yieldparam err [StandardError] error object if request failed
|
2752
|
+
#
|
2753
|
+
# @return [Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse]
|
2754
|
+
#
|
2755
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2756
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2757
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2758
|
+
def list_organization_security_health_analytics_setting_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2759
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules', options)
|
2760
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse::Representation
|
2761
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse
|
2762
|
+
command.params['parent'] = parent unless parent.nil?
|
2763
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2764
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2765
|
+
command.query['fields'] = fields unless fields.nil?
|
2766
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2767
|
+
execute_or_queue_command(command, &block)
|
2768
|
+
end
|
2769
|
+
|
2770
|
+
# Returns a list of all resident SecurityHealthAnalyticsCustomModules under the
|
2771
|
+
# given CRM parent and all of the parent’s CRM descendants.
|
2772
|
+
# @param [String] parent
|
2773
|
+
# Required. Name of parent to list descendant custom modules. Its format is "
|
2774
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
2775
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
2776
|
+
# securityHealthAnalyticsSettings"
|
2777
|
+
# @param [Fixnum] page_size
|
2778
|
+
# The maximum number of results to return in a single response. Default is 10,
|
2779
|
+
# minimum is 1, maximum is 1000.
|
2780
|
+
# @param [String] page_token
|
2781
|
+
# The value returned by the last call indicating a continuation
|
2782
|
+
# @param [String] fields
|
2783
|
+
# Selector specifying which fields to include in a partial response.
|
2784
|
+
# @param [String] quota_user
|
2785
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2786
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2787
|
+
# @param [Google::Apis::RequestOptions] options
|
2788
|
+
# Request-specific options
|
2789
|
+
#
|
2790
|
+
# @yield [result, err] Result & error if block supplied
|
2791
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
2183
2792
|
# @yieldparam err [StandardError] error object if request failed
|
2184
2793
|
#
|
2185
|
-
# @return [Google::Apis::SecuritycenterV1::
|
2794
|
+
# @return [Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse]
|
2186
2795
|
#
|
2187
2796
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2188
2797
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2189
2798
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2190
|
-
def
|
2191
|
-
command = make_simple_command(:
|
2192
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
2193
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
2194
|
-
command.params['
|
2799
|
+
def list_organization_security_health_analytics_setting_custom_module_descendant(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2800
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules:listDescendant', options)
|
2801
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse::Representation
|
2802
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse
|
2803
|
+
command.params['parent'] = parent unless parent.nil?
|
2804
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2805
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2195
2806
|
command.query['fields'] = fields unless fields.nil?
|
2196
2807
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2197
2808
|
execute_or_queue_command(command, &block)
|
2198
2809
|
end
|
2199
2810
|
|
2200
|
-
#
|
2201
|
-
#
|
2202
|
-
#
|
2203
|
-
#
|
2811
|
+
# Updates the SecurityHealthAnalyticsCustomModule under the given name based on
|
2812
|
+
# the given update mask. Updating the enablement state is supported on both
|
2813
|
+
# resident and inherited modules (though resident modules cannot have an
|
2814
|
+
# enablement state of “inherited”). Updating the display name and custom config
|
2815
|
+
# of a module is supported on resident modules only.
|
2204
2816
|
# @param [String] name
|
2205
|
-
# The name of the
|
2817
|
+
# Immutable. The resource name of the custom module. Its format is "
|
2818
|
+
# organizations/`organization`/securityHealthAnalyticsSettings/customModules/`
|
2819
|
+
# customModule`", or "folders/`folder`/securityHealthAnalyticsSettings/
|
2820
|
+
# customModules/`customModule`", or "projects/`project`/
|
2821
|
+
# securityHealthAnalyticsSettings/customModules/`customModule`" The id `
|
2822
|
+
# customModule` is server-generated and is not user settable. It will be a
|
2823
|
+
# numeric id containing 1-20 digits.
|
2824
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
2825
|
+
# @param [String] update_mask
|
2826
|
+
# The list of fields to update.
|
2206
2827
|
# @param [String] fields
|
2207
2828
|
# Selector specifying which fields to include in a partial response.
|
2208
2829
|
# @param [String] quota_user
|
@@ -2212,28 +2833,35 @@ module Google
|
|
2212
2833
|
# Request-specific options
|
2213
2834
|
#
|
2214
2835
|
# @yield [result, err] Result & error if block supplied
|
2215
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
2836
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
2216
2837
|
# @yieldparam err [StandardError] error object if request failed
|
2217
2838
|
#
|
2218
|
-
# @return [Google::Apis::SecuritycenterV1::
|
2839
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
2219
2840
|
#
|
2220
2841
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2221
2842
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2222
2843
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2223
|
-
def
|
2224
|
-
command = make_simple_command(:
|
2225
|
-
command.
|
2226
|
-
command.
|
2844
|
+
def patch_organization_security_health_analytics_setting_custom_module(name, google_cloud_securitycenter_v1_security_health_analytics_custom_module_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2845
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2846
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
2847
|
+
command.request_object = google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
2848
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
2849
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
2227
2850
|
command.params['name'] = name unless name.nil?
|
2851
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2228
2852
|
command.query['fields'] = fields unless fields.nil?
|
2229
2853
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2230
2854
|
execute_or_queue_command(command, &block)
|
2231
2855
|
end
|
2232
2856
|
|
2233
|
-
#
|
2234
|
-
# to poll the operation result at intervals as recommended by the API service.
|
2857
|
+
# Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
|
2235
2858
|
# @param [String] name
|
2236
|
-
#
|
2859
|
+
# Required. Name of the effective custom module to get. Its format is "
|
2860
|
+
# organizations/`organization`/securityHealthAnalyticsSettings/
|
2861
|
+
# effectiveCustomModules/`customModule`", "folders/`folder`/
|
2862
|
+
# securityHealthAnalyticsSettings/effectiveCustomModules/`customModule`", or "
|
2863
|
+
# projects/`project`/securityHealthAnalyticsSettings/effectiveCustomModules/`
|
2864
|
+
# customModule`"
|
2237
2865
|
# @param [String] fields
|
2238
2866
|
# Selector specifying which fields to include in a partial response.
|
2239
2867
|
# @param [String] quota_user
|
@@ -2243,34 +2871,37 @@ module Google
|
|
2243
2871
|
# Request-specific options
|
2244
2872
|
#
|
2245
2873
|
# @yield [result, err] Result & error if block supplied
|
2246
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
2874
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule] parsed result object
|
2247
2875
|
# @yieldparam err [StandardError] error object if request failed
|
2248
2876
|
#
|
2249
|
-
# @return [Google::Apis::SecuritycenterV1::
|
2877
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule]
|
2250
2878
|
#
|
2251
2879
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2252
2880
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2253
2881
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2254
|
-
def
|
2882
|
+
def get_organization_security_health_analytics_setting_effective_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
2255
2883
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
2256
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
2257
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
2884
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule::Representation
|
2885
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule
|
2258
2886
|
command.params['name'] = name unless name.nil?
|
2259
2887
|
command.query['fields'] = fields unless fields.nil?
|
2260
2888
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2261
2889
|
execute_or_queue_command(command, &block)
|
2262
2890
|
end
|
2263
2891
|
|
2264
|
-
#
|
2265
|
-
#
|
2266
|
-
#
|
2267
|
-
#
|
2268
|
-
#
|
2269
|
-
#
|
2892
|
+
# Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
|
2893
|
+
# given parent. This includes resident modules defined at the scope of the
|
2894
|
+
# parent, and inherited modules, inherited from CRM ancestors.
|
2895
|
+
# @param [String] parent
|
2896
|
+
# Required. Name of parent to list effective custom modules. Its format is "
|
2897
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
2898
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
2899
|
+
# securityHealthAnalyticsSettings"
|
2270
2900
|
# @param [Fixnum] page_size
|
2271
|
-
# The
|
2901
|
+
# The maximum number of results to return in a single response. Default is 10,
|
2902
|
+
# minimum is 1, maximum is 1000.
|
2272
2903
|
# @param [String] page_token
|
2273
|
-
# The
|
2904
|
+
# The value returned by the last call indicating a continuation
|
2274
2905
|
# @param [String] fields
|
2275
2906
|
# Selector specifying which fields to include in a partial response.
|
2276
2907
|
# @param [String] quota_user
|
@@ -2280,20 +2911,19 @@ module Google
|
|
2280
2911
|
# Request-specific options
|
2281
2912
|
#
|
2282
2913
|
# @yield [result, err] Result & error if block supplied
|
2283
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
2914
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
2284
2915
|
# @yieldparam err [StandardError] error object if request failed
|
2285
2916
|
#
|
2286
|
-
# @return [Google::Apis::SecuritycenterV1::
|
2917
|
+
# @return [Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse]
|
2287
2918
|
#
|
2288
2919
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2289
2920
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2290
2921
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2291
|
-
def
|
2292
|
-
command = make_simple_command(:get, 'v1/{+
|
2293
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
2294
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
2295
|
-
command.params['
|
2296
|
-
command.query['filter'] = filter unless filter.nil?
|
2922
|
+
def list_organization_security_health_analytics_setting_effective_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2923
|
+
command = make_simple_command(:get, 'v1/{+parent}/effectiveCustomModules', options)
|
2924
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse::Representation
|
2925
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse
|
2926
|
+
command.params['parent'] = parent unless parent.nil?
|
2297
2927
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2298
2928
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2299
2929
|
command.query['fields'] = fields unless fields.nil?
|
@@ -3752,6 +4382,321 @@ module Google
|
|
3752
4382
|
execute_or_queue_command(command, &block)
|
3753
4383
|
end
|
3754
4384
|
|
4385
|
+
# Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
|
4386
|
+
# given CRM parent, and also creates inherited
|
4387
|
+
# SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
|
4388
|
+
# parent. These modules are enabled by default.
|
4389
|
+
# @param [String] parent
|
4390
|
+
# Required. Resource name of the new custom module's parent. Its format is "
|
4391
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
4392
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
4393
|
+
# securityHealthAnalyticsSettings"
|
4394
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
4395
|
+
# @param [String] fields
|
4396
|
+
# Selector specifying which fields to include in a partial response.
|
4397
|
+
# @param [String] quota_user
|
4398
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4399
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4400
|
+
# @param [Google::Apis::RequestOptions] options
|
4401
|
+
# Request-specific options
|
4402
|
+
#
|
4403
|
+
# @yield [result, err] Result & error if block supplied
|
4404
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
4405
|
+
# @yieldparam err [StandardError] error object if request failed
|
4406
|
+
#
|
4407
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
4408
|
+
#
|
4409
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4410
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4411
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4412
|
+
def create_project_security_health_analytics_setting_custom_module(parent, google_cloud_securitycenter_v1_security_health_analytics_custom_module_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4413
|
+
command = make_simple_command(:post, 'v1/{+parent}/customModules', options)
|
4414
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
4415
|
+
command.request_object = google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
4416
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
4417
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
4418
|
+
command.params['parent'] = parent unless parent.nil?
|
4419
|
+
command.query['fields'] = fields unless fields.nil?
|
4420
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4421
|
+
execute_or_queue_command(command, &block)
|
4422
|
+
end
|
4423
|
+
|
4424
|
+
# Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
|
4425
|
+
# descendants in the CRM hierarchy. This method is only supported for resident
|
4426
|
+
# custom modules.
|
4427
|
+
# @param [String] name
|
4428
|
+
# Required. Name of the custom module to delete. Its format is "organizations/`
|
4429
|
+
# organization`/securityHealthAnalyticsSettings/customModules/`customModule`", "
|
4430
|
+
# folders/`folder`/securityHealthAnalyticsSettings/customModules/`customModule`",
|
4431
|
+
# or "projects/`project`/securityHealthAnalyticsSettings/customModules/`
|
4432
|
+
# customModule`"
|
4433
|
+
# @param [String] fields
|
4434
|
+
# Selector specifying which fields to include in a partial response.
|
4435
|
+
# @param [String] quota_user
|
4436
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4437
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4438
|
+
# @param [Google::Apis::RequestOptions] options
|
4439
|
+
# Request-specific options
|
4440
|
+
#
|
4441
|
+
# @yield [result, err] Result & error if block supplied
|
4442
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
4443
|
+
# @yieldparam err [StandardError] error object if request failed
|
4444
|
+
#
|
4445
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
4446
|
+
#
|
4447
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4448
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4449
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4450
|
+
def delete_project_security_health_analytics_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
4451
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
4452
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
4453
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
4454
|
+
command.params['name'] = name unless name.nil?
|
4455
|
+
command.query['fields'] = fields unless fields.nil?
|
4456
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4457
|
+
execute_or_queue_command(command, &block)
|
4458
|
+
end
|
4459
|
+
|
4460
|
+
# Retrieves a SecurityHealthAnalyticsCustomModule.
|
4461
|
+
# @param [String] name
|
4462
|
+
# Required. Name of the custom module to get. Its format is "organizations/`
|
4463
|
+
# organization`/securityHealthAnalyticsSettings/customModules/`customModule`", "
|
4464
|
+
# folders/`folder`/securityHealthAnalyticsSettings/customModules/`customModule`",
|
4465
|
+
# or "projects/`project`/securityHealthAnalyticsSettings/customModules/`
|
4466
|
+
# customModule`"
|
4467
|
+
# @param [String] fields
|
4468
|
+
# Selector specifying which fields to include in a partial response.
|
4469
|
+
# @param [String] quota_user
|
4470
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4471
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4472
|
+
# @param [Google::Apis::RequestOptions] options
|
4473
|
+
# Request-specific options
|
4474
|
+
#
|
4475
|
+
# @yield [result, err] Result & error if block supplied
|
4476
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
4477
|
+
# @yieldparam err [StandardError] error object if request failed
|
4478
|
+
#
|
4479
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
4480
|
+
#
|
4481
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4482
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4483
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4484
|
+
def get_project_security_health_analytics_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
4485
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
4486
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
4487
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
4488
|
+
command.params['name'] = name unless name.nil?
|
4489
|
+
command.query['fields'] = fields unless fields.nil?
|
4490
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4491
|
+
execute_or_queue_command(command, &block)
|
4492
|
+
end
|
4493
|
+
|
4494
|
+
# Returns a list of all SecurityHealthAnalyticsCustomModules for the given
|
4495
|
+
# parent. This includes resident modules defined at the scope of the parent, and
|
4496
|
+
# inherited modules, inherited from CRM ancestors.
|
4497
|
+
# @param [String] parent
|
4498
|
+
# Required. Name of parent to list custom modules. Its format is "organizations/`
|
4499
|
+
# organization`/securityHealthAnalyticsSettings", "folders/`folder`/
|
4500
|
+
# securityHealthAnalyticsSettings", or "projects/`project`/
|
4501
|
+
# securityHealthAnalyticsSettings"
|
4502
|
+
# @param [Fixnum] page_size
|
4503
|
+
# The maximum number of results to return in a single response. Default is 10,
|
4504
|
+
# minimum is 1, maximum is 1000.
|
4505
|
+
# @param [String] page_token
|
4506
|
+
# The value returned by the last call indicating a continuation
|
4507
|
+
# @param [String] fields
|
4508
|
+
# Selector specifying which fields to include in a partial response.
|
4509
|
+
# @param [String] quota_user
|
4510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4512
|
+
# @param [Google::Apis::RequestOptions] options
|
4513
|
+
# Request-specific options
|
4514
|
+
#
|
4515
|
+
# @yield [result, err] Result & error if block supplied
|
4516
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
4517
|
+
# @yieldparam err [StandardError] error object if request failed
|
4518
|
+
#
|
4519
|
+
# @return [Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse]
|
4520
|
+
#
|
4521
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4522
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4523
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4524
|
+
def list_project_security_health_analytics_setting_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4525
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules', options)
|
4526
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse::Representation
|
4527
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse
|
4528
|
+
command.params['parent'] = parent unless parent.nil?
|
4529
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4530
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4531
|
+
command.query['fields'] = fields unless fields.nil?
|
4532
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4533
|
+
execute_or_queue_command(command, &block)
|
4534
|
+
end
|
4535
|
+
|
4536
|
+
# Returns a list of all resident SecurityHealthAnalyticsCustomModules under the
|
4537
|
+
# given CRM parent and all of the parent’s CRM descendants.
|
4538
|
+
# @param [String] parent
|
4539
|
+
# Required. Name of parent to list descendant custom modules. Its format is "
|
4540
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
4541
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
4542
|
+
# securityHealthAnalyticsSettings"
|
4543
|
+
# @param [Fixnum] page_size
|
4544
|
+
# The maximum number of results to return in a single response. Default is 10,
|
4545
|
+
# minimum is 1, maximum is 1000.
|
4546
|
+
# @param [String] page_token
|
4547
|
+
# The value returned by the last call indicating a continuation
|
4548
|
+
# @param [String] fields
|
4549
|
+
# Selector specifying which fields to include in a partial response.
|
4550
|
+
# @param [String] quota_user
|
4551
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4552
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4553
|
+
# @param [Google::Apis::RequestOptions] options
|
4554
|
+
# Request-specific options
|
4555
|
+
#
|
4556
|
+
# @yield [result, err] Result & error if block supplied
|
4557
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
4558
|
+
# @yieldparam err [StandardError] error object if request failed
|
4559
|
+
#
|
4560
|
+
# @return [Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse]
|
4561
|
+
#
|
4562
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4563
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4564
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4565
|
+
def list_project_security_health_analytics_setting_custom_module_descendant(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4566
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules:listDescendant', options)
|
4567
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse::Representation
|
4568
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse
|
4569
|
+
command.params['parent'] = parent unless parent.nil?
|
4570
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4571
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4572
|
+
command.query['fields'] = fields unless fields.nil?
|
4573
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4574
|
+
execute_or_queue_command(command, &block)
|
4575
|
+
end
|
4576
|
+
|
4577
|
+
# Updates the SecurityHealthAnalyticsCustomModule under the given name based on
|
4578
|
+
# the given update mask. Updating the enablement state is supported on both
|
4579
|
+
# resident and inherited modules (though resident modules cannot have an
|
4580
|
+
# enablement state of “inherited”). Updating the display name and custom config
|
4581
|
+
# of a module is supported on resident modules only.
|
4582
|
+
# @param [String] name
|
4583
|
+
# Immutable. The resource name of the custom module. Its format is "
|
4584
|
+
# organizations/`organization`/securityHealthAnalyticsSettings/customModules/`
|
4585
|
+
# customModule`", or "folders/`folder`/securityHealthAnalyticsSettings/
|
4586
|
+
# customModules/`customModule`", or "projects/`project`/
|
4587
|
+
# securityHealthAnalyticsSettings/customModules/`customModule`" The id `
|
4588
|
+
# customModule` is server-generated and is not user settable. It will be a
|
4589
|
+
# numeric id containing 1-20 digits.
|
4590
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
4591
|
+
# @param [String] update_mask
|
4592
|
+
# The list of fields to update.
|
4593
|
+
# @param [String] fields
|
4594
|
+
# Selector specifying which fields to include in a partial response.
|
4595
|
+
# @param [String] quota_user
|
4596
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4597
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4598
|
+
# @param [Google::Apis::RequestOptions] options
|
4599
|
+
# Request-specific options
|
4600
|
+
#
|
4601
|
+
# @yield [result, err] Result & error if block supplied
|
4602
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
4603
|
+
# @yieldparam err [StandardError] error object if request failed
|
4604
|
+
#
|
4605
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
4606
|
+
#
|
4607
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4608
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4609
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4610
|
+
def patch_project_security_health_analytics_setting_custom_module(name, google_cloud_securitycenter_v1_security_health_analytics_custom_module_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4611
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
4612
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
4613
|
+
command.request_object = google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
4614
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
4615
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
4616
|
+
command.params['name'] = name unless name.nil?
|
4617
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4618
|
+
command.query['fields'] = fields unless fields.nil?
|
4619
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4620
|
+
execute_or_queue_command(command, &block)
|
4621
|
+
end
|
4622
|
+
|
4623
|
+
# Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
|
4624
|
+
# @param [String] name
|
4625
|
+
# Required. Name of the effective custom module to get. Its format is "
|
4626
|
+
# organizations/`organization`/securityHealthAnalyticsSettings/
|
4627
|
+
# effectiveCustomModules/`customModule`", "folders/`folder`/
|
4628
|
+
# securityHealthAnalyticsSettings/effectiveCustomModules/`customModule`", or "
|
4629
|
+
# projects/`project`/securityHealthAnalyticsSettings/effectiveCustomModules/`
|
4630
|
+
# customModule`"
|
4631
|
+
# @param [String] fields
|
4632
|
+
# Selector specifying which fields to include in a partial response.
|
4633
|
+
# @param [String] quota_user
|
4634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4636
|
+
# @param [Google::Apis::RequestOptions] options
|
4637
|
+
# Request-specific options
|
4638
|
+
#
|
4639
|
+
# @yield [result, err] Result & error if block supplied
|
4640
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule] parsed result object
|
4641
|
+
# @yieldparam err [StandardError] error object if request failed
|
4642
|
+
#
|
4643
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule]
|
4644
|
+
#
|
4645
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4646
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4647
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4648
|
+
def get_project_security_health_analytics_setting_effective_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
4649
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
4650
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule::Representation
|
4651
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule
|
4652
|
+
command.params['name'] = name unless name.nil?
|
4653
|
+
command.query['fields'] = fields unless fields.nil?
|
4654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4655
|
+
execute_or_queue_command(command, &block)
|
4656
|
+
end
|
4657
|
+
|
4658
|
+
# Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
|
4659
|
+
# given parent. This includes resident modules defined at the scope of the
|
4660
|
+
# parent, and inherited modules, inherited from CRM ancestors.
|
4661
|
+
# @param [String] parent
|
4662
|
+
# Required. Name of parent to list effective custom modules. Its format is "
|
4663
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
4664
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
4665
|
+
# securityHealthAnalyticsSettings"
|
4666
|
+
# @param [Fixnum] page_size
|
4667
|
+
# The maximum number of results to return in a single response. Default is 10,
|
4668
|
+
# minimum is 1, maximum is 1000.
|
4669
|
+
# @param [String] page_token
|
4670
|
+
# The value returned by the last call indicating a continuation
|
4671
|
+
# @param [String] fields
|
4672
|
+
# Selector specifying which fields to include in a partial response.
|
4673
|
+
# @param [String] quota_user
|
4674
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4675
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4676
|
+
# @param [Google::Apis::RequestOptions] options
|
4677
|
+
# Request-specific options
|
4678
|
+
#
|
4679
|
+
# @yield [result, err] Result & error if block supplied
|
4680
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
4681
|
+
# @yieldparam err [StandardError] error object if request failed
|
4682
|
+
#
|
4683
|
+
# @return [Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse]
|
4684
|
+
#
|
4685
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4686
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4687
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4688
|
+
def list_project_security_health_analytics_setting_effective_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4689
|
+
command = make_simple_command(:get, 'v1/{+parent}/effectiveCustomModules', options)
|
4690
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse::Representation
|
4691
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse
|
4692
|
+
command.params['parent'] = parent unless parent.nil?
|
4693
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4694
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4695
|
+
command.query['fields'] = fields unless fields.nil?
|
4696
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4697
|
+
execute_or_queue_command(command, &block)
|
4698
|
+
end
|
4699
|
+
|
3755
4700
|
# Lists all sources belonging to an organization.
|
3756
4701
|
# @param [String] parent
|
3757
4702
|
# Required. Resource name of the parent of sources to list. Its format should be
|