@microsoft/msgraph-sdk-devicemanagement 1.0.0-preview.54 → 1.0.0-preview.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,196 @@
1
1
  # `@microsoft/msgraph-sdk-deviceManagement`
2
2
 
3
- > TODO: description
3
+ Get started with the Microsoft Graph SDK for TypeScript by integrating the [Microsoft Graph API](https://learn.microsoft.com/graph/overview) into your TypeScript application!
4
4
 
5
- ## Usage
5
+ This package provides a fluent API for interacting with Microsoft Graph administrative functions.
6
6
 
7
+ > [!NOTE]
8
+ > This package requires the `@microsoft/msgraph-sdk` package. It allows you to build applications using the [v1.0](https://learn.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs, use our [beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-typescript) instead.
9
+
10
+
11
+ ## 1. Installation
12
+
13
+ To install the package, use npm:
14
+
15
+ ```shell
16
+ # this will install the main package
17
+ npm install @microsoft/msgraph-sdk
18
+ # this will install the authentication provider for Azure Identity / Microsoft Entra
19
+ npm install @microsoft/kiota-authentication-azure @azure/identity
20
+ # this will install the fluent API package for the administrative API paths
21
+ npm install @microsoft/msgraph-sdk-deviceManagement
7
22
  ```
8
- const msgraphSdkJavascriptDeviceManagement = require('@microsoft/msgraph-sdk-deviceManagement');
9
23
 
10
- // TODO: DEMONSTRATE API
24
+ ## 2. Getting started
25
+
26
+ > Note: we are working to add the getting started information for Typescript to our public documentation, in the meantime the following sample should help you getting started.
27
+
28
+ ### 2.1 Register your application
29
+
30
+ Register your application by following the steps at [Register your app with the Microsoft Identity Platform](https://learn.microsoft.com/graph/auth-register-app-v2).
31
+
32
+ ### 2.2 Create an AuthenticationProvider object
33
+
34
+ An instance of the **GraphServiceClient** class handles building client. To create a new instance of this class, you need to provide an instance of **AuthenticationProvider**, which can authenticate requests to Microsoft Graph.
35
+
36
+ <!-- TODO restore that and remove the snippets below once the SDK hits GA and the public documentation has been updated -->
37
+ <!-- For an example of how to get an authentication provider, see [choose a Microsoft Graph authentication provider](https://learn.microsoft.com/graph/sdks/choose-authentication-providers?tabs=typescript). -->
38
+
39
+ #### 2.2.1 Authorization Code Provider
40
+
41
+ ```TypeScript
42
+ // @azure/identity
43
+ const credential = new AuthorizationCodeCredential(
44
+ 'YOUR_TENANT_ID',
45
+ 'YOUR_CLIENT_ID',
46
+ 'YOUR_CLIENT_SECRET',
47
+ 'AUTHORIZATION_CODE',
48
+ 'REDIRECT_URL',
49
+ );
50
+
51
+ // @microsoft/kiota-authentication-azure
52
+ const authProvider = new AzureIdentityAuthenticationProvider(credential, ["User.Read"]);
11
53
  ```
54
+
55
+ #### 2.2.2 Client Credentials Provider
56
+
57
+ ##### With a certificate
58
+
59
+ ```TypeScript
60
+ // @azure/identity
61
+ const credential = new ClientCertificateCredential(
62
+ 'YOUR_TENANT_ID',
63
+ 'YOUR_CLIENT_ID',
64
+ 'YOUR_CERTIFICATE_PATH',
65
+ );
66
+
67
+ // @microsoft/kiota-authentication-azure
68
+ const authProvider = new AzureIdentityAuthenticationProvider(credential, ["https://graph.microsoft.com/.default"]);
69
+ ```
70
+
71
+ ##### With a secret
72
+
73
+ ```TypeScript
74
+ // @azure/identity
75
+ const credential = new ClientSecretCredential(
76
+ 'YOUR_TENANT_ID',
77
+ 'YOUR_CLIENT_ID',
78
+ 'YOUR_CLIENT_SECRET',
79
+ );
80
+
81
+ // @microsoft/kiota-authentication-azure
82
+ const authProvider = new AzureIdentityAuthenticationProvider(credential, ["https://graph.microsoft.com/.default"]);
83
+ ```
84
+
85
+ #### 2.2.3 On-behalf-of provider
86
+
87
+ ```TypeScript
88
+ // @azure/identity
89
+ const credential = new OnBehalfOfCredential({
90
+ tenantId: 'YOUR_TENANT_ID',
91
+ clientId: 'YOUR_CLIENT_ID',
92
+ clientSecret: 'YOUR_CLIENT_SECRET',
93
+ userAssertionToken: 'JWT_TOKEN_TO_EXCHANGE',
94
+ });
95
+
96
+ // @microsoft/kiota-authentication-azure
97
+ const authProvider = new AzureIdentityAuthenticationProvider(credential, ["https://graph.microsoft.com/.default"]);
98
+ ```
99
+
100
+ #### 2.2.4 Device code provider
101
+
102
+ ```TypeScript
103
+ // @azure/identity
104
+ const credential = new DeviceCodeCredential({
105
+ tenantId: 'YOUR_TENANT_ID',
106
+ clientId: 'YOUR_CLIENT_ID',
107
+ userPromptCallback: (info) => {
108
+ console.log(info.message);
109
+ },
110
+ });
111
+
112
+ // @microsoft/kiota-authentication-azure
113
+ const authProvider = new AzureIdentityAuthenticationProvider(credential, ["User.Read"]);
114
+ ```
115
+
116
+ #### 2.2.5 Interactive provider
117
+
118
+ ```TypeScript
119
+ // @azure/identity
120
+ const credential = new InteractiveBrowserCredential({
121
+ tenantId: 'YOUR_TENANT_ID',
122
+ clientId: 'YOUR_CLIENT_ID',
123
+ redirectUri: 'http://localhost',
124
+ });
125
+
126
+ // @microsoft/kiota-authentication-azure
127
+ const authProvider = new AzureIdentityAuthenticationProvider(credential, ["User.Read"]);
128
+ ```
129
+
130
+ #### 2.2.6 Username/password provider
131
+
132
+ ```TypeScript
133
+ // @azure/identity
134
+ const credential = new UsernamePasswordCredential(
135
+ 'YOUR_TENANT_ID',
136
+ 'YOUR_CLIENT_ID',
137
+ 'YOUR_USER_NAME',
138
+ 'YOUR_PASSWORD',
139
+ );
140
+
141
+ // @microsoft/kiota-authentication-azure
142
+ const authProvider = new AzureIdentityAuthenticationProvider(credential, ["User.Read"]);
143
+ ```
144
+
145
+ ### 2.3 Get a Graph Service Client Adapter object
146
+
147
+ You must get a **GraphServiceClient** object to make requests against the service.
148
+
149
+ ```typescript
150
+ const requestAdapter = new GraphRequestAdapter(authProvider);
151
+ const graphServiceClient = createGraphServiceClient(requestAdapter);
152
+ ```
153
+
154
+ ## 3. Make requests against the service
155
+
156
+ After you have a **GraphServiceClient** that is authenticated, you can begin making calls against the service. The requests against the service look like our [REST API](https://learn.microsoft.com/graph/api/overview?view=graph-rest-1.0).
157
+
158
+ ### 3.1 Get user's detailed information
159
+
160
+ To retrieve the user's detailed information:
161
+
162
+ ```typescript
163
+ import { createGraphServiceClient, GraphRequestAdapter } from "@microsoft/msgraph-sdk";
164
+ import "@microsoft/msgraph-sdk-deviceManagement"
165
+
166
+ const requestAdapter = new GraphRequestAdapter(authProvider);
167
+ const graphServiceClient = createGraphServiceClient(requestAdapter);
168
+
169
+ const deviceManagement = graphServiceClient.deviceManagement.get();
170
+ ```
171
+
172
+ ## 4. Documentation
173
+
174
+ For more detailed documentation, see:
175
+
176
+ * [Overview](https://learn.microsoft.com/graph/overview)
177
+ * [Collections](https://learn.microsoft.com/graph/sdks/paging)
178
+ * [Making requests](https://learn.microsoft.com/graph/sdks/create-requests)
179
+ * [Known issues](https://github.com/MicrosoftGraph/msgraph-sdk-typescript/issues)
180
+ * [Contributions](https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/main/CONTRIBUTING.md)
181
+
182
+ ## 5. Issues
183
+
184
+ For known issues, see [issues](https://github.com/MicrosoftGraph/msgraph-sdk-typescript/issues).
185
+
186
+ ## 6. Contributions
187
+
188
+ The Microsoft Graph SDK is open for contribution. To contribute to this project, see [Contributing](https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/main/CONTRIBUTING.md).
189
+
190
+ ## 7. License
191
+
192
+ Licensed under the [MIT license](https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/main/LICENSE).
193
+
194
+ ## 8. Third-party notices
195
+
196
+ [Third-party notices](https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/main/LICENSE)
@@ -25,12 +25,12 @@ export interface DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuild
25
25
  */
26
26
  get(requestConfiguration?: RequestConfiguration<DeviceCompliancePoliciesRequestBuilderGetQueryParameters> | undefined): Promise<DeviceCompliancePolicyCollectionResponse | undefined>;
27
27
  /**
28
- * Create a new androidWorkProfileCompliancePolicy object.
28
+ * Create a new macOSCompliancePolicy object.
29
29
  * @param body The request body
30
30
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
31
  * @returns {Promise<DeviceCompliancePolicy>}
32
32
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
33
- * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-create?view=graph-rest-1.0|Find more info here}
33
+ * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-create?view=graph-rest-1.0|Find more info here}
34
34
  */
35
35
  post(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceCompliancePolicy | undefined>;
36
36
  /**
@@ -40,7 +40,7 @@ export interface DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuild
40
40
  */
41
41
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceCompliancePoliciesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
42
42
  /**
43
- * Create a new androidWorkProfileCompliancePolicy object.
43
+ * Create a new macOSCompliancePolicy object.
44
44
  * @param body The request body
45
45
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46
46
  * @returns {RequestInformation}
@@ -57,20 +57,20 @@ export interface DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBui
57
57
  */
58
58
  delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
59
59
  /**
60
- * Read properties and relationships of the windows81CompliancePolicy object.
60
+ * Read properties and relationships of the androidWorkProfileCompliancePolicy object.
61
61
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
62
62
  * @returns {Promise<DeviceCompliancePolicy>}
63
63
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
64
- * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-get?view=graph-rest-1.0|Find more info here}
64
+ * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-get?view=graph-rest-1.0|Find more info here}
65
65
  */
66
66
  get(requestConfiguration?: RequestConfiguration<DeviceCompliancePolicyItemRequestBuilderGetQueryParameters> | undefined): Promise<DeviceCompliancePolicy | undefined>;
67
67
  /**
68
- * Update the properties of a windows10CompliancePolicy object.
68
+ * Update the properties of a androidWorkProfileCompliancePolicy object.
69
69
  * @param body The request body
70
70
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
71
71
  * @returns {Promise<DeviceCompliancePolicy>}
72
72
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
73
- * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10compliancepolicy-update?view=graph-rest-1.0|Find more info here}
73
+ * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-update?view=graph-rest-1.0|Find more info here}
74
74
  */
75
75
  patch(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceCompliancePolicy | undefined>;
76
76
  /**
@@ -80,13 +80,13 @@ export interface DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBui
80
80
  */
81
81
  toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
82
82
  /**
83
- * Read properties and relationships of the windows81CompliancePolicy object.
83
+ * Read properties and relationships of the androidWorkProfileCompliancePolicy object.
84
84
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
85
85
  * @returns {RequestInformation}
86
86
  */
87
87
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceCompliancePolicyItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
88
88
  /**
89
- * Update the properties of a windows10CompliancePolicy object.
89
+ * Update the properties of a androidWorkProfileCompliancePolicy object.
90
90
  * @param body The request body
91
91
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
92
92
  * @returns {RequestInformation}
@@ -94,7 +94,7 @@ export interface DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBui
94
94
  toPatchRequestInformation(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
95
95
  }
96
96
  /**
97
- * Read properties and relationships of the windows81CompliancePolicy object.
97
+ * Read properties and relationships of the androidWorkProfileCompliancePolicy object.
98
98
  */
99
99
  export interface DeviceCompliancePolicyItemRequestBuilderGetQueryParameters {
100
100
  /**
@@ -17,30 +17,30 @@ export interface DeviceConfigurationsRequestBuilder extends BaseRequestBuilder<D
17
17
  */
18
18
  byDeviceConfigurationId(deviceConfigurationId: string): DeviceConfigurationItemRequestBuilder;
19
19
  /**
20
- * List properties and relationships of the windows10GeneralConfiguration objects.
20
+ * List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects.
21
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
22
  * @returns {Promise<DeviceConfigurationCollectionResponse>}
23
23
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
- * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10generalconfiguration-list?view=graph-rest-1.0|Find more info here}
24
+ * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilegeneraldeviceconfiguration-list?view=graph-rest-1.0|Find more info here}
25
25
  */
26
26
  get(requestConfiguration?: RequestConfiguration<DeviceConfigurationsRequestBuilderGetQueryParameters> | undefined): Promise<DeviceConfigurationCollectionResponse | undefined>;
27
27
  /**
28
- * Create a new iosGeneralDeviceConfiguration object.
28
+ * Create a new windowsDefenderAdvancedThreatProtectionConfiguration object.
29
29
  * @param body The request body
30
30
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
31
  * @returns {Promise<DeviceConfiguration>}
32
32
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
33
- * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-iosgeneraldeviceconfiguration-create?view=graph-rest-1.0|Find more info here}
33
+ * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsdefenderadvancedthreatprotectionconfiguration-create?view=graph-rest-1.0|Find more info here}
34
34
  */
35
35
  post(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceConfiguration | undefined>;
36
36
  /**
37
- * List properties and relationships of the windows10GeneralConfiguration objects.
37
+ * List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects.
38
38
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
39
  * @returns {RequestInformation}
40
40
  */
41
41
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceConfigurationsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
42
42
  /**
43
- * Create a new iosGeneralDeviceConfiguration object.
43
+ * Create a new windowsDefenderAdvancedThreatProtectionConfiguration object.
44
44
  * @param body The request body
45
45
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46
46
  * @returns {RequestInformation}
@@ -48,7 +48,7 @@ export interface DeviceConfigurationsRequestBuilder extends BaseRequestBuilder<D
48
48
  toPostRequestInformation(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
49
49
  }
50
50
  /**
51
- * List properties and relationships of the windows10GeneralConfiguration objects.
51
+ * List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects.
52
52
  */
53
53
  export interface DeviceConfigurationsRequestBuilderGetQueryParameters {
54
54
  /**
@@ -41,18 +41,18 @@ export interface DeviceConfigurationItemRequestBuilder extends BaseRequestBuilde
41
41
  */
42
42
  get userStatusOverview(): UserStatusOverviewRequestBuilder;
43
43
  /**
44
- * Deletes a windowsPhone81GeneralConfiguration.
44
+ * Deletes a macOSGeneralDeviceConfiguration.
45
45
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46
46
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
47
- * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81generalconfiguration-delete?view=graph-rest-1.0|Find more info here}
47
+ * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macosgeneraldeviceconfiguration-delete?view=graph-rest-1.0|Find more info here}
48
48
  */
49
49
  delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
50
50
  /**
51
- * Read properties and relationships of the windowsPhone81GeneralConfiguration object.
51
+ * Read properties and relationships of the windowsUpdateForBusinessConfiguration object.
52
52
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
53
53
  * @returns {Promise<DeviceConfiguration>}
54
54
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
55
- * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81generalconfiguration-get?view=graph-rest-1.0|Find more info here}
55
+ * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsupdateforbusinessconfiguration-get?view=graph-rest-1.0|Find more info here}
56
56
  */
57
57
  get(requestConfiguration?: RequestConfiguration<DeviceConfigurationItemRequestBuilderGetQueryParameters> | undefined): Promise<DeviceConfiguration | undefined>;
58
58
  /**
@@ -62,28 +62,28 @@ export interface DeviceConfigurationItemRequestBuilder extends BaseRequestBuilde
62
62
  */
63
63
  getOmaSettingPlainTextValueWithSecretReferenceValueId(secretReferenceValueId: string | undefined): GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder;
64
64
  /**
65
- * Update the properties of a macOSGeneralDeviceConfiguration object.
65
+ * Update the properties of a windows10SecureAssessmentConfiguration object.
66
66
  * @param body The request body
67
67
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
68
68
  * @returns {Promise<DeviceConfiguration>}
69
69
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
70
- * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macosgeneraldeviceconfiguration-update?view=graph-rest-1.0|Find more info here}
70
+ * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10secureassessmentconfiguration-update?view=graph-rest-1.0|Find more info here}
71
71
  */
72
72
  patch(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceConfiguration | undefined>;
73
73
  /**
74
- * Deletes a windowsPhone81GeneralConfiguration.
74
+ * Deletes a macOSGeneralDeviceConfiguration.
75
75
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
76
76
  * @returns {RequestInformation}
77
77
  */
78
78
  toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
79
79
  /**
80
- * Read properties and relationships of the windowsPhone81GeneralConfiguration object.
80
+ * Read properties and relationships of the windowsUpdateForBusinessConfiguration object.
81
81
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
82
82
  * @returns {RequestInformation}
83
83
  */
84
84
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceConfigurationItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
85
85
  /**
86
- * Update the properties of a macOSGeneralDeviceConfiguration object.
86
+ * Update the properties of a windows10SecureAssessmentConfiguration object.
87
87
  * @param body The request body
88
88
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
89
89
  * @returns {RequestInformation}
@@ -91,7 +91,7 @@ export interface DeviceConfigurationItemRequestBuilder extends BaseRequestBuilde
91
91
  toPatchRequestInformation(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
92
92
  }
93
93
  /**
94
- * Read properties and relationships of the windowsPhone81GeneralConfiguration object.
94
+ * Read properties and relationships of the windowsUpdateForBusinessConfiguration object.
95
95
  */
96
96
  export interface DeviceConfigurationItemRequestBuilderGetQueryParameters {
97
97
  /**
@@ -17,30 +17,30 @@ export interface DeviceEnrollmentConfigurationsRequestBuilder extends BaseReques
17
17
  */
18
18
  byDeviceEnrollmentConfigurationId(deviceEnrollmentConfigurationId: string): DeviceEnrollmentConfigurationItemRequestBuilder;
19
19
  /**
20
- * List properties and relationships of the deviceEnrollmentConfiguration objects.
20
+ * List properties and relationships of the deviceEnrollmentLimitConfiguration objects.
21
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
22
  * @returns {Promise<DeviceEnrollmentConfigurationCollectionResponse>}
23
23
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
- * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentconfiguration-list?view=graph-rest-1.0|Find more info here}
24
+ * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-list?view=graph-rest-1.0|Find more info here}
25
25
  */
26
26
  get(requestConfiguration?: RequestConfiguration<DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters> | undefined): Promise<DeviceEnrollmentConfigurationCollectionResponse | undefined>;
27
27
  /**
28
- * Create a new deviceEnrollmentLimitConfiguration object.
28
+ * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object.
29
29
  * @param body The request body
30
30
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
31
  * @returns {Promise<DeviceEnrollmentConfiguration>}
32
32
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
33
- * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-create?view=graph-rest-1.0|Find more info here}
33
+ * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-create?view=graph-rest-1.0|Find more info here}
34
34
  */
35
35
  post(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceEnrollmentConfiguration | undefined>;
36
36
  /**
37
- * List properties and relationships of the deviceEnrollmentConfiguration objects.
37
+ * List properties and relationships of the deviceEnrollmentLimitConfiguration objects.
38
38
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
39
  * @returns {RequestInformation}
40
40
  */
41
41
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
42
42
  /**
43
- * Create a new deviceEnrollmentLimitConfiguration object.
43
+ * Create a new deviceEnrollmentPlatformRestrictionsConfiguration object.
44
44
  * @param body The request body
45
45
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46
46
  * @returns {RequestInformation}
@@ -48,7 +48,7 @@ export interface DeviceEnrollmentConfigurationsRequestBuilder extends BaseReques
48
48
  toPostRequestInformation(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
49
49
  }
50
50
  /**
51
- * List properties and relationships of the deviceEnrollmentConfiguration objects.
51
+ * List properties and relationships of the deviceEnrollmentLimitConfiguration objects.
52
52
  */
53
53
  export interface DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters {
54
54
  /**
@@ -27,11 +27,11 @@ export interface DeviceEnrollmentConfigurationItemRequestBuilder extends BaseReq
27
27
  */
28
28
  delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
29
29
  /**
30
- * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object.
30
+ * Read properties and relationships of the deviceEnrollmentLimitConfiguration object.
31
31
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32
32
  * @returns {Promise<DeviceEnrollmentConfiguration>}
33
33
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
34
- * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-get?view=graph-rest-1.0|Find more info here}
34
+ * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-get?view=graph-rest-1.0|Find more info here}
35
35
  */
36
36
  get(requestConfiguration?: RequestConfiguration<DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters> | undefined): Promise<DeviceEnrollmentConfiguration | undefined>;
37
37
  /**
@@ -50,7 +50,7 @@ export interface DeviceEnrollmentConfigurationItemRequestBuilder extends BaseReq
50
50
  */
51
51
  toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
52
52
  /**
53
- * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object.
53
+ * Read properties and relationships of the deviceEnrollmentLimitConfiguration object.
54
54
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
55
55
  * @returns {RequestInformation}
56
56
  */
@@ -64,7 +64,7 @@ export interface DeviceEnrollmentConfigurationItemRequestBuilder extends BaseReq
64
64
  toPatchRequestInformation(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
65
65
  }
66
66
  /**
67
- * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object.
67
+ * Read properties and relationships of the deviceEnrollmentLimitConfiguration object.
68
68
  */
69
69
  export interface DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters {
70
70
  /**
@@ -321,7 +321,7 @@ export interface DeviceManagementRequestBuilder extends BaseRequestBuilder<Devic
321
321
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
322
322
  * @returns {Promise<DeviceManagement>}
323
323
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
324
- * @see {@link https://learn.microsoft.com/graph/api/intune-companyterms-devicemanagement-update?view=graph-rest-1.0|Find more info here}
324
+ * @see {@link https://learn.microsoft.com/graph/api/intune-policyset-devicemanagement-update?view=graph-rest-1.0|Find more info here}
325
325
  */
326
326
  patch(body: DeviceManagement, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceManagement | undefined>;
327
327
  /**
@@ -17,11 +17,11 @@ export interface RoleDefinitionsRequestBuilder extends BaseRequestBuilder<RoleDe
17
17
  */
18
18
  byRoleDefinitionId(roleDefinitionId: string): RoleDefinitionItemRequestBuilder;
19
19
  /**
20
- * List properties and relationships of the deviceAndAppManagementRoleDefinition objects.
20
+ * List properties and relationships of the roleDefinition objects.
21
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
22
  * @returns {Promise<RoleDefinitionCollectionResponse>}
23
23
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
- * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-list?view=graph-rest-1.0|Find more info here}
24
+ * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-list?view=graph-rest-1.0|Find more info here}
25
25
  */
26
26
  get(requestConfiguration?: RequestConfiguration<RoleDefinitionsRequestBuilderGetQueryParameters> | undefined): Promise<RoleDefinitionCollectionResponse | undefined>;
27
27
  /**
@@ -34,7 +34,7 @@ export interface RoleDefinitionsRequestBuilder extends BaseRequestBuilder<RoleDe
34
34
  */
35
35
  post(body: RoleDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RoleDefinition | undefined>;
36
36
  /**
37
- * List properties and relationships of the deviceAndAppManagementRoleDefinition objects.
37
+ * List properties and relationships of the roleDefinition objects.
38
38
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
39
  * @returns {RequestInformation}
40
40
  */
@@ -48,7 +48,7 @@ export interface RoleDefinitionsRequestBuilder extends BaseRequestBuilder<RoleDe
48
48
  toPostRequestInformation(body: RoleDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
49
49
  }
50
50
  /**
51
- * List properties and relationships of the deviceAndAppManagementRoleDefinition objects.
51
+ * List properties and relationships of the roleDefinition objects.
52
52
  */
53
53
  export interface RoleDefinitionsRequestBuilderGetQueryParameters {
54
54
  /**
@@ -10,10 +10,10 @@ export interface RoleDefinitionItemRequestBuilder extends BaseRequestBuilder<Rol
10
10
  */
11
11
  get roleAssignments(): RoleAssignmentsRequestBuilder;
12
12
  /**
13
- * Deletes a deviceAndAppManagementRoleDefinition.
13
+ * Deletes a roleDefinition.
14
14
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
15
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
16
- * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-delete?view=graph-rest-1.0|Find more info here}
16
+ * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-delete?view=graph-rest-1.0|Find more info here}
17
17
  */
18
18
  delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
19
19
  /**
@@ -25,16 +25,16 @@ export interface RoleDefinitionItemRequestBuilder extends BaseRequestBuilder<Rol
25
25
  */
26
26
  get(requestConfiguration?: RequestConfiguration<RoleDefinitionItemRequestBuilderGetQueryParameters> | undefined): Promise<RoleDefinition | undefined>;
27
27
  /**
28
- * Update the properties of a roleDefinition object.
28
+ * Update the properties of a deviceAndAppManagementRoleDefinition object.
29
29
  * @param body The request body
30
30
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
31
  * @returns {Promise<RoleDefinition>}
32
32
  * @throws {ODataError} error when the service returns a 4XX or 5XX status code
33
- * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-update?view=graph-rest-1.0|Find more info here}
33
+ * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-update?view=graph-rest-1.0|Find more info here}
34
34
  */
35
35
  patch(body: RoleDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RoleDefinition | undefined>;
36
36
  /**
37
- * Deletes a deviceAndAppManagementRoleDefinition.
37
+ * Deletes a roleDefinition.
38
38
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
39
  * @returns {RequestInformation}
40
40
  */
@@ -46,7 +46,7 @@ export interface RoleDefinitionItemRequestBuilder extends BaseRequestBuilder<Rol
46
46
  */
47
47
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<RoleDefinitionItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
48
48
  /**
49
- * Update the properties of a roleDefinition object.
49
+ * Update the properties of a deviceAndAppManagementRoleDefinition object.
50
50
  * @param body The request body
51
51
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
52
52
  * @returns {RequestInformation}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/msgraph-sdk-devicemanagement",
3
- "version": "1.0.0-preview.54",
3
+ "version": "1.0.0-preview.57",
4
4
  "description": "DeviceManagement fluent API for Microsoft Graph",
5
5
  "keywords": [
6
6
  "Microsoft",
@@ -37,5 +37,5 @@
37
37
  "typescript": "^5.3.3"
38
38
  },
39
39
  "type": "module",
40
- "gitHead": "b1577dfd20d29117e75a9c4ea17ae996ca6adadc"
40
+ "gitHead": "2a6110df0ff3f617ccfdca60e407c9ac29e87846"
41
41
  }