Class: MicrosoftGraph::Security::SecurityRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Security::SecurityRequestBuilder
- Defined in:
- lib/security/security_request_builder.rb
Overview
Provides operations to manage the security singleton.
Defined Under Namespace
Classes: SecurityRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#alerts ⇒ Object
Provides operations to manage the alerts property of the microsoft.graph.security entity.
-
#alerts_v2 ⇒ Object
Provides operations to manage the alerts_v2 property of the microsoft.graph.security entity.
-
#attack_simulation ⇒ Object
Provides operations to manage the attackSimulation property of the microsoft.graph.security entity.
-
#cases ⇒ Object
Provides operations to manage the cases property of the microsoft.graph.security entity.
-
#get(request_configuration = nil) ⇒ Object
Get security.
-
#incidents ⇒ Object
Provides operations to manage the incidents property of the microsoft.graph.security entity.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new SecurityRequestBuilder and sets the default values.
-
#microsoft_graph_security_run_hunting_query ⇒ Object
Provides operations to call the runHuntingQuery method.
-
#patch(body, request_configuration = nil) ⇒ Object
Update security.
-
#secure_score_control_profiles ⇒ Object
Provides operations to manage the secureScoreControlProfiles property of the microsoft.graph.security entity.
-
#secure_scores ⇒ Object
Provides operations to manage the secureScores property of the microsoft.graph.security entity.
-
#threat_intelligence ⇒ Object
Provides operations to manage the threatIntelligence property of the microsoft.graph.security entity.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Get security.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update security.
-
#trigger_types ⇒ Object
Provides operations to manage the triggerTypes property of the microsoft.graph.security entity.
-
#triggers ⇒ Object
Provides operations to manage the triggers property of the microsoft.graph.security entity.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new SecurityRequestBuilder and sets the default values.
85 86 87 |
# File 'lib/security/security_request_builder.rb', line 85 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/security{?%24select,%24expand}") end |
Instance Method Details
#alerts ⇒ Object
Provides operations to manage the alerts property of the microsoft.graph.security entity.
26 27 28 |
# File 'lib/security/security_request_builder.rb', line 26 def alerts() return MicrosoftGraph::Security::Alerts::AlertsRequestBuilder.new(@path_parameters, @request_adapter) end |
#alerts_v2 ⇒ Object
Provides operations to manage the alerts_v2 property of the microsoft.graph.security entity.
31 32 33 |
# File 'lib/security/security_request_builder.rb', line 31 def alerts_v2() return MicrosoftGraph::Security::Alerts_v2::AlertsV2RequestBuilder.new(@path_parameters, @request_adapter) end |
#attack_simulation ⇒ Object
Provides operations to manage the attackSimulation property of the microsoft.graph.security entity.
36 37 38 |
# File 'lib/security/security_request_builder.rb', line 36 def attack_simulation() return MicrosoftGraph::Security::AttackSimulation::AttackSimulationRequestBuilder.new(@path_parameters, @request_adapter) end |
#cases ⇒ Object
Provides operations to manage the cases property of the microsoft.graph.security entity.
41 42 43 |
# File 'lib/security/security_request_builder.rb', line 41 def cases() return MicrosoftGraph::Security::Cases::CasesRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Get security
93 94 95 96 97 98 99 100 101 |
# File 'lib/security/security_request_builder.rb', line 93 def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SecurityModelModelModelModelModelModelModel.create_from_discriminator_value(pn) }, error_mapping) end |
#incidents ⇒ Object
Provides operations to manage the incidents property of the microsoft.graph.security entity.
46 47 48 |
# File 'lib/security/security_request_builder.rb', line 46 def incidents() return MicrosoftGraph::Security::Incidents::IncidentsRequestBuilder.new(@path_parameters, @request_adapter) end |
#microsoft_graph_security_run_hunting_query ⇒ Object
Provides operations to call the runHuntingQuery method.
51 52 53 |
# File 'lib/security/security_request_builder.rb', line 51 def microsoft_graph_security_run_hunting_query() return MicrosoftGraph::Security::MicrosoftGraphSecurityRunHuntingQuery::MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.new(@path_parameters, @request_adapter) end |
#patch(body, request_configuration = nil) ⇒ Object
Update security
108 109 110 111 112 113 114 115 116 117 |
# File 'lib/security/security_request_builder.rb', line 108 def patch(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = self.to_patch_request_information( body, request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::SecurityModelModelModelModelModelModelModel.create_from_discriminator_value(pn) }, error_mapping) end |
#secure_score_control_profiles ⇒ Object
Provides operations to manage the secureScoreControlProfiles property of the microsoft.graph.security entity.
56 57 58 |
# File 'lib/security/security_request_builder.rb', line 56 def secure_score_control_profiles() return MicrosoftGraph::Security::SecureScoreControlProfiles::SecureScoreControlProfilesRequestBuilder.new(@path_parameters, @request_adapter) end |
#secure_scores ⇒ Object
Provides operations to manage the secureScores property of the microsoft.graph.security entity.
61 62 63 |
# File 'lib/security/security_request_builder.rb', line 61 def secure_scores() return MicrosoftGraph::Security::SecureScores::SecureScoresRequestBuilder.new(@path_parameters, @request_adapter) end |
#threat_intelligence ⇒ Object
Provides operations to manage the threatIntelligence property of the microsoft.graph.security entity.
66 67 68 |
# File 'lib/security/security_request_builder.rb', line 66 def threat_intelligence() return MicrosoftGraph::Security::ThreatIntelligence::ThreatIntelligenceRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Get security
123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/security/security_request_builder.rb', line 123 def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :GET request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.(request_configuration.) end return request_info end |
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update security
142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/security/security_request_builder.rb', line 142 def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :PATCH request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end request_info.set_content_from_parsable(@request_adapter, "application/json", body) return request_info end |
#trigger_types ⇒ Object
Provides operations to manage the triggerTypes property of the microsoft.graph.security entity.
76 77 78 |
# File 'lib/security/security_request_builder.rb', line 76 def trigger_types() return MicrosoftGraph::Security::TriggerTypes::TriggerTypesRequestBuilder.new(@path_parameters, @request_adapter) end |
#triggers ⇒ Object
Provides operations to manage the triggers property of the microsoft.graph.security entity.
71 72 73 |
# File 'lib/security/security_request_builder.rb', line 71 def triggers() return MicrosoftGraph::Security::Triggers::TriggersRequestBuilder.new(@path_parameters, @request_adapter) end |