Skip to content

Commit 69ef4ac

Browse files
authored
Merge pull request #624 from microsoft/gkoros/update-generated-code
Update the generated code
2 parents 7f65dcf + 8ecbaa3 commit 69ef4ac

File tree

35 files changed

+90
-112
lines changed

35 files changed

+90
-112
lines changed

packages/test/generatedCode/kiota-lock.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"descriptionHash": "63A7B8ADD7952B2A179EBEB047AE58C5A8AB3B73FAAA3D2A6B09D72D931E93D7762CE3AC8A5CFC5BD54C8C83F2494F69C5D97C2A386FB030FAFAA9CAF9AE4AF1",
2+
"descriptionHash": "62EB207442670739AD8CC097B738B54CF849D34250010E0500EF6D3D0F2DCC73EBEF5D7761047763F4977905C6FA50AB7EE5FCCAD373BD27A4DA7F0F2B7560B2",
33
"descriptionLocation": "https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/dev/openApiDocs/v1.0/Mail.yml",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.1.3",
66
"clientClassName": "ApiClient",
7-
"clientNamespaceName": "github.com/microsoftgraph/msgraph-sdk-typescript/",
7+
"clientNamespaceName": "ApiSdk",
88
"language": "TypeScript",
99
"usesBackingStore": false,
1010
"includeAdditionalData": true,
@@ -25,7 +25,5 @@
2525
],
2626
"includePatterns": [],
2727
"excludePatterns": [],
28-
"disabledValidationRules": [
29-
"all"
30-
]
28+
"disabledValidationRules": []
3129
}

packages/test/generatedCode/users/item/inferenceClassification/overrides/overridesRequestBuilder.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {BaseRequestBuilder, getPathParameters, HttpMethod, Parsable, ParsableFac
1414
*/
1515
export class OverridesRequestBuilder extends BaseRequestBuilder {
1616
/**
17-
* Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.users.item.inferenceClassification.overrides.item collection
17+
* Gets an item from the ApiSdk.users.item.inferenceClassification.overrides.item collection
1818
* @param inferenceClassificationOverrideId Unique identifier of the item
1919
* @returns a InferenceClassificationOverrideItemRequestBuilder
2020
*/
@@ -33,11 +33,10 @@ export class OverridesRequestBuilder extends BaseRequestBuilder {
3333
super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/inferenceClassification/overrides{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}");
3434
};
3535
/**
36-
* Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides.
36+
* A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable.
3737
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3838
* @param responseHandler Response handler to use in place of the default response handling provided by the core service
3939
* @returns a Promise of InferenceClassificationOverrideCollectionResponse
40-
* @see {@link https://docs.microsoft.com/graph/api/inferenceclassification-list-overrides?view=graph-rest-1.0|Find more info here}
4140
*/
4241
public get(requestConfiguration?: OverridesRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise<InferenceClassificationOverrideCollectionResponse | undefined> {
4342
const requestInfo = this.toGetRequestInformation(
@@ -46,12 +45,11 @@ export class OverridesRequestBuilder extends BaseRequestBuilder {
4645
return this.requestAdapter?.sendAsync<InferenceClassificationOverrideCollectionResponse>(requestInfo, createInferenceClassificationOverrideCollectionResponseFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null'));
4746
};
4847
/**
49-
* Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. **Note**
48+
* Create new navigation property to overrides for users
5049
* @param body The request body
5150
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5251
* @param responseHandler Response handler to use in place of the default response handling provided by the core service
5352
* @returns a Promise of InferenceClassificationOverride
54-
* @see {@link https://docs.microsoft.com/graph/api/inferenceclassification-post-overrides?view=graph-rest-1.0|Find more info here}
5553
*/
5654
public post(body: InferenceClassificationOverride | undefined, requestConfiguration?: OverridesRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise<InferenceClassificationOverride | undefined> {
5755
if(!body) throw new Error("body cannot be undefined");
@@ -61,7 +59,7 @@ export class OverridesRequestBuilder extends BaseRequestBuilder {
6159
return this.requestAdapter?.sendAsync<InferenceClassificationOverride>(requestInfo, createInferenceClassificationOverrideFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null'));
6260
};
6361
/**
64-
* Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides.
62+
* A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable.
6563
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6664
* @returns a RequestInformation
6765
*/
@@ -79,7 +77,7 @@ export class OverridesRequestBuilder extends BaseRequestBuilder {
7977
return requestInfo;
8078
};
8179
/**
82-
* Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. **Note**
80+
* Create new navigation property to overrides for users
8381
* @param body The request body
8482
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8583
* @returns a RequestInformation

packages/test/generatedCode/users/item/mailFolders/item/childFolders/childFoldersRequestBuilder.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {BaseRequestBuilder, getPathParameters, HttpMethod, Parsable, ParsableFac
1414
*/
1515
export class ChildFoldersRequestBuilder extends BaseRequestBuilder {
1616
/**
17-
* Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.users.item.mailFolders.item.childFolders.item collection
17+
* Gets an item from the ApiSdk.users.item.mailFolders.item.childFolders.item collection
1818
* @param mailFolderId1 Unique identifier of the item
1919
* @returns a MailFolderItemRequestBuilder
2020
*/
@@ -33,11 +33,10 @@ export class ChildFoldersRequestBuilder extends BaseRequestBuilder {
3333
super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}");
3434
};
3535
/**
36-
* Get the folder collection under the specified folder. You can use the `.../me/mailFolders` shortcut to get the top-level folder collection and navigate to another folder. By default, this operation does not return hidden folders. Use a query parameter _includeHiddenFolders_ to include them in the response.
36+
* The collection of child folders in the mailFolder.
3737
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3838
* @param responseHandler Response handler to use in place of the default response handling provided by the core service
3939
* @returns a Promise of MailFolderCollectionResponse
40-
* @see {@link https://docs.microsoft.com/graph/api/mailfolder-list-childfolders?view=graph-rest-1.0|Find more info here}
4140
*/
4241
public get(requestConfiguration?: ChildFoldersRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MailFolderCollectionResponse | undefined> {
4342
const requestInfo = this.toGetRequestInformation(
@@ -46,12 +45,11 @@ export class ChildFoldersRequestBuilder extends BaseRequestBuilder {
4645
return this.requestAdapter?.sendAsync<MailFolderCollectionResponse>(requestInfo, createMailFolderCollectionResponseFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null'));
4746
};
4847
/**
49-
* Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation.
48+
* Create new navigation property to childFolders for users
5049
* @param body The request body
5150
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5251
* @param responseHandler Response handler to use in place of the default response handling provided by the core service
5352
* @returns a Promise of MailFolder
54-
* @see {@link https://docs.microsoft.com/graph/api/mailfolder-post-childfolders?view=graph-rest-1.0|Find more info here}
5553
*/
5654
public post(body: MailFolder | undefined, requestConfiguration?: ChildFoldersRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MailFolder | undefined> {
5755
if(!body) throw new Error("body cannot be undefined");
@@ -61,7 +59,7 @@ export class ChildFoldersRequestBuilder extends BaseRequestBuilder {
6159
return this.requestAdapter?.sendAsync<MailFolder>(requestInfo, createMailFolderFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null'));
6260
};
6361
/**
64-
* Get the folder collection under the specified folder. You can use the `.../me/mailFolders` shortcut to get the top-level folder collection and navigate to another folder. By default, this operation does not return hidden folders. Use a query parameter _includeHiddenFolders_ to include them in the response.
62+
* The collection of child folders in the mailFolder.
6563
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6664
* @returns a RequestInformation
6765
*/
@@ -79,7 +77,7 @@ export class ChildFoldersRequestBuilder extends BaseRequestBuilder {
7977
return requestInfo;
8078
};
8179
/**
82-
* Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation.
80+
* Create new navigation property to childFolders for users
8381
* @param body The request body
8482
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8583
* @returns a RequestInformation

packages/test/generatedCode/users/item/mailFolders/item/childFolders/item/messageRules/messageRulesRequestBuilder.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {BaseRequestBuilder, getPathParameters, HttpMethod, Parsable, ParsableFac
1414
*/
1515
export class MessageRulesRequestBuilder extends BaseRequestBuilder {
1616
/**
17-
* Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.users.item.mailFolders.item.childFolders.item.messageRules.item collection
17+
* Gets an item from the ApiSdk.users.item.mailFolders.item.childFolders.item.messageRules.item collection
1818
* @param messageRuleId Unique identifier of the item
1919
* @returns a MessageRuleItemRequestBuilder
2020
*/
@@ -33,11 +33,10 @@ export class MessageRulesRequestBuilder extends BaseRequestBuilder {
3333
super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messageRules{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}");
3434
};
3535
/**
36-
* Get all the messageRule objects defined for the user's inbox.
36+
* The collection of rules that apply to the user's Inbox folder.
3737
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3838
* @param responseHandler Response handler to use in place of the default response handling provided by the core service
3939
* @returns a Promise of MessageRuleCollectionResponse
40-
* @see {@link https://docs.microsoft.com/graph/api/mailfolder-list-messagerules?view=graph-rest-1.0|Find more info here}
4140
*/
4241
public get(requestConfiguration?: MessageRulesRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MessageRuleCollectionResponse | undefined> {
4342
const requestInfo = this.toGetRequestInformation(
@@ -46,12 +45,11 @@ export class MessageRulesRequestBuilder extends BaseRequestBuilder {
4645
return this.requestAdapter?.sendAsync<MessageRuleCollectionResponse>(requestInfo, createMessageRuleCollectionResponseFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null'));
4746
};
4847
/**
49-
* Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions.
48+
* Create new navigation property to messageRules for users
5049
* @param body The request body
5150
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5251
* @param responseHandler Response handler to use in place of the default response handling provided by the core service
5352
* @returns a Promise of MessageRule
54-
* @see {@link https://docs.microsoft.com/graph/api/mailfolder-post-messagerules?view=graph-rest-1.0|Find more info here}
5553
*/
5654
public post(body: MessageRule | undefined, requestConfiguration?: MessageRulesRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise<MessageRule | undefined> {
5755
if(!body) throw new Error("body cannot be undefined");
@@ -61,7 +59,7 @@ export class MessageRulesRequestBuilder extends BaseRequestBuilder {
6159
return this.requestAdapter?.sendAsync<MessageRule>(requestInfo, createMessageRuleFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null'));
6260
};
6361
/**
64-
* Get all the messageRule objects defined for the user's inbox.
62+
* The collection of rules that apply to the user's Inbox folder.
6563
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6664
* @returns a RequestInformation
6765
*/
@@ -79,7 +77,7 @@ export class MessageRulesRequestBuilder extends BaseRequestBuilder {
7977
return requestInfo;
8078
};
8179
/**
82-
* Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions.
80+
* Create new navigation property to messageRules for users
8381
* @param body The request body
8482
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8583
* @returns a RequestInformation

packages/test/generatedCode/users/item/mailFolders/item/childFolders/item/messages/item/attachments/attachmentsRequestBuilder.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {BaseRequestBuilder, getPathParameters, HttpMethod, Parsable, ParsableFac
1414
*/
1515
export class AttachmentsRequestBuilder extends BaseRequestBuilder {
1616
/**
17-
* Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.users.item.mailFolders.item.childFolders.item.messages.item.attachments.item collection
17+
* Gets an item from the ApiSdk.users.item.mailFolders.item.childFolders.item.messages.item.attachments.item collection
1818
* @param attachmentId Unique identifier of the item
1919
* @returns a AttachmentItemRequestBuilder
2020
*/
@@ -33,11 +33,10 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder {
3333
super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}");
3434
};
3535
/**
36-
* Retrieve a list of attachment objects.
36+
* The fileAttachment and itemAttachment attachments for the message.
3737
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3838
* @param responseHandler Response handler to use in place of the default response handling provided by the core service
3939
* @returns a Promise of AttachmentCollectionResponse
40-
* @see {@link https://docs.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0|Find more info here}
4140
*/
4241
public get(requestConfiguration?: AttachmentsRequestBuilderGetRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise<AttachmentCollectionResponse | undefined> {
4342
const requestInfo = this.toGetRequestInformation(
@@ -46,12 +45,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder {
4645
return this.requestAdapter?.sendAsync<AttachmentCollectionResponse>(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null'));
4746
};
4847
/**
49-
* Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
48+
* Create new navigation property to attachments for users
5049
* @param body The request body
5150
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5251
* @param responseHandler Response handler to use in place of the default response handling provided by the core service
5352
* @returns a Promise of Attachment
54-
* @see {@link https://docs.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here}
5553
*/
5654
public post(body: Attachment | undefined, requestConfiguration?: AttachmentsRequestBuilderPostRequestConfiguration | undefined, responseHandler?: ResponseHandler | undefined) : Promise<Attachment | undefined> {
5755
if(!body) throw new Error("body cannot be undefined");
@@ -61,7 +59,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder {
6159
return this.requestAdapter?.sendAsync<Attachment>(requestInfo, createAttachmentFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('request adapter is null'));
6260
};
6361
/**
64-
* Retrieve a list of attachment objects.
62+
* The fileAttachment and itemAttachment attachments for the message.
6563
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6664
* @returns a RequestInformation
6765
*/
@@ -79,7 +77,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder {
7977
return requestInfo;
8078
};
8179
/**
82-
* Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.
80+
* Create new navigation property to attachments for users
8381
* @param body The request body
8482
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8583
* @returns a RequestInformation

0 commit comments

Comments
 (0)