@microsoft/msgraph-sdk-devicemanagement 1.0.0-preview.17 → 1.0.0-preview.19
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/deviceManagement/deviceCompliancePolicies/index.d.ts +7 -7
- package/deviceManagement/deviceCompliancePolicies/item/index.d.ts +7 -7
- package/deviceManagement/deviceConfigurations/index.d.ts +7 -7
- package/deviceManagement/deviceConfigurations/item/index.d.ts +10 -10
- package/deviceManagement/deviceEnrollmentConfigurations/index.d.ts +7 -7
- package/deviceManagement/deviceEnrollmentConfigurations/item/index.d.ts +6 -6
- package/deviceManagement/index.d.ts +2 -2
- package/deviceManagement/roleDefinitions/index.d.ts +3 -3
- package/deviceManagement/roleDefinitions/item/index.d.ts +3 -3
- package/deviceManagement/virtualEndpoint/auditEvents/index.d.ts +4 -3
- package/deviceManagement/virtualEndpoint/auditEvents/index.d.ts.map +1 -1
- package/deviceManagement/virtualEndpoint/auditEvents/item/index.d.ts +4 -3
- package/deviceManagement/virtualEndpoint/auditEvents/item/index.d.ts.map +1 -1
- package/deviceManagement/virtualEndpoint/cloudPCs/count/index.d.ts +41 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/count/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/count/index.js +35 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/index.d.ts +98 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/index.js +69 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/endGracePeriod/index.d.ts +28 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/endGracePeriod/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/endGracePeriod/index.js +26 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/index.d.ts +99 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/index.js +81 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/reboot/index.d.ts +28 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/reboot/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/reboot/index.js +26 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/rename/index.d.ts +60 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/rename/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/rename/index.js +58 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/restore/index.d.ts +60 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/restore/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/restore/index.js +58 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/troubleshoot/index.d.ts +28 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/troubleshoot/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/cloudPCs/item/troubleshoot/index.js +26 -0
- package/deviceManagement/virtualEndpoint/deviceImages/count/index.d.ts +41 -0
- package/deviceManagement/virtualEndpoint/deviceImages/count/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/deviceImages/count/index.js +35 -0
- package/deviceManagement/virtualEndpoint/deviceImages/getSourceImages/index.d.ts +76 -0
- package/deviceManagement/virtualEndpoint/deviceImages/getSourceImages/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/deviceImages/getSourceImages/index.js +65 -0
- package/deviceManagement/virtualEndpoint/deviceImages/index.d.ts +104 -0
- package/deviceManagement/virtualEndpoint/deviceImages/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/deviceImages/index.js +72 -0
- package/deviceManagement/virtualEndpoint/deviceImages/item/index.d.ts +71 -0
- package/deviceManagement/virtualEndpoint/deviceImages/item/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/deviceImages/item/index.js +56 -0
- package/deviceManagement/virtualEndpoint/galleryImages/count/index.d.ts +41 -0
- package/deviceManagement/virtualEndpoint/galleryImages/count/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/galleryImages/count/index.js +35 -0
- package/deviceManagement/virtualEndpoint/galleryImages/index.d.ts +98 -0
- package/deviceManagement/virtualEndpoint/galleryImages/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/galleryImages/index.js +68 -0
- package/deviceManagement/virtualEndpoint/galleryImages/item/index.d.ts +70 -0
- package/deviceManagement/virtualEndpoint/galleryImages/item/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/galleryImages/item/index.js +56 -0
- package/deviceManagement/virtualEndpoint/index.d.ts +23 -3
- package/deviceManagement/virtualEndpoint/index.d.ts.map +1 -1
- package/deviceManagement/virtualEndpoint/index.js +20 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/count/index.d.ts +41 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/count/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/count/index.js +35 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/index.d.ts +99 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/index.js +69 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/item/index.d.ts +81 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/item/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/item/index.js +65 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/item/runHealthChecks/index.d.ts +28 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/item/runHealthChecks/index.d.ts.map +1 -0
- package/deviceManagement/virtualEndpoint/onPremisesConnections/item/runHealthChecks/index.js +26 -0
- package/deviceManagement/virtualEndpoint/provisioningPolicies/index.d.ts +7 -5
- package/deviceManagement/virtualEndpoint/provisioningPolicies/index.d.ts.map +1 -1
- package/deviceManagement/virtualEndpoint/provisioningPolicies/item/assign/index.d.ts +3 -2
- package/deviceManagement/virtualEndpoint/provisioningPolicies/item/assign/index.d.ts.map +1 -1
- package/deviceManagement/virtualEndpoint/provisioningPolicies/item/assignments/index.d.ts +3 -3
- package/deviceManagement/virtualEndpoint/provisioningPolicies/item/assignments/item/assignedUsers/index.d.ts +3 -3
- package/deviceManagement/virtualEndpoint/provisioningPolicies/item/assignments/item/assignedUsers/item/index.d.ts +3 -3
- package/deviceManagement/virtualEndpoint/provisioningPolicies/item/assignments/item/index.d.ts +3 -3
- package/deviceManagement/virtualEndpoint/provisioningPolicies/item/index.d.ts +10 -7
- package/deviceManagement/virtualEndpoint/provisioningPolicies/item/index.d.ts.map +1 -1
- package/deviceManagement/virtualEndpoint/userSettings/index.d.ts +7 -5
- package/deviceManagement/virtualEndpoint/userSettings/index.d.ts.map +1 -1
- package/deviceManagement/virtualEndpoint/userSettings/item/assign/index.d.ts +3 -2
- package/deviceManagement/virtualEndpoint/userSettings/item/assign/index.d.ts.map +1 -1
- package/deviceManagement/virtualEndpoint/userSettings/item/assignments/index.d.ts +3 -3
- package/deviceManagement/virtualEndpoint/userSettings/item/assignments/item/index.d.ts +3 -3
- package/deviceManagement/virtualEndpoint/userSettings/item/index.d.ts +10 -7
- package/deviceManagement/virtualEndpoint/userSettings/item/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
4
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
5
|
+
* @returns {RestorePostRequestBody}
|
|
6
|
+
*/
|
|
7
|
+
export declare function createRestorePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
8
|
+
/**
|
|
9
|
+
* The deserialization information for the current model
|
|
10
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
11
|
+
*/
|
|
12
|
+
export declare function deserializeIntoRestorePostRequestBody(restorePostRequestBody?: Partial<RestorePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
|
|
13
|
+
export interface RestorePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
14
|
+
/**
|
|
15
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
16
|
+
*/
|
|
17
|
+
additionalData?: Record<string, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Stores model information.
|
|
20
|
+
*/
|
|
21
|
+
backingStoreEnabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The cloudPcSnapshotId property
|
|
24
|
+
*/
|
|
25
|
+
cloudPcSnapshotId?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Provides operations to call the restore method.
|
|
29
|
+
*/
|
|
30
|
+
export interface RestoreRequestBuilder extends BaseRequestBuilder<RestoreRequestBuilder> {
|
|
31
|
+
/**
|
|
32
|
+
* Restore a specific cloudPC object to a previous state from a snapshot. Use this API to trigger a remote action that restores a Cloud PC device to a previous state.
|
|
33
|
+
* @param body The request body
|
|
34
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
35
|
+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
36
|
+
* @see {@link https://learn.microsoft.com/graph/api/cloudpc-restore?view=graph-rest-1.0|Find more info here}
|
|
37
|
+
*/
|
|
38
|
+
post(body: RestorePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Restore a specific cloudPC object to a previous state from a snapshot. Use this API to trigger a remote action that restores a Cloud PC device to a previous state.
|
|
41
|
+
* @param body The request body
|
|
42
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
43
|
+
* @returns {RequestInformation}
|
|
44
|
+
*/
|
|
45
|
+
toPostRequestInformation(body: RestorePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Serializes information the current object
|
|
49
|
+
* @param writer Serialization writer to use to serialize this model
|
|
50
|
+
*/
|
|
51
|
+
export declare function serializeRestorePostRequestBody(writer: SerializationWriter, restorePostRequestBody?: Partial<RestorePostRequestBody> | undefined): void;
|
|
52
|
+
/**
|
|
53
|
+
* Uri template for the request builder.
|
|
54
|
+
*/
|
|
55
|
+
export declare const RestoreRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/restore";
|
|
56
|
+
/**
|
|
57
|
+
* Metadata for all the requests in the request builder.
|
|
58
|
+
*/
|
|
59
|
+
export declare const RestoreRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
60
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS;;;;GAIG;AACH,wBAAgB,kDAAkD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAE1K;AACD;;;GAGG;AACH,wBAAgB,qCAAqC,CAAC,sBAAsB,GAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAK1K;AACD,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACvF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AACD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACpF;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrH;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,mBAAmB,EAAE,sBAAsB,GAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,SAAc,GAAI,IAAI,CAG5J;AACD;;GAEG;AACH,eAAO,MAAM,gCAAgC,gFAAgF,CAAC;AAC9H;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAYnD,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RestoreRequestBuilderRequestsMetadata = exports.RestoreRequestBuilderUriTemplate = exports.serializeRestorePostRequestBody = exports.deserializeIntoRestorePostRequestBody = exports.createRestorePostRequestBodyFromDiscriminatorValue = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
10
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
11
|
+
* @returns {RestorePostRequestBody}
|
|
12
|
+
*/
|
|
13
|
+
function createRestorePostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
14
|
+
return deserializeIntoRestorePostRequestBody;
|
|
15
|
+
}
|
|
16
|
+
exports.createRestorePostRequestBodyFromDiscriminatorValue = createRestorePostRequestBodyFromDiscriminatorValue;
|
|
17
|
+
/**
|
|
18
|
+
* The deserialization information for the current model
|
|
19
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
20
|
+
*/
|
|
21
|
+
function deserializeIntoRestorePostRequestBody(restorePostRequestBody = {}) {
|
|
22
|
+
return {
|
|
23
|
+
"backingStoreEnabled": n => { restorePostRequestBody.backingStoreEnabled = true; },
|
|
24
|
+
"cloudPcSnapshotId": n => { restorePostRequestBody.cloudPcSnapshotId = n.getStringValue(); },
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.deserializeIntoRestorePostRequestBody = deserializeIntoRestorePostRequestBody;
|
|
28
|
+
/**
|
|
29
|
+
* Serializes information the current object
|
|
30
|
+
* @param writer Serialization writer to use to serialize this model
|
|
31
|
+
*/
|
|
32
|
+
function serializeRestorePostRequestBody(writer, restorePostRequestBody = {}) {
|
|
33
|
+
writer.writeStringValue("cloudPcSnapshotId", restorePostRequestBody.cloudPcSnapshotId);
|
|
34
|
+
writer.writeAdditionalData(restorePostRequestBody.additionalData);
|
|
35
|
+
}
|
|
36
|
+
exports.serializeRestorePostRequestBody = serializeRestorePostRequestBody;
|
|
37
|
+
/**
|
|
38
|
+
* Uri template for the request builder.
|
|
39
|
+
*/
|
|
40
|
+
exports.RestoreRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/restore";
|
|
41
|
+
/**
|
|
42
|
+
* Metadata for all the requests in the request builder.
|
|
43
|
+
*/
|
|
44
|
+
exports.RestoreRequestBuilderRequestsMetadata = {
|
|
45
|
+
post: {
|
|
46
|
+
uriTemplate: exports.RestoreRequestBuilderUriTemplate,
|
|
47
|
+
responseBodyContentType: "application/json",
|
|
48
|
+
errorMappings: {
|
|
49
|
+
XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
50
|
+
},
|
|
51
|
+
adapterMethodName: "sendNoResponseContent",
|
|
52
|
+
requestBodyContentType: "application/json",
|
|
53
|
+
requestBodySerializer: serializeRestorePostRequestBody,
|
|
54
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
/* tslint:enable */
|
|
58
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Provides operations to call the troubleshoot method.
|
|
4
|
+
*/
|
|
5
|
+
export interface TroubleshootRequestBuilder extends BaseRequestBuilder<TroubleshootRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Troubleshoot a specific cloudPC object. Use this API to check the health status of the Cloud PC and the session host.
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
10
|
+
* @see {@link https://learn.microsoft.com/graph/api/cloudpc-troubleshoot?view=graph-rest-1.0|Find more info here}
|
|
11
|
+
*/
|
|
12
|
+
post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Troubleshoot a specific cloudPC object. Use this API to check the health status of the Cloud PC and the session host.
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {RequestInformation}
|
|
17
|
+
*/
|
|
18
|
+
toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export declare const TroubleshootRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/troubleshoot";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the requests in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export declare const TroubleshootRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB,CAAC,0BAA0B,CAAC;IAC9F;;;;;OAKG;IACF,IAAI,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF;;;;OAIG;IACF,wBAAwB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnH;AACD;;GAEG;AACH,eAAO,MAAM,qCAAqC,qFAAqF,CAAC;AACxI;;GAEG;AACH,eAAO,MAAM,0CAA0C,EAAE,gBASxD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TroubleshootRequestBuilderRequestsMetadata = exports.TroubleshootRequestBuilderUriTemplate = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
8
|
+
/**
|
|
9
|
+
* Uri template for the request builder.
|
|
10
|
+
*/
|
|
11
|
+
exports.TroubleshootRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/troubleshoot";
|
|
12
|
+
/**
|
|
13
|
+
* Metadata for all the requests in the request builder.
|
|
14
|
+
*/
|
|
15
|
+
exports.TroubleshootRequestBuilderRequestsMetadata = {
|
|
16
|
+
post: {
|
|
17
|
+
uriTemplate: exports.TroubleshootRequestBuilderUriTemplate,
|
|
18
|
+
responseBodyContentType: "application/json",
|
|
19
|
+
errorMappings: {
|
|
20
|
+
XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
21
|
+
},
|
|
22
|
+
adapterMethodName: "sendNoResponseContent",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
/* tslint:enable */
|
|
26
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Provides operations to count the resources in the collection.
|
|
4
|
+
*/
|
|
5
|
+
export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Get the number of the resource
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @returns {Promise<number>}
|
|
10
|
+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
11
|
+
*/
|
|
12
|
+
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Get the number of the resource
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {RequestInformation}
|
|
17
|
+
*/
|
|
18
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Get the number of the resource
|
|
22
|
+
*/
|
|
23
|
+
export interface CountRequestBuilderGetQueryParameters {
|
|
24
|
+
/**
|
|
25
|
+
* Filter items by property values
|
|
26
|
+
*/
|
|
27
|
+
filter?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Search items by search phrases
|
|
30
|
+
*/
|
|
31
|
+
search?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Uri template for the request builder.
|
|
35
|
+
*/
|
|
36
|
+
export declare const CountRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/$count{?%24filter,%24search}";
|
|
37
|
+
/**
|
|
38
|
+
* Metadata for all the requests in the request builder.
|
|
39
|
+
*/
|
|
40
|
+
export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,0FAA0F,CAAC;AAQtI;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CountRequestBuilderRequestsMetadata = exports.CountRequestBuilderUriTemplate = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
8
|
+
/**
|
|
9
|
+
* Uri template for the request builder.
|
|
10
|
+
*/
|
|
11
|
+
exports.CountRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/$count{?%24filter,%24search}";
|
|
12
|
+
/**
|
|
13
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
14
|
+
*/
|
|
15
|
+
const CountRequestBuilderGetQueryParametersMapper = {
|
|
16
|
+
"filter": "%24filter",
|
|
17
|
+
"search": "%24search",
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Metadata for all the requests in the request builder.
|
|
21
|
+
*/
|
|
22
|
+
exports.CountRequestBuilderRequestsMetadata = {
|
|
23
|
+
get: {
|
|
24
|
+
uriTemplate: exports.CountRequestBuilderUriTemplate,
|
|
25
|
+
responseBodyContentType: "text/plain;q=0.9",
|
|
26
|
+
errorMappings: {
|
|
27
|
+
XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
28
|
+
},
|
|
29
|
+
adapterMethodName: "sendPrimitive",
|
|
30
|
+
responseBodyFactory: "number",
|
|
31
|
+
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
/* tslint:enable */
|
|
35
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type BaseCollectionPaginationCountResponse, type CloudPcSourceDeviceImage } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
5
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6
|
+
* @returns {GetSourceImagesGetResponse}
|
|
7
|
+
*/
|
|
8
|
+
export declare function createGetSourceImagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
9
|
+
/**
|
|
10
|
+
* The deserialization information for the current model
|
|
11
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
12
|
+
*/
|
|
13
|
+
export declare function deserializeIntoGetSourceImagesGetResponse(getSourceImagesGetResponse?: Partial<GetSourceImagesGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
14
|
+
export interface GetSourceImagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable {
|
|
15
|
+
/**
|
|
16
|
+
* The value property
|
|
17
|
+
*/
|
|
18
|
+
value?: CloudPcSourceDeviceImage[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Provides operations to call the getSourceImages method.
|
|
22
|
+
*/
|
|
23
|
+
export interface GetSourceImagesRequestBuilder extends BaseRequestBuilder<GetSourceImagesRequestBuilder> {
|
|
24
|
+
/**
|
|
25
|
+
* Invoke function getSourceImages
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns {Promise<GetSourceImagesGetResponse>}
|
|
28
|
+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
29
|
+
*/
|
|
30
|
+
get(requestConfiguration?: RequestConfiguration<GetSourceImagesRequestBuilderGetQueryParameters> | undefined): Promise<GetSourceImagesGetResponse | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* Invoke function getSourceImages
|
|
33
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
34
|
+
* @returns {RequestInformation}
|
|
35
|
+
*/
|
|
36
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<GetSourceImagesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Invoke function getSourceImages
|
|
40
|
+
*/
|
|
41
|
+
export interface GetSourceImagesRequestBuilderGetQueryParameters {
|
|
42
|
+
/**
|
|
43
|
+
* Include count of items
|
|
44
|
+
*/
|
|
45
|
+
count?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Filter items by property values
|
|
48
|
+
*/
|
|
49
|
+
filter?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Search items by search phrases
|
|
52
|
+
*/
|
|
53
|
+
search?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Skip the first n items
|
|
56
|
+
*/
|
|
57
|
+
skip?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Show only the first n items
|
|
60
|
+
*/
|
|
61
|
+
top?: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Serializes information the current object
|
|
65
|
+
* @param writer Serialization writer to use to serialize this model
|
|
66
|
+
*/
|
|
67
|
+
export declare function serializeGetSourceImagesGetResponse(writer: SerializationWriter, getSourceImagesGetResponse?: Partial<GetSourceImagesGetResponse> | undefined): void;
|
|
68
|
+
/**
|
|
69
|
+
* Uri template for the request builder.
|
|
70
|
+
*/
|
|
71
|
+
export declare const GetSourceImagesRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/getSourceImages(){?%24count,%24filter,%24search,%24skip,%24top}";
|
|
72
|
+
/**
|
|
73
|
+
* Metadata for all the requests in the request builder.
|
|
74
|
+
*/
|
|
75
|
+
export declare const GetSourceImagesRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
76
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiM,KAAK,qCAAqC,EAAE,KAAK,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE1T,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElO;;;;GAIG;AACH,wBAAgB,sDAAsD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAE9K;AACD;;;GAGG;AACH,wBAAgB,yCAAyC,CAAC,0BAA0B,GAAE,OAAO,CAAC,0BAA0B,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAKtL;AACD,MAAM,WAAW,0BAA2B,SAAQ,qCAAqC,EAAE,QAAQ;IAC/F;;OAEG;IACH,KAAK,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACtC;AACD;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB,CAAC,6BAA6B,CAAC;IACpG;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,+CAA+C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAAC;IACjK;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,+CAA+C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC3J;AACD;;GAEG;AACH,MAAM,WAAW,+CAA+C;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AACD;;;GAGG;AACH,wBAAgB,mCAAmC,CAAC,MAAM,EAAE,mBAAmB,EAAE,0BAA0B,GAAE,OAAO,CAAC,0BAA0B,CAAC,GAAG,SAAc,GAAI,IAAI,CAGxK;AACD;;GAEG;AACH,eAAO,MAAM,wCAAwC,6HAA6H,CAAC;AAWnL;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,gBAW3D,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSourceImagesRequestBuilderRequestsMetadata = exports.GetSourceImagesRequestBuilderUriTemplate = exports.serializeGetSourceImagesGetResponse = exports.deserializeIntoGetSourceImagesGetResponse = exports.createGetSourceImagesGetResponseFromDiscriminatorValue = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns {GetSourceImagesGetResponse}
|
|
13
|
+
*/
|
|
14
|
+
function createGetSourceImagesGetResponseFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoGetSourceImagesGetResponse;
|
|
16
|
+
}
|
|
17
|
+
exports.createGetSourceImagesGetResponseFromDiscriminatorValue = createGetSourceImagesGetResponseFromDiscriminatorValue;
|
|
18
|
+
/**
|
|
19
|
+
* The deserialization information for the current model
|
|
20
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
21
|
+
*/
|
|
22
|
+
function deserializeIntoGetSourceImagesGetResponse(getSourceImagesGetResponse = {}) {
|
|
23
|
+
return Object.assign(Object.assign({}, (0, models_1.deserializeIntoBaseCollectionPaginationCountResponse)(getSourceImagesGetResponse)), { "value": n => { getSourceImagesGetResponse.value = n.getCollectionOfObjectValues(models_1.createCloudPcSourceDeviceImageFromDiscriminatorValue); } });
|
|
24
|
+
}
|
|
25
|
+
exports.deserializeIntoGetSourceImagesGetResponse = deserializeIntoGetSourceImagesGetResponse;
|
|
26
|
+
/**
|
|
27
|
+
* Serializes information the current object
|
|
28
|
+
* @param writer Serialization writer to use to serialize this model
|
|
29
|
+
*/
|
|
30
|
+
function serializeGetSourceImagesGetResponse(writer, getSourceImagesGetResponse = {}) {
|
|
31
|
+
(0, models_1.serializeBaseCollectionPaginationCountResponse)(writer, getSourceImagesGetResponse);
|
|
32
|
+
writer.writeCollectionOfObjectValues("value", getSourceImagesGetResponse.value, models_1.serializeCloudPcSourceDeviceImage);
|
|
33
|
+
}
|
|
34
|
+
exports.serializeGetSourceImagesGetResponse = serializeGetSourceImagesGetResponse;
|
|
35
|
+
/**
|
|
36
|
+
* Uri template for the request builder.
|
|
37
|
+
*/
|
|
38
|
+
exports.GetSourceImagesRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/getSourceImages(){?%24count,%24filter,%24search,%24skip,%24top}";
|
|
39
|
+
/**
|
|
40
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
41
|
+
*/
|
|
42
|
+
const GetSourceImagesRequestBuilderGetQueryParametersMapper = {
|
|
43
|
+
"count": "%24count",
|
|
44
|
+
"filter": "%24filter",
|
|
45
|
+
"search": "%24search",
|
|
46
|
+
"skip": "%24skip",
|
|
47
|
+
"top": "%24top",
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Metadata for all the requests in the request builder.
|
|
51
|
+
*/
|
|
52
|
+
exports.GetSourceImagesRequestBuilderRequestsMetadata = {
|
|
53
|
+
get: {
|
|
54
|
+
uriTemplate: exports.GetSourceImagesRequestBuilderUriTemplate,
|
|
55
|
+
responseBodyContentType: "application/json",
|
|
56
|
+
errorMappings: {
|
|
57
|
+
XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
58
|
+
},
|
|
59
|
+
adapterMethodName: "send",
|
|
60
|
+
responseBodyFactory: createGetSourceImagesGetResponseFromDiscriminatorValue,
|
|
61
|
+
queryParametersMapper: GetSourceImagesRequestBuilderGetQueryParametersMapper,
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
/* tslint:enable */
|
|
65
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type CloudPcDeviceImage, type CloudPcDeviceImageCollectionResponse } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type CountRequestBuilder } from './count/';
|
|
3
|
+
import { type GetSourceImagesRequestBuilder } from './getSourceImages/';
|
|
4
|
+
import { type CloudPcDeviceImageItemRequestBuilder } from './item/';
|
|
5
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
6
|
+
/**
|
|
7
|
+
* Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity.
|
|
8
|
+
*/
|
|
9
|
+
export interface DeviceImagesRequestBuilder extends BaseRequestBuilder<DeviceImagesRequestBuilder> {
|
|
10
|
+
/**
|
|
11
|
+
* Provides operations to count the resources in the collection.
|
|
12
|
+
*/
|
|
13
|
+
get count(): CountRequestBuilder;
|
|
14
|
+
/**
|
|
15
|
+
* Provides operations to call the getSourceImages method.
|
|
16
|
+
*/
|
|
17
|
+
get getSourceImages(): GetSourceImagesRequestBuilder;
|
|
18
|
+
/**
|
|
19
|
+
* Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity.
|
|
20
|
+
* @param cloudPcDeviceImageId The unique identifier of cloudPcDeviceImage
|
|
21
|
+
* @returns {CloudPcDeviceImageItemRequestBuilder}
|
|
22
|
+
*/
|
|
23
|
+
byCloudPcDeviceImageId(cloudPcDeviceImageId: string): CloudPcDeviceImageItemRequestBuilder;
|
|
24
|
+
/**
|
|
25
|
+
* List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC.
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns {Promise<CloudPcDeviceImageCollectionResponse>}
|
|
28
|
+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
29
|
+
* @see {@link https://learn.microsoft.com/graph/api/virtualendpoint-list-deviceimages?view=graph-rest-1.0|Find more info here}
|
|
30
|
+
*/
|
|
31
|
+
get(requestConfiguration?: RequestConfiguration<DeviceImagesRequestBuilderGetQueryParameters> | undefined): Promise<CloudPcDeviceImageCollectionResponse | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs.
|
|
34
|
+
* @param body The request body
|
|
35
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
36
|
+
* @returns {Promise<CloudPcDeviceImage>}
|
|
37
|
+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
|
|
38
|
+
* @see {@link https://learn.microsoft.com/graph/api/virtualendpoint-post-deviceimages?view=graph-rest-1.0|Find more info here}
|
|
39
|
+
*/
|
|
40
|
+
post(body: CloudPcDeviceImage, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CloudPcDeviceImage | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC.
|
|
43
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
44
|
+
* @returns {RequestInformation}
|
|
45
|
+
*/
|
|
46
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceImagesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
47
|
+
/**
|
|
48
|
+
* Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs.
|
|
49
|
+
* @param body The request body
|
|
50
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
51
|
+
* @returns {RequestInformation}
|
|
52
|
+
*/
|
|
53
|
+
toPostRequestInformation(body: CloudPcDeviceImage, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC.
|
|
57
|
+
*/
|
|
58
|
+
export interface DeviceImagesRequestBuilderGetQueryParameters {
|
|
59
|
+
/**
|
|
60
|
+
* Include count of items
|
|
61
|
+
*/
|
|
62
|
+
count?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Expand related entities
|
|
65
|
+
*/
|
|
66
|
+
expand?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Filter items by property values
|
|
69
|
+
*/
|
|
70
|
+
filter?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Order items by property values
|
|
73
|
+
*/
|
|
74
|
+
orderby?: string[];
|
|
75
|
+
/**
|
|
76
|
+
* Search items by search phrases
|
|
77
|
+
*/
|
|
78
|
+
search?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Select properties to be returned
|
|
81
|
+
*/
|
|
82
|
+
select?: string[];
|
|
83
|
+
/**
|
|
84
|
+
* Skip the first n items
|
|
85
|
+
*/
|
|
86
|
+
skip?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Show only the first n items
|
|
89
|
+
*/
|
|
90
|
+
top?: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Uri template for the request builder.
|
|
94
|
+
*/
|
|
95
|
+
export declare const DeviceImagesRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
|
|
96
|
+
/**
|
|
97
|
+
* Metadata for all the navigation properties in the request builder.
|
|
98
|
+
*/
|
|
99
|
+
export declare const DeviceImagesRequestBuilderNavigationMetadata: Record<Exclude<keyof DeviceImagesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
100
|
+
/**
|
|
101
|
+
* Metadata for all the requests in the request builder.
|
|
102
|
+
*/
|
|
103
|
+
export declare const DeviceImagesRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
104
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiJ,KAAK,kBAAkB,EAAE,KAAK,oCAAoC,EAAE,MAAM,gCAAgC,CAAC;AAEnQ,OAAO,EAAuC,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzF,OAAO,EAAiD,KAAK,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACvH,OAAO,EAAwD,KAAK,oCAAoC,EAAE,MAAM,SAAS,CAAC;AAC1H,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB,CAAC,0BAA0B,CAAC;IAC9F;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;OAEG;IACH,IAAI,eAAe,IAAI,6BAA6B,CAAC;IACrD;;;;OAIG;IACF,sBAAsB,CAAC,oBAAoB,EAAE,MAAM,GAAI,oCAAoC,CAAC;IAC7F;;;;;;OAMG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,4CAA4C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,oCAAoC,GAAG,SAAS,CAAC,CAAC;IACxK;;;;;;;OAOG;IACF,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAC3I;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,4CAA4C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACrJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC7I;AACD;;GAEG;AACH,MAAM,WAAW,4CAA4C;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AACD;;GAEG;AACH,eAAO,MAAM,qCAAqC,0IAA0I,CAAC;AAc7L;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,0BAA0B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAWlK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,0CAA0C,EAAE,gBAuBxD,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceImagesRequestBuilderRequestsMetadata = exports.DeviceImagesRequestBuilderNavigationMetadata = exports.DeviceImagesRequestBuilderUriTemplate = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
const count_1 = require("./count/");
|
|
10
|
+
const getSourceImages_1 = require("./getSourceImages/");
|
|
11
|
+
const item_1 = require("./item/");
|
|
12
|
+
/**
|
|
13
|
+
* Uri template for the request builder.
|
|
14
|
+
*/
|
|
15
|
+
exports.DeviceImagesRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
|
|
16
|
+
/**
|
|
17
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
18
|
+
*/
|
|
19
|
+
const DeviceImagesRequestBuilderGetQueryParametersMapper = {
|
|
20
|
+
"count": "%24count",
|
|
21
|
+
"expand": "%24expand",
|
|
22
|
+
"filter": "%24filter",
|
|
23
|
+
"orderby": "%24orderby",
|
|
24
|
+
"search": "%24search",
|
|
25
|
+
"select": "%24select",
|
|
26
|
+
"skip": "%24skip",
|
|
27
|
+
"top": "%24top",
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Metadata for all the navigation properties in the request builder.
|
|
31
|
+
*/
|
|
32
|
+
exports.DeviceImagesRequestBuilderNavigationMetadata = {
|
|
33
|
+
byCloudPcDeviceImageId: {
|
|
34
|
+
requestsMetadata: item_1.CloudPcDeviceImageItemRequestBuilderRequestsMetadata,
|
|
35
|
+
pathParametersMappings: ["cloudPcDeviceImage%2Did"],
|
|
36
|
+
},
|
|
37
|
+
count: {
|
|
38
|
+
requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
|
|
39
|
+
},
|
|
40
|
+
getSourceImages: {
|
|
41
|
+
requestsMetadata: getSourceImages_1.GetSourceImagesRequestBuilderRequestsMetadata,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Metadata for all the requests in the request builder.
|
|
46
|
+
*/
|
|
47
|
+
exports.DeviceImagesRequestBuilderRequestsMetadata = {
|
|
48
|
+
get: {
|
|
49
|
+
uriTemplate: exports.DeviceImagesRequestBuilderUriTemplate,
|
|
50
|
+
responseBodyContentType: "application/json",
|
|
51
|
+
errorMappings: {
|
|
52
|
+
XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
53
|
+
},
|
|
54
|
+
adapterMethodName: "send",
|
|
55
|
+
responseBodyFactory: models_1.createCloudPcDeviceImageCollectionResponseFromDiscriminatorValue,
|
|
56
|
+
queryParametersMapper: DeviceImagesRequestBuilderGetQueryParametersMapper,
|
|
57
|
+
},
|
|
58
|
+
post: {
|
|
59
|
+
uriTemplate: exports.DeviceImagesRequestBuilderUriTemplate,
|
|
60
|
+
responseBodyContentType: "application/json",
|
|
61
|
+
errorMappings: {
|
|
62
|
+
XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
63
|
+
},
|
|
64
|
+
adapterMethodName: "send",
|
|
65
|
+
responseBodyFactory: models_1.createCloudPcDeviceImageFromDiscriminatorValue,
|
|
66
|
+
requestBodyContentType: "application/json",
|
|
67
|
+
requestBodySerializer: models_1.serializeCloudPcDeviceImage,
|
|
68
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
/* tslint:enable */
|
|
72
|
+
/* eslint-enable */
|