Skip to content

Commit 007db47

Browse files
microsoft-graph-devx-bot[bot]Microsoft Graph DevX Tooling
andauthored
feat(generation): update request builders and models (#425)
Update generated files with build 204842 Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
1 parent fdd6fc5 commit 007db47

File tree

655 files changed

+66250
-520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

655 files changed

+66250
-520
lines changed

packages/kiota-dom-export.txt

Lines changed: 7303 additions & 112 deletions
Large diffs are not rendered by default.

packages/kiota-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"descriptionHash": "FCB69AE6AE6CB1838B3866243DF8255F2D1FC69A1445C5671ACA8A3A1965B0748B43FB6D5FFCF23AC4B134F27F4FC69410D0EA484CC2128D8B7C9019E6650B38",
2+
"descriptionHash": "D869905336258215D763BC9ABF0010544F61DFEE6A3A754653848AE49404CBA67DD36B80D958A47541E754E7165E1788250B0B7145D0CD43E9FC528070331438",
33
"descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.30.0",

packages/msgraph-beta-sdk-applications/applications/delta/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* eslint-disable */
33
// Generated by Microsoft Kiota
44
// @ts-ignore
5-
import { createApplicationFromDiscriminatorValue, deserializeIntoBaseDeltaFunctionResponse, serializeApplication, serializeBaseDeltaFunctionResponse, type Application, type BaseDeltaFunctionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js';
5+
import { createDirectoryObjectFromDiscriminatorValue, deserializeIntoBaseDeltaFunctionResponse, serializeBaseDeltaFunctionResponse, serializeDirectoryObject, type BaseDeltaFunctionResponse, type DirectoryObject } from '@microsoft/msgraph-beta-sdk/models/index.js';
66
// @ts-ignore
77
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
88
// @ts-ignore
@@ -21,29 +21,29 @@ export interface DeltaGetResponse extends BaseDeltaFunctionResponse, Parsable {
2121
/**
2222
* The value property
2323
*/
24-
value?: Application[] | null;
24+
value?: DirectoryObject[] | null;
2525
}
2626
/**
2727
* Provides operations to call the delta method.
2828
*/
2929
export interface DeltaRequestBuilder extends BaseRequestBuilder<DeltaRequestBuilder> {
3030
/**
31-
* Get newly created, updated, or deleted applications and agent identity blueprints without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
31+
* Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
3232
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3333
* @returns {Promise<DeltaGetResponse>}
3434
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
35-
* @see {@link https://learn.microsoft.com/graph/api/application-delta?view=graph-rest-beta|Find more info here}
35+
* @see {@link https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-beta|Find more info here}
3636
*/
3737
get(requestConfiguration?: RequestConfiguration<DeltaRequestBuilderGetQueryParameters> | undefined) : Promise<DeltaGetResponse | undefined>;
3838
/**
39-
* Get newly created, updated, or deleted applications and agent identity blueprints without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
39+
* Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
4040
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4141
* @returns {RequestInformation}
4242
*/
4343
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeltaRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
4444
}
4545
/**
46-
* Get newly created, updated, or deleted applications and agent identity blueprints without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
46+
* Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
4747
*/
4848
export interface DeltaRequestBuilderGetQueryParameters {
4949
/**
@@ -88,7 +88,7 @@ export interface DeltaRequestBuilderGetQueryParameters {
8888
export function deserializeIntoDeltaGetResponse(deltaGetResponse: Partial<DeltaGetResponse> | undefined = {}) : Record<string, (node: ParseNode) => void> {
8989
return {
9090
...deserializeIntoBaseDeltaFunctionResponse(deltaGetResponse),
91-
"value": n => { deltaGetResponse.value = n.getCollectionOfObjectValues<Application>(createApplicationFromDiscriminatorValue); },
91+
"value": n => { deltaGetResponse.value = n.getCollectionOfObjectValues<DirectoryObject>(createDirectoryObjectFromDiscriminatorValue); },
9292
}
9393
}
9494
/**
@@ -101,7 +101,7 @@ export function deserializeIntoDeltaGetResponse(deltaGetResponse: Partial<DeltaG
101101
export function serializeDeltaGetResponse(writer: SerializationWriter, deltaGetResponse: Partial<DeltaGetResponse> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
102102
if (!deltaGetResponse || isSerializingDerivedType) { return; }
103103
serializeBaseDeltaFunctionResponse(writer, deltaGetResponse, isSerializingDerivedType)
104-
writer.writeCollectionOfObjectValues<Application>("value", deltaGetResponse.value, serializeApplication);
104+
writer.writeCollectionOfObjectValues<DirectoryObject>("value", deltaGetResponse.value, serializeDirectoryObject);
105105
}
106106
/**
107107
* Uri template for the request builder.

packages/msgraph-beta-sdk-communications/communications/presences/item/clearAutomaticLocation/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ
1111
*/
1212
export interface ClearAutomaticLocationRequestBuilder extends BaseRequestBuilder<ClearAutomaticLocationRequestBuilder> {
1313
/**
14-
* Invoke action clearAutomaticLocation
14+
* Clear the automatic work location signal for a user. After clearing, the user’s final aggregated work location is recomputed according to the precedence rules: Use this operation when you need to remove the current autodetected signal without affecting manual or scheduled layers.
1515
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
1616
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
17+
* @see {@link https://learn.microsoft.com/graph/api/presence-clearautomaticlocation?view=graph-rest-beta|Find more info here}
1718
*/
1819
post(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
1920
/**
20-
* Invoke action clearAutomaticLocation
21+
* Clear the automatic work location signal for a user. After clearing, the user’s final aggregated work location is recomputed according to the precedence rules: Use this operation when you need to remove the current autodetected signal without affecting manual or scheduled layers.
2122
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
2223
* @returns {RequestInformation}
2324
*/

packages/msgraph-beta-sdk-communications/communications/presences/item/clearLocation/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type Requ
1111
*/
1212
export interface ClearLocationRequestBuilder extends BaseRequestBuilder<ClearLocationRequestBuilder> {
1313
/**
14-
* Invoke action clearLocation
14+
* Clear the work location signals for a user, including both the manual and automatic layers for the current date.
1515
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
1616
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
17+
* @see {@link https://learn.microsoft.com/graph/api/presence-clearlocation?view=graph-rest-beta|Find more info here}
1718
*/
1819
post(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
1920
/**
20-
* Invoke action clearLocation
21+
* Clear the work location signals for a user, including both the manual and automatic layers for the current date.
2122
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
2223
* @returns {RequestInformation}
2324
*/

packages/msgraph-beta-sdk-communications/communications/presences/item/setAutomaticLocation/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,15 @@ export interface SetAutomaticLocationPostRequestBody extends AdditionalDataHolde
6262
*/
6363
export interface SetAutomaticLocationRequestBuilder extends BaseRequestBuilder<SetAutomaticLocationRequestBuilder> {
6464
/**
65-
* Invoke action setAutomaticLocation
65+
* Update the automatic work location for a user. The automatic layer participates in the standard precedence model: Use this operation from clients or services that automatically detect location (for example, Teams, network/location agents, or OEM docking apps). It doesn't clear manual or scheduled signals.
6666
* @param body The request body
6767
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6868
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
69+
* @see {@link https://learn.microsoft.com/graph/api/presence-setautomaticlocation?view=graph-rest-beta|Find more info here}
6970
*/
7071
post(body: SetAutomaticLocationPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
7172
/**
72-
* Invoke action setAutomaticLocation
73+
* Update the automatic work location for a user. The automatic layer participates in the standard precedence model: Use this operation from clients or services that automatically detect location (for example, Teams, network/location agents, or OEM docking apps). It doesn't clear manual or scheduled signals.
7374
* @param body The request body
7475
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7576
* @returns {RequestInformation}

packages/msgraph-beta-sdk-communications/communications/presences/item/setManualLocation/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,15 @@ export interface SetManualLocationPostRequestBody extends AdditionalDataHolder,
6262
*/
6363
export interface SetManualLocationRequestBuilder extends BaseRequestBuilder<SetManualLocationRequestBuilder> {
6464
/**
65-
* Invoke action setManualLocation
65+
* Set the manual work location signal for a user. The explicit value chosen by a user (or an authorized client) overrides any automatically detected or scheduled working hours and location.
6666
* @param body The request body
6767
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6868
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
69+
* @see {@link https://learn.microsoft.com/graph/api/presence-setmanuallocation?view=graph-rest-beta|Find more info here}
6970
*/
7071
post(body: SetManualLocationPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
7172
/**
72-
* Invoke action setManualLocation
73+
* Set the manual work location signal for a user. The explicit value chosen by a user (or an authorized client) overrides any automatically detected or scheduled working hours and location.
7374
* @param body The request body
7475
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7576
* @returns {RequestInformation}

packages/msgraph-beta-sdk-deviceManagement/deviceManagement/virtualEndpoint/provisioningPolicies/item/assignments/item/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { AssignedUsersRequestBuilderNavigationMetadata, AssignedUsersRequestBuil
1010
// @ts-ignore
1111
import { AssignedUsersWithUserPrincipalNameRequestBuilderRequestsMetadata, type AssignedUsersWithUserPrincipalNameRequestBuilder } from './assignedUsersWithUserPrincipalName/index.js';
1212
// @ts-ignore
13+
import { type UserSettingsPersistenceDetailRequestBuilder, UserSettingsPersistenceDetailRequestBuilderNavigationMetadata, UserSettingsPersistenceDetailRequestBuilderRequestsMetadata } from './userSettingsPersistenceDetail/index.js';
14+
// @ts-ignore
1315
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
1416

1517
/**
@@ -20,6 +22,10 @@ export interface CloudPcProvisioningPolicyAssignmentItemRequestBuilder extends B
2022
* Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity.
2123
*/
2224
get assignedUsers(): AssignedUsersRequestBuilder;
25+
/**
26+
* Provides operations to manage the userSettingsPersistenceDetail property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity.
27+
*/
28+
get userSettingsPersistenceDetail(): UserSettingsPersistenceDetailRequestBuilder;
2329
/**
2430
* Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity.
2531
* @param userPrincipalName Alternate key of user
@@ -103,6 +109,10 @@ export const CloudPcProvisioningPolicyAssignmentItemRequestBuilderNavigationMeta
103109
requestsMetadata: AssignedUsersRequestBuilderRequestsMetadata,
104110
navigationMetadata: AssignedUsersRequestBuilderNavigationMetadata,
105111
},
112+
userSettingsPersistenceDetail: {
113+
requestsMetadata: UserSettingsPersistenceDetailRequestBuilderRequestsMetadata,
114+
navigationMetadata: UserSettingsPersistenceDetailRequestBuilderNavigationMetadata,
115+
},
106116
};
107117
/**
108118
* Metadata for all the requests in the request builder.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
6+
// @ts-ignore
7+
import { type AdditionalDataHolder, type BackedModel, type BackingStore, type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
8+
9+
export interface BatchCleanupUserSettingsPersistenceProfilePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
10+
/**
11+
* Stores model information.
12+
*/
13+
backingStoreEnabled?: boolean | null;
14+
/**
15+
* The cloudProfileIds property
16+
*/
17+
cloudProfileIds?: string[] | null;
18+
/**
19+
* The configurationId property
20+
*/
21+
configurationId?: string | null;
22+
}
23+
/**
24+
* Provides operations to call the batchCleanupUserSettingsPersistenceProfile method.
25+
*/
26+
export interface BatchCleanupUserSettingsPersistenceProfileRequestBuilder extends BaseRequestBuilder<BatchCleanupUserSettingsPersistenceProfileRequestBuilder> {
27+
/**
28+
* Invoke action batchCleanupUserSettingsPersistenceProfile
29+
* @param body The request body
30+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
32+
*/
33+
post(body: BatchCleanupUserSettingsPersistenceProfilePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
34+
/**
35+
* Invoke action batchCleanupUserSettingsPersistenceProfile
36+
* @param body The request body
37+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
38+
* @returns {RequestInformation}
39+
*/
40+
toPostRequestInformation(body: BatchCleanupUserSettingsPersistenceProfilePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
41+
}
42+
/**
43+
* Creates a new instance of the appropriate class based on discriminator value
44+
* @param parseNode The parse node to use to read the discriminator value and create the object
45+
* @returns {BatchCleanupUserSettingsPersistenceProfilePostRequestBody}
46+
*/
47+
// @ts-ignore
48+
export function createBatchCleanupUserSettingsPersistenceProfilePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
49+
return deserializeIntoBatchCleanupUserSettingsPersistenceProfilePostRequestBody;
50+
}
51+
/**
52+
* The deserialization information for the current model
53+
* @param BatchCleanupUserSettingsPersistenceProfilePostRequestBody The instance to deserialize into.
54+
* @returns {Record<string, (node: ParseNode) => void>}
55+
*/
56+
// @ts-ignore
57+
export function deserializeIntoBatchCleanupUserSettingsPersistenceProfilePostRequestBody(batchCleanupUserSettingsPersistenceProfilePostRequestBody: Partial<BatchCleanupUserSettingsPersistenceProfilePostRequestBody> | undefined = {}) : Record<string, (node: ParseNode) => void> {
58+
return {
59+
"backingStoreEnabled": n => { batchCleanupUserSettingsPersistenceProfilePostRequestBody.backingStoreEnabled = true; },
60+
"cloudProfileIds": n => { batchCleanupUserSettingsPersistenceProfilePostRequestBody.cloudProfileIds = n.getCollectionOfPrimitiveValues<string>(); },
61+
"configurationId": n => { batchCleanupUserSettingsPersistenceProfilePostRequestBody.configurationId = n.getStringValue(); },
62+
}
63+
}
64+
/**
65+
* Serializes information the current object
66+
* @param BatchCleanupUserSettingsPersistenceProfilePostRequestBody The instance to serialize from.
67+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
68+
* @param writer Serialization writer to use to serialize this model
69+
*/
70+
// @ts-ignore
71+
export function serializeBatchCleanupUserSettingsPersistenceProfilePostRequestBody(writer: SerializationWriter, batchCleanupUserSettingsPersistenceProfilePostRequestBody: Partial<BatchCleanupUserSettingsPersistenceProfilePostRequestBody> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
72+
if (!batchCleanupUserSettingsPersistenceProfilePostRequestBody || isSerializingDerivedType) { return; }
73+
writer.writeCollectionOfPrimitiveValues<string>("cloudProfileIds", batchCleanupUserSettingsPersistenceProfilePostRequestBody.cloudProfileIds);
74+
writer.writeStringValue("configurationId", batchCleanupUserSettingsPersistenceProfilePostRequestBody.configurationId);
75+
writer.writeAdditionalData(batchCleanupUserSettingsPersistenceProfilePostRequestBody.additionalData);
76+
}
77+
/**
78+
* Uri template for the request builder.
79+
*/
80+
export const BatchCleanupUserSettingsPersistenceProfileRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/userSettingsPersistenceDetail/batchCleanupUserSettingsPersistenceProfile";
81+
/**
82+
* Metadata for all the requests in the request builder.
83+
*/
84+
export const BatchCleanupUserSettingsPersistenceProfileRequestBuilderRequestsMetadata: RequestsMetadata = {
85+
post: {
86+
uriTemplate: BatchCleanupUserSettingsPersistenceProfileRequestBuilderUriTemplate,
87+
responseBodyContentType: "application/json",
88+
errorMappings: {
89+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
90+
},
91+
adapterMethodName: "sendNoResponseContent",
92+
requestBodyContentType: "application/json",
93+
requestBodySerializer: serializeBatchCleanupUserSettingsPersistenceProfilePostRequestBody,
94+
requestInformationContentSetMethod: "setContentFromParsable",
95+
},
96+
};
97+
/* tslint:enable */
98+
/* eslint-enable */

0 commit comments

Comments
 (0)