Class: MicrosoftGraph::DeviceAppManagement::DeviceAppManagementRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::DeviceAppManagement::DeviceAppManagementRequestBuilder
- Defined in:
- lib/device_app_management/device_app_management_request_builder.rb
Overview
Provides operations to manage the deviceAppManagement singleton.
Defined Under Namespace
Classes: DeviceAppManagementRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#android_managed_app_protections ⇒ Object
Provides operations to manage the androidManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
-
#default_managed_app_protections ⇒ Object
Provides operations to manage the defaultManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
-
#get(request_configuration = nil) ⇒ Object
Read properties and relationships of the deviceAppManagement object.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new DeviceAppManagementRequestBuilder and sets the default values.
-
#ios_managed_app_protections ⇒ Object
Provides operations to manage the iosManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
-
#managed_app_policies ⇒ Object
Provides operations to manage the managedAppPolicies property of the microsoft.graph.deviceAppManagement entity.
-
#managed_app_registrations ⇒ Object
Provides operations to manage the managedAppRegistrations property of the microsoft.graph.deviceAppManagement entity.
-
#managed_app_statuses ⇒ Object
Provides operations to manage the managedAppStatuses property of the microsoft.graph.deviceAppManagement entity.
-
#managed_e_books ⇒ Object
Provides operations to manage the managedEBooks property of the microsoft.graph.deviceAppManagement entity.
-
#mdm_windows_information_protection_policies ⇒ Object
Provides operations to manage the mdmWindowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity.
-
#mobile_app_categories ⇒ Object
Provides operations to manage the mobileAppCategories property of the microsoft.graph.deviceAppManagement entity.
-
#mobile_app_configurations ⇒ Object
Provides operations to manage the mobileAppConfigurations property of the microsoft.graph.deviceAppManagement entity.
-
#mobile_apps ⇒ Object
Provides operations to manage the mobileApps property of the microsoft.graph.deviceAppManagement entity.
-
#patch(body, request_configuration = nil) ⇒ Object
Update the properties of a deviceAppManagement object.
-
#sync_microsoft_store_for_business_apps ⇒ Object
Provides operations to call the syncMicrosoftStoreForBusinessApps method.
-
#targeted_managed_app_configurations ⇒ Object
Provides operations to manage the targetedManagedAppConfigurations property of the microsoft.graph.deviceAppManagement entity.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Read properties and relationships of the deviceAppManagement object.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the properties of a deviceAppManagement object.
-
#vpp_tokens ⇒ Object
Provides operations to manage the vppTokens property of the microsoft.graph.deviceAppManagement entity.
-
#windows_information_protection_policies ⇒ Object
Provides operations to manage the windowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new DeviceAppManagementRequestBuilder and sets the default values.
109 110 111 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 109 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/deviceAppManagement{?%24select,%24expand}") end |
Instance Method Details
#android_managed_app_protections ⇒ Object
Provides operations to manage the androidManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
30 31 32 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 30 def android_managed_app_protections() return MicrosoftGraph::DeviceAppManagement::AndroidManagedAppProtections::AndroidManagedAppProtectionsRequestBuilder.new(@path_parameters, @request_adapter) end |
#default_managed_app_protections ⇒ Object
Provides operations to manage the defaultManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
35 36 37 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 35 def default_managed_app_protections() return MicrosoftGraph::DeviceAppManagement::DefaultManagedAppProtections::DefaultManagedAppProtectionsRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
Read properties and relationships of the deviceAppManagement object.
117 118 119 120 121 122 123 124 125 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 117 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::DeviceAppManagement.create_from_discriminator_value(pn) }, error_mapping) end |
#ios_managed_app_protections ⇒ Object
Provides operations to manage the iosManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
40 41 42 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 40 def ios_managed_app_protections() return MicrosoftGraph::DeviceAppManagement::IosManagedAppProtections::IosManagedAppProtectionsRequestBuilder.new(@path_parameters, @request_adapter) end |
#managed_app_policies ⇒ Object
Provides operations to manage the managedAppPolicies property of the microsoft.graph.deviceAppManagement entity.
45 46 47 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 45 def managed_app_policies() return MicrosoftGraph::DeviceAppManagement::ManagedAppPolicies::ManagedAppPoliciesRequestBuilder.new(@path_parameters, @request_adapter) end |
#managed_app_registrations ⇒ Object
Provides operations to manage the managedAppRegistrations property of the microsoft.graph.deviceAppManagement entity.
50 51 52 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 50 def managed_app_registrations() return MicrosoftGraph::DeviceAppManagement::ManagedAppRegistrations::ManagedAppRegistrationsRequestBuilder.new(@path_parameters, @request_adapter) end |
#managed_app_statuses ⇒ Object
Provides operations to manage the managedAppStatuses property of the microsoft.graph.deviceAppManagement entity.
55 56 57 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 55 def managed_app_statuses() return MicrosoftGraph::DeviceAppManagement::ManagedAppStatuses::ManagedAppStatusesRequestBuilder.new(@path_parameters, @request_adapter) end |
#managed_e_books ⇒ Object
Provides operations to manage the managedEBooks property of the microsoft.graph.deviceAppManagement entity.
60 61 62 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 60 def managed_e_books() return MicrosoftGraph::DeviceAppManagement::ManagedEBooks::ManagedEBooksRequestBuilder.new(@path_parameters, @request_adapter) end |
#mdm_windows_information_protection_policies ⇒ Object
Provides operations to manage the mdmWindowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity.
65 66 67 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 65 def mdm_windows_information_protection_policies() return MicrosoftGraph::DeviceAppManagement::MdmWindowsInformationProtectionPolicies::MdmWindowsInformationProtectionPoliciesRequestBuilder.new(@path_parameters, @request_adapter) end |
#mobile_app_categories ⇒ Object
Provides operations to manage the mobileAppCategories property of the microsoft.graph.deviceAppManagement entity.
70 71 72 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 70 def mobile_app_categories() return MicrosoftGraph::DeviceAppManagement::MobileAppCategories::MobileAppCategoriesRequestBuilder.new(@path_parameters, @request_adapter) end |
#mobile_app_configurations ⇒ Object
Provides operations to manage the mobileAppConfigurations property of the microsoft.graph.deviceAppManagement entity.
75 76 77 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 75 def mobile_app_configurations() return MicrosoftGraph::DeviceAppManagement::MobileAppConfigurations::MobileAppConfigurationsRequestBuilder.new(@path_parameters, @request_adapter) end |
#mobile_apps ⇒ Object
Provides operations to manage the mobileApps property of the microsoft.graph.deviceAppManagement entity.
80 81 82 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 80 def mobile_apps() return MicrosoftGraph::DeviceAppManagement::MobileApps::MobileAppsRequestBuilder.new(@path_parameters, @request_adapter) end |
#patch(body, request_configuration = nil) ⇒ Object
Update the properties of a deviceAppManagement object.
132 133 134 135 136 137 138 139 140 141 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 132 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::DeviceAppManagement.create_from_discriminator_value(pn) }, error_mapping) end |
#sync_microsoft_store_for_business_apps ⇒ Object
Provides operations to call the syncMicrosoftStoreForBusinessApps method.
85 86 87 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 85 def sync_microsoft_store_for_business_apps() return MicrosoftGraph::DeviceAppManagement::SyncMicrosoftStoreForBusinessApps::SyncMicrosoftStoreForBusinessAppsRequestBuilder.new(@path_parameters, @request_adapter) end |
#targeted_managed_app_configurations ⇒ Object
Provides operations to manage the targetedManagedAppConfigurations property of the microsoft.graph.deviceAppManagement entity.
90 91 92 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 90 def targeted_managed_app_configurations() return MicrosoftGraph::DeviceAppManagement::TargetedManagedAppConfigurations::TargetedManagedAppConfigurationsRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Read properties and relationships of the deviceAppManagement object.
147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 147 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 deviceAppManagement object.
166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 166 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 |
#vpp_tokens ⇒ Object
Provides operations to manage the vppTokens property of the microsoft.graph.deviceAppManagement entity.
95 96 97 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 95 def vpp_tokens() return MicrosoftGraph::DeviceAppManagement::VppTokens::VppTokensRequestBuilder.new(@path_parameters, @request_adapter) end |
#windows_information_protection_policies ⇒ Object
Provides operations to manage the windowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity.
100 101 102 |
# File 'lib/device_app_management/device_app_management_request_builder.rb', line 100 def windows_information_protection_policies() return MicrosoftGraph::DeviceAppManagement::WindowsInformationProtectionPolicies::WindowsInformationProtectionPoliciesRequestBuilder.new(@path_parameters, @request_adapter) end |