@microsoft/msgraph-sdk-devicemanagement 1.0.0-preview.55 → 1.0.0-preview.58
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 +186 -4
- package/deviceManagement/deviceCompliancePolicies/index.d.ts +7 -7
- package/deviceManagement/deviceCompliancePolicies/item/index.d.ts +10 -10
- package/deviceManagement/deviceConfigurations/index.d.ts +7 -7
- package/deviceManagement/deviceConfigurations/item/index.d.ts +10 -10
- package/deviceManagement/deviceEnrollmentConfigurations/index.d.ts +3 -3
- package/deviceManagement/deviceEnrollmentConfigurations/item/index.d.ts +7 -7
- package/deviceManagement/index.d.ts +2 -2
- package/deviceManagement/roleDefinitions/index.d.ts +7 -7
- package/deviceManagement/roleDefinitions/item/index.d.ts +7 -7
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,193 @@
|
|
|
1
1
|
# `@microsoft/msgraph-sdk-deviceManagement`
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
5
|
+
This package provides a fluent API for interacting with Microsoft Graph administrative functions.
|
|
6
6
|
|
|
7
|
+
> [!NOTE]
|
|
8
|
+
> This package 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
|
+
## 1. Installation
|
|
11
|
+
|
|
12
|
+
To install the package, use npm:
|
|
13
|
+
|
|
14
|
+
```shell
|
|
15
|
+
# this will install the authentication provider for Azure Identity / Microsoft Entra
|
|
16
|
+
npm install @microsoft/kiota-authentication-azure @azure/identity
|
|
17
|
+
# this will install the fluent API package for the administrative API paths
|
|
18
|
+
npm install @microsoft/msgraph-sdk-deviceManagement
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 2. Getting started
|
|
22
|
+
|
|
23
|
+
> 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.
|
|
24
|
+
|
|
25
|
+
### 2.1 Register your application
|
|
26
|
+
|
|
27
|
+
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).
|
|
28
|
+
|
|
29
|
+
### 2.2 Create an AuthenticationProvider object
|
|
30
|
+
|
|
31
|
+
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.
|
|
32
|
+
|
|
33
|
+
<!-- TODO restore that and remove the snippets below once the SDK hits GA and the public documentation has been updated -->
|
|
34
|
+
<!-- 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). -->
|
|
35
|
+
|
|
36
|
+
#### 2.2.1 Authorization Code Provider
|
|
37
|
+
|
|
38
|
+
```TypeScript
|
|
39
|
+
// @azure/identity
|
|
40
|
+
const credential = new AuthorizationCodeCredential(
|
|
41
|
+
'YOUR_TENANT_ID',
|
|
42
|
+
'YOUR_CLIENT_ID',
|
|
43
|
+
'YOUR_CLIENT_SECRET',
|
|
44
|
+
'AUTHORIZATION_CODE',
|
|
45
|
+
'REDIRECT_URL',
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
// @microsoft/kiota-authentication-azure
|
|
49
|
+
const authProvider = new AzureIdentityAuthenticationProvider(credential, ["User.Read"]);
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
#### 2.2.2 Client Credentials Provider
|
|
53
|
+
|
|
54
|
+
##### With a certificate
|
|
55
|
+
|
|
56
|
+
```TypeScript
|
|
57
|
+
// @azure/identity
|
|
58
|
+
const credential = new ClientCertificateCredential(
|
|
59
|
+
'YOUR_TENANT_ID',
|
|
60
|
+
'YOUR_CLIENT_ID',
|
|
61
|
+
'YOUR_CERTIFICATE_PATH',
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
// @microsoft/kiota-authentication-azure
|
|
65
|
+
const authProvider = new AzureIdentityAuthenticationProvider(credential, ["https://graph.microsoft.com/.default"]);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
##### With a secret
|
|
69
|
+
|
|
70
|
+
```TypeScript
|
|
71
|
+
// @azure/identity
|
|
72
|
+
const credential = new ClientSecretCredential(
|
|
73
|
+
'YOUR_TENANT_ID',
|
|
74
|
+
'YOUR_CLIENT_ID',
|
|
75
|
+
'YOUR_CLIENT_SECRET',
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
// @microsoft/kiota-authentication-azure
|
|
79
|
+
const authProvider = new AzureIdentityAuthenticationProvider(credential, ["https://graph.microsoft.com/.default"]);
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
#### 2.2.3 On-behalf-of provider
|
|
83
|
+
|
|
84
|
+
```TypeScript
|
|
85
|
+
// @azure/identity
|
|
86
|
+
const credential = new OnBehalfOfCredential({
|
|
87
|
+
tenantId: 'YOUR_TENANT_ID',
|
|
88
|
+
clientId: 'YOUR_CLIENT_ID',
|
|
89
|
+
clientSecret: 'YOUR_CLIENT_SECRET',
|
|
90
|
+
userAssertionToken: 'JWT_TOKEN_TO_EXCHANGE',
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// @microsoft/kiota-authentication-azure
|
|
94
|
+
const authProvider = new AzureIdentityAuthenticationProvider(credential, ["https://graph.microsoft.com/.default"]);
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
#### 2.2.4 Device code provider
|
|
98
|
+
|
|
99
|
+
```TypeScript
|
|
100
|
+
// @azure/identity
|
|
101
|
+
const credential = new DeviceCodeCredential({
|
|
102
|
+
tenantId: 'YOUR_TENANT_ID',
|
|
103
|
+
clientId: 'YOUR_CLIENT_ID',
|
|
104
|
+
userPromptCallback: (info) => {
|
|
105
|
+
console.log(info.message);
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// @microsoft/kiota-authentication-azure
|
|
110
|
+
const authProvider = new AzureIdentityAuthenticationProvider(credential, ["User.Read"]);
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
#### 2.2.5 Interactive provider
|
|
114
|
+
|
|
115
|
+
```TypeScript
|
|
116
|
+
// @azure/identity
|
|
117
|
+
const credential = new InteractiveBrowserCredential({
|
|
118
|
+
tenantId: 'YOUR_TENANT_ID',
|
|
119
|
+
clientId: 'YOUR_CLIENT_ID',
|
|
120
|
+
redirectUri: 'http://localhost',
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
// @microsoft/kiota-authentication-azure
|
|
124
|
+
const authProvider = new AzureIdentityAuthenticationProvider(credential, ["User.Read"]);
|
|
7
125
|
```
|
|
8
|
-
const msgraphSdkJavascriptDeviceManagement = require('@microsoft/msgraph-sdk-deviceManagement');
|
|
9
126
|
|
|
10
|
-
|
|
127
|
+
#### 2.2.6 Username/password provider
|
|
128
|
+
|
|
129
|
+
```TypeScript
|
|
130
|
+
// @azure/identity
|
|
131
|
+
const credential = new UsernamePasswordCredential(
|
|
132
|
+
'YOUR_TENANT_ID',
|
|
133
|
+
'YOUR_CLIENT_ID',
|
|
134
|
+
'YOUR_USER_NAME',
|
|
135
|
+
'YOUR_PASSWORD',
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
// @microsoft/kiota-authentication-azure
|
|
139
|
+
const authProvider = new AzureIdentityAuthenticationProvider(credential, ["User.Read"]);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### 2.3 Get a Graph Service Client Adapter object
|
|
143
|
+
|
|
144
|
+
You must get a **GraphServiceClient** object to make requests against the service.
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
const requestAdapter = new GraphRequestAdapter(authProvider);
|
|
148
|
+
const graphServiceClient = createGraphServiceClient(requestAdapter);
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## 3. Make requests against the service
|
|
152
|
+
|
|
153
|
+
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).
|
|
154
|
+
|
|
155
|
+
### 3.1 Get user's detailed information
|
|
156
|
+
|
|
157
|
+
To retrieve the user's detailed information:
|
|
158
|
+
|
|
159
|
+
```typescript
|
|
160
|
+
import { createGraphServiceClient, GraphRequestAdapter } from "@microsoft/msgraph-sdk";
|
|
161
|
+
import "@microsoft/msgraph-sdk-deviceManagement"
|
|
162
|
+
|
|
163
|
+
const requestAdapter = new GraphRequestAdapter(authProvider);
|
|
164
|
+
const graphServiceClient = createGraphServiceClient(requestAdapter);
|
|
165
|
+
|
|
166
|
+
const deviceManagement = graphServiceClient.deviceManagement.get();
|
|
11
167
|
```
|
|
168
|
+
|
|
169
|
+
## 4. Documentation
|
|
170
|
+
|
|
171
|
+
For more detailed documentation, see:
|
|
172
|
+
|
|
173
|
+
* [Overview](https://learn.microsoft.com/graph/overview)
|
|
174
|
+
* [Collections](https://learn.microsoft.com/graph/sdks/paging)
|
|
175
|
+
* [Making requests](https://learn.microsoft.com/graph/sdks/create-requests)
|
|
176
|
+
* [Known issues](https://github.com/MicrosoftGraph/msgraph-sdk-typescript/issues)
|
|
177
|
+
* [Contributions](https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/main/CONTRIBUTING.md)
|
|
178
|
+
|
|
179
|
+
## 5. Issues
|
|
180
|
+
|
|
181
|
+
For known issues, see [issues](https://github.com/MicrosoftGraph/msgraph-sdk-typescript/issues).
|
|
182
|
+
|
|
183
|
+
## 6. Contributions
|
|
184
|
+
|
|
185
|
+
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).
|
|
186
|
+
|
|
187
|
+
## 7. License
|
|
188
|
+
|
|
189
|
+
Licensed under the [MIT license](https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/main/LICENSE).
|
|
190
|
+
|
|
191
|
+
## 8. Third-party notices
|
|
192
|
+
|
|
193
|
+
[Third-party notices](https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/main/LICENSE)
|
|
@@ -17,30 +17,30 @@ export interface DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuild
|
|
|
17
17
|
*/
|
|
18
18
|
byDeviceCompliancePolicyId(deviceCompliancePolicyId: string): DeviceCompliancePolicyItemRequestBuilder;
|
|
19
19
|
/**
|
|
20
|
-
* List properties and relationships of the
|
|
20
|
+
* List properties and relationships of the deviceCompliancePolicy objects.
|
|
21
21
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
22
|
* @returns {Promise<DeviceCompliancePolicyCollectionResponse>}
|
|
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-
|
|
24
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecompliancepolicy-list?view=graph-rest-1.0|Find more info here}
|
|
25
25
|
*/
|
|
26
26
|
get(requestConfiguration?: RequestConfiguration<DeviceCompliancePoliciesRequestBuilderGetQueryParameters> | undefined): Promise<DeviceCompliancePolicyCollectionResponse | undefined>;
|
|
27
27
|
/**
|
|
28
|
-
* Create a new
|
|
28
|
+
* Create a new windows10MobileCompliancePolicy 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-
|
|
33
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-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
|
/**
|
|
37
|
-
* List properties and relationships of the
|
|
37
|
+
* List properties and relationships of the deviceCompliancePolicy 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<DeviceCompliancePoliciesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
42
42
|
/**
|
|
43
|
-
* Create a new
|
|
43
|
+
* Create a new windows10MobileCompliancePolicy 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 DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuild
|
|
|
48
48
|
toPostRequestInformation(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* List properties and relationships of the
|
|
51
|
+
* List properties and relationships of the deviceCompliancePolicy objects.
|
|
52
52
|
*/
|
|
53
53
|
export interface DeviceCompliancePoliciesRequestBuilderGetQueryParameters {
|
|
54
54
|
/**
|
|
@@ -50,43 +50,43 @@ export interface DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBui
|
|
|
50
50
|
*/
|
|
51
51
|
get userStatusOverview(): UserStatusOverviewRequestBuilder;
|
|
52
52
|
/**
|
|
53
|
-
* Deletes a
|
|
53
|
+
* Deletes a iosCompliancePolicy.
|
|
54
54
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
55
55
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
56
|
-
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-
|
|
56
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-delete?view=graph-rest-1.0|Find more info here}
|
|
57
57
|
*/
|
|
58
58
|
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
59
59
|
/**
|
|
60
|
-
* Read properties and relationships of the
|
|
60
|
+
* Read properties and relationships of the androidCompliancePolicy 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-
|
|
64
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-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
|
|
68
|
+
* Update the properties of a androidCompliancePolicy 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-
|
|
73
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-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
|
/**
|
|
77
|
-
* Deletes a
|
|
77
|
+
* Deletes a iosCompliancePolicy.
|
|
78
78
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
79
79
|
* @returns {RequestInformation}
|
|
80
80
|
*/
|
|
81
81
|
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
82
82
|
/**
|
|
83
|
-
* Read properties and relationships of the
|
|
83
|
+
* Read properties and relationships of the androidCompliancePolicy 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
|
|
89
|
+
* Update the properties of a androidCompliancePolicy 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
|
|
97
|
+
* Read properties and relationships of the androidCompliancePolicy 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
|
|
20
|
+
* List properties and relationships of the windows10GeneralConfiguration 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-
|
|
24
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10generalconfiguration-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
|
|
28
|
+
* Create a new windows10EndpointProtectionConfiguration 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-
|
|
33
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10endpointprotectionconfiguration-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
|
|
37
|
+
* List properties and relationships of the windows10GeneralConfiguration 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
|
|
43
|
+
* Create a new windows10EndpointProtectionConfiguration 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
|
|
51
|
+
* List properties and relationships of the windows10GeneralConfiguration 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
|
|
44
|
+
* Deletes a windows10CustomConfiguration.
|
|
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-
|
|
47
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10customconfiguration-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
|
|
51
|
+
* Read properties and relationships of the windows10CustomConfiguration 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-
|
|
55
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10customconfiguration-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
|
|
65
|
+
* Update the properties of a editionUpgradeConfiguration 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-
|
|
70
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-editionupgradeconfiguration-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
|
|
74
|
+
* Deletes a windows10CustomConfiguration.
|
|
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
|
|
80
|
+
* Read properties and relationships of the windows10CustomConfiguration 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
|
|
86
|
+
* Update the properties of a editionUpgradeConfiguration 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
|
|
94
|
+
* Read properties and relationships of the windows10CustomConfiguration object.
|
|
95
95
|
*/
|
|
96
96
|
export interface DeviceConfigurationItemRequestBuilderGetQueryParameters {
|
|
97
97
|
/**
|
|
@@ -25,12 +25,12 @@ export interface DeviceEnrollmentConfigurationsRequestBuilder extends BaseReques
|
|
|
25
25
|
*/
|
|
26
26
|
get(requestConfiguration?: RequestConfiguration<DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters> | undefined): Promise<DeviceEnrollmentConfigurationCollectionResponse | undefined>;
|
|
27
27
|
/**
|
|
28
|
-
* Create a new
|
|
28
|
+
* Create a new deviceEnrollmentLimitConfiguration 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-
|
|
33
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-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
|
/**
|
|
@@ -40,7 +40,7 @@ export interface DeviceEnrollmentConfigurationsRequestBuilder extends BaseReques
|
|
|
40
40
|
*/
|
|
41
41
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
42
42
|
/**
|
|
43
|
-
* Create a new
|
|
43
|
+
* Create a new deviceEnrollmentLimitConfiguration 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}
|
|
@@ -27,20 +27,20 @@ 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
|
|
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-
|
|
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
|
/**
|
|
38
|
-
* Update the properties of a
|
|
38
|
+
* Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object.
|
|
39
39
|
* @param body The request body
|
|
40
40
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
41
41
|
* @returns {Promise<DeviceEnrollmentConfiguration>}
|
|
42
42
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
43
|
-
* @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-
|
|
43
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-update?view=graph-rest-1.0|Find more info here}
|
|
44
44
|
*/
|
|
45
45
|
patch(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceEnrollmentConfiguration | undefined>;
|
|
46
46
|
/**
|
|
@@ -50,13 +50,13 @@ export interface DeviceEnrollmentConfigurationItemRequestBuilder extends BaseReq
|
|
|
50
50
|
*/
|
|
51
51
|
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
52
52
|
/**
|
|
53
|
-
* Read properties and relationships of the
|
|
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
|
*/
|
|
57
57
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
58
58
|
/**
|
|
59
|
-
* Update the properties of a
|
|
59
|
+
* Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object.
|
|
60
60
|
* @param body The request body
|
|
61
61
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
62
62
|
* @returns {RequestInformation}
|
|
@@ -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
|
|
67
|
+
* Read properties and relationships of the deviceEnrollmentLimitConfiguration object.
|
|
68
68
|
*/
|
|
69
69
|
export interface DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters {
|
|
70
70
|
/**
|
|
@@ -306,7 +306,7 @@ export interface DeviceManagementRequestBuilder extends BaseRequestBuilder<Devic
|
|
|
306
306
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
307
307
|
* @returns {Promise<DeviceManagement>}
|
|
308
308
|
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
309
|
-
* @see {@link https://learn.microsoft.com/graph/api/intune-
|
|
309
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-enrollment-devicemanagement-get?view=graph-rest-1.0|Find more info here}
|
|
310
310
|
*/
|
|
311
311
|
get(requestConfiguration?: RequestConfiguration<DeviceManagementRequestBuilderGetQueryParameters> | undefined): Promise<DeviceManagement | undefined>;
|
|
312
312
|
/**
|
|
@@ -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-
|
|
324
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-remoteassistance-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,30 +17,30 @@ export interface RoleDefinitionsRequestBuilder extends BaseRequestBuilder<RoleDe
|
|
|
17
17
|
*/
|
|
18
18
|
byRoleDefinitionId(roleDefinitionId: string): RoleDefinitionItemRequestBuilder;
|
|
19
19
|
/**
|
|
20
|
-
* List properties and relationships of the
|
|
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-
|
|
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
|
/**
|
|
28
|
-
* Create a new
|
|
28
|
+
* Create a new 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-
|
|
33
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-create?view=graph-rest-1.0|Find more info here}
|
|
34
34
|
*/
|
|
35
35
|
post(body: RoleDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<RoleDefinition | undefined>;
|
|
36
36
|
/**
|
|
37
|
-
* List properties and relationships of the
|
|
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
|
*/
|
|
41
41
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RoleDefinitionsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
42
42
|
/**
|
|
43
|
-
* Create a new
|
|
43
|
+
* Create a new deviceAndAppManagementRoleDefinition 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 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
|
|
51
|
+
* List properties and relationships of the roleDefinition objects.
|
|
52
52
|
*/
|
|
53
53
|
export interface RoleDefinitionsRequestBuilderGetQueryParameters {
|
|
54
54
|
/**
|
|
@@ -17,20 +17,20 @@ export interface RoleDefinitionItemRequestBuilder extends BaseRequestBuilder<Rol
|
|
|
17
17
|
*/
|
|
18
18
|
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
19
19
|
/**
|
|
20
|
-
* Read properties and relationships of the
|
|
20
|
+
* Read properties and relationships of the roleDefinition object.
|
|
21
21
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
22
|
* @returns {Promise<RoleDefinition>}
|
|
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-
|
|
24
|
+
* @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-get?view=graph-rest-1.0|Find more info here}
|
|
25
25
|
*/
|
|
26
26
|
get(requestConfiguration?: RequestConfiguration<RoleDefinitionItemRequestBuilderGetQueryParameters> | undefined): Promise<RoleDefinition | undefined>;
|
|
27
27
|
/**
|
|
28
|
-
* Update the properties of a
|
|
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-
|
|
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
|
/**
|
|
@@ -40,13 +40,13 @@ export interface RoleDefinitionItemRequestBuilder extends BaseRequestBuilder<Rol
|
|
|
40
40
|
*/
|
|
41
41
|
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
42
42
|
/**
|
|
43
|
-
* Read properties and relationships of the
|
|
43
|
+
* Read properties and relationships of the roleDefinition object.
|
|
44
44
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
45
45
|
* @returns {RequestInformation}
|
|
46
46
|
*/
|
|
47
47
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RoleDefinitionItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
48
48
|
/**
|
|
49
|
-
* Update the properties of a
|
|
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}
|
|
@@ -54,7 +54,7 @@ export interface RoleDefinitionItemRequestBuilder extends BaseRequestBuilder<Rol
|
|
|
54
54
|
toPatchRequestInformation(body: RoleDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* Read properties and relationships of the
|
|
57
|
+
* Read properties and relationships of the roleDefinition object.
|
|
58
58
|
*/
|
|
59
59
|
export interface RoleDefinitionItemRequestBuilderGetQueryParameters {
|
|
60
60
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/msgraph-sdk-devicemanagement",
|
|
3
|
-
"version": "1.0.0-preview.
|
|
3
|
+
"version": "1.0.0-preview.58",
|
|
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": "
|
|
40
|
+
"gitHead": "d363ba15cf74a576b0b7e7377d98a9bcfdbc7025"
|
|
41
41
|
}
|