Class: MicrosoftGraph::Security::ThreatIntelligence::ThreatIntelligenceRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Security::ThreatIntelligence::ThreatIntelligenceRequestBuilder
- Defined in:
- lib/security/threat_intelligence/threat_intelligence_request_builder.rb
Overview
Provides operations to manage the threatIntelligence property of the microsoft.graph.security entity.
Defined Under Namespace
Classes: ThreatIntelligenceRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#article_indicators ⇒ Object
Provides operations to manage the articleIndicators property of the microsoft.graph.security.threatIntelligence entity.
-
#articles ⇒ Object
Provides operations to manage the articles property of the microsoft.graph.security.threatIntelligence entity.
-
#delete(request_configuration = nil) ⇒ Object
Delete navigation property threatIntelligence for security.
-
#get(request_configuration = nil) ⇒ Object
Get threatIntelligence from security.
-
#host_components ⇒ Object
Provides operations to manage the hostComponents property of the microsoft.graph.security.threatIntelligence entity.
-
#host_cookies ⇒ Object
Provides operations to manage the hostCookies property of the microsoft.graph.security.threatIntelligence entity.
-
#host_trackers ⇒ Object
Provides operations to manage the hostTrackers property of the microsoft.graph.security.threatIntelligence entity.
-
#hosts ⇒ Object
Provides operations to manage the hosts property of the microsoft.graph.security.threatIntelligence entity.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new ThreatIntelligenceRequestBuilder and sets the default values.
-
#intel_profiles ⇒ Object
Provides operations to manage the intelProfiles property of the microsoft.graph.security.threatIntelligence entity.
-
#intelligence_profile_indicators ⇒ Object
Provides operations to manage the intelligenceProfileIndicators property of the microsoft.graph.security.threatIntelligence entity.
-
#passive_dns_records ⇒ Object
Provides operations to manage the passiveDnsRecords property of the microsoft.graph.security.threatIntelligence entity.
-
#patch(body, request_configuration = nil) ⇒ Object
Update the navigation property threatIntelligence in security.
-
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property threatIntelligence for security.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Get threatIntelligence from security.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the navigation property threatIntelligence in security.
-
#vulnerabilities ⇒ Object
Provides operations to manage the vulnerabilities property of the microsoft.graph.security.threatIntelligence entity.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new ThreatIntelligenceRequestBuilder and sets the default values.
81 82 83 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 81 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/security/threatIntelligence{?%24select,%24expand}") end |
Instance Method Details
#article_indicators ⇒ Object
Provides operations to manage the articleIndicators property of the microsoft.graph.security.threatIntelligence entity.
27 28 29 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 27 def article_indicators() return MicrosoftGraph::Security::ThreatIntelligence::ArticleIndicators::ArticleIndicatorsRequestBuilder.new(@path_parameters, @request_adapter) end |
#articles ⇒ Object
Provides operations to manage the articles property of the microsoft.graph.security.threatIntelligence entity.
32 33 34 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 32 def articles() return MicrosoftGraph::Security::ThreatIntelligence::Articles::ArticlesRequestBuilder.new(@path_parameters, @request_adapter) end |
#delete(request_configuration = nil) ⇒ Object
Delete navigation property threatIntelligence for security
89 90 91 92 93 94 95 96 97 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 89 def delete(request_configuration=nil) request_info = self.to_delete_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, nil, error_mapping) end |
#get(request_configuration = nil) ⇒ Object
Get threatIntelligence from security
103 104 105 106 107 108 109 110 111 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 103 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::SecurityThreatIntelligence.create_from_discriminator_value(pn) }, error_mapping) end |
#host_components ⇒ Object
Provides operations to manage the hostComponents property of the microsoft.graph.security.threatIntelligence entity.
37 38 39 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 37 def host_components() return MicrosoftGraph::Security::ThreatIntelligence::HostComponents::HostComponentsRequestBuilder.new(@path_parameters, @request_adapter) end |
#host_cookies ⇒ Object
Provides operations to manage the hostCookies property of the microsoft.graph.security.threatIntelligence entity.
42 43 44 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 42 def () return MicrosoftGraph::Security::ThreatIntelligence::HostCookies::HostCookiesRequestBuilder.new(@path_parameters, @request_adapter) end |
#host_trackers ⇒ Object
Provides operations to manage the hostTrackers property of the microsoft.graph.security.threatIntelligence entity.
52 53 54 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 52 def host_trackers() return MicrosoftGraph::Security::ThreatIntelligence::HostTrackers::HostTrackersRequestBuilder.new(@path_parameters, @request_adapter) end |
#hosts ⇒ Object
Provides operations to manage the hosts property of the microsoft.graph.security.threatIntelligence entity.
47 48 49 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 47 def hosts() return MicrosoftGraph::Security::ThreatIntelligence::Hosts::HostsRequestBuilder.new(@path_parameters, @request_adapter) end |
#intel_profiles ⇒ Object
Provides operations to manage the intelProfiles property of the microsoft.graph.security.threatIntelligence entity.
62 63 64 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 62 def intel_profiles() return MicrosoftGraph::Security::ThreatIntelligence::IntelProfiles::IntelProfilesRequestBuilder.new(@path_parameters, @request_adapter) end |
#intelligence_profile_indicators ⇒ Object
Provides operations to manage the intelligenceProfileIndicators property of the microsoft.graph.security.threatIntelligence entity.
57 58 59 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 57 def intelligence_profile_indicators() return MicrosoftGraph::Security::ThreatIntelligence::IntelligenceProfileIndicators::IntelligenceProfileIndicatorsRequestBuilder.new(@path_parameters, @request_adapter) end |
#passive_dns_records ⇒ Object
Provides operations to manage the passiveDnsRecords property of the microsoft.graph.security.threatIntelligence entity.
67 68 69 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 67 def passive_dns_records() return MicrosoftGraph::Security::ThreatIntelligence::PassiveDnsRecords::PassiveDnsRecordsRequestBuilder.new(@path_parameters, @request_adapter) end |
#patch(body, request_configuration = nil) ⇒ Object
Update the navigation property threatIntelligence in security
118 119 120 121 122 123 124 125 126 127 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 118 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::SecurityThreatIntelligence.create_from_discriminator_value(pn) }, error_mapping) end |
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property threatIntelligence for security
133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 133 def to_delete_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 = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end return request_info end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Get threatIntelligence from security
149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 149 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 the navigation property threatIntelligence in security
168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 168 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 |
#vulnerabilities ⇒ Object
Provides operations to manage the vulnerabilities property of the microsoft.graph.security.threatIntelligence entity.
72 73 74 |
# File 'lib/security/threat_intelligence/threat_intelligence_request_builder.rb', line 72 def vulnerabilities() return MicrosoftGraph::Security::ThreatIntelligence::Vulnerabilities::VulnerabilitiesRequestBuilder.new(@path_parameters, @request_adapter) end |