Class: MicrosoftGraph::DeviceManagement::Reports::ReportsRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::DeviceManagement::Reports::ReportsRequestBuilder
- Defined in:
- lib/device_management/reports/reports_request_builder.rb
Overview
Provides operations to manage the reports property of the microsoft.graph.deviceManagement entity.
Defined Under Namespace
Classes: ReportsRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#delete(request_configuration = nil) ⇒ Object
Delete navigation property reports for deviceManagement.
-
#export_jobs ⇒ Object
Provides operations to manage the exportJobs property of the microsoft.graph.deviceManagementReports entity.
-
#get(request_configuration = nil) ⇒ Object
Read properties and relationships of the deviceManagementReports object.
-
#get_cached_report ⇒ Object
Provides operations to call the getCachedReport method.
-
#get_compliance_policy_non_compliance_report ⇒ Object
Provides operations to call the getCompliancePolicyNonComplianceReport method.
-
#get_compliance_policy_non_compliance_summary_report ⇒ Object
Provides operations to call the getCompliancePolicyNonComplianceSummaryReport method.
-
#get_compliance_setting_non_compliance_report ⇒ Object
Provides operations to call the getComplianceSettingNonComplianceReport method.
-
#get_configuration_policy_non_compliance_report ⇒ Object
Provides operations to call the getConfigurationPolicyNonComplianceReport method.
-
#get_configuration_policy_non_compliance_summary_report ⇒ Object
Provides operations to call the getConfigurationPolicyNonComplianceSummaryReport method.
-
#get_configuration_setting_non_compliance_report ⇒ Object
Provides operations to call the getConfigurationSettingNonComplianceReport method.
-
#get_device_management_intent_per_setting_contributing_profiles ⇒ Object
Provides operations to call the getDeviceManagementIntentPerSettingContributingProfiles method.
-
#get_device_management_intent_settings_report ⇒ Object
Provides operations to call the getDeviceManagementIntentSettingsReport method.
-
#get_device_non_compliance_report ⇒ Object
Provides operations to call the getDeviceNonComplianceReport method.
-
#get_devices_without_compliance_policy_report ⇒ Object
Provides operations to call the getDevicesWithoutCompliancePolicyReport method.
-
#get_historical_report ⇒ Object
Provides operations to call the getHistoricalReport method.
-
#get_noncompliant_devices_and_settings_report ⇒ Object
Provides operations to call the getNoncompliantDevicesAndSettingsReport method.
-
#get_policy_non_compliance_metadata ⇒ Object
Provides operations to call the getPolicyNonComplianceMetadata method.
-
#get_policy_non_compliance_report ⇒ Object
Provides operations to call the getPolicyNonComplianceReport method.
-
#get_policy_non_compliance_summary_report ⇒ Object
Provides operations to call the getPolicyNonComplianceSummaryReport method.
-
#get_report_filters ⇒ Object
Provides operations to call the getReportFilters method.
-
#get_setting_non_compliance_report ⇒ Object
Provides operations to call the getSettingNonComplianceReport method.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new ReportsRequestBuilder and sets the default values.
-
#patch(body, request_configuration = nil) ⇒ Object
Update the properties of a deviceManagementReports object.
-
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property reports for deviceManagement.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Read properties and relationships of the deviceManagementReports object.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the properties of a deviceManagementReports object.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new ReportsRequestBuilder and sets the default values.
135 136 137 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 135 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/deviceManagement/reports{?%24select,%24expand}") end |
Instance Method Details
#delete(request_configuration = nil) ⇒ Object
Delete navigation property reports for deviceManagement
143 144 145 146 147 148 149 150 151 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 143 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 |
#export_jobs ⇒ Object
Provides operations to manage the exportJobs property of the microsoft.graph.deviceManagementReports entity.
36 37 38 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 36 def export_jobs() return MicrosoftGraph::DeviceManagement::Reports::ExportJobs::ExportJobsRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Read properties and relationships of the deviceManagementReports object.
157 158 159 160 161 162 163 164 165 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 157 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::DeviceManagementReports.create_from_discriminator_value(pn) }, error_mapping) end |
#get_cached_report ⇒ Object
Provides operations to call the getCachedReport method.
41 42 43 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 41 def get_cached_report() return MicrosoftGraph::DeviceManagement::Reports::GetCachedReport::GetCachedReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_compliance_policy_non_compliance_report ⇒ Object
Provides operations to call the getCompliancePolicyNonComplianceReport method.
46 47 48 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 46 def get_compliance_policy_non_compliance_report() return MicrosoftGraph::DeviceManagement::Reports::GetCompliancePolicyNonComplianceReport::GetCompliancePolicyNonComplianceReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_compliance_policy_non_compliance_summary_report ⇒ Object
Provides operations to call the getCompliancePolicyNonComplianceSummaryReport method.
51 52 53 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 51 def get_compliance_policy_non_compliance_summary_report() return MicrosoftGraph::DeviceManagement::Reports::GetCompliancePolicyNonComplianceSummaryReport::GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_compliance_setting_non_compliance_report ⇒ Object
Provides operations to call the getComplianceSettingNonComplianceReport method.
56 57 58 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 56 def get_compliance_setting_non_compliance_report() return MicrosoftGraph::DeviceManagement::Reports::GetComplianceSettingNonComplianceReport::GetComplianceSettingNonComplianceReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_configuration_policy_non_compliance_report ⇒ Object
Provides operations to call the getConfigurationPolicyNonComplianceReport method.
61 62 63 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 61 def get_configuration_policy_non_compliance_report() return MicrosoftGraph::DeviceManagement::Reports::GetConfigurationPolicyNonComplianceReport::GetConfigurationPolicyNonComplianceReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_configuration_policy_non_compliance_summary_report ⇒ Object
Provides operations to call the getConfigurationPolicyNonComplianceSummaryReport method.
66 67 68 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 66 def get_configuration_policy_non_compliance_summary_report() return MicrosoftGraph::DeviceManagement::Reports::GetConfigurationPolicyNonComplianceSummaryReport::GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_configuration_setting_non_compliance_report ⇒ Object
Provides operations to call the getConfigurationSettingNonComplianceReport method.
71 72 73 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 71 def get_configuration_setting_non_compliance_report() return MicrosoftGraph::DeviceManagement::Reports::GetConfigurationSettingNonComplianceReport::GetConfigurationSettingNonComplianceReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_device_management_intent_per_setting_contributing_profiles ⇒ Object
Provides operations to call the getDeviceManagementIntentPerSettingContributingProfiles method.
76 77 78 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 76 def get_device_management_intent_per_setting_contributing_profiles() return MicrosoftGraph::DeviceManagement::Reports::GetDeviceManagementIntentPerSettingContributingProfiles::GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_device_management_intent_settings_report ⇒ Object
Provides operations to call the getDeviceManagementIntentSettingsReport method.
81 82 83 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 81 def get_device_management_intent_settings_report() return MicrosoftGraph::DeviceManagement::Reports::GetDeviceManagementIntentSettingsReport::GetDeviceManagementIntentSettingsReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_device_non_compliance_report ⇒ Object
Provides operations to call the getDeviceNonComplianceReport method.
86 87 88 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 86 def get_device_non_compliance_report() return MicrosoftGraph::DeviceManagement::Reports::GetDeviceNonComplianceReport::GetDeviceNonComplianceReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_devices_without_compliance_policy_report ⇒ Object
Provides operations to call the getDevicesWithoutCompliancePolicyReport method.
91 92 93 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 91 def get_devices_without_compliance_policy_report() return MicrosoftGraph::DeviceManagement::Reports::GetDevicesWithoutCompliancePolicyReport::GetDevicesWithoutCompliancePolicyReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_historical_report ⇒ Object
Provides operations to call the getHistoricalReport method.
96 97 98 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 96 def get_historical_report() return MicrosoftGraph::DeviceManagement::Reports::GetHistoricalReport::GetHistoricalReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_noncompliant_devices_and_settings_report ⇒ Object
Provides operations to call the getNoncompliantDevicesAndSettingsReport method.
101 102 103 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 101 def get_noncompliant_devices_and_settings_report() return MicrosoftGraph::DeviceManagement::Reports::GetNoncompliantDevicesAndSettingsReport::GetNoncompliantDevicesAndSettingsReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_policy_non_compliance_metadata ⇒ Object
Provides operations to call the getPolicyNonComplianceMetadata method.
106 107 108 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 106 def () return MicrosoftGraph::DeviceManagement::Reports::GetPolicyNonComplianceMetadata::GetPolicyNonComplianceMetadataRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_policy_non_compliance_report ⇒ Object
Provides operations to call the getPolicyNonComplianceReport method.
111 112 113 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 111 def get_policy_non_compliance_report() return MicrosoftGraph::DeviceManagement::Reports::GetPolicyNonComplianceReport::GetPolicyNonComplianceReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_policy_non_compliance_summary_report ⇒ Object
Provides operations to call the getPolicyNonComplianceSummaryReport method.
116 117 118 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 116 def get_policy_non_compliance_summary_report() return MicrosoftGraph::DeviceManagement::Reports::GetPolicyNonComplianceSummaryReport::GetPolicyNonComplianceSummaryReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_report_filters ⇒ Object
Provides operations to call the getReportFilters method.
121 122 123 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 121 def get_report_filters() return MicrosoftGraph::DeviceManagement::Reports::GetReportFilters::GetReportFiltersRequestBuilder.new(@path_parameters, @request_adapter) end |
#get_setting_non_compliance_report ⇒ Object
Provides operations to call the getSettingNonComplianceReport method.
126 127 128 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 126 def get_setting_non_compliance_report() return MicrosoftGraph::DeviceManagement::Reports::GetSettingNonComplianceReport::GetSettingNonComplianceReportRequestBuilder.new(@path_parameters, @request_adapter) end |
#patch(body, request_configuration = nil) ⇒ Object
Update the properties of a deviceManagementReports object.
172 173 174 175 176 177 178 179 180 181 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 172 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::DeviceManagementReports.create_from_discriminator_value(pn) }, error_mapping) end |
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property reports for deviceManagement
187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 187 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
Read properties and relationships of the deviceManagementReports object.
203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 203 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 properties of a deviceManagementReports object.
222 223 224 225 226 227 228 229 230 231 232 233 234 235 |
# File 'lib/device_management/reports/reports_request_builder.rb', line 222 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 |