From 974a7b4da6c0d622b827f14b21661b8cc752fb62 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 9 Jun 2021 15:11:08 -0400 Subject: [PATCH 01/11] - code-gen: accessors for typescript --- msgraph-mail/typescript/src/apiClient.ts | 57 +- .../typescript/src/users/attachment.ts | 83 ++- .../typescript/src/users/dateTimeTimeZone.ts | 51 +- .../typescript/src/users/emailAddress.ts | 51 +- msgraph-mail/typescript/src/users/entity.ts | 35 +- .../typescript/src/users/extension.ts | 3 +- .../typescript/src/users/followupFlag.ts | 83 ++- .../inferenceClassification.ts | 19 +- .../inferenceClassificationOverride.ts | 35 +- .../inferenceClassificationRequestBuilder.ts | 63 ++- ...nceClassificationOverrideRequestBuilder.ts | 63 ++- .../overrides/overridesRequestBuilder.ts | 61 ++- .../overrides/overridesResponse.ts | 51 +- .../src/users/internetMessageHeader.ts | 51 +- .../src/users/item/userRequestBuilder.ts | 57 +- msgraph-mail/typescript/src/users/itemBody.ts | 51 +- .../typescript/src/users/mailFolder.ts | 179 ++++++- .../childFoldersRequestBuilder.ts | 61 ++- .../childFolders/childFoldersResponse.ts | 51 +- .../item/mailFolderRequestBuilder.ts | 63 ++- .../item/mailFolderRequestBuilder.ts | 63 ++- .../mailFolders/mailFoldersRequestBuilder.ts | 61 ++- .../users/mailFolders/mailFoldersResponse.ts | 51 +- .../users/mailFolders/messageRuleActions.ts | 195 ++++++- .../mailFolders/messageRulePredicates.ts | 499 ++++++++++++++++-- .../item/messageRuleRequestBuilder.ts | 63 ++- .../messageRulesRequestBuilder.ts | 61 ++- .../messageRules/messageRulesResponse.ts | 51 +- .../attachments/attachmentsRequestBuilder.ts | 61 ++- .../attachments/attachmentsResponse.ts | 51 +- .../item/attachmentRequestBuilder.ts | 63 ++- .../messages/content/contentRequestBuilder.ts | 62 ++- .../extensions/extensionsRequestBuilder.ts | 61 ++- .../messages/extensions/extensionsResponse.ts | 51 +- .../item/extensionRequestBuilder.ts | 63 ++- .../messages/item/messageRequestBuilder.ts | 63 ++- .../messages/messagesRequestBuilder.ts | 61 ++- .../mailFolders/messages/messagesResponse.ts | 51 +- ...lueLegacyExtendedPropertyRequestBuilder.ts | 63 ++- ...tiValueExtendedPropertiesRequestBuilder.ts | 61 ++- .../multiValueExtendedPropertiesResponse.ts | 51 +- ...lueLegacyExtendedPropertyRequestBuilder.ts | 63 ++- ...leValueExtendedPropertiesRequestBuilder.ts | 61 ++- .../singleValueExtendedPropertiesResponse.ts | 51 +- ...lueLegacyExtendedPropertyRequestBuilder.ts | 63 ++- ...tiValueExtendedPropertiesRequestBuilder.ts | 61 ++- .../multiValueExtendedPropertiesResponse.ts | 51 +- ...lueLegacyExtendedPropertyRequestBuilder.ts | 63 ++- ...leValueExtendedPropertiesRequestBuilder.ts | 61 ++- .../singleValueExtendedPropertiesResponse.ts | 51 +- .../src/users/mailFolders/sizeRange.ts | 51 +- msgraph-mail/typescript/src/users/message.ts | 483 +++++++++++++++-- .../typescript/src/users/messageRule.ts | 131 ++++- .../attachments/attachmentsRequestBuilder.ts | 61 ++- .../attachments/attachmentsResponse.ts | 51 +- .../item/attachmentRequestBuilder.ts | 63 ++- .../messages/content/contentRequestBuilder.ts | 62 ++- .../extensions/extensionsRequestBuilder.ts | 61 ++- .../messages/extensions/extensionsResponse.ts | 51 +- .../item/extensionRequestBuilder.ts | 63 ++- .../messages/item/messageRequestBuilder.ts | 63 ++- .../users/messages/messagesRequestBuilder.ts | 61 ++- .../src/users/messages/messagesResponse.ts | 51 +- ...lueLegacyExtendedPropertyRequestBuilder.ts | 63 ++- ...tiValueExtendedPropertiesRequestBuilder.ts | 61 ++- .../multiValueExtendedPropertiesResponse.ts | 51 +- ...lueLegacyExtendedPropertyRequestBuilder.ts | 63 ++- ...leValueExtendedPropertiesRequestBuilder.ts | 61 ++- .../singleValueExtendedPropertiesResponse.ts | 51 +- .../users/multiValueLegacyExtendedProperty.ts | 19 +- .../typescript/src/users/outlookItem.ts | 67 ++- .../typescript/src/users/recipient.ts | 35 +- .../singleValueLegacyExtendedProperty.ts | 19 +- .../src/users/usersRequestBuilder.ts | 57 +- 74 files changed, 4790 insertions(+), 508 deletions(-) diff --git a/msgraph-mail/typescript/src/apiClient.ts b/msgraph-mail/typescript/src/apiClient.ts index 4199cf5c4..d056f0630 100644 --- a/msgraph-mail/typescript/src/apiClient.ts +++ b/msgraph-mail/typescript/src/apiClient.ts @@ -5,13 +5,13 @@ import {UsersRequestBuilder} from './users/usersRequestBuilder'; /** The main entry point of the SDK, exposes the configuration and the fluent API. */ export class ApiClient { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "https://graph.microsoft.com/v1.0"; + private readonly _pathSegment: string = "https://graph.microsoft.com/v1.0"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; public get users(): UsersRequestBuilder { const builder = new UsersRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -19,6 +19,55 @@ export class ApiClient { builder.serializerFactory = this.serializerFactory; return builder; } + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; /** * Gets an item from the graphtypescriptv4.utilities.users collection * @param id Unique identifier of the item diff --git a/msgraph-mail/typescript/src/users/attachment.ts b/msgraph-mail/typescript/src/users/attachment.ts index 931569ae3..a0bf99abc 100644 --- a/msgraph-mail/typescript/src/users/attachment.ts +++ b/msgraph-mail/typescript/src/users/attachment.ts @@ -3,15 +3,50 @@ import {Entity} from './entity'; export class Attachment extends Entity implements Parsable { /** The MIME type. */ - public contentType?: string | undefined; + private _contentType?: string | undefined; /** true if the attachment is an inline attachment; otherwise, false. */ - public isInline?: boolean | undefined; + private _isInline?: boolean | undefined; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - public lastModifiedDateTime?: Date | undefined; + private _lastModifiedDateTime?: Date | undefined; /** The display name of the attachment. This does not need to be the actual file name. */ - public name?: string | undefined; + private _name?: string | undefined; /** The length of the attachment in bytes. */ - public size?: number | undefined; + private _size?: number | undefined; + /** + * Gets the contentType property value. The MIME type. + * @returns a string + */ + public get contentType () { + return this._contentType; + }; + /** + * Gets the isInline property value. true if the attachment is an inline attachment; otherwise, false. + * @returns a boolean + */ + public get isInline () { + return this._isInline; + }; + /** + * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @returns a Date + */ + public get lastModifiedDateTime () { + return this._lastModifiedDateTime; + }; + /** + * Gets the name property value. The display name of the attachment. This does not need to be the actual file name. + * @returns a string + */ + public get name () { + return this._name; + }; + /** + * Gets the size property value. The length of the attachment in bytes. + * @returns a integer + */ + public get size () { + return this._size; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -26,9 +61,8 @@ export class Attachment extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); @@ -38,4 +72,39 @@ export class Attachment extends Entity implements Parsable { writer.writeStringValue("name", this.name); writer.writeNumberValue("size", this.size); }; + /** + * Sets the contentType property value. The MIME type. + * @param value Value to set for the contentType property. + */ + public set contentType (value: string | undefined) { + this._contentType = value; + }; + /** + * Sets the isInline property value. true if the attachment is an inline attachment; otherwise, false. + * @param value Value to set for the isInline property. + */ + public set isInline (value: boolean | undefined) { + this._isInline = value; + }; + /** + * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the lastModifiedDateTime property. + */ + public set lastModifiedDateTime (value: Date | undefined) { + this._lastModifiedDateTime = value; + }; + /** + * Sets the name property value. The display name of the attachment. This does not need to be the actual file name. + * @param value Value to set for the name property. + */ + public set name (value: string | undefined) { + this._name = value; + }; + /** + * Sets the size property value. The length of the attachment in bytes. + * @param value Value to set for the size property. + */ + public set size (value: number | undefined) { + this._size = value; + }; } diff --git a/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts b/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts index 561b5b9d3..30a50e9c7 100644 --- a/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts +++ b/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts @@ -2,11 +2,32 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class DateTimeTimeZone implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map = new Map(); /** A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. */ - public dateTime?: string | undefined; + private _dateTime?: string | undefined; /** Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. */ - public timeZone?: string | undefined; + private _timeZone?: string | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. + * @returns a string + */ + public get dateTime () { + return this._dateTime; + }; + /** + * Gets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. + * @returns a string + */ + public get timeZone () { + return this._timeZone; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -18,13 +39,33 @@ export class DateTimeTimeZone implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("dateTime", this.dateTime); writer.writeStringValue("timeZone", this.timeZone); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. + * @param value Value to set for the dateTime property. + */ + public set dateTime (value: string | undefined) { + this._dateTime = value; + }; + /** + * Sets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. + * @param value Value to set for the timeZone property. + */ + public set timeZone (value: string | undefined) { + this._timeZone = value; + }; } diff --git a/msgraph-mail/typescript/src/users/emailAddress.ts b/msgraph-mail/typescript/src/users/emailAddress.ts index 5a297bbc6..80bf560d8 100644 --- a/msgraph-mail/typescript/src/users/emailAddress.ts +++ b/msgraph-mail/typescript/src/users/emailAddress.ts @@ -2,11 +2,32 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class EmailAddress implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map = new Map(); /** The email address of an entity instance. */ - public address?: string | undefined; + private _address?: string | undefined; /** The display name of an entity instance. */ - public name?: string | undefined; + private _name?: string | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the address property value. The email address of an entity instance. + * @returns a string + */ + public get address () { + return this._address; + }; + /** + * Gets the name property value. The display name of an entity instance. + * @returns a string + */ + public get name () { + return this._name; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -18,13 +39,33 @@ export class EmailAddress implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("address", this.address); writer.writeStringValue("name", this.name); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the address property value. The email address of an entity instance. + * @param value Value to set for the address property. + */ + public set address (value: string | undefined) { + this._address = value; + }; + /** + * Sets the name property value. The display name of an entity instance. + * @param value Value to set for the name property. + */ + public set name (value: string | undefined) { + this._name = value; + }; } diff --git a/msgraph-mail/typescript/src/users/entity.ts b/msgraph-mail/typescript/src/users/entity.ts index abfa20244..858dbae8a 100644 --- a/msgraph-mail/typescript/src/users/entity.ts +++ b/msgraph-mail/typescript/src/users/entity.ts @@ -2,9 +2,23 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class Entity implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map = new Map(); /** Read-only. */ - public id?: string | undefined; + private _id?: string | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the id property value. Read-only. + * @returns a string + */ + public get id () { + return this._id; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -15,12 +29,25 @@ export class Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("id", this.id); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the id property value. Read-only. + * @param value Value to set for the id property. + */ + public set id (value: string | undefined) { + this._id = value; + }; } diff --git a/msgraph-mail/typescript/src/users/extension.ts b/msgraph-mail/typescript/src/users/extension.ts index 4bcb0c174..97778b2bc 100644 --- a/msgraph-mail/typescript/src/users/extension.ts +++ b/msgraph-mail/typescript/src/users/extension.ts @@ -11,9 +11,8 @@ export class Extension extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); diff --git a/msgraph-mail/typescript/src/users/followupFlag.ts b/msgraph-mail/typescript/src/users/followupFlag.ts index 58ad0d6bb..d54b49d0e 100644 --- a/msgraph-mail/typescript/src/users/followupFlag.ts +++ b/msgraph-mail/typescript/src/users/followupFlag.ts @@ -4,11 +4,46 @@ import {FollowupFlagStatus} from './followupFlagStatus'; export class FollowupFlag implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public completedDateTime?: DateTimeTimeZone | undefined; - public dueDateTime?: DateTimeTimeZone | undefined; - public flagStatus?: FollowupFlagStatus | undefined; - public startDateTime?: DateTimeTimeZone | undefined; + private _additionalData: Map = new Map(); + private _completedDateTime?: DateTimeTimeZone | undefined; + private _dueDateTime?: DateTimeTimeZone | undefined; + private _flagStatus?: FollowupFlagStatus | undefined; + private _startDateTime?: DateTimeTimeZone | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the completedDateTime property value. + * @returns a dateTimeTimeZone + */ + public get completedDateTime () { + return this._completedDateTime; + }; + /** + * Gets the dueDateTime property value. + * @returns a dateTimeTimeZone + */ + public get dueDateTime () { + return this._dueDateTime; + }; + /** + * Gets the flagStatus property value. + * @returns a followupFlagStatus + */ + public get flagStatus () { + return this._flagStatus; + }; + /** + * Gets the startDateTime property value. + * @returns a dateTimeTimeZone + */ + public get startDateTime () { + return this._startDateTime; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -22,9 +57,8 @@ export class FollowupFlag implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeObjectValue("completedDateTime", this.completedDateTime); @@ -33,4 +67,39 @@ export class FollowupFlag implements Parsable { writer.writeObjectValue("startDateTime", this.startDateTime); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the completedDateTime property value. + * @param value Value to set for the completedDateTime property. + */ + public set completedDateTime (value: DateTimeTimeZone | undefined) { + this._completedDateTime = value; + }; + /** + * Sets the dueDateTime property value. + * @param value Value to set for the dueDateTime property. + */ + public set dueDateTime (value: DateTimeTimeZone | undefined) { + this._dueDateTime = value; + }; + /** + * Sets the flagStatus property value. + * @param value Value to set for the flagStatus property. + */ + public set flagStatus (value: FollowupFlagStatus | undefined) { + this._flagStatus = value; + }; + /** + * Sets the startDateTime property value. + * @param value Value to set for the startDateTime property. + */ + public set startDateTime (value: DateTimeTimeZone | undefined) { + this._startDateTime = value; + }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts index 41139fc92..8165c48a8 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts @@ -4,7 +4,14 @@ import {InferenceClassificationOverride} from './inferenceClassificationOverride export class InferenceClassification extends Entity implements Parsable { /** A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. */ - public overrides?: InferenceClassificationOverride[] | undefined; + private _overrides?: InferenceClassificationOverride[] | undefined; + /** + * Gets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. + * @returns a inferenceClassificationOverride + */ + public get overrides () { + return this._overrides; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -15,12 +22,18 @@ export class InferenceClassification extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfObjectValues("overrides", this.overrides); }; + /** + * Sets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. + * @param value Value to set for the overrides property. + */ + public set overrides (value: InferenceClassificationOverride[] | undefined) { + this._overrides = value; + }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts index 21a445dcf..92fed4018 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts @@ -4,8 +4,22 @@ import {Entity} from '../entity'; import {InferenceClassificationType} from '../inferenceClassificationType'; export class InferenceClassificationOverride extends Entity implements Parsable { - public classifyAs?: InferenceClassificationType | undefined; - public senderEmailAddress?: EmailAddress | undefined; + private _classifyAs?: InferenceClassificationType | undefined; + private _senderEmailAddress?: EmailAddress | undefined; + /** + * Gets the classifyAs property value. + * @returns a inferenceClassificationType + */ + public get classifyAs () { + return this._classifyAs; + }; + /** + * Gets the senderEmailAddress property value. + * @returns a emailAddress + */ + public get senderEmailAddress () { + return this._senderEmailAddress; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +31,26 @@ export class InferenceClassificationOverride extends Entity implements Parsable ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); writer.writeEnumValue("classifyAs", this.classifyAs); writer.writeObjectValue("senderEmailAddress", this.senderEmailAddress); }; + /** + * Sets the classifyAs property value. + * @param value Value to set for the classifyAs property. + */ + public set classifyAs (value: InferenceClassificationType | undefined) { + this._classifyAs = value; + }; + /** + * Sets the senderEmailAddress property value. + * @param value Value to set for the senderEmailAddress property. + */ + public set senderEmailAddress (value: EmailAddress | undefined) { + this._senderEmailAddress = value; + }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts index f1a4c6287..6b2d7d04a 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts @@ -6,9 +6,9 @@ import {OverridesRequestBuilder} from './overrides/overridesRequestBuilder'; /** Builds and executes requests for operations under /users/{user-id}/inferenceClassification */ export class InferenceClassificationRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; public get overrides(): OverridesRequestBuilder { const builder = new OverridesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -17,9 +17,9 @@ export class InferenceClassificationRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/inferenceClassification"; + private readonly _pathSegment: string = "/inferenceClassification"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property inferenceClassification for users * @param h Request headers @@ -55,7 +55,7 @@ export class InferenceClassificationRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: InferenceClassification, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: InferenceClassification | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -67,7 +67,6 @@ export class InferenceClassificationRequestBuilder { * Delete navigation property inferenceClassification for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -91,6 +90,34 @@ export class InferenceClassificationRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, InferenceClassification, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Gets an item from the graphtypescriptv4.utilities.users.inferenceClassification.overrides collection * @param id Unique identifier of the item @@ -108,12 +135,32 @@ export class InferenceClassificationRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: InferenceClassification, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: InferenceClassification | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts index 19bf74d7b..960fc4e95 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts @@ -4,13 +4,13 @@ import {InferenceClassificationOverride} from '../../inferenceClassificationOver /** Builds and executes requests for operations under /users/{user-id}/inferenceClassification/overrides/{inferenceClassificationOverride-id} */ export class InferenceClassificationOverrideRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property overrides for users * @param h Request headers @@ -46,7 +46,7 @@ export class InferenceClassificationOverrideRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: InferenceClassificationOverride, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: InferenceClassificationOverride | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class InferenceClassificationOverrideRequestBuilder { * Delete navigation property overrides for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class InferenceClassificationOverrideRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, InferenceClassificationOverride, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property overrides in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: InferenceClassificationOverride, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: InferenceClassificationOverride | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts index 12dde9323..a3a4852f0 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts @@ -5,13 +5,13 @@ import {OverridesResponse} from './overridesResponse'; /** Builds and executes requests for operations under /users/{user-id}/inferenceClassification/overrides */ export class OverridesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/overrides"; + private readonly _pathSegment: string = "/overrides"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get overrides from users * @param h Request headers @@ -41,7 +41,7 @@ export class OverridesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: InferenceClassificationOverride, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: InferenceClassificationOverride | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class OverridesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, OverridesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to overrides for users * @param body @@ -78,10 +106,31 @@ export class OverridesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of InferenceClassificationOverride */ - public post (body: InferenceClassificationOverride, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: InferenceClassificationOverride | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, InferenceClassificationOverride, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts index dc5e04f49..3c06f9367 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts @@ -3,9 +3,30 @@ import {InferenceClassificationOverride} from '../inferenceClassificationOverrid export class OverridesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: InferenceClassificationOverride[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: InferenceClassificationOverride[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a inferenceClassificationOverride + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class OverridesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: InferenceClassificationOverride[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/internetMessageHeader.ts b/msgraph-mail/typescript/src/users/internetMessageHeader.ts index 7395d969c..0f3b25417 100644 --- a/msgraph-mail/typescript/src/users/internetMessageHeader.ts +++ b/msgraph-mail/typescript/src/users/internetMessageHeader.ts @@ -2,11 +2,32 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class InternetMessageHeader implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map = new Map(); /** Represents the key in a key-value pair. */ - public name?: string | undefined; + private _name?: string | undefined; /** The value in a key-value pair. */ - public value?: string | undefined; + private _value?: string | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the name property value. Represents the key in a key-value pair. + * @returns a string + */ + public get name () { + return this._name; + }; + /** + * Gets the value property value. The value in a key-value pair. + * @returns a string + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -18,13 +39,33 @@ export class InternetMessageHeader implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("name", this.name); writer.writeStringValue("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the name property value. Represents the key in a key-value pair. + * @param value Value to set for the name property. + */ + public set name (value: string | undefined) { + this._name = value; + }; + /** + * Sets the value property value. The value in a key-value pair. + * @param value Value to set for the value property. + */ + public set value (value: string | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts b/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts index 10b9a88ae..23ccbcabb 100644 --- a/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts @@ -8,9 +8,9 @@ import {MessagesRequestBuilder} from '../messages/messagesRequestBuilder'; /** Builds and executes requests for operations under /users/{user-id} */ export class UserRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; public get inferenceClassification(): InferenceClassificationRequestBuilder { const builder = new InferenceClassificationRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -33,9 +33,37 @@ export class UserRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders collection * @param id Unique identifier of the item @@ -60,4 +88,25 @@ export class UserRequestBuilder { builder.serializerFactory = this.serializerFactory; return builder; }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/itemBody.ts b/msgraph-mail/typescript/src/users/itemBody.ts index 0d3603930..6f61f7cb8 100644 --- a/msgraph-mail/typescript/src/users/itemBody.ts +++ b/msgraph-mail/typescript/src/users/itemBody.ts @@ -3,10 +3,31 @@ import {BodyType} from './bodyType'; export class ItemBody implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map = new Map(); /** The content of the item. */ - public content?: string | undefined; - public contentType?: BodyType | undefined; + private _content?: string | undefined; + private _contentType?: BodyType | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the content property value. The content of the item. + * @returns a string + */ + public get content () { + return this._content; + }; + /** + * Gets the contentType property value. + * @returns a bodyType + */ + public get contentType () { + return this._contentType; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -18,13 +39,33 @@ export class ItemBody implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("content", this.content); writer.writeEnumValue("contentType", this.contentType); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the content property value. The content of the item. + * @param value Value to set for the content property. + */ + public set content (value: string | undefined) { + this._content = value; + }; + /** + * Sets the contentType property value. + * @param value Value to set for the contentType property. + */ + public set contentType (value: BodyType | undefined) { + this._contentType = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolder.ts b/msgraph-mail/typescript/src/users/mailFolder.ts index d114b9b14..8a3bf35b7 100644 --- a/msgraph-mail/typescript/src/users/mailFolder.ts +++ b/msgraph-mail/typescript/src/users/mailFolder.ts @@ -7,27 +7,104 @@ import {SingleValueLegacyExtendedProperty} from './singleValueLegacyExtendedProp export class MailFolder extends Entity implements Parsable { /** The number of immediate child mailFolders in the current mailFolder. */ - public childFolderCount?: number | undefined; + private _childFolderCount?: number | undefined; /** The collection of child folders in the mailFolder. */ - public childFolders?: MailFolder[] | undefined; + private _childFolders?: MailFolder[] | undefined; /** The mailFolder's display name. */ - public displayName?: string | undefined; + private _displayName?: string | undefined; /** Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. */ - public isHidden?: boolean | undefined; + private _isHidden?: boolean | undefined; /** The collection of rules that apply to the user's Inbox folder. */ - public messageRules?: MessageRule[] | undefined; + private _messageRules?: MessageRule[] | undefined; /** The collection of messages in the mailFolder. */ - public messages?: Message[] | undefined; + private _messages?: Message[] | undefined; /** The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. */ - public multiValueExtendedProperties?: MultiValueLegacyExtendedProperty[] | undefined; + private _multiValueExtendedProperties?: MultiValueLegacyExtendedProperty[] | undefined; /** The unique identifier for the mailFolder's parent mailFolder. */ - public parentFolderId?: string | undefined; + private _parentFolderId?: string | undefined; /** The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. */ - public singleValueExtendedProperties?: SingleValueLegacyExtendedProperty[] | undefined; + private _singleValueExtendedProperties?: SingleValueLegacyExtendedProperty[] | undefined; /** The number of items in the mailFolder. */ - public totalItemCount?: number | undefined; + private _totalItemCount?: number | undefined; /** The number of items in the mailFolder marked as unread. */ - public unreadItemCount?: number | undefined; + private _unreadItemCount?: number | undefined; + /** + * Gets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. + * @returns a integer + */ + public get childFolderCount () { + return this._childFolderCount; + }; + /** + * Gets the childFolders property value. The collection of child folders in the mailFolder. + * @returns a mailFolder + */ + public get childFolders () { + return this._childFolders; + }; + /** + * Gets the displayName property value. The mailFolder's display name. + * @returns a string + */ + public get displayName () { + return this._displayName; + }; + /** + * Gets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. + * @returns a boolean + */ + public get isHidden () { + return this._isHidden; + }; + /** + * Gets the messageRules property value. The collection of rules that apply to the user's Inbox folder. + * @returns a messageRule + */ + public get messageRules () { + return this._messageRules; + }; + /** + * Gets the messages property value. The collection of messages in the mailFolder. + * @returns a message + */ + public get messages () { + return this._messages; + }; + /** + * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. + * @returns a multiValueLegacyExtendedProperty + */ + public get multiValueExtendedProperties () { + return this._multiValueExtendedProperties; + }; + /** + * Gets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. + * @returns a string + */ + public get parentFolderId () { + return this._parentFolderId; + }; + /** + * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. + * @returns a singleValueLegacyExtendedProperty + */ + public get singleValueExtendedProperties () { + return this._singleValueExtendedProperties; + }; + /** + * Gets the totalItemCount property value. The number of items in the mailFolder. + * @returns a integer + */ + public get totalItemCount () { + return this._totalItemCount; + }; + /** + * Gets the unreadItemCount property value. The number of items in the mailFolder marked as unread. + * @returns a integer + */ + public get unreadItemCount () { + return this._unreadItemCount; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -48,9 +125,8 @@ export class MailFolder extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); @@ -66,4 +142,81 @@ export class MailFolder extends Entity implements Parsable { writer.writeNumberValue("totalItemCount", this.totalItemCount); writer.writeNumberValue("unreadItemCount", this.unreadItemCount); }; + /** + * Sets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. + * @param value Value to set for the childFolderCount property. + */ + public set childFolderCount (value: number | undefined) { + this._childFolderCount = value; + }; + /** + * Sets the childFolders property value. The collection of child folders in the mailFolder. + * @param value Value to set for the childFolders property. + */ + public set childFolders (value: MailFolder[] | undefined) { + this._childFolders = value; + }; + /** + * Sets the displayName property value. The mailFolder's display name. + * @param value Value to set for the displayName property. + */ + public set displayName (value: string | undefined) { + this._displayName = value; + }; + /** + * Sets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. + * @param value Value to set for the isHidden property. + */ + public set isHidden (value: boolean | undefined) { + this._isHidden = value; + }; + /** + * Sets the messageRules property value. The collection of rules that apply to the user's Inbox folder. + * @param value Value to set for the messageRules property. + */ + public set messageRules (value: MessageRule[] | undefined) { + this._messageRules = value; + }; + /** + * Sets the messages property value. The collection of messages in the mailFolder. + * @param value Value to set for the messages property. + */ + public set messages (value: Message[] | undefined) { + this._messages = value; + }; + /** + * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. + * @param value Value to set for the multiValueExtendedProperties property. + */ + public set multiValueExtendedProperties (value: MultiValueLegacyExtendedProperty[] | undefined) { + this._multiValueExtendedProperties = value; + }; + /** + * Sets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. + * @param value Value to set for the parentFolderId property. + */ + public set parentFolderId (value: string | undefined) { + this._parentFolderId = value; + }; + /** + * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. + * @param value Value to set for the singleValueExtendedProperties property. + */ + public set singleValueExtendedProperties (value: SingleValueLegacyExtendedProperty[] | undefined) { + this._singleValueExtendedProperties = value; + }; + /** + * Sets the totalItemCount property value. The number of items in the mailFolder. + * @param value Value to set for the totalItemCount property. + */ + public set totalItemCount (value: number | undefined) { + this._totalItemCount = value; + }; + /** + * Sets the unreadItemCount property value. The number of items in the mailFolder marked as unread. + * @param value Value to set for the unreadItemCount property. + */ + public set unreadItemCount (value: number | undefined) { + this._unreadItemCount = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts index 18329b153..918ac2ab3 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts @@ -5,13 +5,13 @@ import {ChildFoldersResponse} from './childFoldersResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/childFolders */ export class ChildFoldersRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/childFolders"; + private readonly _pathSegment: string = "/childFolders"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get childFolders from users * @param h Request headers @@ -41,7 +41,7 @@ export class ChildFoldersRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MailFolder, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class ChildFoldersRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, ChildFoldersResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to childFolders for users * @param body @@ -78,10 +106,31 @@ export class ChildFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public post (body: MailFolder, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, MailFolder, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts index a1f209358..d5d44b298 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts @@ -3,9 +3,30 @@ import {MailFolder} from '../../mailFolder'; export class ChildFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MailFolder[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: MailFolder[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a mailFolder + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class ChildFoldersResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: MailFolder[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts index b80adbfb0..82de61772 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts @@ -4,13 +4,13 @@ import {MailFolder} from '../../../mailFolder'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1} */ export class MailFolderRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property childFolders for users * @param h Request headers @@ -46,7 +46,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MailFolder, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class MailFolderRequestBuilder { * Delete navigation property childFolders for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class MailFolderRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MailFolder, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property childFolders in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MailFolder, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts index 86fe38602..d8d2ad750 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts @@ -20,9 +20,9 @@ export class MailFolderRequestBuilder { return builder; } /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; public get messageRules(): MessageRulesRequestBuilder { const builder = new MessageRulesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -45,9 +45,9 @@ export class MailFolderRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { const builder = new SingleValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -102,7 +102,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MailFolder, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -114,7 +114,6 @@ export class MailFolderRequestBuilder { * Delete navigation property mailFolders for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -138,6 +137,34 @@ export class MailFolderRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MailFolder, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders.messageRules collection * @param id Unique identifier of the item @@ -179,14 +206,34 @@ export class MailFolderRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MailFolder, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders.singleValueExtendedProperties collection * @param id Unique identifier of the item diff --git a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts index 7114c71c0..9ce925ebb 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts @@ -5,13 +5,13 @@ import {MailFoldersResponse} from './mailFoldersResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders */ export class MailFoldersRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/mailFolders"; + private readonly _pathSegment: string = "/mailFolders"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get mailFolders from users * @param h Request headers @@ -41,7 +41,7 @@ export class MailFoldersRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MailFolder, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class MailFoldersRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MailFoldersResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to mailFolders for users * @param body @@ -78,10 +106,31 @@ export class MailFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public post (body: MailFolder, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, MailFolder, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts index 441d42693..9bbaecacd 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts @@ -3,9 +3,30 @@ import {MailFolder} from '../mailFolder'; export class MailFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MailFolder[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: MailFolder[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a mailFolder + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class MailFoldersResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: MailFolder[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts index 2529f98c6..4001fbf0b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts @@ -4,28 +4,112 @@ import {Recipient} from '../recipient'; export class MessageRuleActions implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map = new Map(); /** A list of categories to be assigned to a message. */ - public assignCategories?: string[] | undefined; + private _assignCategories?: string[] | undefined; /** The ID of a folder that a message is to be copied to. */ - public copyToFolder?: string | undefined; + private _copyToFolder?: string | undefined; /** Indicates whether a message should be moved to the Deleted Items folder. */ - public delete?: boolean | undefined; + private _delete?: boolean | undefined; /** The email addresses of the recipients to which a message should be forwarded as an attachment. */ - public forwardAsAttachmentTo?: Recipient[] | undefined; + private _forwardAsAttachmentTo?: Recipient[] | undefined; /** The email addresses of the recipients to which a message should be forwarded. */ - public forwardTo?: Recipient[] | undefined; + private _forwardTo?: Recipient[] | undefined; /** Indicates whether a message should be marked as read. */ - public markAsRead?: boolean | undefined; - public markImportance?: Importance | undefined; + private _markAsRead?: boolean | undefined; + private _markImportance?: Importance | undefined; /** The ID of the folder that a message will be moved to. */ - public moveToFolder?: string | undefined; + private _moveToFolder?: string | undefined; /** Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. */ - public permanentDelete?: boolean | undefined; + private _permanentDelete?: boolean | undefined; /** The email address to which a message should be redirected. */ - public redirectTo?: Recipient[] | undefined; + private _redirectTo?: Recipient[] | undefined; /** Indicates whether subsequent rules should be evaluated. */ - public stopProcessingRules?: boolean | undefined; + private _stopProcessingRules?: boolean | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the assignCategories property value. A list of categories to be assigned to a message. + * @returns a string + */ + public get assignCategories () { + return this._assignCategories; + }; + /** + * Gets the copyToFolder property value. The ID of a folder that a message is to be copied to. + * @returns a string + */ + public get copyToFolder () { + return this._copyToFolder; + }; + /** + * Gets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. + * @returns a boolean + */ + public get delete () { + return this._delete; + }; + /** + * Gets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. + * @returns a recipient + */ + public get forwardAsAttachmentTo () { + return this._forwardAsAttachmentTo; + }; + /** + * Gets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. + * @returns a recipient + */ + public get forwardTo () { + return this._forwardTo; + }; + /** + * Gets the markAsRead property value. Indicates whether a message should be marked as read. + * @returns a boolean + */ + public get markAsRead () { + return this._markAsRead; + }; + /** + * Gets the markImportance property value. + * @returns a importance + */ + public get markImportance () { + return this._markImportance; + }; + /** + * Gets the moveToFolder property value. The ID of the folder that a message will be moved to. + * @returns a string + */ + public get moveToFolder () { + return this._moveToFolder; + }; + /** + * Gets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. + * @returns a boolean + */ + public get permanentDelete () { + return this._permanentDelete; + }; + /** + * Gets the redirectTo property value. The email address to which a message should be redirected. + * @returns a recipient + */ + public get redirectTo () { + return this._redirectTo; + }; + /** + * Gets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. + * @returns a boolean + */ + public get stopProcessingRules () { + return this._stopProcessingRules; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -46,9 +130,8 @@ export class MessageRuleActions implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeCollectionOfPrimitiveValues("assignCategories", this.assignCategories); @@ -64,4 +147,88 @@ export class MessageRuleActions implements Parsable { writer.writeBooleanValue("stopProcessingRules", this.stopProcessingRules); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the assignCategories property value. A list of categories to be assigned to a message. + * @param value Value to set for the assignCategories property. + */ + public set assignCategories (value: string[] | undefined) { + this._assignCategories = value; + }; + /** + * Sets the copyToFolder property value. The ID of a folder that a message is to be copied to. + * @param value Value to set for the copyToFolder property. + */ + public set copyToFolder (value: string | undefined) { + this._copyToFolder = value; + }; + /** + * Sets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. + * @param value Value to set for the delete property. + */ + public set delete (value: boolean | undefined) { + this._delete = value; + }; + /** + * Sets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. + * @param value Value to set for the forwardAsAttachmentTo property. + */ + public set forwardAsAttachmentTo (value: Recipient[] | undefined) { + this._forwardAsAttachmentTo = value; + }; + /** + * Sets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. + * @param value Value to set for the forwardTo property. + */ + public set forwardTo (value: Recipient[] | undefined) { + this._forwardTo = value; + }; + /** + * Sets the markAsRead property value. Indicates whether a message should be marked as read. + * @param value Value to set for the markAsRead property. + */ + public set markAsRead (value: boolean | undefined) { + this._markAsRead = value; + }; + /** + * Sets the markImportance property value. + * @param value Value to set for the markImportance property. + */ + public set markImportance (value: Importance | undefined) { + this._markImportance = value; + }; + /** + * Sets the moveToFolder property value. The ID of the folder that a message will be moved to. + * @param value Value to set for the moveToFolder property. + */ + public set moveToFolder (value: string | undefined) { + this._moveToFolder = value; + }; + /** + * Sets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. + * @param value Value to set for the permanentDelete property. + */ + public set permanentDelete (value: boolean | undefined) { + this._permanentDelete = value; + }; + /** + * Sets the redirectTo property value. The email address to which a message should be redirected. + * @param value Value to set for the redirectTo property. + */ + public set redirectTo (value: Recipient[] | undefined) { + this._redirectTo = value; + }; + /** + * Sets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. + * @param value Value to set for the stopProcessingRules property. + */ + public set stopProcessingRules (value: boolean | undefined) { + this._stopProcessingRules = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts index ea78db59f..c1e231ee7 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts @@ -7,63 +7,280 @@ import {SizeRange} from './sizeRange'; export class MessageRulePredicates implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map = new Map(); /** Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. */ - public bodyContains?: string[] | undefined; + private _bodyContains?: string[] | undefined; /** Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. */ - public bodyOrSubjectContains?: string[] | undefined; + private _bodyOrSubjectContains?: string[] | undefined; /** Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. */ - public categories?: string[] | undefined; + private _categories?: string[] | undefined; /** Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. */ - public fromAddresses?: Recipient[] | undefined; + private _fromAddresses?: Recipient[] | undefined; /** Indicates whether an incoming message must have attachments in order for the condition or exception to apply. */ - public hasAttachments?: boolean | undefined; + private _hasAttachments?: boolean | undefined; /** Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. */ - public headerContains?: string[] | undefined; - public importance?: Importance | undefined; + private _headerContains?: string[] | undefined; + private _importance?: Importance | undefined; /** Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. */ - public isApprovalRequest?: boolean | undefined; + private _isApprovalRequest?: boolean | undefined; /** Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. */ - public isAutomaticForward?: boolean | undefined; + private _isAutomaticForward?: boolean | undefined; /** Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. */ - public isAutomaticReply?: boolean | undefined; + private _isAutomaticReply?: boolean | undefined; /** Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. */ - public isEncrypted?: boolean | undefined; + private _isEncrypted?: boolean | undefined; /** Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. */ - public isMeetingRequest?: boolean | undefined; + private _isMeetingRequest?: boolean | undefined; /** Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. */ - public isMeetingResponse?: boolean | undefined; + private _isMeetingResponse?: boolean | undefined; /** Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. */ - public isNonDeliveryReport?: boolean | undefined; + private _isNonDeliveryReport?: boolean | undefined; /** Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. */ - public isPermissionControlled?: boolean | undefined; + private _isPermissionControlled?: boolean | undefined; /** Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. */ - public isReadReceipt?: boolean | undefined; + private _isReadReceipt?: boolean | undefined; /** Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. */ - public isSigned?: boolean | undefined; + private _isSigned?: boolean | undefined; /** Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. */ - public isVoicemail?: boolean | undefined; - public messageActionFlag?: MessageActionFlag | undefined; + private _isVoicemail?: boolean | undefined; + private _messageActionFlag?: MessageActionFlag | undefined; /** Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. */ - public notSentToMe?: boolean | undefined; + private _notSentToMe?: boolean | undefined; /** Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. */ - public recipientContains?: string[] | undefined; + private _recipientContains?: string[] | undefined; /** Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. */ - public senderContains?: string[] | undefined; - public sensitivity?: Sensitivity | undefined; + private _senderContains?: string[] | undefined; + private _sensitivity?: Sensitivity | undefined; /** Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. */ - public sentCcMe?: boolean | undefined; + private _sentCcMe?: boolean | undefined; /** Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. */ - public sentOnlyToMe?: boolean | undefined; + private _sentOnlyToMe?: boolean | undefined; /** Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. */ - public sentToAddresses?: Recipient[] | undefined; + private _sentToAddresses?: Recipient[] | undefined; /** Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. */ - public sentToMe?: boolean | undefined; + private _sentToMe?: boolean | undefined; /** Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. */ - public sentToOrCcMe?: boolean | undefined; + private _sentToOrCcMe?: boolean | undefined; /** Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. */ - public subjectContains?: string[] | undefined; - public withinSizeRange?: SizeRange | undefined; + private _subjectContains?: string[] | undefined; + private _withinSizeRange?: SizeRange | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get bodyContains () { + return this._bodyContains; + }; + /** + * Gets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get bodyOrSubjectContains () { + return this._bodyOrSubjectContains; + }; + /** + * Gets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. + * @returns a string + */ + public get categories () { + return this._categories; + }; + /** + * Gets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. + * @returns a recipient + */ + public get fromAddresses () { + return this._fromAddresses; + }; + /** + * Gets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. + * @returns a boolean + */ + public get hasAttachments () { + return this._hasAttachments; + }; + /** + * Gets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get headerContains () { + return this._headerContains; + }; + /** + * Gets the importance property value. + * @returns a importance + */ + public get importance () { + return this._importance; + }; + /** + * Gets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. + * @returns a boolean + */ + public get isApprovalRequest () { + return this._isApprovalRequest; + }; + /** + * Gets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. + * @returns a boolean + */ + public get isAutomaticForward () { + return this._isAutomaticForward; + }; + /** + * Gets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. + * @returns a boolean + */ + public get isAutomaticReply () { + return this._isAutomaticReply; + }; + /** + * Gets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. + * @returns a boolean + */ + public get isEncrypted () { + return this._isEncrypted; + }; + /** + * Gets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. + * @returns a boolean + */ + public get isMeetingRequest () { + return this._isMeetingRequest; + }; + /** + * Gets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. + * @returns a boolean + */ + public get isMeetingResponse () { + return this._isMeetingResponse; + }; + /** + * Gets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. + * @returns a boolean + */ + public get isNonDeliveryReport () { + return this._isNonDeliveryReport; + }; + /** + * Gets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. + * @returns a boolean + */ + public get isPermissionControlled () { + return this._isPermissionControlled; + }; + /** + * Gets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. + * @returns a boolean + */ + public get isReadReceipt () { + return this._isReadReceipt; + }; + /** + * Gets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. + * @returns a boolean + */ + public get isSigned () { + return this._isSigned; + }; + /** + * Gets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. + * @returns a boolean + */ + public get isVoicemail () { + return this._isVoicemail; + }; + /** + * Gets the messageActionFlag property value. + * @returns a messageActionFlag + */ + public get messageActionFlag () { + return this._messageActionFlag; + }; + /** + * Gets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get notSentToMe () { + return this._notSentToMe; + }; + /** + * Gets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get recipientContains () { + return this._recipientContains; + }; + /** + * Gets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get senderContains () { + return this._senderContains; + }; + /** + * Gets the sensitivity property value. + * @returns a sensitivity + */ + public get sensitivity () { + return this._sensitivity; + }; + /** + * Gets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get sentCcMe () { + return this._sentCcMe; + }; + /** + * Gets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get sentOnlyToMe () { + return this._sentOnlyToMe; + }; + /** + * Gets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. + * @returns a recipient + */ + public get sentToAddresses () { + return this._sentToAddresses; + }; + /** + * Gets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get sentToMe () { + return this._sentToMe; + }; + /** + * Gets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. + * @returns a boolean + */ + public get sentToOrCcMe () { + return this._sentToOrCcMe; + }; + /** + * Gets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. + * @returns a string + */ + public get subjectContains () { + return this._subjectContains; + }; + /** + * Gets the withinSizeRange property value. + * @returns a sizeRange + */ + public get withinSizeRange () { + return this._withinSizeRange; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -103,9 +320,8 @@ export class MessageRulePredicates implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeCollectionOfPrimitiveValues("bodyContains", this.bodyContains); @@ -140,4 +356,221 @@ export class MessageRulePredicates implements Parsable { writer.writeObjectValue("withinSizeRange", this.withinSizeRange); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the bodyContains property. + */ + public set bodyContains (value: string[] | undefined) { + this._bodyContains = value; + }; + /** + * Sets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the bodyOrSubjectContains property. + */ + public set bodyOrSubjectContains (value: string[] | undefined) { + this._bodyOrSubjectContains = value; + }; + /** + * Sets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. + * @param value Value to set for the categories property. + */ + public set categories (value: string[] | undefined) { + this._categories = value; + }; + /** + * Sets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the fromAddresses property. + */ + public set fromAddresses (value: Recipient[] | undefined) { + this._fromAddresses = value; + }; + /** + * Sets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. + * @param value Value to set for the hasAttachments property. + */ + public set hasAttachments (value: boolean | undefined) { + this._hasAttachments = value; + }; + /** + * Sets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the headerContains property. + */ + public set headerContains (value: string[] | undefined) { + this._headerContains = value; + }; + /** + * Sets the importance property value. + * @param value Value to set for the importance property. + */ + public set importance (value: Importance | undefined) { + this._importance = value; + }; + /** + * Sets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. + * @param value Value to set for the isApprovalRequest property. + */ + public set isApprovalRequest (value: boolean | undefined) { + this._isApprovalRequest = value; + }; + /** + * Sets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. + * @param value Value to set for the isAutomaticForward property. + */ + public set isAutomaticForward (value: boolean | undefined) { + this._isAutomaticForward = value; + }; + /** + * Sets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. + * @param value Value to set for the isAutomaticReply property. + */ + public set isAutomaticReply (value: boolean | undefined) { + this._isAutomaticReply = value; + }; + /** + * Sets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. + * @param value Value to set for the isEncrypted property. + */ + public set isEncrypted (value: boolean | undefined) { + this._isEncrypted = value; + }; + /** + * Sets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. + * @param value Value to set for the isMeetingRequest property. + */ + public set isMeetingRequest (value: boolean | undefined) { + this._isMeetingRequest = value; + }; + /** + * Sets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. + * @param value Value to set for the isMeetingResponse property. + */ + public set isMeetingResponse (value: boolean | undefined) { + this._isMeetingResponse = value; + }; + /** + * Sets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. + * @param value Value to set for the isNonDeliveryReport property. + */ + public set isNonDeliveryReport (value: boolean | undefined) { + this._isNonDeliveryReport = value; + }; + /** + * Sets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. + * @param value Value to set for the isPermissionControlled property. + */ + public set isPermissionControlled (value: boolean | undefined) { + this._isPermissionControlled = value; + }; + /** + * Sets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. + * @param value Value to set for the isReadReceipt property. + */ + public set isReadReceipt (value: boolean | undefined) { + this._isReadReceipt = value; + }; + /** + * Sets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. + * @param value Value to set for the isSigned property. + */ + public set isSigned (value: boolean | undefined) { + this._isSigned = value; + }; + /** + * Sets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. + * @param value Value to set for the isVoicemail property. + */ + public set isVoicemail (value: boolean | undefined) { + this._isVoicemail = value; + }; + /** + * Sets the messageActionFlag property value. + * @param value Value to set for the messageActionFlag property. + */ + public set messageActionFlag (value: MessageActionFlag | undefined) { + this._messageActionFlag = value; + }; + /** + * Sets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the notSentToMe property. + */ + public set notSentToMe (value: boolean | undefined) { + this._notSentToMe = value; + }; + /** + * Sets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the recipientContains property. + */ + public set recipientContains (value: string[] | undefined) { + this._recipientContains = value; + }; + /** + * Sets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the senderContains property. + */ + public set senderContains (value: string[] | undefined) { + this._senderContains = value; + }; + /** + * Sets the sensitivity property value. + * @param value Value to set for the sensitivity property. + */ + public set sensitivity (value: Sensitivity | undefined) { + this._sensitivity = value; + }; + /** + * Sets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentCcMe property. + */ + public set sentCcMe (value: boolean | undefined) { + this._sentCcMe = value; + }; + /** + * Sets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentOnlyToMe property. + */ + public set sentOnlyToMe (value: boolean | undefined) { + this._sentOnlyToMe = value; + }; + /** + * Sets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. + * @param value Value to set for the sentToAddresses property. + */ + public set sentToAddresses (value: Recipient[] | undefined) { + this._sentToAddresses = value; + }; + /** + * Sets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentToMe property. + */ + public set sentToMe (value: boolean | undefined) { + this._sentToMe = value; + }; + /** + * Sets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentToOrCcMe property. + */ + public set sentToOrCcMe (value: boolean | undefined) { + this._sentToOrCcMe = value; + }; + /** + * Sets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the subjectContains property. + */ + public set subjectContains (value: string[] | undefined) { + this._subjectContains = value; + }; + /** + * Sets the withinSizeRange property value. + * @param value Value to set for the withinSizeRange property. + */ + public set withinSizeRange (value: SizeRange | undefined) { + this._withinSizeRange = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts index e8f789451..ddd080889 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts @@ -4,13 +4,13 @@ import {MessageRule} from '../../../messageRule'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messageRules/{messageRule-id} */ export class MessageRuleRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property messageRules for users * @param h Request headers @@ -46,7 +46,7 @@ export class MessageRuleRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MessageRule, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: MessageRule | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class MessageRuleRequestBuilder { * Delete navigation property messageRules for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class MessageRuleRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MessageRule, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property messageRules in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MessageRule, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: MessageRule | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts index b2d2acf92..c07471ed9 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts @@ -5,13 +5,13 @@ import {MessageRulesResponse} from './messageRulesResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messageRules */ export class MessageRulesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/messageRules"; + private readonly _pathSegment: string = "/messageRules"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get messageRules from users * @param h Request headers @@ -41,7 +41,7 @@ export class MessageRulesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MessageRule, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: MessageRule | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class MessageRulesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MessageRulesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to messageRules for users * @param body @@ -78,10 +106,31 @@ export class MessageRulesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessageRule */ - public post (body: MessageRule, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: MessageRule | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, MessageRule, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts index 1478bec33..a46c30557 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts @@ -3,9 +3,30 @@ import {MessageRule} from '../../messageRule'; export class MessageRulesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MessageRule[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: MessageRule[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a messageRule + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class MessageRulesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: MessageRule[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts index a691ab765..a08db7f84 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts @@ -5,13 +5,13 @@ import {AttachmentsResponse} from './attachmentsResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/attachments */ export class AttachmentsRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/attachments"; + private readonly _pathSegment: string = "/attachments"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get attachments from users * @param h Request headers @@ -41,7 +41,7 @@ export class AttachmentsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Attachment, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class AttachmentsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, AttachmentsResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to attachments for users * @param body @@ -78,10 +106,31 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public post (body: Attachment, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, Attachment, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts index 303d4cf79..40c92ff53 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts @@ -3,9 +3,30 @@ import {Attachment} from '../../../attachment'; export class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Attachment[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: Attachment[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a attachment + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class AttachmentsResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: Attachment[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts index 6592ed091..a3e66353d 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts @@ -4,13 +4,13 @@ import {Attachment} from '../../../../attachment'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/attachments/{attachment-id} */ export class AttachmentRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property attachments for users * @param h Request headers @@ -46,7 +46,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Attachment, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class AttachmentRequestBuilder { * Delete navigation property attachments for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class AttachmentRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Attachment, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property attachments in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Attachment, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts index 6a39e3191..611712587 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts @@ -4,13 +4,13 @@ import {ReadableStream} from 'web-streams-polyfill/es2018'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/$value */ export class ContentRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/$value"; + private readonly _pathSegment: string = "/$value"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get media content for the navigation property messages from users * @param h Request headers @@ -29,7 +29,7 @@ export class ContentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPutRequestInfo (body: ReadableStream, h?: object | undefined) : RequestInfo { + public createPutRequestInfo (body: ReadableStream | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PUT, @@ -49,17 +49,65 @@ export class ContentRequestBuilder { ); return this.httpCore?.sendPrimitiveAsync(requestInfo, "ReadableStream", responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update media content for the navigation property messages in users * @param body Binary request body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public put (body: ReadableStream, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public put (body: ReadableStream | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPutRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts index da378a2f9..b09473c42 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts @@ -5,13 +5,13 @@ import {ExtensionsResponse} from './extensionsResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/extensions */ export class ExtensionsRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/extensions"; + private readonly _pathSegment: string = "/extensions"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get extensions from users * @param h Request headers @@ -41,7 +41,7 @@ export class ExtensionsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Extension, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class ExtensionsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, ExtensionsResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to extensions for users * @param body @@ -78,10 +106,31 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public post (body: Extension, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, Extension, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts index 0deaf4f48..8f8cb44fb 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts @@ -3,9 +3,30 @@ import {Extension} from '../../../extension'; export class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Extension[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: Extension[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a extension + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class ExtensionsResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: Extension[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts index d1fe1a6a8..61a1f956f 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts @@ -4,13 +4,13 @@ import {Extension} from '../../../../extension'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/extensions/{extension-id} */ export class ExtensionRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property extensions for users * @param h Request headers @@ -46,7 +46,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Extension, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class ExtensionRequestBuilder { * Delete navigation property extensions for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class ExtensionRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Extension, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property extensions in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Extension, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts index 06f6d3b7c..93a9cee06 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts @@ -27,7 +27,7 @@ export class MessageRequestBuilder { return builder; } /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; public get extensions(): ExtensionsRequestBuilder { const builder = new ExtensionsRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -36,7 +36,7 @@ export class MessageRequestBuilder { return builder; } /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; public get multiValueExtendedProperties(): MultiValueExtendedPropertiesRequestBuilder { const builder = new MultiValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -45,9 +45,9 @@ export class MessageRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { const builder = new SingleValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -102,7 +102,7 @@ export class MessageRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Message, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -114,7 +114,6 @@ export class MessageRequestBuilder { * Delete navigation property messages for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -150,6 +149,34 @@ export class MessageRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Message, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders.messages.multiValueExtendedProperties collection * @param id Unique identifier of the item @@ -167,14 +194,34 @@ export class MessageRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Message, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders.messages.singleValueExtendedProperties collection * @param id Unique identifier of the item diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts index b47a2bea4..54a473af7 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts @@ -5,13 +5,13 @@ import {MessagesResponse} from './messagesResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages */ export class MessagesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/messages"; + private readonly _pathSegment: string = "/messages"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get messages from users * @param h Request headers @@ -41,7 +41,7 @@ export class MessagesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Message, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class MessagesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MessagesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to messages for users * @param body @@ -78,10 +106,31 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public post (body: Message, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, Message, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts index 2050598af..0629c73f2 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts @@ -3,9 +3,30 @@ import {Message} from '../../message'; export class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Message[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: Message[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a message + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class MessagesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: Message[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index c92cf4184..e60a7300e 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,13 +4,13 @@ import {MultiValueLegacyExtendedProperty} from '../../../../multiValueLegacyExte /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id} */ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property multiValueExtendedProperties for users * @param h Request headers @@ -46,7 +46,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property multiValueExtendedProperties in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index d0ffa674d..2ca25796e 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -5,13 +5,13 @@ import {MultiValueExtendedPropertiesResponse} from './multiValueExtendedProperti /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/multiValueExtendedProperties */ export class MultiValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/multiValueExtendedProperties"; + private readonly _pathSegment: string = "/multiValueExtendedProperties"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get multiValueExtendedProperties from users * @param h Request headers @@ -41,7 +41,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class MultiValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to multiValueExtendedProperties for users * @param body @@ -78,10 +106,31 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public post (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts index 988a63469..b20c50b03 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts @@ -3,9 +3,30 @@ import {MultiValueLegacyExtendedProperty} from '../../../multiValueLegacyExtende export class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MultiValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: MultiValueLegacyExtendedProperty[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a multiValueLegacyExtendedProperty + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class MultiValueExtendedPropertiesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: MultiValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index a4f1e8058..9b7e51fcd 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,13 +4,13 @@ import {SingleValueLegacyExtendedProperty} from '../../../../singleValueLegacyEx /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id} */ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property singleValueExtendedProperties for users * @param h Request headers @@ -46,7 +46,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property singleValueExtendedProperties in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index ace80cfe3..42cd7a85b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -5,13 +5,13 @@ import {SingleValueExtendedPropertiesResponse} from './singleValueExtendedProper /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/singleValueExtendedProperties */ export class SingleValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/singleValueExtendedProperties"; + private readonly _pathSegment: string = "/singleValueExtendedProperties"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get singleValueExtendedProperties from users * @param h Request headers @@ -41,7 +41,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class SingleValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to singleValueExtendedProperties for users * @param body @@ -78,10 +106,31 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public post (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts index cccfafd48..f2290a4ce 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts @@ -3,9 +3,30 @@ import {SingleValueLegacyExtendedProperty} from '../../../singleValueLegacyExten export class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: SingleValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: SingleValueLegacyExtendedProperty[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a singleValueLegacyExtendedProperty + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class SingleValueExtendedPropertiesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: SingleValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index 8171ef5d7..67f411def 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,13 +4,13 @@ import {MultiValueLegacyExtendedProperty} from '../../../multiValueLegacyExtende /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id} */ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property multiValueExtendedProperties for users * @param h Request headers @@ -46,7 +46,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property multiValueExtendedProperties in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index 9d0561ccd..0785bb03b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -5,13 +5,13 @@ import {MultiValueExtendedPropertiesResponse} from './multiValueExtendedProperti /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/multiValueExtendedProperties */ export class MultiValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/multiValueExtendedProperties"; + private readonly _pathSegment: string = "/multiValueExtendedProperties"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get multiValueExtendedProperties from users * @param h Request headers @@ -41,7 +41,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class MultiValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to multiValueExtendedProperties for users * @param body @@ -78,10 +106,31 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public post (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts index ff3d60186..680dd053c 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts @@ -3,9 +3,30 @@ import {MultiValueLegacyExtendedProperty} from '../../multiValueLegacyExtendedPr export class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MultiValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: MultiValueLegacyExtendedProperty[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a multiValueLegacyExtendedProperty + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class MultiValueExtendedPropertiesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: MultiValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index b8f8f3057..5929b84ba 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,13 +4,13 @@ import {SingleValueLegacyExtendedProperty} from '../../../singleValueLegacyExten /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id} */ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property singleValueExtendedProperties for users * @param h Request headers @@ -46,7 +46,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property singleValueExtendedProperties in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index fe401498f..ce9f9c623 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -5,13 +5,13 @@ import {SingleValueExtendedPropertiesResponse} from './singleValueExtendedProper /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/singleValueExtendedProperties */ export class SingleValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/singleValueExtendedProperties"; + private readonly _pathSegment: string = "/singleValueExtendedProperties"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get singleValueExtendedProperties from users * @param h Request headers @@ -41,7 +41,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class SingleValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to singleValueExtendedProperties for users * @param body @@ -78,10 +106,31 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public post (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts index 2de99dc2b..de898942c 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts @@ -3,9 +3,30 @@ import {SingleValueLegacyExtendedProperty} from '../../singleValueLegacyExtended export class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: SingleValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: SingleValueLegacyExtendedProperty[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a singleValueLegacyExtendedProperty + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class SingleValueExtendedPropertiesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: SingleValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts b/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts index ef23d73a4..1df458250 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts @@ -2,11 +2,32 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class SizeRange implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); + private _additionalData: Map = new Map(); /** The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ - public maximumSize?: number | undefined; + private _maximumSize?: number | undefined; /** The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ - public minimumSize?: number | undefined; + private _minimumSize?: number | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @returns a integer + */ + public get maximumSize () { + return this._maximumSize; + }; + /** + * Gets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @returns a integer + */ + public get minimumSize () { + return this._minimumSize; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -18,13 +39,33 @@ export class SizeRange implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeNumberValue("maximumSize", this.maximumSize); writer.writeNumberValue("minimumSize", this.minimumSize); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @param value Value to set for the maximumSize property. + */ + public set maximumSize (value: number | undefined) { + this._maximumSize = value; + }; + /** + * Sets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @param value Value to set for the minimumSize property. + */ + public set minimumSize (value: number | undefined) { + this._minimumSize = value; + }; } diff --git a/msgraph-mail/typescript/src/users/message.ts b/msgraph-mail/typescript/src/users/message.ts index f8b5f6059..deeaa2851 100644 --- a/msgraph-mail/typescript/src/users/message.ts +++ b/msgraph-mail/typescript/src/users/message.ts @@ -13,58 +13,268 @@ import {SingleValueLegacyExtendedProperty} from './singleValueLegacyExtendedProp export class Message extends OutlookItem implements Parsable { /** The fileAttachment and itemAttachment attachments for the message. */ - public attachments?: Attachment[] | undefined; + private _attachments?: Attachment[] | undefined; /** The Bcc: recipients for the message. */ - public bccRecipients?: Recipient[] | undefined; - public body?: ItemBody | undefined; + private _bccRecipients?: Recipient[] | undefined; + private _body?: ItemBody | undefined; /** The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. */ - public bodyPreview?: string | undefined; + private _bodyPreview?: string | undefined; /** The Cc: recipients for the message. */ - public ccRecipients?: Recipient[] | undefined; + private _ccRecipients?: Recipient[] | undefined; /** The ID of the conversation the email belongs to. */ - public conversationId?: string | undefined; + private _conversationId?: string | undefined; /** Indicates the position of the message within the conversation. */ - public conversationIndex?: string | undefined; + private _conversationIndex?: string | undefined; /** The collection of open extensions defined for the message. Nullable. */ - public extensions?: Extension[] | undefined; - public flag?: FollowupFlag | undefined; - public from?: Recipient | undefined; + private _extensions?: Extension[] | undefined; + private _flag?: FollowupFlag | undefined; + private _from?: Recipient | undefined; /** Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . */ - public hasAttachments?: boolean | undefined; - public importance?: Importance | undefined; - public inferenceClassification?: InferenceClassificationType | undefined; + private _hasAttachments?: boolean | undefined; + private _importance?: Importance | undefined; + private _inferenceClassification?: InferenceClassificationType | undefined; /** A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. */ - public internetMessageHeaders?: InternetMessageHeader[] | undefined; + private _internetMessageHeaders?: InternetMessageHeader[] | undefined; /** The message ID in the format specified by RFC2822. */ - public internetMessageId?: string | undefined; + private _internetMessageId?: string | undefined; /** Indicates whether a read receipt is requested for the message. */ - public isDeliveryReceiptRequested?: boolean | undefined; + private _isDeliveryReceiptRequested?: boolean | undefined; /** Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. */ - public isDraft?: boolean | undefined; + private _isDraft?: boolean | undefined; /** Indicates whether the message has been read. */ - public isRead?: boolean | undefined; + private _isRead?: boolean | undefined; /** Indicates whether a read receipt is requested for the message. */ - public isReadReceiptRequested?: boolean | undefined; + private _isReadReceiptRequested?: boolean | undefined; /** The collection of multi-value extended properties defined for the message. Nullable. */ - public multiValueExtendedProperties?: MultiValueLegacyExtendedProperty[] | undefined; + private _multiValueExtendedProperties?: MultiValueLegacyExtendedProperty[] | undefined; /** The unique identifier for the message's parent mailFolder. */ - public parentFolderId?: string | undefined; + private _parentFolderId?: string | undefined; /** The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ - public receivedDateTime?: Date | undefined; + private _receivedDateTime?: Date | undefined; /** The email addresses to use when replying. */ - public replyTo?: Recipient[] | undefined; - public sender?: Recipient | undefined; + private _replyTo?: Recipient[] | undefined; + private _sender?: Recipient | undefined; /** The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ - public sentDateTime?: Date | undefined; + private _sentDateTime?: Date | undefined; /** The collection of single-value extended properties defined for the message. Nullable. */ - public singleValueExtendedProperties?: SingleValueLegacyExtendedProperty[] | undefined; + private _singleValueExtendedProperties?: SingleValueLegacyExtendedProperty[] | undefined; /** The subject of the message. */ - public subject?: string | undefined; + private _subject?: string | undefined; /** The To: recipients for the message. */ - public toRecipients?: Recipient[] | undefined; - public uniqueBody?: ItemBody | undefined; + private _toRecipients?: Recipient[] | undefined; + private _uniqueBody?: ItemBody | undefined; /** The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. */ - public webLink?: string | undefined; + private _webLink?: string | undefined; + /** + * Gets the attachments property value. The fileAttachment and itemAttachment attachments for the message. + * @returns a attachment + */ + public get attachments () { + return this._attachments; + }; + /** + * Gets the bccRecipients property value. The Bcc: recipients for the message. + * @returns a recipient + */ + public get bccRecipients () { + return this._bccRecipients; + }; + /** + * Gets the body property value. + * @returns a itemBody + */ + public get body () { + return this._body; + }; + /** + * Gets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. + * @returns a string + */ + public get bodyPreview () { + return this._bodyPreview; + }; + /** + * Gets the ccRecipients property value. The Cc: recipients for the message. + * @returns a recipient + */ + public get ccRecipients () { + return this._ccRecipients; + }; + /** + * Gets the conversationId property value. The ID of the conversation the email belongs to. + * @returns a string + */ + public get conversationId () { + return this._conversationId; + }; + /** + * Gets the conversationIndex property value. Indicates the position of the message within the conversation. + * @returns a string + */ + public get conversationIndex () { + return this._conversationIndex; + }; + /** + * Gets the extensions property value. The collection of open extensions defined for the message. Nullable. + * @returns a extension + */ + public get extensions () { + return this._extensions; + }; + /** + * Gets the flag property value. + * @returns a followupFlag + */ + public get flag () { + return this._flag; + }; + /** + * Gets the from property value. + * @returns a recipient + */ + public get from () { + return this._from; + }; + /** + * Gets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . + * @returns a boolean + */ + public get hasAttachments () { + return this._hasAttachments; + }; + /** + * Gets the importance property value. + * @returns a importance + */ + public get importance () { + return this._importance; + }; + /** + * Gets the inferenceClassification property value. + * @returns a inferenceClassificationType + */ + public get inferenceClassification () { + return this._inferenceClassification; + }; + /** + * Gets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. + * @returns a internetMessageHeader + */ + public get internetMessageHeaders () { + return this._internetMessageHeaders; + }; + /** + * Gets the internetMessageId property value. The message ID in the format specified by RFC2822. + * @returns a string + */ + public get internetMessageId () { + return this._internetMessageId; + }; + /** + * Gets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @returns a boolean + */ + public get isDeliveryReceiptRequested () { + return this._isDeliveryReceiptRequested; + }; + /** + * Gets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. + * @returns a boolean + */ + public get isDraft () { + return this._isDraft; + }; + /** + * Gets the isRead property value. Indicates whether the message has been read. + * @returns a boolean + */ + public get isRead () { + return this._isRead; + }; + /** + * Gets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @returns a boolean + */ + public get isReadReceiptRequested () { + return this._isReadReceiptRequested; + }; + /** + * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. + * @returns a multiValueLegacyExtendedProperty + */ + public get multiValueExtendedProperties () { + return this._multiValueExtendedProperties; + }; + /** + * Gets the parentFolderId property value. The unique identifier for the message's parent mailFolder. + * @returns a string + */ + public get parentFolderId () { + return this._parentFolderId; + }; + /** + * Gets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @returns a Date + */ + public get receivedDateTime () { + return this._receivedDateTime; + }; + /** + * Gets the replyTo property value. The email addresses to use when replying. + * @returns a recipient + */ + public get replyTo () { + return this._replyTo; + }; + /** + * Gets the sender property value. + * @returns a recipient + */ + public get sender () { + return this._sender; + }; + /** + * Gets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @returns a Date + */ + public get sentDateTime () { + return this._sentDateTime; + }; + /** + * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. + * @returns a singleValueLegacyExtendedProperty + */ + public get singleValueExtendedProperties () { + return this._singleValueExtendedProperties; + }; + /** + * Gets the subject property value. The subject of the message. + * @returns a string + */ + public get subject () { + return this._subject; + }; + /** + * Gets the toRecipients property value. The To: recipients for the message. + * @returns a recipient + */ + public get toRecipients () { + return this._toRecipients; + }; + /** + * Gets the uniqueBody property value. + * @returns a itemBody + */ + public get uniqueBody () { + return this._uniqueBody; + }; + /** + * Gets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. + * @returns a string + */ + public get webLink () { + return this._webLink; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -104,9 +314,8 @@ export class Message extends OutlookItem implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); @@ -141,4 +350,214 @@ export class Message extends OutlookItem implements Parsable { writer.writeObjectValue("uniqueBody", this.uniqueBody); writer.writeStringValue("webLink", this.webLink); }; + /** + * Sets the attachments property value. The fileAttachment and itemAttachment attachments for the message. + * @param value Value to set for the attachments property. + */ + public set attachments (value: Attachment[] | undefined) { + this._attachments = value; + }; + /** + * Sets the bccRecipients property value. The Bcc: recipients for the message. + * @param value Value to set for the bccRecipients property. + */ + public set bccRecipients (value: Recipient[] | undefined) { + this._bccRecipients = value; + }; + /** + * Sets the body property value. + * @param value Value to set for the body property. + */ + public set body (value: ItemBody | undefined) { + this._body = value; + }; + /** + * Sets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. + * @param value Value to set for the bodyPreview property. + */ + public set bodyPreview (value: string | undefined) { + this._bodyPreview = value; + }; + /** + * Sets the ccRecipients property value. The Cc: recipients for the message. + * @param value Value to set for the ccRecipients property. + */ + public set ccRecipients (value: Recipient[] | undefined) { + this._ccRecipients = value; + }; + /** + * Sets the conversationId property value. The ID of the conversation the email belongs to. + * @param value Value to set for the conversationId property. + */ + public set conversationId (value: string | undefined) { + this._conversationId = value; + }; + /** + * Sets the conversationIndex property value. Indicates the position of the message within the conversation. + * @param value Value to set for the conversationIndex property. + */ + public set conversationIndex (value: string | undefined) { + this._conversationIndex = value; + }; + /** + * Sets the extensions property value. The collection of open extensions defined for the message. Nullable. + * @param value Value to set for the extensions property. + */ + public set extensions (value: Extension[] | undefined) { + this._extensions = value; + }; + /** + * Sets the flag property value. + * @param value Value to set for the flag property. + */ + public set flag (value: FollowupFlag | undefined) { + this._flag = value; + }; + /** + * Sets the from property value. + * @param value Value to set for the from property. + */ + public set from (value: Recipient | undefined) { + this._from = value; + }; + /** + * Sets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . + * @param value Value to set for the hasAttachments property. + */ + public set hasAttachments (value: boolean | undefined) { + this._hasAttachments = value; + }; + /** + * Sets the importance property value. + * @param value Value to set for the importance property. + */ + public set importance (value: Importance | undefined) { + this._importance = value; + }; + /** + * Sets the inferenceClassification property value. + * @param value Value to set for the inferenceClassification property. + */ + public set inferenceClassification (value: InferenceClassificationType | undefined) { + this._inferenceClassification = value; + }; + /** + * Sets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. + * @param value Value to set for the internetMessageHeaders property. + */ + public set internetMessageHeaders (value: InternetMessageHeader[] | undefined) { + this._internetMessageHeaders = value; + }; + /** + * Sets the internetMessageId property value. The message ID in the format specified by RFC2822. + * @param value Value to set for the internetMessageId property. + */ + public set internetMessageId (value: string | undefined) { + this._internetMessageId = value; + }; + /** + * Sets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @param value Value to set for the isDeliveryReceiptRequested property. + */ + public set isDeliveryReceiptRequested (value: boolean | undefined) { + this._isDeliveryReceiptRequested = value; + }; + /** + * Sets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. + * @param value Value to set for the isDraft property. + */ + public set isDraft (value: boolean | undefined) { + this._isDraft = value; + }; + /** + * Sets the isRead property value. Indicates whether the message has been read. + * @param value Value to set for the isRead property. + */ + public set isRead (value: boolean | undefined) { + this._isRead = value; + }; + /** + * Sets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @param value Value to set for the isReadReceiptRequested property. + */ + public set isReadReceiptRequested (value: boolean | undefined) { + this._isReadReceiptRequested = value; + }; + /** + * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. + * @param value Value to set for the multiValueExtendedProperties property. + */ + public set multiValueExtendedProperties (value: MultiValueLegacyExtendedProperty[] | undefined) { + this._multiValueExtendedProperties = value; + }; + /** + * Sets the parentFolderId property value. The unique identifier for the message's parent mailFolder. + * @param value Value to set for the parentFolderId property. + */ + public set parentFolderId (value: string | undefined) { + this._parentFolderId = value; + }; + /** + * Sets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the receivedDateTime property. + */ + public set receivedDateTime (value: Date | undefined) { + this._receivedDateTime = value; + }; + /** + * Sets the replyTo property value. The email addresses to use when replying. + * @param value Value to set for the replyTo property. + */ + public set replyTo (value: Recipient[] | undefined) { + this._replyTo = value; + }; + /** + * Sets the sender property value. + * @param value Value to set for the sender property. + */ + public set sender (value: Recipient | undefined) { + this._sender = value; + }; + /** + * Sets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the sentDateTime property. + */ + public set sentDateTime (value: Date | undefined) { + this._sentDateTime = value; + }; + /** + * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. + * @param value Value to set for the singleValueExtendedProperties property. + */ + public set singleValueExtendedProperties (value: SingleValueLegacyExtendedProperty[] | undefined) { + this._singleValueExtendedProperties = value; + }; + /** + * Sets the subject property value. The subject of the message. + * @param value Value to set for the subject property. + */ + public set subject (value: string | undefined) { + this._subject = value; + }; + /** + * Sets the toRecipients property value. The To: recipients for the message. + * @param value Value to set for the toRecipients property. + */ + public set toRecipients (value: Recipient[] | undefined) { + this._toRecipients = value; + }; + /** + * Sets the uniqueBody property value. + * @param value Value to set for the uniqueBody property. + */ + public set uniqueBody (value: ItemBody | undefined) { + this._uniqueBody = value; + }; + /** + * Sets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. + * @param value Value to set for the webLink property. + */ + public set webLink (value: string | undefined) { + this._webLink = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messageRule.ts b/msgraph-mail/typescript/src/users/messageRule.ts index 396cfa1aa..8eb0c4d72 100644 --- a/msgraph-mail/typescript/src/users/messageRule.ts +++ b/msgraph-mail/typescript/src/users/messageRule.ts @@ -4,19 +4,75 @@ import {MessageRuleActions} from './mailFolders/messageRuleActions'; import {MessageRulePredicates} from './mailFolders/messageRulePredicates'; export class MessageRule extends Entity implements Parsable { - public actions?: MessageRuleActions | undefined; - public conditions?: MessageRulePredicates | undefined; + private _actions?: MessageRuleActions | undefined; + private _conditions?: MessageRulePredicates | undefined; /** The display name of the rule. */ - public displayName?: string | undefined; - public exceptions?: MessageRulePredicates | undefined; + private _displayName?: string | undefined; + private _exceptions?: MessageRulePredicates | undefined; /** Indicates whether the rule is in an error condition. Read-only. */ - public hasError?: boolean | undefined; + private _hasError?: boolean | undefined; /** Indicates whether the rule is enabled to be applied to messages. */ - public isEnabled?: boolean | undefined; + private _isEnabled?: boolean | undefined; /** Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. */ - public isReadOnly?: boolean | undefined; + private _isReadOnly?: boolean | undefined; /** Indicates the order in which the rule is executed, among other rules. */ - public sequence?: number | undefined; + private _sequence?: number | undefined; + /** + * Gets the actions property value. + * @returns a messageRuleActions + */ + public get actions () { + return this._actions; + }; + /** + * Gets the conditions property value. + * @returns a messageRulePredicates + */ + public get conditions () { + return this._conditions; + }; + /** + * Gets the displayName property value. The display name of the rule. + * @returns a string + */ + public get displayName () { + return this._displayName; + }; + /** + * Gets the exceptions property value. + * @returns a messageRulePredicates + */ + public get exceptions () { + return this._exceptions; + }; + /** + * Gets the hasError property value. Indicates whether the rule is in an error condition. Read-only. + * @returns a boolean + */ + public get hasError () { + return this._hasError; + }; + /** + * Gets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. + * @returns a boolean + */ + public get isEnabled () { + return this._isEnabled; + }; + /** + * Gets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. + * @returns a boolean + */ + public get isReadOnly () { + return this._isReadOnly; + }; + /** + * Gets the sequence property value. Indicates the order in which the rule is executed, among other rules. + * @returns a integer + */ + public get sequence () { + return this._sequence; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -34,9 +90,8 @@ export class MessageRule extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); @@ -49,4 +104,60 @@ export class MessageRule extends Entity implements Parsable { writer.writeBooleanValue("isReadOnly", this.isReadOnly); writer.writeNumberValue("sequence", this.sequence); }; + /** + * Sets the actions property value. + * @param value Value to set for the actions property. + */ + public set actions (value: MessageRuleActions | undefined) { + this._actions = value; + }; + /** + * Sets the conditions property value. + * @param value Value to set for the conditions property. + */ + public set conditions (value: MessageRulePredicates | undefined) { + this._conditions = value; + }; + /** + * Sets the displayName property value. The display name of the rule. + * @param value Value to set for the displayName property. + */ + public set displayName (value: string | undefined) { + this._displayName = value; + }; + /** + * Sets the exceptions property value. + * @param value Value to set for the exceptions property. + */ + public set exceptions (value: MessageRulePredicates | undefined) { + this._exceptions = value; + }; + /** + * Sets the hasError property value. Indicates whether the rule is in an error condition. Read-only. + * @param value Value to set for the hasError property. + */ + public set hasError (value: boolean | undefined) { + this._hasError = value; + }; + /** + * Sets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. + * @param value Value to set for the isEnabled property. + */ + public set isEnabled (value: boolean | undefined) { + this._isEnabled = value; + }; + /** + * Sets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. + * @param value Value to set for the isReadOnly property. + */ + public set isReadOnly (value: boolean | undefined) { + this._isReadOnly = value; + }; + /** + * Sets the sequence property value. Indicates the order in which the rule is executed, among other rules. + * @param value Value to set for the sequence property. + */ + public set sequence (value: number | undefined) { + this._sequence = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts index 53c3bb4b3..9becfb83b 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts @@ -5,13 +5,13 @@ import {AttachmentsResponse} from './attachmentsResponse'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/attachments */ export class AttachmentsRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/attachments"; + private readonly _pathSegment: string = "/attachments"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get attachments from users * @param h Request headers @@ -41,7 +41,7 @@ export class AttachmentsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Attachment, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class AttachmentsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, AttachmentsResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to attachments for users * @param body @@ -78,10 +106,31 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public post (body: Attachment, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, Attachment, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts index 7e7f62823..ba0c35c62 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts @@ -3,9 +3,30 @@ import {Attachment} from '../../attachment'; export class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Attachment[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: Attachment[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a attachment + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class AttachmentsResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: Attachment[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts index 83a83c09a..837983768 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts @@ -4,13 +4,13 @@ import {Attachment} from '../../../attachment'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/attachments/{attachment-id} */ export class AttachmentRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property attachments for users * @param h Request headers @@ -46,7 +46,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Attachment, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class AttachmentRequestBuilder { * Delete navigation property attachments for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class AttachmentRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Attachment, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property attachments in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Attachment, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts index 7e21efd2b..bd8ab3536 100644 --- a/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts @@ -4,13 +4,13 @@ import {ReadableStream} from 'web-streams-polyfill/es2018'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/$value */ export class ContentRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/$value"; + private readonly _pathSegment: string = "/$value"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get media content for the navigation property messages from users * @param h Request headers @@ -29,7 +29,7 @@ export class ContentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPutRequestInfo (body: ReadableStream, h?: object | undefined) : RequestInfo { + public createPutRequestInfo (body: ReadableStream | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PUT, @@ -49,17 +49,65 @@ export class ContentRequestBuilder { ); return this.httpCore?.sendPrimitiveAsync(requestInfo, "ReadableStream", responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update media content for the navigation property messages in users * @param body Binary request body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public put (body: ReadableStream, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public put (body: ReadableStream | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPutRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts index c87fab74c..144417c40 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts @@ -5,13 +5,13 @@ import {ExtensionsResponse} from './extensionsResponse'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/extensions */ export class ExtensionsRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/extensions"; + private readonly _pathSegment: string = "/extensions"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get extensions from users * @param h Request headers @@ -41,7 +41,7 @@ export class ExtensionsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Extension, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class ExtensionsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, ExtensionsResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to extensions for users * @param body @@ -78,10 +106,31 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public post (body: Extension, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, Extension, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts b/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts index 65a657d7d..9932d4bce 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts @@ -3,9 +3,30 @@ import {Extension} from '../../extension'; export class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Extension[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: Extension[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a extension + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class ExtensionsResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: Extension[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts index 21f4d1397..b2c7d95bb 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts @@ -4,13 +4,13 @@ import {Extension} from '../../../extension'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/extensions/{extension-id} */ export class ExtensionRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property extensions for users * @param h Request headers @@ -46,7 +46,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Extension, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class ExtensionRequestBuilder { * Delete navigation property extensions for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class ExtensionRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Extension, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property extensions in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Extension, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts index 594987ff6..5d9c74553 100644 --- a/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts @@ -27,7 +27,7 @@ export class MessageRequestBuilder { return builder; } /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; public get extensions(): ExtensionsRequestBuilder { const builder = new ExtensionsRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -36,7 +36,7 @@ export class MessageRequestBuilder { return builder; } /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; public get multiValueExtendedProperties(): MultiValueExtendedPropertiesRequestBuilder { const builder = new MultiValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -45,9 +45,9 @@ export class MessageRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { const builder = new SingleValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -102,7 +102,7 @@ export class MessageRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Message, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -114,7 +114,6 @@ export class MessageRequestBuilder { * Delete navigation property messages for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -150,6 +149,34 @@ export class MessageRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Message, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Gets an item from the graphtypescriptv4.utilities.users.messages.multiValueExtendedProperties collection * @param id Unique identifier of the item @@ -167,14 +194,34 @@ export class MessageRequestBuilder { * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: Message, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; /** * Gets an item from the graphtypescriptv4.utilities.users.messages.singleValueExtendedProperties collection * @param id Unique identifier of the item diff --git a/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts index 74469bd42..ba7f693a7 100644 --- a/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts @@ -5,13 +5,13 @@ import {MessagesResponse} from './messagesResponse'; /** Builds and executes requests for operations under /users/{user-id}/messages */ export class MessagesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/messages"; + private readonly _pathSegment: string = "/messages"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get messages from users * @param h Request headers @@ -41,7 +41,7 @@ export class MessagesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Message, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class MessagesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MessagesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to messages for users * @param body @@ -78,10 +106,31 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public post (body: Message, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, Message, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/messagesResponse.ts b/msgraph-mail/typescript/src/users/messages/messagesResponse.ts index b21cbe6e4..1fd93e26c 100644 --- a/msgraph-mail/typescript/src/users/messages/messagesResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/messagesResponse.ts @@ -3,9 +3,30 @@ import {Message} from '../message'; export class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: Message[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: Message[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a message + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class MessagesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: Message[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index 4dcd45bc1..c2ccadf03 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,13 +4,13 @@ import {MultiValueLegacyExtendedProperty} from '../../../multiValueLegacyExtende /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id} */ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property multiValueExtendedProperties for users * @param h Request headers @@ -46,7 +46,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property multiValueExtendedProperties in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index b4ac9f5f2..022811221 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -5,13 +5,13 @@ import {MultiValueExtendedPropertiesResponse} from './multiValueExtendedProperti /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/multiValueExtendedProperties */ export class MultiValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/multiValueExtendedProperties"; + private readonly _pathSegment: string = "/multiValueExtendedProperties"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get multiValueExtendedProperties from users * @param h Request headers @@ -41,7 +41,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MultiValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class MultiValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to multiValueExtendedProperties for users * @param body @@ -78,10 +106,31 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public post (body: MultiValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts index ff3d60186..680dd053c 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts @@ -3,9 +3,30 @@ import {MultiValueLegacyExtendedProperty} from '../../multiValueLegacyExtendedPr export class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: MultiValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: MultiValueLegacyExtendedProperty[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a multiValueLegacyExtendedProperty + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class MultiValueExtendedPropertiesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: MultiValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index a81b03c28..61352807e 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,13 +4,13 @@ import {SingleValueLegacyExtendedProperty} from '../../../singleValueLegacyExten /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id} */ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = ""; + private readonly _pathSegment: string = ""; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Delete navigation property singleValueExtendedProperties for users * @param h Request headers @@ -46,7 +46,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -58,7 +58,6 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( @@ -82,17 +81,65 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Update the navigation property singleValueExtendedProperties in users * @param body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service - * @returns a Promise of void */ - public patch (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index b934318e0..b0eabc6dd 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -5,13 +5,13 @@ import {SingleValueExtendedPropertiesResponse} from './singleValueExtendedProper /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/singleValueExtendedProperties */ export class SingleValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/singleValueExtendedProperties"; + private readonly _pathSegment: string = "/singleValueExtendedProperties"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; /** * Get singleValueExtendedProperties from users * @param h Request headers @@ -41,7 +41,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: SingleValueLegacyExtendedProperty, h?: object | undefined) : RequestInfo { + public createPostRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -71,6 +71,34 @@ export class SingleValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; /** * Create new navigation property to singleValueExtendedProperties for users * @param body @@ -78,10 +106,31 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public post (body: SingleValueLegacyExtendedProperty, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts index 2de99dc2b..de898942c 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts @@ -3,9 +3,30 @@ import {SingleValueLegacyExtendedProperty} from '../../singleValueLegacyExtended export class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public nextLink?: string | undefined; - public value?: SingleValueLegacyExtendedProperty[] | undefined; + private _additionalData: Map = new Map(); + private _nextLink?: string | undefined; + private _value?: SingleValueLegacyExtendedProperty[] | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the nextLink property value. + * @returns a string + */ + public get nextLink () { + return this._nextLink; + }; + /** + * Gets the value property value. + * @returns a singleValueLegacyExtendedProperty + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -17,13 +38,33 @@ export class SingleValueExtendedPropertiesResponse implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + */ + public set nextLink (value: string | undefined) { + this._nextLink = value; + }; + /** + * Sets the value property value. + * @param value Value to set for the value property. + */ + public set value (value: SingleValueLegacyExtendedProperty[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts b/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts index 99669c200..086928539 100644 --- a/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts +++ b/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts @@ -3,7 +3,14 @@ import {Entity} from './entity'; export class MultiValueLegacyExtendedProperty extends Entity implements Parsable { /** A collection of property values. */ - public value?: string[] | undefined; + private _value?: string[] | undefined; + /** + * Gets the value property value. A collection of property values. + * @returns a string + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -14,12 +21,18 @@ export class MultiValueLegacyExtendedProperty extends Entity implements Parsable ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfPrimitiveValues("value", this.value); }; + /** + * Sets the value property value. A collection of property values. + * @param value Value to set for the value property. + */ + public set value (value: string[] | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/outlookItem.ts b/msgraph-mail/typescript/src/users/outlookItem.ts index 777592984..61c521ee9 100644 --- a/msgraph-mail/typescript/src/users/outlookItem.ts +++ b/msgraph-mail/typescript/src/users/outlookItem.ts @@ -3,13 +3,41 @@ import {Entity} from './entity'; export class OutlookItem extends Entity implements Parsable { /** The categories associated with the item */ - public categories?: string[] | undefined; + private _categories?: string[] | undefined; /** Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. */ - public changeKey?: string | undefined; + private _changeKey?: string | undefined; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - public createdDateTime?: Date | undefined; + private _createdDateTime?: Date | undefined; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - public lastModifiedDateTime?: Date | undefined; + private _lastModifiedDateTime?: Date | undefined; + /** + * Gets the categories property value. The categories associated with the item + * @returns a string + */ + public get categories () { + return this._categories; + }; + /** + * Gets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. + * @returns a string + */ + public get changeKey () { + return this._changeKey; + }; + /** + * Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @returns a Date + */ + public get createdDateTime () { + return this._createdDateTime; + }; + /** + * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @returns a Date + */ + public get lastModifiedDateTime () { + return this._lastModifiedDateTime; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -23,9 +51,8 @@ export class OutlookItem extends Entity implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); @@ -34,4 +61,32 @@ export class OutlookItem extends Entity implements Parsable { writer.writeDateValue("createdDateTime", this.createdDateTime); writer.writeDateValue("lastModifiedDateTime", this.lastModifiedDateTime); }; + /** + * Sets the categories property value. The categories associated with the item + * @param value Value to set for the categories property. + */ + public set categories (value: string[] | undefined) { + this._categories = value; + }; + /** + * Sets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. + * @param value Value to set for the changeKey property. + */ + public set changeKey (value: string | undefined) { + this._changeKey = value; + }; + /** + * Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the createdDateTime property. + */ + public set createdDateTime (value: Date | undefined) { + this._createdDateTime = value; + }; + /** + * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the lastModifiedDateTime property. + */ + public set lastModifiedDateTime (value: Date | undefined) { + this._lastModifiedDateTime = value; + }; } diff --git a/msgraph-mail/typescript/src/users/recipient.ts b/msgraph-mail/typescript/src/users/recipient.ts index 960993abf..fb258810c 100644 --- a/msgraph-mail/typescript/src/users/recipient.ts +++ b/msgraph-mail/typescript/src/users/recipient.ts @@ -3,8 +3,22 @@ import {EmailAddress} from './emailAddress'; export class Recipient implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - public readonly additionalData: Map = new Map(); - public emailAddress?: EmailAddress | undefined; + private _additionalData: Map = new Map(); + private _emailAddress?: EmailAddress | undefined; + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @returns a Map + */ + public get additionalData () { + return this._additionalData; + }; + /** + * Gets the emailAddress property value. + * @returns a emailAddress + */ + public get emailAddress () { + return this._emailAddress; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -15,12 +29,25 @@ export class Recipient implements Parsable { ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { writer.writeObjectValue("emailAddress", this.emailAddress); writer.writeAdditionalData(this.additionalData); }; + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public set additionalData (value: Map) { + this._additionalData = value; + }; + /** + * Sets the emailAddress property value. + * @param value Value to set for the emailAddress property. + */ + public set emailAddress (value: EmailAddress | undefined) { + this._emailAddress = value; + }; } diff --git a/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts b/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts index 25052ba62..c2f637377 100644 --- a/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts +++ b/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts @@ -3,7 +3,14 @@ import {Entity} from './entity'; export class SingleValueLegacyExtendedProperty extends Entity implements Parsable { /** A property value. */ - public value?: string | undefined; + private _value?: string | undefined; + /** + * Gets the value property value. A property value. + * @returns a string + */ + public get value () { + return this._value; + }; /** * The deserialization information for the current model * @returns a Map void> @@ -14,12 +21,18 @@ export class SingleValueLegacyExtendedProperty extends Entity implements Parsabl ]); }; /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model - * @returns a void */ public serialize (writer: SerializationWriter) : void { super.serialize(writer); writer.writeStringValue("value", this.value); }; + /** + * Sets the value property value. A property value. + * @param value Value to set for the value property. + */ + public set value (value: string | undefined) { + this._value = value; + }; } diff --git a/msgraph-mail/typescript/src/users/usersRequestBuilder.ts b/msgraph-mail/typescript/src/users/usersRequestBuilder.ts index 579d20f40..0fa9359ad 100644 --- a/msgraph-mail/typescript/src/users/usersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/usersRequestBuilder.ts @@ -3,11 +3,60 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler, SerializationWriterF /** Builds and executes requests for operations under /users */ export class UsersRequestBuilder { /** Current path for the request */ - public currentPath?: string | undefined; + private _currentPath?: string | undefined; /** Core service to use to execute the requests */ - public httpCore?: HttpCore | undefined; + private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly pathSegment: string = "/users"; + private readonly _pathSegment: string = "/users"; /** Factory to use to get a serializer for payload serialization */ - public serializerFactory?: SerializationWriterFactory | undefined; + private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Gets the currentPath property value. Current path for the request + * @returns a string + */ + public get currentPath () { + return this._currentPath; + }; + /** + * Gets the httpCore property value. Core service to use to execute the requests + * @returns a HttpCore + */ + public get httpCore () { + return this._httpCore; + }; + /** + * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder + * @returns a string + */ + public get pathSegment () { + return this._pathSegment; + }; + /** + * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @returns a SerializationWriterFactory + */ + public get serializerFactory () { + return this._serializerFactory; + }; + /** + * Sets the currentPath property value. Current path for the request + * @param value Value to set for the currentPath property. + */ + public set currentPath (value: string | undefined) { + this._currentPath = value; + }; + /** + * Sets the httpCore property value. Core service to use to execute the requests + * @param value Value to set for the httpCore property. + */ + public set httpCore (value: HttpCore | undefined) { + this._httpCore = value; + }; + /** + * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization + * @param value Value to set for the serializerFactory property. + */ + public set serializerFactory (value: SerializationWriterFactory | undefined) { + this._serializerFactory = value; + }; } From ed3e38408b13034e8ca56a501c9d97022b584885 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 9 Jun 2021 16:02:39 -0400 Subject: [PATCH 02/11] - code-gen: constructors for default values in typescript --- msgraph-mail/typescript/src/apiClient.ts | 24 ++-- .../typescript/src/users/attachment.ts | 30 ++-- .../typescript/src/users/dateTimeTimeZone.ts | 24 ++-- .../typescript/src/users/emailAddress.ts | 24 ++-- msgraph-mail/typescript/src/users/entity.ts | 20 ++- .../typescript/src/users/extension.ts | 10 +- .../typescript/src/users/followupFlag.ts | 32 +++-- .../inferenceClassification.ts | 14 +- .../inferenceClassificationOverride.ts | 18 ++- .../inferenceClassificationRequestBuilder.ts | 36 +++-- ...nceClassificationOverrideRequestBuilder.ts | 34 +++-- .../overrides/overridesRequestBuilder.ts | 30 ++-- .../overrides/overridesResponse.ts | 24 ++-- .../src/users/internetMessageHeader.ts | 24 ++-- .../src/users/item/userRequestBuilder.ts | 26 ++-- msgraph-mail/typescript/src/users/itemBody.ts | 24 ++-- .../typescript/src/users/mailFolder.ts | 54 +++---- .../childFoldersRequestBuilder.ts | 30 ++-- .../childFolders/childFoldersResponse.ts | 24 ++-- .../item/mailFolderRequestBuilder.ts | 34 +++-- .../item/mailFolderRequestBuilder.ts | 44 +++--- .../mailFolders/mailFoldersRequestBuilder.ts | 30 ++-- .../users/mailFolders/mailFoldersResponse.ts | 24 ++-- .../users/mailFolders/messageRuleActions.ts | 60 ++++---- .../mailFolders/messageRulePredicates.ts | 136 +++++++++--------- .../item/messageRuleRequestBuilder.ts | 34 +++-- .../messageRulesRequestBuilder.ts | 30 ++-- .../messageRules/messageRulesResponse.ts | 24 ++-- .../attachments/attachmentsRequestBuilder.ts | 30 ++-- .../attachments/attachmentsResponse.ts | 24 ++-- .../item/attachmentRequestBuilder.ts | 34 +++-- .../messages/content/contentRequestBuilder.ts | 30 ++-- .../extensions/extensionsRequestBuilder.ts | 30 ++-- .../messages/extensions/extensionsResponse.ts | 24 ++-- .../item/extensionRequestBuilder.ts | 34 +++-- .../messages/item/messageRequestBuilder.ts | 42 +++--- .../messages/messagesRequestBuilder.ts | 30 ++-- .../mailFolders/messages/messagesResponse.ts | 24 ++-- ...lueLegacyExtendedPropertyRequestBuilder.ts | 34 +++-- ...tiValueExtendedPropertiesRequestBuilder.ts | 30 ++-- .../multiValueExtendedPropertiesResponse.ts | 24 ++-- ...lueLegacyExtendedPropertyRequestBuilder.ts | 34 +++-- ...leValueExtendedPropertiesRequestBuilder.ts | 30 ++-- .../singleValueExtendedPropertiesResponse.ts | 24 ++-- ...lueLegacyExtendedPropertyRequestBuilder.ts | 34 +++-- ...tiValueExtendedPropertiesRequestBuilder.ts | 30 ++-- .../multiValueExtendedPropertiesResponse.ts | 24 ++-- ...lueLegacyExtendedPropertyRequestBuilder.ts | 34 +++-- ...leValueExtendedPropertiesRequestBuilder.ts | 30 ++-- .../singleValueExtendedPropertiesResponse.ts | 24 ++-- .../src/users/mailFolders/sizeRange.ts | 24 ++-- msgraph-mail/typescript/src/users/message.ts | 130 +++++++++-------- .../typescript/src/users/messageRule.ts | 42 +++--- .../attachments/attachmentsRequestBuilder.ts | 30 ++-- .../attachments/attachmentsResponse.ts | 24 ++-- .../item/attachmentRequestBuilder.ts | 34 +++-- .../messages/content/contentRequestBuilder.ts | 30 ++-- .../extensions/extensionsRequestBuilder.ts | 30 ++-- .../messages/extensions/extensionsResponse.ts | 24 ++-- .../item/extensionRequestBuilder.ts | 34 +++-- .../messages/item/messageRequestBuilder.ts | 42 +++--- .../users/messages/messagesRequestBuilder.ts | 30 ++-- .../src/users/messages/messagesResponse.ts | 24 ++-- ...lueLegacyExtendedPropertyRequestBuilder.ts | 34 +++-- ...tiValueExtendedPropertiesRequestBuilder.ts | 30 ++-- .../multiValueExtendedPropertiesResponse.ts | 24 ++-- ...lueLegacyExtendedPropertyRequestBuilder.ts | 34 +++-- ...leValueExtendedPropertiesRequestBuilder.ts | 30 ++-- .../singleValueExtendedPropertiesResponse.ts | 24 ++-- .../users/multiValueLegacyExtendedProperty.ts | 14 +- .../typescript/src/users/outlookItem.ts | 26 ++-- .../typescript/src/users/recipient.ts | 20 ++- .../singleValueLegacyExtendedProperty.ts | 14 +- .../src/users/usersRequestBuilder.ts | 22 +-- 74 files changed, 1393 insertions(+), 949 deletions(-) diff --git a/msgraph-mail/typescript/src/apiClient.ts b/msgraph-mail/typescript/src/apiClient.ts index d056f0630..0984d7db9 100644 --- a/msgraph-mail/typescript/src/apiClient.ts +++ b/msgraph-mail/typescript/src/apiClient.ts @@ -9,7 +9,7 @@ export class ApiClient { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "https://graph.microsoft.com/v1.0"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; public get users(): UsersRequestBuilder { @@ -19,53 +19,59 @@ export class ApiClient { builder.serializerFactory = this.serializerFactory; return builder; } + /** + * Instantiates a new ApiClient and sets the default values. + */ + public constructor() { + this._pathSegment = "https://graph.microsoft.com/v1.0"; + }; /** * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; /** @@ -73,7 +79,7 @@ export class ApiClient { * @param id Unique identifier of the item * @returns a UserRequestBuilder */ - public usersById (id: String) : UserRequestBuilder { + public usersById(id: String) : UserRequestBuilder { const builder = new UserRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/users/" + id; builder.httpCore = this.httpCore; diff --git a/msgraph-mail/typescript/src/users/attachment.ts b/msgraph-mail/typescript/src/users/attachment.ts index a0bf99abc..a8ffe5ad8 100644 --- a/msgraph-mail/typescript/src/users/attachment.ts +++ b/msgraph-mail/typescript/src/users/attachment.ts @@ -12,46 +12,52 @@ export class Attachment extends Entity implements Parsable { private _name?: string | undefined; /** The length of the attachment in bytes. */ private _size?: number | undefined; + /** + * Instantiates a new attachment and sets the default values. + */ + public constructor() { + super(); + }; /** * Gets the contentType property value. The MIME type. * @returns a string */ - public get contentType () { + public get contentType() { return this._contentType; }; /** * Gets the isInline property value. true if the attachment is an inline attachment; otherwise, false. * @returns a boolean */ - public get isInline () { + public get isInline() { return this._isInline; }; /** * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z * @returns a Date */ - public get lastModifiedDateTime () { + public get lastModifiedDateTime() { return this._lastModifiedDateTime; }; /** * Gets the name property value. The display name of the attachment. This does not need to be the actual file name. * @returns a string */ - public get name () { + public get name() { return this._name; }; /** * Gets the size property value. The length of the attachment in bytes. * @returns a integer */ - public get size () { + public get size() { return this._size; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["contentType", (o, n) => { (o as unknown as Attachment).contentType = n.getStringValue(); }], ["isInline", (o, n) => { (o as unknown as Attachment).isInline = n.getBooleanValue(); }], @@ -64,7 +70,7 @@ export class Attachment extends Entity implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeStringValue("contentType", this.contentType); writer.writeBooleanValue("isInline", this.isInline); @@ -76,35 +82,35 @@ export class Attachment extends Entity implements Parsable { * Sets the contentType property value. The MIME type. * @param value Value to set for the contentType property. */ - public set contentType (value: string | undefined) { + public set contentType(value: string | undefined) { this._contentType = value; }; /** * Sets the isInline property value. true if the attachment is an inline attachment; otherwise, false. * @param value Value to set for the isInline property. */ - public set isInline (value: boolean | undefined) { + public set isInline(value: boolean | undefined) { this._isInline = value; }; /** * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z * @param value Value to set for the lastModifiedDateTime property. */ - public set lastModifiedDateTime (value: Date | undefined) { + public set lastModifiedDateTime(value: Date | undefined) { this._lastModifiedDateTime = value; }; /** * Sets the name property value. The display name of the attachment. This does not need to be the actual file name. * @param value Value to set for the name property. */ - public set name (value: string | undefined) { + public set name(value: string | undefined) { this._name = value; }; /** * Sets the size property value. The length of the attachment in bytes. * @param value Value to set for the size property. */ - public set size (value: number | undefined) { + public set size(value: number | undefined) { this._size = value; }; } diff --git a/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts b/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts index 30a50e9c7..5d66fb6cc 100644 --- a/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts +++ b/msgraph-mail/typescript/src/users/dateTimeTimeZone.ts @@ -2,37 +2,43 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class DateTimeTimeZone implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; /** A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. */ private _dateTime?: string | undefined; /** Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. */ private _timeZone?: string | undefined; + /** + * Instantiates a new dateTimeTimeZone and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. * @returns a string */ - public get dateTime () { + public get dateTime() { return this._dateTime; }; /** * Gets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. * @returns a string */ - public get timeZone () { + public get timeZone() { return this._timeZone; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["dateTime", (o, n) => { (o as unknown as DateTimeTimeZone).dateTime = n.getStringValue(); }], ["timeZone", (o, n) => { (o as unknown as DateTimeTimeZone).timeZone = n.getStringValue(); }], @@ -42,7 +48,7 @@ export class DateTimeTimeZone implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("dateTime", this.dateTime); writer.writeStringValue("timeZone", this.timeZone); writer.writeAdditionalData(this.additionalData); @@ -51,21 +57,21 @@ export class DateTimeTimeZone implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. * @param value Value to set for the dateTime property. */ - public set dateTime (value: string | undefined) { + public set dateTime(value: string | undefined) { this._dateTime = value; }; /** * Sets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. * @param value Value to set for the timeZone property. */ - public set timeZone (value: string | undefined) { + public set timeZone(value: string | undefined) { this._timeZone = value; }; } diff --git a/msgraph-mail/typescript/src/users/emailAddress.ts b/msgraph-mail/typescript/src/users/emailAddress.ts index 80bf560d8..ca496661f 100644 --- a/msgraph-mail/typescript/src/users/emailAddress.ts +++ b/msgraph-mail/typescript/src/users/emailAddress.ts @@ -2,37 +2,43 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class EmailAddress implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; /** The email address of an entity instance. */ private _address?: string | undefined; /** The display name of an entity instance. */ private _name?: string | undefined; + /** + * Instantiates a new emailAddress and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the address property value. The email address of an entity instance. * @returns a string */ - public get address () { + public get address() { return this._address; }; /** * Gets the name property value. The display name of an entity instance. * @returns a string */ - public get name () { + public get name() { return this._name; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["address", (o, n) => { (o as unknown as EmailAddress).address = n.getStringValue(); }], ["name", (o, n) => { (o as unknown as EmailAddress).name = n.getStringValue(); }], @@ -42,7 +48,7 @@ export class EmailAddress implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("address", this.address); writer.writeStringValue("name", this.name); writer.writeAdditionalData(this.additionalData); @@ -51,21 +57,21 @@ export class EmailAddress implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the address property value. The email address of an entity instance. * @param value Value to set for the address property. */ - public set address (value: string | undefined) { + public set address(value: string | undefined) { this._address = value; }; /** * Sets the name property value. The display name of an entity instance. * @param value Value to set for the name property. */ - public set name (value: string | undefined) { + public set name(value: string | undefined) { this._name = value; }; } diff --git a/msgraph-mail/typescript/src/users/entity.ts b/msgraph-mail/typescript/src/users/entity.ts index 858dbae8a..a6ad9d422 100644 --- a/msgraph-mail/typescript/src/users/entity.ts +++ b/msgraph-mail/typescript/src/users/entity.ts @@ -2,28 +2,34 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class Entity implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; /** Read-only. */ private _id?: string | undefined; + /** + * Instantiates a new entity and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the id property value. Read-only. * @returns a string */ - public get id () { + public get id() { return this._id; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["id", (o, n) => { (o as unknown as Entity).id = n.getStringValue(); }], ]); @@ -32,7 +38,7 @@ export class Entity implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("id", this.id); writer.writeAdditionalData(this.additionalData); }; @@ -40,14 +46,14 @@ export class Entity implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the id property value. Read-only. * @param value Value to set for the id property. */ - public set id (value: string | undefined) { + public set id(value: string | undefined) { this._id = value; }; } diff --git a/msgraph-mail/typescript/src/users/extension.ts b/msgraph-mail/typescript/src/users/extension.ts index 97778b2bc..5e5678a2b 100644 --- a/msgraph-mail/typescript/src/users/extension.ts +++ b/msgraph-mail/typescript/src/users/extension.ts @@ -2,11 +2,17 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac import {Entity} from './entity'; export class Extension extends Entity implements Parsable { + /** + * Instantiates a new extension and sets the default values. + */ + public constructor() { + super(); + }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ]); }; @@ -14,7 +20,7 @@ export class Extension extends Entity implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); }; } diff --git a/msgraph-mail/typescript/src/users/followupFlag.ts b/msgraph-mail/typescript/src/users/followupFlag.ts index d54b49d0e..fb323b7bc 100644 --- a/msgraph-mail/typescript/src/users/followupFlag.ts +++ b/msgraph-mail/typescript/src/users/followupFlag.ts @@ -4,51 +4,57 @@ import {FollowupFlagStatus} from './followupFlagStatus'; export class FollowupFlag implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _completedDateTime?: DateTimeTimeZone | undefined; private _dueDateTime?: DateTimeTimeZone | undefined; private _flagStatus?: FollowupFlagStatus | undefined; private _startDateTime?: DateTimeTimeZone | undefined; + /** + * Instantiates a new followupFlag and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the completedDateTime property value. * @returns a dateTimeTimeZone */ - public get completedDateTime () { + public get completedDateTime() { return this._completedDateTime; }; /** * Gets the dueDateTime property value. * @returns a dateTimeTimeZone */ - public get dueDateTime () { + public get dueDateTime() { return this._dueDateTime; }; /** * Gets the flagStatus property value. * @returns a followupFlagStatus */ - public get flagStatus () { + public get flagStatus() { return this._flagStatus; }; /** * Gets the startDateTime property value. * @returns a dateTimeTimeZone */ - public get startDateTime () { + public get startDateTime() { return this._startDateTime; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["completedDateTime", (o, n) => { (o as unknown as FollowupFlag).completedDateTime = n.getObjectValue(DateTimeTimeZone); }], ["dueDateTime", (o, n) => { (o as unknown as FollowupFlag).dueDateTime = n.getObjectValue(DateTimeTimeZone); }], @@ -60,7 +66,7 @@ export class FollowupFlag implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeObjectValue("completedDateTime", this.completedDateTime); writer.writeObjectValue("dueDateTime", this.dueDateTime); writer.writeEnumValue("flagStatus", this.flagStatus); @@ -71,35 +77,35 @@ export class FollowupFlag implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the completedDateTime property value. * @param value Value to set for the completedDateTime property. */ - public set completedDateTime (value: DateTimeTimeZone | undefined) { + public set completedDateTime(value: DateTimeTimeZone | undefined) { this._completedDateTime = value; }; /** * Sets the dueDateTime property value. * @param value Value to set for the dueDateTime property. */ - public set dueDateTime (value: DateTimeTimeZone | undefined) { + public set dueDateTime(value: DateTimeTimeZone | undefined) { this._dueDateTime = value; }; /** * Sets the flagStatus property value. * @param value Value to set for the flagStatus property. */ - public set flagStatus (value: FollowupFlagStatus | undefined) { + public set flagStatus(value: FollowupFlagStatus | undefined) { this._flagStatus = value; }; /** * Sets the startDateTime property value. * @param value Value to set for the startDateTime property. */ - public set startDateTime (value: DateTimeTimeZone | undefined) { + public set startDateTime(value: DateTimeTimeZone | undefined) { this._startDateTime = value; }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts index 8165c48a8..2e2ca30a1 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassification.ts @@ -5,18 +5,24 @@ import {InferenceClassificationOverride} from './inferenceClassificationOverride export class InferenceClassification extends Entity implements Parsable { /** A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. */ private _overrides?: InferenceClassificationOverride[] | undefined; + /** + * Instantiates a new InferenceClassification and sets the default values. + */ + public constructor() { + super(); + }; /** * Gets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. * @returns a inferenceClassificationOverride */ - public get overrides () { + public get overrides() { return this._overrides; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["overrides", (o, n) => { (o as unknown as InferenceClassification).overrides = n.getCollectionOfObjectValues(InferenceClassificationOverride); }], ]); @@ -25,7 +31,7 @@ export class InferenceClassification extends Entity implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfObjectValues("overrides", this.overrides); }; @@ -33,7 +39,7 @@ export class InferenceClassification extends Entity implements Parsable { * Sets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. * @param value Value to set for the overrides property. */ - public set overrides (value: InferenceClassificationOverride[] | undefined) { + public set overrides(value: InferenceClassificationOverride[] | undefined) { this._overrides = value; }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts index 92fed4018..4e890f6c5 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationOverride.ts @@ -6,25 +6,31 @@ import {InferenceClassificationType} from '../inferenceClassificationType'; export class InferenceClassificationOverride extends Entity implements Parsable { private _classifyAs?: InferenceClassificationType | undefined; private _senderEmailAddress?: EmailAddress | undefined; + /** + * Instantiates a new inferenceClassificationOverride and sets the default values. + */ + public constructor() { + super(); + }; /** * Gets the classifyAs property value. * @returns a inferenceClassificationType */ - public get classifyAs () { + public get classifyAs() { return this._classifyAs; }; /** * Gets the senderEmailAddress property value. * @returns a emailAddress */ - public get senderEmailAddress () { + public get senderEmailAddress() { return this._senderEmailAddress; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["classifyAs", (o, n) => { (o as unknown as InferenceClassificationOverride).classifyAs = n.getEnumValue(InferenceClassificationType); }], ["senderEmailAddress", (o, n) => { (o as unknown as InferenceClassificationOverride).senderEmailAddress = n.getObjectValue(EmailAddress); }], @@ -34,7 +40,7 @@ export class InferenceClassificationOverride extends Entity implements Parsable * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeEnumValue("classifyAs", this.classifyAs); writer.writeObjectValue("senderEmailAddress", this.senderEmailAddress); @@ -43,14 +49,14 @@ export class InferenceClassificationOverride extends Entity implements Parsable * Sets the classifyAs property value. * @param value Value to set for the classifyAs property. */ - public set classifyAs (value: InferenceClassificationType | undefined) { + public set classifyAs(value: InferenceClassificationType | undefined) { this._classifyAs = value; }; /** * Sets the senderEmailAddress property value. * @param value Value to set for the senderEmailAddress property. */ - public set senderEmailAddress (value: EmailAddress | undefined) { + public set senderEmailAddress(value: EmailAddress | undefined) { this._senderEmailAddress = value; }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts index 6b2d7d04a..6b20295c8 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts @@ -17,15 +17,21 @@ export class InferenceClassificationRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/inferenceClassification"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new InferenceClassificationRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/inferenceClassification"; + }; /** * Delete navigation property inferenceClassification for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -38,7 +44,7 @@ export class InferenceClassificationRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -55,7 +61,7 @@ export class InferenceClassificationRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: InferenceClassification | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: InferenceClassification | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -68,7 +74,7 @@ export class InferenceClassificationRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -81,7 +87,7 @@ export class InferenceClassificationRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of InferenceClassification */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -94,28 +100,28 @@ export class InferenceClassificationRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -123,7 +129,7 @@ export class InferenceClassificationRequestBuilder { * @param id Unique identifier of the item * @returns a InferenceClassificationOverrideRequestBuilder */ - public overridesById (id: String) : InferenceClassificationOverrideRequestBuilder { + public overridesById(id: String) : InferenceClassificationOverrideRequestBuilder { const builder = new InferenceClassificationOverrideRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/overrides/" + id; builder.httpCore = this.httpCore; @@ -136,7 +142,7 @@ export class InferenceClassificationRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: InferenceClassification | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: InferenceClassification | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -146,21 +152,21 @@ export class InferenceClassificationRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts index 960fc4e95..a46932ae5 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts @@ -8,15 +8,21 @@ export class InferenceClassificationOverrideRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new InferenceClassificationOverrideRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property overrides for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class InferenceClassificationOverrideRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class InferenceClassificationOverrideRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: InferenceClassificationOverride | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: InferenceClassificationOverride | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class InferenceClassificationOverrideRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class InferenceClassificationOverrideRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of InferenceClassificationOverride */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class InferenceClassificationOverrideRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class InferenceClassificationOverrideRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: InferenceClassificationOverride | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: InferenceClassificationOverride | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class InferenceClassificationOverrideRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts index a3a4852f0..f27b84b6d 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts @@ -9,16 +9,22 @@ export class OverridesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/overrides"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new OverridesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/overrides"; + }; /** * Get overrides from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class OverridesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: InferenceClassificationOverride | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: InferenceClassificationOverride | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class OverridesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of OverridesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class OverridesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class OverridesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of InferenceClassificationOverride */ - public post (body: InferenceClassificationOverride | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: InferenceClassificationOverride | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class OverridesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts index 3c06f9367..f4ae5caae 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesResponse.ts @@ -3,35 +3,41 @@ import {InferenceClassificationOverride} from '../inferenceClassificationOverrid export class OverridesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: InferenceClassificationOverride[] | undefined; + /** + * Instantiates a new OverridesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a inferenceClassificationOverride */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as OverridesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as OverridesResponse).value = n.getCollectionOfObjectValues(InferenceClassificationOverride); }], @@ -41,7 +47,7 @@ export class OverridesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class OverridesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: InferenceClassificationOverride[] | undefined) { + public set value(value: InferenceClassificationOverride[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/internetMessageHeader.ts b/msgraph-mail/typescript/src/users/internetMessageHeader.ts index 0f3b25417..ff61c963c 100644 --- a/msgraph-mail/typescript/src/users/internetMessageHeader.ts +++ b/msgraph-mail/typescript/src/users/internetMessageHeader.ts @@ -2,37 +2,43 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class InternetMessageHeader implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; /** Represents the key in a key-value pair. */ private _name?: string | undefined; /** The value in a key-value pair. */ private _value?: string | undefined; + /** + * Instantiates a new internetMessageHeader and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the name property value. Represents the key in a key-value pair. * @returns a string */ - public get name () { + public get name() { return this._name; }; /** * Gets the value property value. The value in a key-value pair. * @returns a string */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["name", (o, n) => { (o as unknown as InternetMessageHeader).name = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as InternetMessageHeader).value = n.getStringValue(); }], @@ -42,7 +48,7 @@ export class InternetMessageHeader implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("name", this.name); writer.writeStringValue("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -51,21 +57,21 @@ export class InternetMessageHeader implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the name property value. Represents the key in a key-value pair. * @param value Value to set for the name property. */ - public set name (value: string | undefined) { + public set name(value: string | undefined) { this._name = value; }; /** * Sets the value property value. The value in a key-value pair. * @param value Value to set for the value property. */ - public set value (value: string | undefined) { + public set value(value: string | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts b/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts index 23ccbcabb..23afbb634 100644 --- a/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts @@ -33,35 +33,41 @@ export class UserRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new UserRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -69,7 +75,7 @@ export class UserRequestBuilder { * @param id Unique identifier of the item * @returns a MailFolderRequestBuilder */ - public mailFoldersById (id: String) : MailFolderRequestBuilder { + public mailFoldersById(id: String) : MailFolderRequestBuilder { const builder = new MailFolderRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/mailFolders/" + id; builder.httpCore = this.httpCore; @@ -81,7 +87,7 @@ export class UserRequestBuilder { * @param id Unique identifier of the item * @returns a MessageRequestBuilder */ - public messagesById (id: String) : MessageRequestBuilder { + public messagesById(id: String) : MessageRequestBuilder { const builder = new MessageRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/messages/" + id; builder.httpCore = this.httpCore; @@ -92,21 +98,21 @@ export class UserRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/itemBody.ts b/msgraph-mail/typescript/src/users/itemBody.ts index 6f61f7cb8..b6187ec8e 100644 --- a/msgraph-mail/typescript/src/users/itemBody.ts +++ b/msgraph-mail/typescript/src/users/itemBody.ts @@ -3,36 +3,42 @@ import {BodyType} from './bodyType'; export class ItemBody implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; /** The content of the item. */ private _content?: string | undefined; private _contentType?: BodyType | undefined; + /** + * Instantiates a new itemBody and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the content property value. The content of the item. * @returns a string */ - public get content () { + public get content() { return this._content; }; /** * Gets the contentType property value. * @returns a bodyType */ - public get contentType () { + public get contentType() { return this._contentType; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["content", (o, n) => { (o as unknown as ItemBody).content = n.getStringValue(); }], ["contentType", (o, n) => { (o as unknown as ItemBody).contentType = n.getEnumValue(BodyType); }], @@ -42,7 +48,7 @@ export class ItemBody implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("content", this.content); writer.writeEnumValue("contentType", this.contentType); writer.writeAdditionalData(this.additionalData); @@ -51,21 +57,21 @@ export class ItemBody implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the content property value. The content of the item. * @param value Value to set for the content property. */ - public set content (value: string | undefined) { + public set content(value: string | undefined) { this._content = value; }; /** * Sets the contentType property value. * @param value Value to set for the contentType property. */ - public set contentType (value: BodyType | undefined) { + public set contentType(value: BodyType | undefined) { this._contentType = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolder.ts b/msgraph-mail/typescript/src/users/mailFolder.ts index 8a3bf35b7..3277ae01b 100644 --- a/msgraph-mail/typescript/src/users/mailFolder.ts +++ b/msgraph-mail/typescript/src/users/mailFolder.ts @@ -28,88 +28,94 @@ export class MailFolder extends Entity implements Parsable { private _totalItemCount?: number | undefined; /** The number of items in the mailFolder marked as unread. */ private _unreadItemCount?: number | undefined; + /** + * Instantiates a new mailFolder and sets the default values. + */ + public constructor() { + super(); + }; /** * Gets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. * @returns a integer */ - public get childFolderCount () { + public get childFolderCount() { return this._childFolderCount; }; /** * Gets the childFolders property value. The collection of child folders in the mailFolder. * @returns a mailFolder */ - public get childFolders () { + public get childFolders() { return this._childFolders; }; /** * Gets the displayName property value. The mailFolder's display name. * @returns a string */ - public get displayName () { + public get displayName() { return this._displayName; }; /** * Gets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. * @returns a boolean */ - public get isHidden () { + public get isHidden() { return this._isHidden; }; /** * Gets the messageRules property value. The collection of rules that apply to the user's Inbox folder. * @returns a messageRule */ - public get messageRules () { + public get messageRules() { return this._messageRules; }; /** * Gets the messages property value. The collection of messages in the mailFolder. * @returns a message */ - public get messages () { + public get messages() { return this._messages; }; /** * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. * @returns a multiValueLegacyExtendedProperty */ - public get multiValueExtendedProperties () { + public get multiValueExtendedProperties() { return this._multiValueExtendedProperties; }; /** * Gets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. * @returns a string */ - public get parentFolderId () { + public get parentFolderId() { return this._parentFolderId; }; /** * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. * @returns a singleValueLegacyExtendedProperty */ - public get singleValueExtendedProperties () { + public get singleValueExtendedProperties() { return this._singleValueExtendedProperties; }; /** * Gets the totalItemCount property value. The number of items in the mailFolder. * @returns a integer */ - public get totalItemCount () { + public get totalItemCount() { return this._totalItemCount; }; /** * Gets the unreadItemCount property value. The number of items in the mailFolder marked as unread. * @returns a integer */ - public get unreadItemCount () { + public get unreadItemCount() { return this._unreadItemCount; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["childFolderCount", (o, n) => { (o as unknown as MailFolder).childFolderCount = n.getNumberValue(); }], ["childFolders", (o, n) => { (o as unknown as MailFolder).childFolders = n.getCollectionOfObjectValues(MailFolder); }], @@ -128,7 +134,7 @@ export class MailFolder extends Entity implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeNumberValue("childFolderCount", this.childFolderCount); writer.writeCollectionOfObjectValues("childFolders", this.childFolders); @@ -146,77 +152,77 @@ export class MailFolder extends Entity implements Parsable { * Sets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. * @param value Value to set for the childFolderCount property. */ - public set childFolderCount (value: number | undefined) { + public set childFolderCount(value: number | undefined) { this._childFolderCount = value; }; /** * Sets the childFolders property value. The collection of child folders in the mailFolder. * @param value Value to set for the childFolders property. */ - public set childFolders (value: MailFolder[] | undefined) { + public set childFolders(value: MailFolder[] | undefined) { this._childFolders = value; }; /** * Sets the displayName property value. The mailFolder's display name. * @param value Value to set for the displayName property. */ - public set displayName (value: string | undefined) { + public set displayName(value: string | undefined) { this._displayName = value; }; /** * Sets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. * @param value Value to set for the isHidden property. */ - public set isHidden (value: boolean | undefined) { + public set isHidden(value: boolean | undefined) { this._isHidden = value; }; /** * Sets the messageRules property value. The collection of rules that apply to the user's Inbox folder. * @param value Value to set for the messageRules property. */ - public set messageRules (value: MessageRule[] | undefined) { + public set messageRules(value: MessageRule[] | undefined) { this._messageRules = value; }; /** * Sets the messages property value. The collection of messages in the mailFolder. * @param value Value to set for the messages property. */ - public set messages (value: Message[] | undefined) { + public set messages(value: Message[] | undefined) { this._messages = value; }; /** * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. * @param value Value to set for the multiValueExtendedProperties property. */ - public set multiValueExtendedProperties (value: MultiValueLegacyExtendedProperty[] | undefined) { + public set multiValueExtendedProperties(value: MultiValueLegacyExtendedProperty[] | undefined) { this._multiValueExtendedProperties = value; }; /** * Sets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. * @param value Value to set for the parentFolderId property. */ - public set parentFolderId (value: string | undefined) { + public set parentFolderId(value: string | undefined) { this._parentFolderId = value; }; /** * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. * @param value Value to set for the singleValueExtendedProperties property. */ - public set singleValueExtendedProperties (value: SingleValueLegacyExtendedProperty[] | undefined) { + public set singleValueExtendedProperties(value: SingleValueLegacyExtendedProperty[] | undefined) { this._singleValueExtendedProperties = value; }; /** * Sets the totalItemCount property value. The number of items in the mailFolder. * @param value Value to set for the totalItemCount property. */ - public set totalItemCount (value: number | undefined) { + public set totalItemCount(value: number | undefined) { this._totalItemCount = value; }; /** * Sets the unreadItemCount property value. The number of items in the mailFolder marked as unread. * @param value Value to set for the unreadItemCount property. */ - public set unreadItemCount (value: number | undefined) { + public set unreadItemCount(value: number | undefined) { this._unreadItemCount = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts index 918ac2ab3..3a78b7f38 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts @@ -9,16 +9,22 @@ export class ChildFoldersRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/childFolders"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ChildFoldersRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/childFolders"; + }; /** * Get childFolders from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class ChildFoldersRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MailFolder | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class ChildFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ChildFoldersResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class ChildFoldersRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class ChildFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public post (body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class ChildFoldersRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts index d5d44b298..b587dc5fb 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersResponse.ts @@ -3,35 +3,41 @@ import {MailFolder} from '../../mailFolder'; export class ChildFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: MailFolder[] | undefined; + /** + * Instantiates a new ChildFoldersResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a mailFolder */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as ChildFoldersResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as ChildFoldersResponse).value = n.getCollectionOfObjectValues(MailFolder); }], @@ -41,7 +47,7 @@ export class ChildFoldersResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class ChildFoldersResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: MailFolder[] | undefined) { + public set value(value: MailFolder[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts index 82de61772..6dd2c31d8 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts @@ -8,15 +8,21 @@ export class MailFolderRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MailFolderRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property childFolders for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MailFolderRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MailFolder | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class MailFolderRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class MailFolderRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class MailFolderRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts index d8d2ad750..fce2f9949 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts @@ -45,7 +45,7 @@ export class MailFolderRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { @@ -60,19 +60,25 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a MailFolderRequestBuilder */ - public childFoldersById (id: String) : MailFolderRequestBuilder { + public childFoldersById(id: String) : MailFolderRequestBuilder { const builder = new MailFolderRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/childFolders/" + id; builder.httpCore = this.httpCore; builder.serializerFactory = this.serializerFactory; return builder; }; + /** + * Instantiates a new MailFolderRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property mailFolders for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -85,7 +91,7 @@ export class MailFolderRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -102,7 +108,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MailFolder | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -115,7 +121,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -128,7 +134,7 @@ export class MailFolderRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -141,28 +147,28 @@ export class MailFolderRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -170,7 +176,7 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a MessageRuleRequestBuilder */ - public messageRulesById (id: String) : MessageRuleRequestBuilder { + public messageRulesById(id: String) : MessageRuleRequestBuilder { const builder = new MessageRuleRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/messageRules/" + id; builder.httpCore = this.httpCore; @@ -182,7 +188,7 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a MessageRequestBuilder */ - public messagesById (id: String) : MessageRequestBuilder { + public messagesById(id: String) : MessageRequestBuilder { const builder = new MessageRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/messages/" + id; builder.httpCore = this.httpCore; @@ -194,7 +200,7 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a MultiValueLegacyExtendedPropertyRequestBuilder */ - public multiValueExtendedPropertiesById (id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { + public multiValueExtendedPropertiesById(id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { const builder = new MultiValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/multiValueExtendedProperties/" + id; builder.httpCore = this.httpCore; @@ -207,7 +213,7 @@ export class MailFolderRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -217,21 +223,21 @@ export class MailFolderRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; /** @@ -239,7 +245,7 @@ export class MailFolderRequestBuilder { * @param id Unique identifier of the item * @returns a SingleValueLegacyExtendedPropertyRequestBuilder */ - public singleValueExtendedPropertiesById (id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { + public singleValueExtendedPropertiesById(id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { const builder = new SingleValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/singleValueExtendedProperties/" + id; builder.httpCore = this.httpCore; diff --git a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts index 9ce925ebb..803232f2c 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts @@ -9,16 +9,22 @@ export class MailFoldersRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/mailFolders"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MailFoldersRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/mailFolders"; + }; /** * Get mailFolders from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MailFoldersRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MailFolder | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MailFolder | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MailFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFoldersResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class MailFoldersRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class MailFoldersRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MailFolder */ - public post (body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MailFolder | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class MailFoldersRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts index 9bbaecacd..a8f4575fa 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersResponse.ts @@ -3,35 +3,41 @@ import {MailFolder} from '../mailFolder'; export class MailFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: MailFolder[] | undefined; + /** + * Instantiates a new MailFoldersResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a mailFolder */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MailFoldersResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MailFoldersResponse).value = n.getCollectionOfObjectValues(MailFolder); }], @@ -41,7 +47,7 @@ export class MailFoldersResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class MailFoldersResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: MailFolder[] | undefined) { + public set value(value: MailFolder[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts index 4001fbf0b..4a699f61b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRuleActions.ts @@ -4,7 +4,7 @@ import {Recipient} from '../recipient'; export class MessageRuleActions implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; /** A list of categories to be assigned to a message. */ private _assignCategories?: string[] | undefined; /** The ID of a folder that a message is to be copied to. */ @@ -26,95 +26,101 @@ export class MessageRuleActions implements Parsable { private _redirectTo?: Recipient[] | undefined; /** Indicates whether subsequent rules should be evaluated. */ private _stopProcessingRules?: boolean | undefined; + /** + * Instantiates a new messageRuleActions and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the assignCategories property value. A list of categories to be assigned to a message. * @returns a string */ - public get assignCategories () { + public get assignCategories() { return this._assignCategories; }; /** * Gets the copyToFolder property value. The ID of a folder that a message is to be copied to. * @returns a string */ - public get copyToFolder () { + public get copyToFolder() { return this._copyToFolder; }; /** * Gets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. * @returns a boolean */ - public get delete () { + public get delete() { return this._delete; }; /** * Gets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. * @returns a recipient */ - public get forwardAsAttachmentTo () { + public get forwardAsAttachmentTo() { return this._forwardAsAttachmentTo; }; /** * Gets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. * @returns a recipient */ - public get forwardTo () { + public get forwardTo() { return this._forwardTo; }; /** * Gets the markAsRead property value. Indicates whether a message should be marked as read. * @returns a boolean */ - public get markAsRead () { + public get markAsRead() { return this._markAsRead; }; /** * Gets the markImportance property value. * @returns a importance */ - public get markImportance () { + public get markImportance() { return this._markImportance; }; /** * Gets the moveToFolder property value. The ID of the folder that a message will be moved to. * @returns a string */ - public get moveToFolder () { + public get moveToFolder() { return this._moveToFolder; }; /** * Gets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. * @returns a boolean */ - public get permanentDelete () { + public get permanentDelete() { return this._permanentDelete; }; /** * Gets the redirectTo property value. The email address to which a message should be redirected. * @returns a recipient */ - public get redirectTo () { + public get redirectTo() { return this._redirectTo; }; /** * Gets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. * @returns a boolean */ - public get stopProcessingRules () { + public get stopProcessingRules() { return this._stopProcessingRules; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["assignCategories", (o, n) => { (o as unknown as MessageRuleActions).assignCategories = n.getCollectionOfPrimitiveValues(); }], ["copyToFolder", (o, n) => { (o as unknown as MessageRuleActions).copyToFolder = n.getStringValue(); }], @@ -133,7 +139,7 @@ export class MessageRuleActions implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeCollectionOfPrimitiveValues("assignCategories", this.assignCategories); writer.writeStringValue("copyToFolder", this.copyToFolder); writer.writeBooleanValue("delete", this.delete); @@ -151,84 +157,84 @@ export class MessageRuleActions implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the assignCategories property value. A list of categories to be assigned to a message. * @param value Value to set for the assignCategories property. */ - public set assignCategories (value: string[] | undefined) { + public set assignCategories(value: string[] | undefined) { this._assignCategories = value; }; /** * Sets the copyToFolder property value. The ID of a folder that a message is to be copied to. * @param value Value to set for the copyToFolder property. */ - public set copyToFolder (value: string | undefined) { + public set copyToFolder(value: string | undefined) { this._copyToFolder = value; }; /** * Sets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. * @param value Value to set for the delete property. */ - public set delete (value: boolean | undefined) { + public set delete(value: boolean | undefined) { this._delete = value; }; /** * Sets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. * @param value Value to set for the forwardAsAttachmentTo property. */ - public set forwardAsAttachmentTo (value: Recipient[] | undefined) { + public set forwardAsAttachmentTo(value: Recipient[] | undefined) { this._forwardAsAttachmentTo = value; }; /** * Sets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. * @param value Value to set for the forwardTo property. */ - public set forwardTo (value: Recipient[] | undefined) { + public set forwardTo(value: Recipient[] | undefined) { this._forwardTo = value; }; /** * Sets the markAsRead property value. Indicates whether a message should be marked as read. * @param value Value to set for the markAsRead property. */ - public set markAsRead (value: boolean | undefined) { + public set markAsRead(value: boolean | undefined) { this._markAsRead = value; }; /** * Sets the markImportance property value. * @param value Value to set for the markImportance property. */ - public set markImportance (value: Importance | undefined) { + public set markImportance(value: Importance | undefined) { this._markImportance = value; }; /** * Sets the moveToFolder property value. The ID of the folder that a message will be moved to. * @param value Value to set for the moveToFolder property. */ - public set moveToFolder (value: string | undefined) { + public set moveToFolder(value: string | undefined) { this._moveToFolder = value; }; /** * Sets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. * @param value Value to set for the permanentDelete property. */ - public set permanentDelete (value: boolean | undefined) { + public set permanentDelete(value: boolean | undefined) { this._permanentDelete = value; }; /** * Sets the redirectTo property value. The email address to which a message should be redirected. * @param value Value to set for the redirectTo property. */ - public set redirectTo (value: Recipient[] | undefined) { + public set redirectTo(value: Recipient[] | undefined) { this._redirectTo = value; }; /** * Sets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. * @param value Value to set for the stopProcessingRules property. */ - public set stopProcessingRules (value: boolean | undefined) { + public set stopProcessingRules(value: boolean | undefined) { this._stopProcessingRules = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts index c1e231ee7..6af3d6064 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRulePredicates.ts @@ -7,7 +7,7 @@ import {SizeRange} from './sizeRange'; export class MessageRulePredicates implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; /** Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. */ private _bodyContains?: string[] | undefined; /** Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. */ @@ -64,228 +64,234 @@ export class MessageRulePredicates implements Parsable { /** Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. */ private _subjectContains?: string[] | undefined; private _withinSizeRange?: SizeRange | undefined; + /** + * Instantiates a new messageRulePredicates and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. * @returns a string */ - public get bodyContains () { + public get bodyContains() { return this._bodyContains; }; /** * Gets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. * @returns a string */ - public get bodyOrSubjectContains () { + public get bodyOrSubjectContains() { return this._bodyOrSubjectContains; }; /** * Gets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. * @returns a string */ - public get categories () { + public get categories() { return this._categories; }; /** * Gets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. * @returns a recipient */ - public get fromAddresses () { + public get fromAddresses() { return this._fromAddresses; }; /** * Gets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. * @returns a boolean */ - public get hasAttachments () { + public get hasAttachments() { return this._hasAttachments; }; /** * Gets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. * @returns a string */ - public get headerContains () { + public get headerContains() { return this._headerContains; }; /** * Gets the importance property value. * @returns a importance */ - public get importance () { + public get importance() { return this._importance; }; /** * Gets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. * @returns a boolean */ - public get isApprovalRequest () { + public get isApprovalRequest() { return this._isApprovalRequest; }; /** * Gets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. * @returns a boolean */ - public get isAutomaticForward () { + public get isAutomaticForward() { return this._isAutomaticForward; }; /** * Gets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. * @returns a boolean */ - public get isAutomaticReply () { + public get isAutomaticReply() { return this._isAutomaticReply; }; /** * Gets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. * @returns a boolean */ - public get isEncrypted () { + public get isEncrypted() { return this._isEncrypted; }; /** * Gets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. * @returns a boolean */ - public get isMeetingRequest () { + public get isMeetingRequest() { return this._isMeetingRequest; }; /** * Gets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. * @returns a boolean */ - public get isMeetingResponse () { + public get isMeetingResponse() { return this._isMeetingResponse; }; /** * Gets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. * @returns a boolean */ - public get isNonDeliveryReport () { + public get isNonDeliveryReport() { return this._isNonDeliveryReport; }; /** * Gets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. * @returns a boolean */ - public get isPermissionControlled () { + public get isPermissionControlled() { return this._isPermissionControlled; }; /** * Gets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. * @returns a boolean */ - public get isReadReceipt () { + public get isReadReceipt() { return this._isReadReceipt; }; /** * Gets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. * @returns a boolean */ - public get isSigned () { + public get isSigned() { return this._isSigned; }; /** * Gets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. * @returns a boolean */ - public get isVoicemail () { + public get isVoicemail() { return this._isVoicemail; }; /** * Gets the messageActionFlag property value. * @returns a messageActionFlag */ - public get messageActionFlag () { + public get messageActionFlag() { return this._messageActionFlag; }; /** * Gets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. * @returns a boolean */ - public get notSentToMe () { + public get notSentToMe() { return this._notSentToMe; }; /** * Gets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. * @returns a string */ - public get recipientContains () { + public get recipientContains() { return this._recipientContains; }; /** * Gets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. * @returns a string */ - public get senderContains () { + public get senderContains() { return this._senderContains; }; /** * Gets the sensitivity property value. * @returns a sensitivity */ - public get sensitivity () { + public get sensitivity() { return this._sensitivity; }; /** * Gets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. * @returns a boolean */ - public get sentCcMe () { + public get sentCcMe() { return this._sentCcMe; }; /** * Gets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. * @returns a boolean */ - public get sentOnlyToMe () { + public get sentOnlyToMe() { return this._sentOnlyToMe; }; /** * Gets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. * @returns a recipient */ - public get sentToAddresses () { + public get sentToAddresses() { return this._sentToAddresses; }; /** * Gets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. * @returns a boolean */ - public get sentToMe () { + public get sentToMe() { return this._sentToMe; }; /** * Gets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. * @returns a boolean */ - public get sentToOrCcMe () { + public get sentToOrCcMe() { return this._sentToOrCcMe; }; /** * Gets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. * @returns a string */ - public get subjectContains () { + public get subjectContains() { return this._subjectContains; }; /** * Gets the withinSizeRange property value. * @returns a sizeRange */ - public get withinSizeRange () { + public get withinSizeRange() { return this._withinSizeRange; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["bodyContains", (o, n) => { (o as unknown as MessageRulePredicates).bodyContains = n.getCollectionOfPrimitiveValues(); }], ["bodyOrSubjectContains", (o, n) => { (o as unknown as MessageRulePredicates).bodyOrSubjectContains = n.getCollectionOfPrimitiveValues(); }], @@ -323,7 +329,7 @@ export class MessageRulePredicates implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeCollectionOfPrimitiveValues("bodyContains", this.bodyContains); writer.writeCollectionOfPrimitiveValues("bodyOrSubjectContains", this.bodyOrSubjectContains); writer.writeCollectionOfPrimitiveValues("categories", this.categories); @@ -360,217 +366,217 @@ export class MessageRulePredicates implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. * @param value Value to set for the bodyContains property. */ - public set bodyContains (value: string[] | undefined) { + public set bodyContains(value: string[] | undefined) { this._bodyContains = value; }; /** * Sets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. * @param value Value to set for the bodyOrSubjectContains property. */ - public set bodyOrSubjectContains (value: string[] | undefined) { + public set bodyOrSubjectContains(value: string[] | undefined) { this._bodyOrSubjectContains = value; }; /** * Sets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. * @param value Value to set for the categories property. */ - public set categories (value: string[] | undefined) { + public set categories(value: string[] | undefined) { this._categories = value; }; /** * Sets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. * @param value Value to set for the fromAddresses property. */ - public set fromAddresses (value: Recipient[] | undefined) { + public set fromAddresses(value: Recipient[] | undefined) { this._fromAddresses = value; }; /** * Sets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. * @param value Value to set for the hasAttachments property. */ - public set hasAttachments (value: boolean | undefined) { + public set hasAttachments(value: boolean | undefined) { this._hasAttachments = value; }; /** * Sets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. * @param value Value to set for the headerContains property. */ - public set headerContains (value: string[] | undefined) { + public set headerContains(value: string[] | undefined) { this._headerContains = value; }; /** * Sets the importance property value. * @param value Value to set for the importance property. */ - public set importance (value: Importance | undefined) { + public set importance(value: Importance | undefined) { this._importance = value; }; /** * Sets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. * @param value Value to set for the isApprovalRequest property. */ - public set isApprovalRequest (value: boolean | undefined) { + public set isApprovalRequest(value: boolean | undefined) { this._isApprovalRequest = value; }; /** * Sets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. * @param value Value to set for the isAutomaticForward property. */ - public set isAutomaticForward (value: boolean | undefined) { + public set isAutomaticForward(value: boolean | undefined) { this._isAutomaticForward = value; }; /** * Sets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. * @param value Value to set for the isAutomaticReply property. */ - public set isAutomaticReply (value: boolean | undefined) { + public set isAutomaticReply(value: boolean | undefined) { this._isAutomaticReply = value; }; /** * Sets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. * @param value Value to set for the isEncrypted property. */ - public set isEncrypted (value: boolean | undefined) { + public set isEncrypted(value: boolean | undefined) { this._isEncrypted = value; }; /** * Sets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. * @param value Value to set for the isMeetingRequest property. */ - public set isMeetingRequest (value: boolean | undefined) { + public set isMeetingRequest(value: boolean | undefined) { this._isMeetingRequest = value; }; /** * Sets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. * @param value Value to set for the isMeetingResponse property. */ - public set isMeetingResponse (value: boolean | undefined) { + public set isMeetingResponse(value: boolean | undefined) { this._isMeetingResponse = value; }; /** * Sets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. * @param value Value to set for the isNonDeliveryReport property. */ - public set isNonDeliveryReport (value: boolean | undefined) { + public set isNonDeliveryReport(value: boolean | undefined) { this._isNonDeliveryReport = value; }; /** * Sets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. * @param value Value to set for the isPermissionControlled property. */ - public set isPermissionControlled (value: boolean | undefined) { + public set isPermissionControlled(value: boolean | undefined) { this._isPermissionControlled = value; }; /** * Sets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. * @param value Value to set for the isReadReceipt property. */ - public set isReadReceipt (value: boolean | undefined) { + public set isReadReceipt(value: boolean | undefined) { this._isReadReceipt = value; }; /** * Sets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. * @param value Value to set for the isSigned property. */ - public set isSigned (value: boolean | undefined) { + public set isSigned(value: boolean | undefined) { this._isSigned = value; }; /** * Sets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. * @param value Value to set for the isVoicemail property. */ - public set isVoicemail (value: boolean | undefined) { + public set isVoicemail(value: boolean | undefined) { this._isVoicemail = value; }; /** * Sets the messageActionFlag property value. * @param value Value to set for the messageActionFlag property. */ - public set messageActionFlag (value: MessageActionFlag | undefined) { + public set messageActionFlag(value: MessageActionFlag | undefined) { this._messageActionFlag = value; }; /** * Sets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. * @param value Value to set for the notSentToMe property. */ - public set notSentToMe (value: boolean | undefined) { + public set notSentToMe(value: boolean | undefined) { this._notSentToMe = value; }; /** * Sets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. * @param value Value to set for the recipientContains property. */ - public set recipientContains (value: string[] | undefined) { + public set recipientContains(value: string[] | undefined) { this._recipientContains = value; }; /** * Sets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. * @param value Value to set for the senderContains property. */ - public set senderContains (value: string[] | undefined) { + public set senderContains(value: string[] | undefined) { this._senderContains = value; }; /** * Sets the sensitivity property value. * @param value Value to set for the sensitivity property. */ - public set sensitivity (value: Sensitivity | undefined) { + public set sensitivity(value: Sensitivity | undefined) { this._sensitivity = value; }; /** * Sets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. * @param value Value to set for the sentCcMe property. */ - public set sentCcMe (value: boolean | undefined) { + public set sentCcMe(value: boolean | undefined) { this._sentCcMe = value; }; /** * Sets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. * @param value Value to set for the sentOnlyToMe property. */ - public set sentOnlyToMe (value: boolean | undefined) { + public set sentOnlyToMe(value: boolean | undefined) { this._sentOnlyToMe = value; }; /** * Sets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. * @param value Value to set for the sentToAddresses property. */ - public set sentToAddresses (value: Recipient[] | undefined) { + public set sentToAddresses(value: Recipient[] | undefined) { this._sentToAddresses = value; }; /** * Sets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. * @param value Value to set for the sentToMe property. */ - public set sentToMe (value: boolean | undefined) { + public set sentToMe(value: boolean | undefined) { this._sentToMe = value; }; /** * Sets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. * @param value Value to set for the sentToOrCcMe property. */ - public set sentToOrCcMe (value: boolean | undefined) { + public set sentToOrCcMe(value: boolean | undefined) { this._sentToOrCcMe = value; }; /** * Sets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. * @param value Value to set for the subjectContains property. */ - public set subjectContains (value: string[] | undefined) { + public set subjectContains(value: string[] | undefined) { this._subjectContains = value; }; /** * Sets the withinSizeRange property value. * @param value Value to set for the withinSizeRange property. */ - public set withinSizeRange (value: SizeRange | undefined) { + public set withinSizeRange(value: SizeRange | undefined) { this._withinSizeRange = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts index ddd080889..7986bc444 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts @@ -8,15 +8,21 @@ export class MessageRuleRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MessageRuleRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property messageRules for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MessageRuleRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MessageRuleRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MessageRule | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MessageRule | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class MessageRuleRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class MessageRuleRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessageRule */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class MessageRuleRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class MessageRuleRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: MessageRule | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MessageRule | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class MessageRuleRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts index c07471ed9..3a478f692 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MessageRulesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/messageRules"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MessageRulesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/messageRules"; + }; /** * Get messageRules from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MessageRulesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MessageRule | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MessageRule | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MessageRulesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessageRulesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class MessageRulesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class MessageRulesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessageRule */ - public post (body: MessageRule | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MessageRule | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class MessageRulesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts index a46c30557..43cdd5e3d 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesResponse.ts @@ -3,35 +3,41 @@ import {MessageRule} from '../../messageRule'; export class MessageRulesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: MessageRule[] | undefined; + /** + * Instantiates a new MessageRulesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a messageRule */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MessageRulesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MessageRulesResponse).value = n.getCollectionOfObjectValues(MessageRule); }], @@ -41,7 +47,7 @@ export class MessageRulesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class MessageRulesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: MessageRule[] | undefined) { + public set value(value: MessageRule[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts index a08db7f84..5001129a1 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts @@ -9,16 +9,22 @@ export class AttachmentsRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/attachments"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new AttachmentsRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/attachments"; + }; /** * Get attachments from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class AttachmentsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Attachment | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of AttachmentsResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class AttachmentsRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public post (body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class AttachmentsRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts index 40c92ff53..082f4e0f0 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsResponse.ts @@ -3,35 +3,41 @@ import {Attachment} from '../../../attachment'; export class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: Attachment[] | undefined; + /** + * Instantiates a new AttachmentsResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a attachment */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as AttachmentsResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as AttachmentsResponse).value = n.getCollectionOfObjectValues(Attachment); }], @@ -41,7 +47,7 @@ export class AttachmentsResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class AttachmentsResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: Attachment[] | undefined) { + public set value(value: Attachment[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts index a3e66353d..b055038c8 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts @@ -8,15 +8,21 @@ export class AttachmentRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new AttachmentRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property attachments for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class AttachmentRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Attachment | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class AttachmentRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class AttachmentRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class AttachmentRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts index 611712587..fe84aa18c 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts @@ -8,15 +8,21 @@ export class ContentRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/$value"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ContentRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/$value"; + }; /** * Get media content for the navigation property messages from users * @param h Request headers * @returns a RequestInfo */ - public createGetRequestInfo (h?: object | undefined) : RequestInfo { + public createGetRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.GET, @@ -29,7 +35,7 @@ export class ContentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPutRequestInfo (body: ReadableStream | undefined, h?: object | undefined) : RequestInfo { + public createPutRequestInfo(body: ReadableStream | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PUT, @@ -43,7 +49,7 @@ export class ContentRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ReadableStream */ - public get (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public get(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createGetRequestInfo( h ); @@ -53,28 +59,28 @@ export class ContentRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -83,7 +89,7 @@ export class ContentRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public put (body: ReadableStream | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public put(body: ReadableStream | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPutRequestInfo( body, h ); @@ -93,21 +99,21 @@ export class ContentRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts index b09473c42..71feafb3b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts @@ -9,16 +9,22 @@ export class ExtensionsRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/extensions"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ExtensionsRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/extensions"; + }; /** * Get extensions from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class ExtensionsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Extension | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ExtensionsResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class ExtensionsRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public post (body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class ExtensionsRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts index 8f8cb44fb..d63d4d04d 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsResponse.ts @@ -3,35 +3,41 @@ import {Extension} from '../../../extension'; export class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: Extension[] | undefined; + /** + * Instantiates a new ExtensionsResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a extension */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as ExtensionsResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as ExtensionsResponse).value = n.getCollectionOfObjectValues(Extension); }], @@ -41,7 +47,7 @@ export class ExtensionsResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class ExtensionsResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: Extension[] | undefined) { + public set value(value: Extension[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts index 61a1f956f..e74446041 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts @@ -8,15 +8,21 @@ export class ExtensionRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ExtensionRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property extensions for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class ExtensionRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Extension | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class ExtensionRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class ExtensionRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class ExtensionRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts index 93a9cee06..462df6b41 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts @@ -45,7 +45,7 @@ export class MessageRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { @@ -60,19 +60,25 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a AttachmentRequestBuilder */ - public attachmentsById (id: String) : AttachmentRequestBuilder { + public attachmentsById(id: String) : AttachmentRequestBuilder { const builder = new AttachmentRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/attachments/" + id; builder.httpCore = this.httpCore; builder.serializerFactory = this.serializerFactory; return builder; }; + /** + * Instantiates a new MessageRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property messages for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -85,7 +91,7 @@ export class MessageRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -102,7 +108,7 @@ export class MessageRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Message | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -115,7 +121,7 @@ export class MessageRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -126,7 +132,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a ExtensionRequestBuilder */ - public extensionsById (id: String) : ExtensionRequestBuilder { + public extensionsById(id: String) : ExtensionRequestBuilder { const builder = new ExtensionRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/extensions/" + id; builder.httpCore = this.httpCore; @@ -140,7 +146,7 @@ export class MessageRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -153,28 +159,28 @@ export class MessageRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -182,7 +188,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a MultiValueLegacyExtendedPropertyRequestBuilder */ - public multiValueExtendedPropertiesById (id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { + public multiValueExtendedPropertiesById(id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { const builder = new MultiValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/multiValueExtendedProperties/" + id; builder.httpCore = this.httpCore; @@ -195,7 +201,7 @@ export class MessageRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -205,21 +211,21 @@ export class MessageRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; /** @@ -227,7 +233,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a SingleValueLegacyExtendedPropertyRequestBuilder */ - public singleValueExtendedPropertiesById (id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { + public singleValueExtendedPropertiesById(id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { const builder = new SingleValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/singleValueExtendedProperties/" + id; builder.httpCore = this.httpCore; diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts index 54a473af7..90c2f2232 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MessagesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/messages"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MessagesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/messages"; + }; /** * Get messages from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MessagesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Message | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessagesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class MessagesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public post (body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class MessagesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts index 0629c73f2..d9abdd869 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesResponse.ts @@ -3,35 +3,41 @@ import {Message} from '../../message'; export class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: Message[] | undefined; + /** + * Instantiates a new MessagesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a message */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MessagesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MessagesResponse).value = n.getCollectionOfObjectValues(Message); }], @@ -41,7 +47,7 @@ export class MessagesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class MessagesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: Message[] | undefined) { + public set value(value: Message[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index e60a7300e..a1b765661 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index 2ca25796e..f8de22e9c 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MultiValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/multiValueExtendedProperties"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/multiValueExtendedProperties"; + }; /** * Get multiValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class MultiValueExtendedPropertiesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public post (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class MultiValueExtendedPropertiesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts index b20c50b03..9091fc5be 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts @@ -3,35 +3,41 @@ import {MultiValueLegacyExtendedProperty} from '../../../multiValueLegacyExtende export class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: MultiValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a multiValueLegacyExtendedProperty */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty); }], @@ -41,7 +47,7 @@ export class MultiValueExtendedPropertiesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class MultiValueExtendedPropertiesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: MultiValueLegacyExtendedProperty[] | undefined) { + public set value(value: MultiValueLegacyExtendedProperty[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index 9b7e51fcd..4cf0d1736 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index 42cd7a85b..8af6349ba 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class SingleValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/singleValueExtendedProperties"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/singleValueExtendedProperties"; + }; /** * Get singleValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class SingleValueExtendedPropertiesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public post (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class SingleValueExtendedPropertiesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts index f2290a4ce..bac0eae27 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts @@ -3,35 +3,41 @@ import {SingleValueLegacyExtendedProperty} from '../../../singleValueLegacyExten export class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: SingleValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a singleValueLegacyExtendedProperty */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty); }], @@ -41,7 +47,7 @@ export class SingleValueExtendedPropertiesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class SingleValueExtendedPropertiesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: SingleValueLegacyExtendedProperty[] | undefined) { + public set value(value: SingleValueLegacyExtendedProperty[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index 67f411def..d74cd1f2d 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index 0785bb03b..bd776a842 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MultiValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/multiValueExtendedProperties"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/multiValueExtendedProperties"; + }; /** * Get multiValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class MultiValueExtendedPropertiesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public post (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class MultiValueExtendedPropertiesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts index 680dd053c..d0a529dc4 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts @@ -3,35 +3,41 @@ import {MultiValueLegacyExtendedProperty} from '../../multiValueLegacyExtendedPr export class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: MultiValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a multiValueLegacyExtendedProperty */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty); }], @@ -41,7 +47,7 @@ export class MultiValueExtendedPropertiesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class MultiValueExtendedPropertiesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: MultiValueLegacyExtendedProperty[] | undefined) { + public set value(value: MultiValueLegacyExtendedProperty[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index 5929b84ba..0e49aa8c9 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index ce9f9c623..ab011cf89 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class SingleValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/singleValueExtendedProperties"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/singleValueExtendedProperties"; + }; /** * Get singleValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class SingleValueExtendedPropertiesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public post (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class SingleValueExtendedPropertiesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts index de898942c..d32da5230 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts @@ -3,35 +3,41 @@ import {SingleValueLegacyExtendedProperty} from '../../singleValueLegacyExtended export class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: SingleValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a singleValueLegacyExtendedProperty */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty); }], @@ -41,7 +47,7 @@ export class SingleValueExtendedPropertiesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class SingleValueExtendedPropertiesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: SingleValueLegacyExtendedProperty[] | undefined) { + public set value(value: SingleValueLegacyExtendedProperty[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts b/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts index 1df458250..45d7644d4 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/sizeRange.ts @@ -2,37 +2,43 @@ import {SerializationWriter, ParseNode, Parsable} from '@microsoft/kiota-abstrac export class SizeRange implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; /** The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ private _maximumSize?: number | undefined; /** The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ private _minimumSize?: number | undefined; + /** + * Instantiates a new sizeRange and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. * @returns a integer */ - public get maximumSize () { + public get maximumSize() { return this._maximumSize; }; /** * Gets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. * @returns a integer */ - public get minimumSize () { + public get minimumSize() { return this._minimumSize; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["maximumSize", (o, n) => { (o as unknown as SizeRange).maximumSize = n.getNumberValue(); }], ["minimumSize", (o, n) => { (o as unknown as SizeRange).minimumSize = n.getNumberValue(); }], @@ -42,7 +48,7 @@ export class SizeRange implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeNumberValue("maximumSize", this.maximumSize); writer.writeNumberValue("minimumSize", this.minimumSize); writer.writeAdditionalData(this.additionalData); @@ -51,21 +57,21 @@ export class SizeRange implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. * @param value Value to set for the maximumSize property. */ - public set maximumSize (value: number | undefined) { + public set maximumSize(value: number | undefined) { this._maximumSize = value; }; /** * Sets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. * @param value Value to set for the minimumSize property. */ - public set minimumSize (value: number | undefined) { + public set minimumSize(value: number | undefined) { this._minimumSize = value; }; } diff --git a/msgraph-mail/typescript/src/users/message.ts b/msgraph-mail/typescript/src/users/message.ts index deeaa2851..75d4d805b 100644 --- a/msgraph-mail/typescript/src/users/message.ts +++ b/msgraph-mail/typescript/src/users/message.ts @@ -65,221 +65,227 @@ export class Message extends OutlookItem implements Parsable { private _uniqueBody?: ItemBody | undefined; /** The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. */ private _webLink?: string | undefined; + /** + * Instantiates a new message and sets the default values. + */ + public constructor() { + super(); + }; /** * Gets the attachments property value. The fileAttachment and itemAttachment attachments for the message. * @returns a attachment */ - public get attachments () { + public get attachments() { return this._attachments; }; /** * Gets the bccRecipients property value. The Bcc: recipients for the message. * @returns a recipient */ - public get bccRecipients () { + public get bccRecipients() { return this._bccRecipients; }; /** * Gets the body property value. * @returns a itemBody */ - public get body () { + public get body() { return this._body; }; /** * Gets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. * @returns a string */ - public get bodyPreview () { + public get bodyPreview() { return this._bodyPreview; }; /** * Gets the ccRecipients property value. The Cc: recipients for the message. * @returns a recipient */ - public get ccRecipients () { + public get ccRecipients() { return this._ccRecipients; }; /** * Gets the conversationId property value. The ID of the conversation the email belongs to. * @returns a string */ - public get conversationId () { + public get conversationId() { return this._conversationId; }; /** * Gets the conversationIndex property value. Indicates the position of the message within the conversation. * @returns a string */ - public get conversationIndex () { + public get conversationIndex() { return this._conversationIndex; }; /** * Gets the extensions property value. The collection of open extensions defined for the message. Nullable. * @returns a extension */ - public get extensions () { + public get extensions() { return this._extensions; }; /** * Gets the flag property value. * @returns a followupFlag */ - public get flag () { + public get flag() { return this._flag; }; /** * Gets the from property value. * @returns a recipient */ - public get from () { + public get from() { return this._from; }; /** * Gets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . * @returns a boolean */ - public get hasAttachments () { + public get hasAttachments() { return this._hasAttachments; }; /** * Gets the importance property value. * @returns a importance */ - public get importance () { + public get importance() { return this._importance; }; /** * Gets the inferenceClassification property value. * @returns a inferenceClassificationType */ - public get inferenceClassification () { + public get inferenceClassification() { return this._inferenceClassification; }; /** * Gets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. * @returns a internetMessageHeader */ - public get internetMessageHeaders () { + public get internetMessageHeaders() { return this._internetMessageHeaders; }; /** * Gets the internetMessageId property value. The message ID in the format specified by RFC2822. * @returns a string */ - public get internetMessageId () { + public get internetMessageId() { return this._internetMessageId; }; /** * Gets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. * @returns a boolean */ - public get isDeliveryReceiptRequested () { + public get isDeliveryReceiptRequested() { return this._isDeliveryReceiptRequested; }; /** * Gets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. * @returns a boolean */ - public get isDraft () { + public get isDraft() { return this._isDraft; }; /** * Gets the isRead property value. Indicates whether the message has been read. * @returns a boolean */ - public get isRead () { + public get isRead() { return this._isRead; }; /** * Gets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. * @returns a boolean */ - public get isReadReceiptRequested () { + public get isReadReceiptRequested() { return this._isReadReceiptRequested; }; /** * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. * @returns a multiValueLegacyExtendedProperty */ - public get multiValueExtendedProperties () { + public get multiValueExtendedProperties() { return this._multiValueExtendedProperties; }; /** * Gets the parentFolderId property value. The unique identifier for the message's parent mailFolder. * @returns a string */ - public get parentFolderId () { + public get parentFolderId() { return this._parentFolderId; }; /** * Gets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @returns a Date */ - public get receivedDateTime () { + public get receivedDateTime() { return this._receivedDateTime; }; /** * Gets the replyTo property value. The email addresses to use when replying. * @returns a recipient */ - public get replyTo () { + public get replyTo() { return this._replyTo; }; /** * Gets the sender property value. * @returns a recipient */ - public get sender () { + public get sender() { return this._sender; }; /** * Gets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @returns a Date */ - public get sentDateTime () { + public get sentDateTime() { return this._sentDateTime; }; /** * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. * @returns a singleValueLegacyExtendedProperty */ - public get singleValueExtendedProperties () { + public get singleValueExtendedProperties() { return this._singleValueExtendedProperties; }; /** * Gets the subject property value. The subject of the message. * @returns a string */ - public get subject () { + public get subject() { return this._subject; }; /** * Gets the toRecipients property value. The To: recipients for the message. * @returns a recipient */ - public get toRecipients () { + public get toRecipients() { return this._toRecipients; }; /** * Gets the uniqueBody property value. * @returns a itemBody */ - public get uniqueBody () { + public get uniqueBody() { return this._uniqueBody; }; /** * Gets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. * @returns a string */ - public get webLink () { + public get webLink() { return this._webLink; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["attachments", (o, n) => { (o as unknown as Message).attachments = n.getCollectionOfObjectValues(Attachment); }], ["bccRecipients", (o, n) => { (o as unknown as Message).bccRecipients = n.getCollectionOfObjectValues(Recipient); }], @@ -317,7 +323,7 @@ export class Message extends OutlookItem implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfObjectValues("attachments", this.attachments); writer.writeCollectionOfObjectValues("bccRecipients", this.bccRecipients); @@ -354,210 +360,210 @@ export class Message extends OutlookItem implements Parsable { * Sets the attachments property value. The fileAttachment and itemAttachment attachments for the message. * @param value Value to set for the attachments property. */ - public set attachments (value: Attachment[] | undefined) { + public set attachments(value: Attachment[] | undefined) { this._attachments = value; }; /** * Sets the bccRecipients property value. The Bcc: recipients for the message. * @param value Value to set for the bccRecipients property. */ - public set bccRecipients (value: Recipient[] | undefined) { + public set bccRecipients(value: Recipient[] | undefined) { this._bccRecipients = value; }; /** * Sets the body property value. * @param value Value to set for the body property. */ - public set body (value: ItemBody | undefined) { + public set body(value: ItemBody | undefined) { this._body = value; }; /** * Sets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. * @param value Value to set for the bodyPreview property. */ - public set bodyPreview (value: string | undefined) { + public set bodyPreview(value: string | undefined) { this._bodyPreview = value; }; /** * Sets the ccRecipients property value. The Cc: recipients for the message. * @param value Value to set for the ccRecipients property. */ - public set ccRecipients (value: Recipient[] | undefined) { + public set ccRecipients(value: Recipient[] | undefined) { this._ccRecipients = value; }; /** * Sets the conversationId property value. The ID of the conversation the email belongs to. * @param value Value to set for the conversationId property. */ - public set conversationId (value: string | undefined) { + public set conversationId(value: string | undefined) { this._conversationId = value; }; /** * Sets the conversationIndex property value. Indicates the position of the message within the conversation. * @param value Value to set for the conversationIndex property. */ - public set conversationIndex (value: string | undefined) { + public set conversationIndex(value: string | undefined) { this._conversationIndex = value; }; /** * Sets the extensions property value. The collection of open extensions defined for the message. Nullable. * @param value Value to set for the extensions property. */ - public set extensions (value: Extension[] | undefined) { + public set extensions(value: Extension[] | undefined) { this._extensions = value; }; /** * Sets the flag property value. * @param value Value to set for the flag property. */ - public set flag (value: FollowupFlag | undefined) { + public set flag(value: FollowupFlag | undefined) { this._flag = value; }; /** * Sets the from property value. * @param value Value to set for the from property. */ - public set from (value: Recipient | undefined) { + public set from(value: Recipient | undefined) { this._from = value; }; /** * Sets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . * @param value Value to set for the hasAttachments property. */ - public set hasAttachments (value: boolean | undefined) { + public set hasAttachments(value: boolean | undefined) { this._hasAttachments = value; }; /** * Sets the importance property value. * @param value Value to set for the importance property. */ - public set importance (value: Importance | undefined) { + public set importance(value: Importance | undefined) { this._importance = value; }; /** * Sets the inferenceClassification property value. * @param value Value to set for the inferenceClassification property. */ - public set inferenceClassification (value: InferenceClassificationType | undefined) { + public set inferenceClassification(value: InferenceClassificationType | undefined) { this._inferenceClassification = value; }; /** * Sets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. * @param value Value to set for the internetMessageHeaders property. */ - public set internetMessageHeaders (value: InternetMessageHeader[] | undefined) { + public set internetMessageHeaders(value: InternetMessageHeader[] | undefined) { this._internetMessageHeaders = value; }; /** * Sets the internetMessageId property value. The message ID in the format specified by RFC2822. * @param value Value to set for the internetMessageId property. */ - public set internetMessageId (value: string | undefined) { + public set internetMessageId(value: string | undefined) { this._internetMessageId = value; }; /** * Sets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. * @param value Value to set for the isDeliveryReceiptRequested property. */ - public set isDeliveryReceiptRequested (value: boolean | undefined) { + public set isDeliveryReceiptRequested(value: boolean | undefined) { this._isDeliveryReceiptRequested = value; }; /** * Sets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. * @param value Value to set for the isDraft property. */ - public set isDraft (value: boolean | undefined) { + public set isDraft(value: boolean | undefined) { this._isDraft = value; }; /** * Sets the isRead property value. Indicates whether the message has been read. * @param value Value to set for the isRead property. */ - public set isRead (value: boolean | undefined) { + public set isRead(value: boolean | undefined) { this._isRead = value; }; /** * Sets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. * @param value Value to set for the isReadReceiptRequested property. */ - public set isReadReceiptRequested (value: boolean | undefined) { + public set isReadReceiptRequested(value: boolean | undefined) { this._isReadReceiptRequested = value; }; /** * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. * @param value Value to set for the multiValueExtendedProperties property. */ - public set multiValueExtendedProperties (value: MultiValueLegacyExtendedProperty[] | undefined) { + public set multiValueExtendedProperties(value: MultiValueLegacyExtendedProperty[] | undefined) { this._multiValueExtendedProperties = value; }; /** * Sets the parentFolderId property value. The unique identifier for the message's parent mailFolder. * @param value Value to set for the parentFolderId property. */ - public set parentFolderId (value: string | undefined) { + public set parentFolderId(value: string | undefined) { this._parentFolderId = value; }; /** * Sets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the receivedDateTime property. */ - public set receivedDateTime (value: Date | undefined) { + public set receivedDateTime(value: Date | undefined) { this._receivedDateTime = value; }; /** * Sets the replyTo property value. The email addresses to use when replying. * @param value Value to set for the replyTo property. */ - public set replyTo (value: Recipient[] | undefined) { + public set replyTo(value: Recipient[] | undefined) { this._replyTo = value; }; /** * Sets the sender property value. * @param value Value to set for the sender property. */ - public set sender (value: Recipient | undefined) { + public set sender(value: Recipient | undefined) { this._sender = value; }; /** * Sets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the sentDateTime property. */ - public set sentDateTime (value: Date | undefined) { + public set sentDateTime(value: Date | undefined) { this._sentDateTime = value; }; /** * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. * @param value Value to set for the singleValueExtendedProperties property. */ - public set singleValueExtendedProperties (value: SingleValueLegacyExtendedProperty[] | undefined) { + public set singleValueExtendedProperties(value: SingleValueLegacyExtendedProperty[] | undefined) { this._singleValueExtendedProperties = value; }; /** * Sets the subject property value. The subject of the message. * @param value Value to set for the subject property. */ - public set subject (value: string | undefined) { + public set subject(value: string | undefined) { this._subject = value; }; /** * Sets the toRecipients property value. The To: recipients for the message. * @param value Value to set for the toRecipients property. */ - public set toRecipients (value: Recipient[] | undefined) { + public set toRecipients(value: Recipient[] | undefined) { this._toRecipients = value; }; /** * Sets the uniqueBody property value. * @param value Value to set for the uniqueBody property. */ - public set uniqueBody (value: ItemBody | undefined) { + public set uniqueBody(value: ItemBody | undefined) { this._uniqueBody = value; }; /** * Sets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. * @param value Value to set for the webLink property. */ - public set webLink (value: string | undefined) { + public set webLink(value: string | undefined) { this._webLink = value; }; } diff --git a/msgraph-mail/typescript/src/users/messageRule.ts b/msgraph-mail/typescript/src/users/messageRule.ts index 8eb0c4d72..cc0bfd5e3 100644 --- a/msgraph-mail/typescript/src/users/messageRule.ts +++ b/msgraph-mail/typescript/src/users/messageRule.ts @@ -17,67 +17,73 @@ export class MessageRule extends Entity implements Parsable { private _isReadOnly?: boolean | undefined; /** Indicates the order in which the rule is executed, among other rules. */ private _sequence?: number | undefined; + /** + * Instantiates a new messageRule and sets the default values. + */ + public constructor() { + super(); + }; /** * Gets the actions property value. * @returns a messageRuleActions */ - public get actions () { + public get actions() { return this._actions; }; /** * Gets the conditions property value. * @returns a messageRulePredicates */ - public get conditions () { + public get conditions() { return this._conditions; }; /** * Gets the displayName property value. The display name of the rule. * @returns a string */ - public get displayName () { + public get displayName() { return this._displayName; }; /** * Gets the exceptions property value. * @returns a messageRulePredicates */ - public get exceptions () { + public get exceptions() { return this._exceptions; }; /** * Gets the hasError property value. Indicates whether the rule is in an error condition. Read-only. * @returns a boolean */ - public get hasError () { + public get hasError() { return this._hasError; }; /** * Gets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. * @returns a boolean */ - public get isEnabled () { + public get isEnabled() { return this._isEnabled; }; /** * Gets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. * @returns a boolean */ - public get isReadOnly () { + public get isReadOnly() { return this._isReadOnly; }; /** * Gets the sequence property value. Indicates the order in which the rule is executed, among other rules. * @returns a integer */ - public get sequence () { + public get sequence() { return this._sequence; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["actions", (o, n) => { (o as unknown as MessageRule).actions = n.getObjectValue(MessageRuleActions); }], ["conditions", (o, n) => { (o as unknown as MessageRule).conditions = n.getObjectValue(MessageRulePredicates); }], @@ -93,7 +99,7 @@ export class MessageRule extends Entity implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeObjectValue("actions", this.actions); writer.writeObjectValue("conditions", this.conditions); @@ -108,56 +114,56 @@ export class MessageRule extends Entity implements Parsable { * Sets the actions property value. * @param value Value to set for the actions property. */ - public set actions (value: MessageRuleActions | undefined) { + public set actions(value: MessageRuleActions | undefined) { this._actions = value; }; /** * Sets the conditions property value. * @param value Value to set for the conditions property. */ - public set conditions (value: MessageRulePredicates | undefined) { + public set conditions(value: MessageRulePredicates | undefined) { this._conditions = value; }; /** * Sets the displayName property value. The display name of the rule. * @param value Value to set for the displayName property. */ - public set displayName (value: string | undefined) { + public set displayName(value: string | undefined) { this._displayName = value; }; /** * Sets the exceptions property value. * @param value Value to set for the exceptions property. */ - public set exceptions (value: MessageRulePredicates | undefined) { + public set exceptions(value: MessageRulePredicates | undefined) { this._exceptions = value; }; /** * Sets the hasError property value. Indicates whether the rule is in an error condition. Read-only. * @param value Value to set for the hasError property. */ - public set hasError (value: boolean | undefined) { + public set hasError(value: boolean | undefined) { this._hasError = value; }; /** * Sets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. * @param value Value to set for the isEnabled property. */ - public set isEnabled (value: boolean | undefined) { + public set isEnabled(value: boolean | undefined) { this._isEnabled = value; }; /** * Sets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. * @param value Value to set for the isReadOnly property. */ - public set isReadOnly (value: boolean | undefined) { + public set isReadOnly(value: boolean | undefined) { this._isReadOnly = value; }; /** * Sets the sequence property value. Indicates the order in which the rule is executed, among other rules. * @param value Value to set for the sequence property. */ - public set sequence (value: number | undefined) { + public set sequence(value: number | undefined) { this._sequence = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts index 9becfb83b..725b0ba22 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts @@ -9,16 +9,22 @@ export class AttachmentsRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/attachments"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new AttachmentsRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/attachments"; + }; /** * Get attachments from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class AttachmentsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Attachment | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of AttachmentsResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class AttachmentsRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class AttachmentsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public post (body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class AttachmentsRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts index ba0c35c62..cf88d6f0d 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsResponse.ts @@ -3,35 +3,41 @@ import {Attachment} from '../../attachment'; export class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: Attachment[] | undefined; + /** + * Instantiates a new AttachmentsResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a attachment */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as AttachmentsResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as AttachmentsResponse).value = n.getCollectionOfObjectValues(Attachment); }], @@ -41,7 +47,7 @@ export class AttachmentsResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class AttachmentsResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: Attachment[] | undefined) { + public set value(value: Attachment[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts index 837983768..525d71a9b 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts @@ -8,15 +8,21 @@ export class AttachmentRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new AttachmentRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property attachments for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class AttachmentRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Attachment | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Attachment | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class AttachmentRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Attachment */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class AttachmentRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class AttachmentRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Attachment | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class AttachmentRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts index bd8ab3536..d956b2cd2 100644 --- a/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts @@ -8,15 +8,21 @@ export class ContentRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/$value"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ContentRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/$value"; + }; /** * Get media content for the navigation property messages from users * @param h Request headers * @returns a RequestInfo */ - public createGetRequestInfo (h?: object | undefined) : RequestInfo { + public createGetRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.GET, @@ -29,7 +35,7 @@ export class ContentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPutRequestInfo (body: ReadableStream | undefined, h?: object | undefined) : RequestInfo { + public createPutRequestInfo(body: ReadableStream | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PUT, @@ -43,7 +49,7 @@ export class ContentRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ReadableStream */ - public get (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public get(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createGetRequestInfo( h ); @@ -53,28 +59,28 @@ export class ContentRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -83,7 +89,7 @@ export class ContentRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public put (body: ReadableStream | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public put(body: ReadableStream | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPutRequestInfo( body, h ); @@ -93,21 +99,21 @@ export class ContentRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts index 144417c40..a500bd748 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts @@ -9,16 +9,22 @@ export class ExtensionsRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/extensions"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ExtensionsRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/extensions"; + }; /** * Get extensions from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class ExtensionsRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Extension | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of ExtensionsResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class ExtensionsRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class ExtensionsRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public post (body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class ExtensionsRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts b/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts index 9932d4bce..1023dd93c 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/extensionsResponse.ts @@ -3,35 +3,41 @@ import {Extension} from '../../extension'; export class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: Extension[] | undefined; + /** + * Instantiates a new ExtensionsResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a extension */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as ExtensionsResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as ExtensionsResponse).value = n.getCollectionOfObjectValues(Extension); }], @@ -41,7 +47,7 @@ export class ExtensionsResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class ExtensionsResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: Extension[] | undefined) { + public set value(value: Extension[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts index b2c7d95bb..5078f162d 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts @@ -8,15 +8,21 @@ export class ExtensionRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new ExtensionRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property extensions for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class ExtensionRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Extension | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Extension | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class ExtensionRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Extension */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class ExtensionRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class ExtensionRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Extension | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class ExtensionRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts index 5d9c74553..f87f164f5 100644 --- a/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts @@ -45,7 +45,7 @@ export class MessageRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { @@ -60,19 +60,25 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a AttachmentRequestBuilder */ - public attachmentsById (id: String) : AttachmentRequestBuilder { + public attachmentsById(id: String) : AttachmentRequestBuilder { const builder = new AttachmentRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/attachments/" + id; builder.httpCore = this.httpCore; builder.serializerFactory = this.serializerFactory; return builder; }; + /** + * Instantiates a new MessageRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property messages for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -85,7 +91,7 @@ export class MessageRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -102,7 +108,7 @@ export class MessageRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: Message | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -115,7 +121,7 @@ export class MessageRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -126,7 +132,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a ExtensionRequestBuilder */ - public extensionsById (id: String) : ExtensionRequestBuilder { + public extensionsById(id: String) : ExtensionRequestBuilder { const builder = new ExtensionRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/extensions/" + id; builder.httpCore = this.httpCore; @@ -140,7 +146,7 @@ export class MessageRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -153,28 +159,28 @@ export class MessageRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -182,7 +188,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a MultiValueLegacyExtendedPropertyRequestBuilder */ - public multiValueExtendedPropertiesById (id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { + public multiValueExtendedPropertiesById(id: String) : MultiValueLegacyExtendedPropertyRequestBuilder { const builder = new MultiValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/multiValueExtendedProperties/" + id; builder.httpCore = this.httpCore; @@ -195,7 +201,7 @@ export class MessageRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -205,21 +211,21 @@ export class MessageRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; /** @@ -227,7 +233,7 @@ export class MessageRequestBuilder { * @param id Unique identifier of the item * @returns a SingleValueLegacyExtendedPropertyRequestBuilder */ - public singleValueExtendedPropertiesById (id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { + public singleValueExtendedPropertiesById(id: String) : SingleValueLegacyExtendedPropertyRequestBuilder { const builder = new SingleValueLegacyExtendedPropertyRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment + "/singleValueExtendedProperties/" + id; builder.httpCore = this.httpCore; diff --git a/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts index ba7f693a7..ad2f72b8a 100644 --- a/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MessagesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/messages"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MessagesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/messages"; + }; /** * Get messages from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MessagesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: Message | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: Message | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MessagesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class MessagesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class MessagesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of Message */ - public post (body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: Message | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class MessagesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/messagesResponse.ts b/msgraph-mail/typescript/src/users/messages/messagesResponse.ts index 1fd93e26c..14033287e 100644 --- a/msgraph-mail/typescript/src/users/messages/messagesResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/messagesResponse.ts @@ -3,35 +3,41 @@ import {Message} from '../message'; export class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: Message[] | undefined; + /** + * Instantiates a new MessagesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a message */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MessagesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MessagesResponse).value = n.getCollectionOfObjectValues(Message); }], @@ -41,7 +47,7 @@ export class MessagesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class MessagesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: Message[] | undefined) { + public set value(value: Message[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index c2ccadf03..b230e3dc6 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property multiValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index 022811221..dd9918b92 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class MultiValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/multiValueExtendedProperties"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/multiValueExtendedProperties"; + }; /** * Get multiValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class MultiValueExtendedPropertiesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class MultiValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of MultiValueLegacyExtendedProperty */ - public post (body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: MultiValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class MultiValueExtendedPropertiesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts index 680dd053c..d0a529dc4 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesResponse.ts @@ -3,35 +3,41 @@ import {MultiValueLegacyExtendedProperty} from '../../multiValueLegacyExtendedPr export class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: MultiValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a multiValueLegacyExtendedProperty */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as MultiValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty); }], @@ -41,7 +47,7 @@ export class MultiValueExtendedPropertiesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class MultiValueExtendedPropertiesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: MultiValueLegacyExtendedProperty[] | undefined) { + public set value(value: MultiValueLegacyExtendedProperty[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index 61352807e..9b7e46469 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -8,15 +8,21 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = ""; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = ""; + }; /** * Delete navigation property singleValueExtendedProperties for users * @param h Request headers * @returns a RequestInfo */ - public createDeleteRequestInfo (h?: object | undefined) : RequestInfo { + public createDeleteRequestInfo(h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.DELETE, @@ -29,7 +35,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined) : RequestInfo { @@ -46,7 +52,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPatchRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPatchRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PATCH, @@ -59,7 +65,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public delete (h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public delete(h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createDeleteRequestInfo( h ); @@ -72,7 +78,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public get (q?: { + public get(q?: { expand?: string[], select?: string[] } | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { @@ -85,28 +91,28 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -115,7 +121,7 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public patch (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public patch(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPatchRequestInfo( body, h ); @@ -125,21 +131,21 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index b0eabc6dd..6c968f079 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -9,16 +9,22 @@ export class SingleValueExtendedPropertiesRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/singleValueExtendedProperties"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/singleValueExtendedProperties"; + }; /** * Get singleValueExtendedProperties from users * @param h Request headers * @param q Request query parameters * @returns a RequestInfo */ - public createGetRequestInfo (q?: { + public createGetRequestInfo(q?: { count?: boolean, expand?: string[], filter?: string, @@ -41,7 +47,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPostRequestInfo (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { + public createPostRequestInfo(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.POST, @@ -56,7 +62,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueExtendedPropertiesResponse */ - public get (q?: { + public get(q?: { count?: boolean, expand?: string[], filter?: string, @@ -75,28 +81,28 @@ export class SingleValueExtendedPropertiesRequestBuilder { * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** @@ -106,7 +112,7 @@ export class SingleValueExtendedPropertiesRequestBuilder { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @returns a Promise of SingleValueLegacyExtendedProperty */ - public post (body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public post(body: SingleValueLegacyExtendedProperty | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPostRequestInfo( body, h ); @@ -116,21 +122,21 @@ export class SingleValueExtendedPropertiesRequestBuilder { * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts index de898942c..d32da5230 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesResponse.ts @@ -3,35 +3,41 @@ import {SingleValueLegacyExtendedProperty} from '../../singleValueLegacyExtended export class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _nextLink?: string | undefined; private _value?: SingleValueLegacyExtendedProperty[] | undefined; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the nextLink property value. * @returns a string */ - public get nextLink () { + public get nextLink() { return this._nextLink; }; /** * Gets the value property value. * @returns a singleValueLegacyExtendedProperty */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["@odata.nextLink", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).nextLink = n.getStringValue(); }], ["value", (o, n) => { (o as unknown as SingleValueExtendedPropertiesResponse).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty); }], @@ -41,7 +47,7 @@ export class SingleValueExtendedPropertiesResponse implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeStringValue("@odata.nextLink", this.nextLink); writer.writeCollectionOfObjectValues("value", this.value); writer.writeAdditionalData(this.additionalData); @@ -50,21 +56,21 @@ export class SingleValueExtendedPropertiesResponse implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the nextLink property value. * @param value Value to set for the nextLink property. */ - public set nextLink (value: string | undefined) { + public set nextLink(value: string | undefined) { this._nextLink = value; }; /** * Sets the value property value. * @param value Value to set for the value property. */ - public set value (value: SingleValueLegacyExtendedProperty[] | undefined) { + public set value(value: SingleValueLegacyExtendedProperty[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts b/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts index 086928539..04af70797 100644 --- a/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts +++ b/msgraph-mail/typescript/src/users/multiValueLegacyExtendedProperty.ts @@ -4,18 +4,24 @@ import {Entity} from './entity'; export class MultiValueLegacyExtendedProperty extends Entity implements Parsable { /** A collection of property values. */ private _value?: string[] | undefined; + /** + * Instantiates a new multiValueLegacyExtendedProperty and sets the default values. + */ + public constructor() { + super(); + }; /** * Gets the value property value. A collection of property values. * @returns a string */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["value", (o, n) => { (o as unknown as MultiValueLegacyExtendedProperty).value = n.getCollectionOfPrimitiveValues(); }], ]); @@ -24,7 +30,7 @@ export class MultiValueLegacyExtendedProperty extends Entity implements Parsable * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfPrimitiveValues("value", this.value); }; @@ -32,7 +38,7 @@ export class MultiValueLegacyExtendedProperty extends Entity implements Parsable * Sets the value property value. A collection of property values. * @param value Value to set for the value property. */ - public set value (value: string[] | undefined) { + public set value(value: string[] | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/outlookItem.ts b/msgraph-mail/typescript/src/users/outlookItem.ts index 61c521ee9..af305f0c7 100644 --- a/msgraph-mail/typescript/src/users/outlookItem.ts +++ b/msgraph-mail/typescript/src/users/outlookItem.ts @@ -10,39 +10,45 @@ export class OutlookItem extends Entity implements Parsable { private _createdDateTime?: Date | undefined; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ private _lastModifiedDateTime?: Date | undefined; + /** + * Instantiates a new outlookItem and sets the default values. + */ + public constructor() { + super(); + }; /** * Gets the categories property value. The categories associated with the item * @returns a string */ - public get categories () { + public get categories() { return this._categories; }; /** * Gets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. * @returns a string */ - public get changeKey () { + public get changeKey() { return this._changeKey; }; /** * Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z * @returns a Date */ - public get createdDateTime () { + public get createdDateTime() { return this._createdDateTime; }; /** * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z * @returns a Date */ - public get lastModifiedDateTime () { + public get lastModifiedDateTime() { return this._lastModifiedDateTime; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["categories", (o, n) => { (o as unknown as OutlookItem).categories = n.getCollectionOfPrimitiveValues(); }], ["changeKey", (o, n) => { (o as unknown as OutlookItem).changeKey = n.getStringValue(); }], @@ -54,7 +60,7 @@ export class OutlookItem extends Entity implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeCollectionOfPrimitiveValues("categories", this.categories); writer.writeStringValue("changeKey", this.changeKey); @@ -65,28 +71,28 @@ export class OutlookItem extends Entity implements Parsable { * Sets the categories property value. The categories associated with the item * @param value Value to set for the categories property. */ - public set categories (value: string[] | undefined) { + public set categories(value: string[] | undefined) { this._categories = value; }; /** * Sets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. * @param value Value to set for the changeKey property. */ - public set changeKey (value: string | undefined) { + public set changeKey(value: string | undefined) { this._changeKey = value; }; /** * Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z * @param value Value to set for the createdDateTime property. */ - public set createdDateTime (value: Date | undefined) { + public set createdDateTime(value: Date | undefined) { this._createdDateTime = value; }; /** * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z * @param value Value to set for the lastModifiedDateTime property. */ - public set lastModifiedDateTime (value: Date | undefined) { + public set lastModifiedDateTime(value: Date | undefined) { this._lastModifiedDateTime = value; }; } diff --git a/msgraph-mail/typescript/src/users/recipient.ts b/msgraph-mail/typescript/src/users/recipient.ts index fb258810c..a4fb1b7cb 100644 --- a/msgraph-mail/typescript/src/users/recipient.ts +++ b/msgraph-mail/typescript/src/users/recipient.ts @@ -3,27 +3,33 @@ import {EmailAddress} from './emailAddress'; export class Recipient implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private _additionalData: Map = new Map(); + private _additionalData: Map; private _emailAddress?: EmailAddress | undefined; + /** + * Instantiates a new recipient and sets the default values. + */ + public constructor() { + this._additionalData = new Map(); + }; /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @returns a Map */ - public get additionalData () { + public get additionalData() { return this._additionalData; }; /** * Gets the emailAddress property value. * @returns a emailAddress */ - public get emailAddress () { + public get emailAddress() { return this._emailAddress; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([ ["emailAddress", (o, n) => { (o as unknown as Recipient).emailAddress = n.getObjectValue(EmailAddress); }], ]); @@ -32,7 +38,7 @@ export class Recipient implements Parsable { * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { writer.writeObjectValue("emailAddress", this.emailAddress); writer.writeAdditionalData(this.additionalData); }; @@ -40,14 +46,14 @@ export class Recipient implements Parsable { * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. */ - public set additionalData (value: Map) { + public set additionalData(value: Map) { this._additionalData = value; }; /** * Sets the emailAddress property value. * @param value Value to set for the emailAddress property. */ - public set emailAddress (value: EmailAddress | undefined) { + public set emailAddress(value: EmailAddress | undefined) { this._emailAddress = value; }; } diff --git a/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts b/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts index c2f637377..c2f9fdbda 100644 --- a/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts +++ b/msgraph-mail/typescript/src/users/singleValueLegacyExtendedProperty.ts @@ -4,18 +4,24 @@ import {Entity} from './entity'; export class SingleValueLegacyExtendedProperty extends Entity implements Parsable { /** A property value. */ private _value?: string | undefined; + /** + * Instantiates a new singleValueLegacyExtendedProperty and sets the default values. + */ + public constructor() { + super(); + }; /** * Gets the value property value. A property value. * @returns a string */ - public get value () { + public get value() { return this._value; }; /** * The deserialization information for the current model * @returns a Map void> */ - public getFieldDeserializers () : Map void> { + public getFieldDeserializers() : Map void> { return new Map void>([...super.getFieldDeserializers(), ["value", (o, n) => { (o as unknown as SingleValueLegacyExtendedProperty).value = n.getStringValue(); }], ]); @@ -24,7 +30,7 @@ export class SingleValueLegacyExtendedProperty extends Entity implements Parsabl * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ - public serialize (writer: SerializationWriter) : void { + public serialize(writer: SerializationWriter) : void { super.serialize(writer); writer.writeStringValue("value", this.value); }; @@ -32,7 +38,7 @@ export class SingleValueLegacyExtendedProperty extends Entity implements Parsabl * Sets the value property value. A property value. * @param value Value to set for the value property. */ - public set value (value: string | undefined) { + public set value(value: string | undefined) { this._value = value; }; } diff --git a/msgraph-mail/typescript/src/users/usersRequestBuilder.ts b/msgraph-mail/typescript/src/users/usersRequestBuilder.ts index 0fa9359ad..d2aed16a6 100644 --- a/msgraph-mail/typescript/src/users/usersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/usersRequestBuilder.ts @@ -7,56 +7,62 @@ export class UsersRequestBuilder { /** Core service to use to execute the requests */ private _httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string = "/users"; + private readonly _pathSegment: string; /** Factory to use to get a serializer for payload serialization */ private _serializerFactory?: SerializationWriterFactory | undefined; + /** + * Instantiates a new UsersRequestBuilder and sets the default values. + */ + public constructor() { + this._pathSegment = "/users"; + }; /** * Gets the currentPath property value. Current path for the request * @returns a string */ - public get currentPath () { + public get currentPath() { return this._currentPath; }; /** * Gets the httpCore property value. Core service to use to execute the requests * @returns a HttpCore */ - public get httpCore () { + public get httpCore() { return this._httpCore; }; /** * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder * @returns a string */ - public get pathSegment () { + public get pathSegment() { return this._pathSegment; }; /** * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @returns a SerializationWriterFactory */ - public get serializerFactory () { + public get serializerFactory() { return this._serializerFactory; }; /** * Sets the currentPath property value. Current path for the request * @param value Value to set for the currentPath property. */ - public set currentPath (value: string | undefined) { + public set currentPath(value: string | undefined) { this._currentPath = value; }; /** * Sets the httpCore property value. Core service to use to execute the requests * @param value Value to set for the httpCore property. */ - public set httpCore (value: HttpCore | undefined) { + public set httpCore(value: HttpCore | undefined) { this._httpCore = value; }; /** * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization * @param value Value to set for the serializerFactory property. */ - public set serializerFactory (value: SerializationWriterFactory | undefined) { + public set serializerFactory(value: SerializationWriterFactory | undefined) { this._serializerFactory = value; }; } From 7465c48381f198e0d1d30bedee793e0992ba7ac1 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 14 Jun 2021 11:31:07 -0400 Subject: [PATCH 03/11] - code-gen: removes unecessary accessors for typescript, fixes nullability for streams --- msgraph-mail/typescript/src/apiClient.ts | 59 ++--------------- .../inferenceClassificationRequestBuilder.ts | 59 ++--------------- ...nceClassificationOverrideRequestBuilder.ts | 59 ++--------------- .../overrides/overridesRequestBuilder.ts | 59 ++--------------- .../src/users/item/userRequestBuilder.ts | 59 ++--------------- .../childFoldersRequestBuilder.ts | 59 ++--------------- .../item/mailFolderRequestBuilder.ts | 59 ++--------------- .../item/mailFolderRequestBuilder.ts | 59 ++--------------- .../mailFolders/mailFoldersRequestBuilder.ts | 59 ++--------------- .../item/messageRuleRequestBuilder.ts | 59 ++--------------- .../messageRulesRequestBuilder.ts | 59 ++--------------- .../attachments/attachmentsRequestBuilder.ts | 59 ++--------------- .../item/attachmentRequestBuilder.ts | 59 ++--------------- .../messages/content/contentRequestBuilder.ts | 63 +++---------------- .../extensions/extensionsRequestBuilder.ts | 59 ++--------------- .../item/extensionRequestBuilder.ts | 59 ++--------------- .../messages/item/messageRequestBuilder.ts | 59 ++--------------- .../messages/messagesRequestBuilder.ts | 59 ++--------------- ...lueLegacyExtendedPropertyRequestBuilder.ts | 59 ++--------------- ...tiValueExtendedPropertiesRequestBuilder.ts | 59 ++--------------- ...lueLegacyExtendedPropertyRequestBuilder.ts | 59 ++--------------- ...leValueExtendedPropertiesRequestBuilder.ts | 59 ++--------------- ...lueLegacyExtendedPropertyRequestBuilder.ts | 59 ++--------------- ...tiValueExtendedPropertiesRequestBuilder.ts | 59 ++--------------- ...lueLegacyExtendedPropertyRequestBuilder.ts | 59 ++--------------- ...leValueExtendedPropertiesRequestBuilder.ts | 59 ++--------------- .../attachments/attachmentsRequestBuilder.ts | 59 ++--------------- .../item/attachmentRequestBuilder.ts | 59 ++--------------- .../messages/content/contentRequestBuilder.ts | 63 +++---------------- .../extensions/extensionsRequestBuilder.ts | 59 ++--------------- .../item/extensionRequestBuilder.ts | 59 ++--------------- .../messages/item/messageRequestBuilder.ts | 59 ++--------------- .../users/messages/messagesRequestBuilder.ts | 59 ++--------------- ...lueLegacyExtendedPropertyRequestBuilder.ts | 59 ++--------------- ...tiValueExtendedPropertiesRequestBuilder.ts | 59 ++--------------- ...lueLegacyExtendedPropertyRequestBuilder.ts | 59 ++--------------- ...leValueExtendedPropertiesRequestBuilder.ts | 59 ++--------------- .../src/users/usersRequestBuilder.ts | 59 ++--------------- 38 files changed, 194 insertions(+), 2056 deletions(-) diff --git a/msgraph-mail/typescript/src/apiClient.ts b/msgraph-mail/typescript/src/apiClient.ts index 0984d7db9..e127c303d 100644 --- a/msgraph-mail/typescript/src/apiClient.ts +++ b/msgraph-mail/typescript/src/apiClient.ts @@ -5,13 +5,13 @@ import {UsersRequestBuilder} from './users/usersRequestBuilder'; /** The main entry point of the SDK, exposes the configuration and the fluent API. */ export class ApiClient { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; public get users(): UsersRequestBuilder { const builder = new UsersRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -23,56 +23,7 @@ export class ApiClient { * Instantiates a new ApiClient and sets the default values. */ public constructor() { - this._pathSegment = "https://graph.microsoft.com/v1.0"; - }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; + this.pathSegment = "https://graph.microsoft.com/v1.0"; }; /** * Gets an item from the graphtypescriptv4.utilities.users collection diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts index 6b20295c8..ea902da7e 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/inferenceClassificationRequestBuilder.ts @@ -6,9 +6,9 @@ import {OverridesRequestBuilder} from './overrides/overridesRequestBuilder'; /** Builds and executes requests for operations under /users/{user-id}/inferenceClassification */ export class InferenceClassificationRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; public get overrides(): OverridesRequestBuilder { const builder = new OverridesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -17,14 +17,14 @@ export class InferenceClassificationRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new InferenceClassificationRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/inferenceClassification"; + this.pathSegment = "/inferenceClassification"; }; /** * Delete navigation property inferenceClassification for users @@ -96,34 +96,6 @@ export class InferenceClassificationRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, InferenceClassification, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Gets an item from the graphtypescriptv4.utilities.users.inferenceClassification.overrides collection * @param id Unique identifier of the item @@ -148,25 +120,4 @@ export class InferenceClassificationRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts index a46932ae5..49e3a1077 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/item/inferenceClassificationOverrideRequestBuilder.ts @@ -4,18 +4,18 @@ import {InferenceClassificationOverride} from '../../inferenceClassificationOver /** Builds and executes requests for operations under /users/{user-id}/inferenceClassification/overrides/{inferenceClassificationOverride-id} */ export class InferenceClassificationOverrideRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new InferenceClassificationOverrideRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property overrides for users @@ -87,34 +87,6 @@ export class InferenceClassificationOverrideRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, InferenceClassificationOverride, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property overrides in users * @param body @@ -127,25 +99,4 @@ export class InferenceClassificationOverrideRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts index f27b84b6d..091840ef1 100644 --- a/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/inferenceClassification/overrides/overridesRequestBuilder.ts @@ -5,18 +5,18 @@ import {OverridesResponse} from './overridesResponse'; /** Builds and executes requests for operations under /users/{user-id}/inferenceClassification/overrides */ export class OverridesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new OverridesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/overrides"; + this.pathSegment = "/overrides"; }; /** * Get overrides from users @@ -77,34 +77,6 @@ export class OverridesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, OverridesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to overrides for users * @param body @@ -118,25 +90,4 @@ export class OverridesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, InferenceClassificationOverride, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts b/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts index 23afbb634..fdbdeda42 100644 --- a/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/item/userRequestBuilder.ts @@ -8,9 +8,9 @@ import {MessagesRequestBuilder} from '../messages/messagesRequestBuilder'; /** Builds and executes requests for operations under /users/{user-id} */ export class UserRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; public get inferenceClassification(): InferenceClassificationRequestBuilder { const builder = new InferenceClassificationRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -33,42 +33,14 @@ export class UserRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new UserRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; - }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; + this.pathSegment = ""; }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders collection @@ -94,25 +66,4 @@ export class UserRequestBuilder { builder.serializerFactory = this.serializerFactory; return builder; }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts index 3a78b7f38..600d3081b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/childFoldersRequestBuilder.ts @@ -5,18 +5,18 @@ import {ChildFoldersResponse} from './childFoldersResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/childFolders */ export class ChildFoldersRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new ChildFoldersRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/childFolders"; + this.pathSegment = "/childFolders"; }; /** * Get childFolders from users @@ -77,34 +77,6 @@ export class ChildFoldersRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, ChildFoldersResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to childFolders for users * @param body @@ -118,25 +90,4 @@ export class ChildFoldersRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MailFolder, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts index 6dd2c31d8..7a57e070f 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/childFolders/item/mailFolderRequestBuilder.ts @@ -4,18 +4,18 @@ import {MailFolder} from '../../../mailFolder'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/childFolders/{mailFolder-id1} */ export class MailFolderRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MailFolderRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property childFolders for users @@ -87,34 +87,6 @@ export class MailFolderRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MailFolder, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property childFolders in users * @param body @@ -127,25 +99,4 @@ export class MailFolderRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts index fce2f9949..c74e90568 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/item/mailFolderRequestBuilder.ts @@ -20,9 +20,9 @@ export class MailFolderRequestBuilder { return builder; } /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; public get messageRules(): MessageRulesRequestBuilder { const builder = new MessageRulesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -45,9 +45,9 @@ export class MailFolderRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { const builder = new SingleValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -71,7 +71,7 @@ export class MailFolderRequestBuilder { * Instantiates a new MailFolderRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property mailFolders for users @@ -143,34 +143,6 @@ export class MailFolderRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MailFolder, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders.messageRules collection * @param id Unique identifier of the item @@ -219,27 +191,6 @@ export class MailFolderRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders.singleValueExtendedProperties collection * @param id Unique identifier of the item diff --git a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts index 803232f2c..907ce8404 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/mailFoldersRequestBuilder.ts @@ -5,18 +5,18 @@ import {MailFoldersResponse} from './mailFoldersResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders */ export class MailFoldersRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MailFoldersRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/mailFolders"; + this.pathSegment = "/mailFolders"; }; /** * Get mailFolders from users @@ -77,34 +77,6 @@ export class MailFoldersRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MailFoldersResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to mailFolders for users * @param body @@ -118,25 +90,4 @@ export class MailFoldersRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MailFolder, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts index 7986bc444..52a570ea6 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/item/messageRuleRequestBuilder.ts @@ -4,18 +4,18 @@ import {MessageRule} from '../../../messageRule'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messageRules/{messageRule-id} */ export class MessageRuleRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MessageRuleRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property messageRules for users @@ -87,34 +87,6 @@ export class MessageRuleRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MessageRule, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property messageRules in users * @param body @@ -127,25 +99,4 @@ export class MessageRuleRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts index 3a478f692..7d34e3920 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messageRules/messageRulesRequestBuilder.ts @@ -5,18 +5,18 @@ import {MessageRulesResponse} from './messageRulesResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messageRules */ export class MessageRulesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MessageRulesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/messageRules"; + this.pathSegment = "/messageRules"; }; /** * Get messageRules from users @@ -77,34 +77,6 @@ export class MessageRulesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MessageRulesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to messageRules for users * @param body @@ -118,25 +90,4 @@ export class MessageRulesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MessageRule, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts index 5001129a1..f01f6172b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/attachmentsRequestBuilder.ts @@ -5,18 +5,18 @@ import {AttachmentsResponse} from './attachmentsResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/attachments */ export class AttachmentsRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new AttachmentsRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/attachments"; + this.pathSegment = "/attachments"; }; /** * Get attachments from users @@ -77,34 +77,6 @@ export class AttachmentsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, AttachmentsResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to attachments for users * @param body @@ -118,25 +90,4 @@ export class AttachmentsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Attachment, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts index b055038c8..274dc6940 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/attachments/item/attachmentRequestBuilder.ts @@ -4,18 +4,18 @@ import {Attachment} from '../../../../attachment'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/attachments/{attachment-id} */ export class AttachmentRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new AttachmentRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property attachments for users @@ -87,34 +87,6 @@ export class AttachmentRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Attachment, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property attachments in users * @param body @@ -127,25 +99,4 @@ export class AttachmentRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts index fe84aa18c..9e98d3e7d 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/content/contentRequestBuilder.ts @@ -4,18 +4,18 @@ import {ReadableStream} from 'web-streams-polyfill/es2018'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/$value */ export class ContentRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new ContentRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/$value"; + this.pathSegment = "/$value"; }; /** * Get media content for the navigation property messages from users @@ -35,7 +35,7 @@ export class ContentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPutRequestInfo(body: ReadableStream | undefined, h?: object | undefined) : RequestInfo { + public createPutRequestInfo(body: ReadableStream, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PUT, @@ -55,65 +55,16 @@ export class ContentRequestBuilder { ); return this.httpCore?.sendPrimitiveAsync(requestInfo, "ReadableStream", responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update media content for the navigation property messages in users * @param body Binary request body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public put(body: ReadableStream | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public put(body: ReadableStream, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPutRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts index 71feafb3b..9ac84ee1b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/extensionsRequestBuilder.ts @@ -5,18 +5,18 @@ import {ExtensionsResponse} from './extensionsResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/extensions */ export class ExtensionsRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new ExtensionsRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/extensions"; + this.pathSegment = "/extensions"; }; /** * Get extensions from users @@ -77,34 +77,6 @@ export class ExtensionsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, ExtensionsResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to extensions for users * @param body @@ -118,25 +90,4 @@ export class ExtensionsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Extension, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts index e74446041..44f48c1cc 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/extensions/item/extensionRequestBuilder.ts @@ -4,18 +4,18 @@ import {Extension} from '../../../../extension'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/extensions/{extension-id} */ export class ExtensionRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new ExtensionRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property extensions for users @@ -87,34 +87,6 @@ export class ExtensionRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Extension, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property extensions in users * @param body @@ -127,25 +99,4 @@ export class ExtensionRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts index 462df6b41..4d2f0c837 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/item/messageRequestBuilder.ts @@ -27,7 +27,7 @@ export class MessageRequestBuilder { return builder; } /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; public get extensions(): ExtensionsRequestBuilder { const builder = new ExtensionsRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -36,7 +36,7 @@ export class MessageRequestBuilder { return builder; } /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; public get multiValueExtendedProperties(): MultiValueExtendedPropertiesRequestBuilder { const builder = new MultiValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -45,9 +45,9 @@ export class MessageRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { const builder = new SingleValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -71,7 +71,7 @@ export class MessageRequestBuilder { * Instantiates a new MessageRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property messages for users @@ -155,34 +155,6 @@ export class MessageRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Message, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders.messages.multiValueExtendedProperties collection * @param id Unique identifier of the item @@ -207,27 +179,6 @@ export class MessageRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; /** * Gets an item from the graphtypescriptv4.utilities.users.mailFolders.messages.singleValueExtendedProperties collection * @param id Unique identifier of the item diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts index 90c2f2232..13750a271 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/messagesRequestBuilder.ts @@ -5,18 +5,18 @@ import {MessagesResponse} from './messagesResponse'; /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages */ export class MessagesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MessagesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/messages"; + this.pathSegment = "/messages"; }; /** * Get messages from users @@ -77,34 +77,6 @@ export class MessagesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MessagesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to messages for users * @param body @@ -118,25 +90,4 @@ export class MessagesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Message, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index a1b765661..a39084b9b 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,18 +4,18 @@ import {MultiValueLegacyExtendedProperty} from '../../../../multiValueLegacyExte /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id} */ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property multiValueExtendedProperties for users @@ -87,34 +87,6 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property multiValueExtendedProperties in users * @param body @@ -127,25 +99,4 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index f8de22e9c..b9eec7708 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -5,18 +5,18 @@ import {MultiValueExtendedPropertiesResponse} from './multiValueExtendedProperti /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/multiValueExtendedProperties */ export class MultiValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/multiValueExtendedProperties"; + this.pathSegment = "/multiValueExtendedProperties"; }; /** * Get multiValueExtendedProperties from users @@ -77,34 +77,6 @@ export class MultiValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to multiValueExtendedProperties for users * @param body @@ -118,25 +90,4 @@ export class MultiValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index 4cf0d1736..bb8b40e88 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,18 +4,18 @@ import {SingleValueLegacyExtendedProperty} from '../../../../singleValueLegacyEx /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id} */ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property singleValueExtendedProperties for users @@ -87,34 +87,6 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property singleValueExtendedProperties in users * @param body @@ -127,25 +99,4 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index 8af6349ba..b46a2dfd8 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -5,18 +5,18 @@ import {SingleValueExtendedPropertiesResponse} from './singleValueExtendedProper /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/messages/{message-id}/singleValueExtendedProperties */ export class SingleValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/singleValueExtendedProperties"; + this.pathSegment = "/singleValueExtendedProperties"; }; /** * Get singleValueExtendedProperties from users @@ -77,34 +77,6 @@ export class SingleValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to singleValueExtendedProperties for users * @param body @@ -118,25 +90,4 @@ export class SingleValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index d74cd1f2d..7efa3369a 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,18 +4,18 @@ import {MultiValueLegacyExtendedProperty} from '../../../multiValueLegacyExtende /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id} */ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property multiValueExtendedProperties for users @@ -87,34 +87,6 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property multiValueExtendedProperties in users * @param body @@ -127,25 +99,4 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index bd776a842..de1addbd7 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -5,18 +5,18 @@ import {MultiValueExtendedPropertiesResponse} from './multiValueExtendedProperti /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/multiValueExtendedProperties */ export class MultiValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/multiValueExtendedProperties"; + this.pathSegment = "/multiValueExtendedProperties"; }; /** * Get multiValueExtendedProperties from users @@ -77,34 +77,6 @@ export class MultiValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to multiValueExtendedProperties for users * @param body @@ -118,25 +90,4 @@ export class MultiValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index 0e49aa8c9..a7acb8e95 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,18 +4,18 @@ import {SingleValueLegacyExtendedProperty} from '../../../singleValueLegacyExten /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id} */ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property singleValueExtendedProperties for users @@ -87,34 +87,6 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property singleValueExtendedProperties in users * @param body @@ -127,25 +99,4 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index ab011cf89..76d3c65b3 100644 --- a/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/mailFolders/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -5,18 +5,18 @@ import {SingleValueExtendedPropertiesResponse} from './singleValueExtendedProper /** Builds and executes requests for operations under /users/{user-id}/mailFolders/{mailFolder-id}/singleValueExtendedProperties */ export class SingleValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/singleValueExtendedProperties"; + this.pathSegment = "/singleValueExtendedProperties"; }; /** * Get singleValueExtendedProperties from users @@ -77,34 +77,6 @@ export class SingleValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to singleValueExtendedProperties for users * @param body @@ -118,25 +90,4 @@ export class SingleValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts index 725b0ba22..171703915 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/attachmentsRequestBuilder.ts @@ -5,18 +5,18 @@ import {AttachmentsResponse} from './attachmentsResponse'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/attachments */ export class AttachmentsRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new AttachmentsRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/attachments"; + this.pathSegment = "/attachments"; }; /** * Get attachments from users @@ -77,34 +77,6 @@ export class AttachmentsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, AttachmentsResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to attachments for users * @param body @@ -118,25 +90,4 @@ export class AttachmentsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Attachment, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts index 525d71a9b..c746dec7e 100644 --- a/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/attachments/item/attachmentRequestBuilder.ts @@ -4,18 +4,18 @@ import {Attachment} from '../../../attachment'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/attachments/{attachment-id} */ export class AttachmentRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new AttachmentRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property attachments for users @@ -87,34 +87,6 @@ export class AttachmentRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Attachment, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property attachments in users * @param body @@ -127,25 +99,4 @@ export class AttachmentRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts index d956b2cd2..0866769dd 100644 --- a/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/content/contentRequestBuilder.ts @@ -4,18 +4,18 @@ import {ReadableStream} from 'web-streams-polyfill/es2018'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/$value */ export class ContentRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new ContentRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/$value"; + this.pathSegment = "/$value"; }; /** * Get media content for the navigation property messages from users @@ -35,7 +35,7 @@ export class ContentRequestBuilder { * @param h Request headers * @returns a RequestInfo */ - public createPutRequestInfo(body: ReadableStream | undefined, h?: object | undefined) : RequestInfo { + public createPutRequestInfo(body: ReadableStream, h?: object | undefined) : RequestInfo { const requestInfo = new RequestInfo(); requestInfo.URI = (this.currentPath ?? '') + this.pathSegment, requestInfo.httpMethod = HttpMethod.PUT, @@ -55,65 +55,16 @@ export class ContentRequestBuilder { ); return this.httpCore?.sendPrimitiveAsync(requestInfo, "ReadableStream", responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update media content for the navigation property messages in users * @param body Binary request body * @param h Request headers * @param responseHandler Response handler to use in place of the default response handling provided by the core service */ - public put(body: ReadableStream | undefined, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { + public put(body: ReadableStream, h?: object | undefined, responseHandler?: ResponseHandler | undefined) : Promise { const requestInfo = this.createPutRequestInfo( body, h ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts index a500bd748..0e3055f6a 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/extensionsRequestBuilder.ts @@ -5,18 +5,18 @@ import {ExtensionsResponse} from './extensionsResponse'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/extensions */ export class ExtensionsRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new ExtensionsRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/extensions"; + this.pathSegment = "/extensions"; }; /** * Get extensions from users @@ -77,34 +77,6 @@ export class ExtensionsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, ExtensionsResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to extensions for users * @param body @@ -118,25 +90,4 @@ export class ExtensionsRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Extension, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts index 5078f162d..e73bae680 100644 --- a/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/extensions/item/extensionRequestBuilder.ts @@ -4,18 +4,18 @@ import {Extension} from '../../../extension'; /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/extensions/{extension-id} */ export class ExtensionRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new ExtensionRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property extensions for users @@ -87,34 +87,6 @@ export class ExtensionRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Extension, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property extensions in users * @param body @@ -127,25 +99,4 @@ export class ExtensionRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts index f87f164f5..b933a7c58 100644 --- a/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/item/messageRequestBuilder.ts @@ -27,7 +27,7 @@ export class MessageRequestBuilder { return builder; } /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; public get extensions(): ExtensionsRequestBuilder { const builder = new ExtensionsRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -36,7 +36,7 @@ export class MessageRequestBuilder { return builder; } /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; public get multiValueExtendedProperties(): MultiValueExtendedPropertiesRequestBuilder { const builder = new MultiValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -45,9 +45,9 @@ export class MessageRequestBuilder { return builder; } /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; public get singleValueExtendedProperties(): SingleValueExtendedPropertiesRequestBuilder { const builder = new SingleValueExtendedPropertiesRequestBuilder(); builder.currentPath = (this.currentPath ?? '') + this.pathSegment; @@ -71,7 +71,7 @@ export class MessageRequestBuilder { * Instantiates a new MessageRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property messages for users @@ -155,34 +155,6 @@ export class MessageRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Message, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Gets an item from the graphtypescriptv4.utilities.users.messages.multiValueExtendedProperties collection * @param id Unique identifier of the item @@ -207,27 +179,6 @@ export class MessageRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; /** * Gets an item from the graphtypescriptv4.utilities.users.messages.singleValueExtendedProperties collection * @param id Unique identifier of the item diff --git a/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts index ad2f72b8a..698136246 100644 --- a/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/messagesRequestBuilder.ts @@ -5,18 +5,18 @@ import {MessagesResponse} from './messagesResponse'; /** Builds and executes requests for operations under /users/{user-id}/messages */ export class MessagesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MessagesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/messages"; + this.pathSegment = "/messages"; }; /** * Get messages from users @@ -77,34 +77,6 @@ export class MessagesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MessagesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to messages for users * @param body @@ -118,25 +90,4 @@ export class MessagesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, Message, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts index b230e3dc6..9e7682bcd 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/item/multiValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,18 +4,18 @@ import {MultiValueLegacyExtendedProperty} from '../../../multiValueLegacyExtende /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id} */ export class MultiValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property multiValueExtendedProperties for users @@ -87,34 +87,6 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property multiValueExtendedProperties in users * @param body @@ -127,25 +99,4 @@ export class MultiValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts index dd9918b92..e86de61a2 100644 --- a/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/multiValueExtendedProperties/multiValueExtendedPropertiesRequestBuilder.ts @@ -5,18 +5,18 @@ import {MultiValueExtendedPropertiesResponse} from './multiValueExtendedProperti /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/multiValueExtendedProperties */ export class MultiValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/multiValueExtendedProperties"; + this.pathSegment = "/multiValueExtendedProperties"; }; /** * Get multiValueExtendedProperties from users @@ -77,34 +77,6 @@ export class MultiValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to multiValueExtendedProperties for users * @param body @@ -118,25 +90,4 @@ export class MultiValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, MultiValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts index 9b7e46469..5d3bbdc60 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/item/singleValueLegacyExtendedPropertyRequestBuilder.ts @@ -4,18 +4,18 @@ import {SingleValueLegacyExtendedProperty} from '../../../singleValueLegacyExten /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id} */ export class SingleValueLegacyExtendedPropertyRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = ""; + this.pathSegment = ""; }; /** * Delete navigation property singleValueExtendedProperties for users @@ -87,34 +87,6 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Update the navigation property singleValueExtendedProperties in users * @param body @@ -127,25 +99,4 @@ export class SingleValueLegacyExtendedPropertyRequestBuilder { ); return this.httpCore?.sendNoResponseContentAsync(requestInfo, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts index 6c968f079..03e0e3244 100644 --- a/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/messages/singleValueExtendedProperties/singleValueExtendedPropertiesRequestBuilder.ts @@ -5,18 +5,18 @@ import {SingleValueExtendedPropertiesResponse} from './singleValueExtendedProper /** Builds and executes requests for operations under /users/{user-id}/messages/{message-id}/singleValueExtendedProperties */ export class SingleValueExtendedPropertiesRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/singleValueExtendedProperties"; + this.pathSegment = "/singleValueExtendedProperties"; }; /** * Get singleValueExtendedProperties from users @@ -77,34 +77,6 @@ export class SingleValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueExtendedPropertiesResponse, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; /** * Create new navigation property to singleValueExtendedProperties for users * @param body @@ -118,25 +90,4 @@ export class SingleValueExtendedPropertiesRequestBuilder { ); return this.httpCore?.sendAsync(requestInfo, SingleValueLegacyExtendedProperty, responseHandler) ?? Promise.reject(new Error('http core is null')); }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; - }; } diff --git a/msgraph-mail/typescript/src/users/usersRequestBuilder.ts b/msgraph-mail/typescript/src/users/usersRequestBuilder.ts index d2aed16a6..550878129 100644 --- a/msgraph-mail/typescript/src/users/usersRequestBuilder.ts +++ b/msgraph-mail/typescript/src/users/usersRequestBuilder.ts @@ -3,66 +3,17 @@ import {HttpCore, HttpMethod, RequestInfo, ResponseHandler, SerializationWriterF /** Builds and executes requests for operations under /users */ export class UsersRequestBuilder { /** Current path for the request */ - private _currentPath?: string | undefined; + public currentPath?: string | undefined; /** Core service to use to execute the requests */ - private _httpCore?: HttpCore | undefined; + public httpCore?: HttpCore | undefined; /** Path segment to use to build the URL for the current request builder */ - private readonly _pathSegment: string; + private readonly pathSegment: string; /** Factory to use to get a serializer for payload serialization */ - private _serializerFactory?: SerializationWriterFactory | undefined; + public serializerFactory?: SerializationWriterFactory | undefined; /** * Instantiates a new UsersRequestBuilder and sets the default values. */ public constructor() { - this._pathSegment = "/users"; - }; - /** - * Gets the currentPath property value. Current path for the request - * @returns a string - */ - public get currentPath() { - return this._currentPath; - }; - /** - * Gets the httpCore property value. Core service to use to execute the requests - * @returns a HttpCore - */ - public get httpCore() { - return this._httpCore; - }; - /** - * Gets the pathSegment property value. Path segment to use to build the URL for the current request builder - * @returns a string - */ - public get pathSegment() { - return this._pathSegment; - }; - /** - * Gets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @returns a SerializationWriterFactory - */ - public get serializerFactory() { - return this._serializerFactory; - }; - /** - * Sets the currentPath property value. Current path for the request - * @param value Value to set for the currentPath property. - */ - public set currentPath(value: string | undefined) { - this._currentPath = value; - }; - /** - * Sets the httpCore property value. Core service to use to execute the requests - * @param value Value to set for the httpCore property. - */ - public set httpCore(value: HttpCore | undefined) { - this._httpCore = value; - }; - /** - * Sets the serializerFactory property value. Factory to use to get a serializer for payload serialization - * @param value Value to set for the serializerFactory property. - */ - public set serializerFactory(value: SerializationWriterFactory | undefined) { - this._serializerFactory = value; + this.pathSegment = "/users"; }; } From ccf1c137a5278bc0a53987974e62ea0cad25af92 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 15 Jun 2021 09:48:38 -0400 Subject: [PATCH 04/11] - code-gen: typo fix in java serialize method description --- .../src/main/java/graphjavav4/utilities/users/Attachment.java | 2 +- .../java/graphjavav4/utilities/users/DateTimeTimeZone.java | 4 ++-- .../main/java/graphjavav4/utilities/users/EmailAddress.java | 4 ++-- .../src/main/java/graphjavav4/utilities/users/Entity.java | 4 ++-- .../src/main/java/graphjavav4/utilities/users/Extension.java | 2 +- .../main/java/graphjavav4/utilities/users/FollowupFlag.java | 4 ++-- .../graphjavav4/utilities/users/InternetMessageHeader.java | 4 ++-- .../src/main/java/graphjavav4/utilities/users/ItemBody.java | 4 ++-- .../src/main/java/graphjavav4/utilities/users/MailFolder.java | 2 +- .../src/main/java/graphjavav4/utilities/users/Message.java | 2 +- .../main/java/graphjavav4/utilities/users/MessageRule.java | 2 +- .../utilities/users/MultiValueLegacyExtendedProperty.java | 2 +- .../main/java/graphjavav4/utilities/users/OutlookItem.java | 2 +- .../src/main/java/graphjavav4/utilities/users/Recipient.java | 4 ++-- .../utilities/users/SingleValueLegacyExtendedProperty.java | 2 +- .../inferenceClassification/InferenceClassification.java | 2 +- .../InferenceClassificationOverride.java | 2 +- .../inferenceClassification/overrides/OverridesResponse.java | 4 ++-- .../utilities/users/mailFolders/MailFoldersResponse.java | 4 ++-- .../utilities/users/mailFolders/MessageRuleActions.java | 4 ++-- .../utilities/users/mailFolders/MessageRulePredicates.java | 4 ++-- .../graphjavav4/utilities/users/mailFolders/SizeRange.java | 4 ++-- .../users/mailFolders/childFolders/ChildFoldersResponse.java | 4 ++-- .../users/mailFolders/messageRules/MessageRulesResponse.java | 4 ++-- .../users/mailFolders/messages/MessagesResponse.java | 4 ++-- .../mailFolders/messages/attachments/AttachmentsResponse.java | 4 ++-- .../mailFolders/messages/extensions/ExtensionsResponse.java | 4 ++-- .../MultiValueExtendedPropertiesResponse.java | 4 ++-- .../SingleValueExtendedPropertiesResponse.java | 4 ++-- .../MultiValueExtendedPropertiesResponse.java | 4 ++-- .../SingleValueExtendedPropertiesResponse.java | 4 ++-- .../utilities/users/messages/MessagesResponse.java | 4 ++-- .../users/messages/attachments/AttachmentsResponse.java | 4 ++-- .../users/messages/extensions/ExtensionsResponse.java | 4 ++-- .../MultiValueExtendedPropertiesResponse.java | 4 ++-- .../SingleValueExtendedPropertiesResponse.java | 4 ++-- 36 files changed, 62 insertions(+), 62 deletions(-) diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java index 2dc278f1b..9d8fc017f 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java @@ -39,7 +39,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java index b38b95a09..c080c96a2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java @@ -10,7 +10,7 @@ public class DateTimeTimeZone implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); /** A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. */ @javax.annotation.Nullable public String dateTime; @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java index cb759ea77..3bd428b9b 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java @@ -10,7 +10,7 @@ public class EmailAddress implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); /** The email address of an entity instance. */ @javax.annotation.Nullable public String address; @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java index e11504318..db5390734 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java @@ -10,7 +10,7 @@ public class Entity implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); /** Read-only. */ @javax.annotation.Nullable public String id; @@ -33,7 +33,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java index 86c0e3618..60e33b060 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java @@ -18,7 +18,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java index a76743952..8165904a6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java @@ -10,7 +10,7 @@ public class FollowupFlag implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public DateTimeTimeZone completedDateTime; @javax.annotation.Nullable @@ -41,7 +41,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java index ff13fd436..2470a6bb2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java @@ -10,7 +10,7 @@ public class InternetMessageHeader implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); /** Represents the key in a key-value pair. */ @javax.annotation.Nullable public String name; @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java index 5c53a7305..9aa6b64a6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java @@ -10,7 +10,7 @@ public class ItemBody implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); /** The content of the item. */ @javax.annotation.Nullable public String content; @@ -36,7 +36,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java index 85ea457a5..621156e65 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java @@ -63,7 +63,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java index 8a34ea48b..472180fb8 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java @@ -133,7 +133,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java index cbabbf4b8..ca61d772b 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java @@ -49,7 +49,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java index 910ccd37b..1f3fccdf7 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java @@ -23,7 +23,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java index 52733f25f..ad6d63065 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java @@ -36,7 +36,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java index 1360721da..38a2118bc 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java @@ -10,7 +10,7 @@ public class Recipient implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public EmailAddress emailAddress; /** @@ -32,7 +32,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java index cfa6266f5..bf90cd58b 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java @@ -22,7 +22,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java index 2a70b999c..8a4dc77ea 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java @@ -24,7 +24,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java index 3f088bb43..5e9e5b032 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java @@ -27,7 +27,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java index dde69cc3e..7bbdfb3d1 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java @@ -12,7 +12,7 @@ public class OverridesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java index 0ef3f9519..8380ffdcb 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java @@ -12,7 +12,7 @@ public class MailFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java index d9c684ea0..d8ed51889 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java @@ -13,7 +13,7 @@ public class MessageRuleActions implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); /** A list of categories to be assigned to a message. */ @javax.annotation.Nullable public List assignCategories; @@ -75,7 +75,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java index 21c201666..c09a6b656 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java @@ -13,7 +13,7 @@ public class MessageRulePredicates implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); /** Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. */ @javax.annotation.Nullable public List bodyContains; @@ -148,7 +148,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java index 037d3d1ad..36c76ff2f 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java @@ -10,7 +10,7 @@ public class SizeRange implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); /** The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ @javax.annotation.Nullable public Integer maximumSize; @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java index 86c87a1c0..a7e099d4a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java @@ -12,7 +12,7 @@ public class ChildFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java index 162fe69b5..65f8f7c5e 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java @@ -12,7 +12,7 @@ public class MessageRulesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java index d14490134..1337000d7 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java @@ -12,7 +12,7 @@ public class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java index af86de1c3..a9d914c3b 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java @@ -12,7 +12,7 @@ public class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java index 3dd256bdb..45328770a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java @@ -12,7 +12,7 @@ public class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index 3123321c2..b8d3330c0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -12,7 +12,7 @@ public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index ef4450b08..b168d0ea6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -12,7 +12,7 @@ public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index 2c8de7114..d220801c9 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -12,7 +12,7 @@ public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index b316656f0..b97cb2cb7 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -12,7 +12,7 @@ public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java index 32bd800eb..08c18f3ab 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java @@ -12,7 +12,7 @@ public class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java index ced731fc0..e78fb33ba 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java @@ -12,7 +12,7 @@ public class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java index 86e3ab465..ae13a97c6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java @@ -12,7 +12,7 @@ public class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index ea0692688..dd00690e9 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -12,7 +12,7 @@ public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index 9f8324e78..352812d97 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -12,7 +12,7 @@ public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ @javax.annotation.Nonnull - private final Map additionalData = new HashMap<>(); + private Map additionalData = new HashMap<>(); @javax.annotation.Nullable public String nextLink; @javax.annotation.Nullable @@ -37,7 +37,7 @@ public Map> getFieldDeserializers() { }}; } /** - * Serialiazes information the current object + * Serializes information the current object * @param writer Serialization writer to use to serialize this model * @return a void */ From 66c491a8de19fdb5af7bd2dab1d6d08d985ebc1a Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 15 Jun 2021 10:58:25 -0400 Subject: [PATCH 05/11] - code-gen: java accessors and constructor --- .../java/graphjavav4/utilities/ApiClient.java | 10 +- .../utilities/users/Attachment.java | 120 ++- .../utilities/users/DateTimeTimeZone.java | 72 +- .../utilities/users/EmailAddress.java | 72 +- .../graphjavav4/utilities/users/Entity.java | 49 +- .../utilities/users/Extension.java | 7 + .../utilities/users/FollowupFlag.java | 112 ++- .../users/InternetMessageHeader.java | 72 +- .../graphjavav4/utilities/users/ItemBody.java | 72 +- .../utilities/users/MailFolder.java | 258 +++++-- .../graphjavav4/utilities/users/Message.java | 681 ++++++++++++++--- .../utilities/users/MessageRule.java | 185 ++++- .../MultiValueLegacyExtendedProperty.java | 28 +- .../utilities/users/OutlookItem.java | 97 ++- .../utilities/users/Recipient.java | 49 +- .../SingleValueLegacyExtendedProperty.java | 28 +- .../utilities/users/UsersRequestBuilder.java | 10 +- .../InferenceClassification.java | 28 +- .../InferenceClassificationOverride.java | 49 +- ...InferenceClassificationRequestBuilder.java | 30 +- .../overrides/OverridesRequestBuilder.java | 24 +- .../overrides/OverridesResponse.java | 70 +- ...eClassificationOverrideRequestBuilder.java | 30 +- .../users/item/UserRequestBuilder.java | 10 +- .../MailFoldersRequestBuilder.java | 24 +- .../mailFolders/MailFoldersResponse.java | 70 +- .../users/mailFolders/MessageRuleActions.java | 277 +++++-- .../mailFolders/MessageRulePredicates.java | 708 +++++++++++++++--- .../users/mailFolders/SizeRange.java | 72 +- .../ChildFoldersRequestBuilder.java | 24 +- .../childFolders/ChildFoldersResponse.java | 70 +- .../item/MailFolderRequestBuilder.java | 30 +- .../item/MailFolderRequestBuilder.java | 30 +- .../MessageRulesRequestBuilder.java | 24 +- .../messageRules/MessageRulesResponse.java | 70 +- .../item/MessageRuleRequestBuilder.java | 30 +- .../messages/MessagesRequestBuilder.java | 24 +- .../messages/MessagesResponse.java | 70 +- .../AttachmentsRequestBuilder.java | 24 +- .../attachments/AttachmentsResponse.java | 70 +- .../item/AttachmentRequestBuilder.java | 30 +- .../content/ContentRequestBuilder.java | 22 +- .../extensions/ExtensionsRequestBuilder.java | 24 +- .../extensions/ExtensionsResponse.java | 70 +- .../item/ExtensionRequestBuilder.java | 30 +- .../messages/item/MessageRequestBuilder.java | 30 +- ...ValueExtendedPropertiesRequestBuilder.java | 24 +- .../MultiValueExtendedPropertiesResponse.java | 70 +- ...eLegacyExtendedPropertyRequestBuilder.java | 30 +- ...ValueExtendedPropertiesRequestBuilder.java | 24 +- ...SingleValueExtendedPropertiesResponse.java | 70 +- ...eLegacyExtendedPropertyRequestBuilder.java | 30 +- ...ValueExtendedPropertiesRequestBuilder.java | 24 +- .../MultiValueExtendedPropertiesResponse.java | 70 +- ...eLegacyExtendedPropertyRequestBuilder.java | 30 +- ...ValueExtendedPropertiesRequestBuilder.java | 24 +- ...SingleValueExtendedPropertiesResponse.java | 70 +- ...eLegacyExtendedPropertyRequestBuilder.java | 30 +- .../messages/MessagesRequestBuilder.java | 24 +- .../users/messages/MessagesResponse.java | 70 +- .../AttachmentsRequestBuilder.java | 24 +- .../attachments/AttachmentsResponse.java | 70 +- .../item/AttachmentRequestBuilder.java | 30 +- .../content/ContentRequestBuilder.java | 22 +- .../extensions/ExtensionsRequestBuilder.java | 24 +- .../extensions/ExtensionsResponse.java | 70 +- .../item/ExtensionRequestBuilder.java | 30 +- .../messages/item/MessageRequestBuilder.java | 30 +- ...ValueExtendedPropertiesRequestBuilder.java | 24 +- .../MultiValueExtendedPropertiesResponse.java | 70 +- ...eLegacyExtendedPropertyRequestBuilder.java | 30 +- ...ValueExtendedPropertiesRequestBuilder.java | 24 +- ...SingleValueExtendedPropertiesResponse.java | 70 +- ...eLegacyExtendedPropertyRequestBuilder.java | 30 +- 74 files changed, 4033 insertions(+), 1091 deletions(-) diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/ApiClient.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/ApiClient.java index dae69fbe5..0159b196d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/ApiClient.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/ApiClient.java @@ -24,8 +24,7 @@ public class ApiClient { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "https://graph.microsoft.com/v1.0"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; @@ -36,6 +35,13 @@ public UsersRequestBuilder users() { final SerializationWriterFactory parentSerializationFactory = serializerFactory; return new UsersRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } + /** + * Instantiates a new ApiClient and sets the default values. + * @return a void + */ + public ApiClient() { + this.pathSegment = "https://graph.microsoft.com/v1.0"; + } /** * Gets an item from the graphjavav4.utilities.users collection * @param id Unique identifier of the item diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java index 9d8fc017f..1b6dfa5be 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Attachment.java @@ -10,20 +10,62 @@ import java.util.Objects; public class Attachment extends Entity implements Parsable { /** The MIME type. */ - @javax.annotation.Nullable - public String contentType; + private String _contentType; /** true if the attachment is an inline attachment; otherwise, false. */ - @javax.annotation.Nullable - public Boolean isInline; + private Boolean _isInline; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - @javax.annotation.Nullable - public OffsetDateTime lastModifiedDateTime; + private OffsetDateTime _lastModifiedDateTime; /** The display name of the attachment. This does not need to be the actual file name. */ - @javax.annotation.Nullable - public String name; + private String _name; /** The length of the attachment in bytes. */ + private Integer _size; + /** + * Instantiates a new attachment and sets the default values. + * @return a void + */ + public Attachment() { + super(); + } + /** + * Gets the contentType property value. The MIME type. + * @return a string + */ + @javax.annotation.Nullable + public String getContentType() { + return this._contentType; + } + /** + * Gets the isInline property value. true if the attachment is an inline attachment; otherwise, false. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getIsInline() { + return this._isInline; + } + /** + * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @return a OffsetDateTime + */ @javax.annotation.Nullable - public Integer size; + public OffsetDateTime getLastModifiedDateTime() { + return this._lastModifiedDateTime; + } + /** + * Gets the name property value. The display name of the attachment. This does not need to be the actual file name. + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this._name; + } + /** + * Gets the size property value. The length of the attachment in bytes. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getSize() { + return this._size; + } /** * The deserialization information for the current model * @return a Map> @@ -31,11 +73,11 @@ public class Attachment extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("contentType", (o, n) -> { ((Attachment)o).contentType = n.getStringValue(); }); - this.put("isInline", (o, n) -> { ((Attachment)o).isInline = n.getBooleanValue(); }); - this.put("lastModifiedDateTime", (o, n) -> { ((Attachment)o).lastModifiedDateTime = n.getOffsetDateTimeValue(); }); - this.put("name", (o, n) -> { ((Attachment)o).name = n.getStringValue(); }); - this.put("size", (o, n) -> { ((Attachment)o).size = n.getIntegerValue(); }); + this.put("contentType", (o, n) -> { ((Attachment)o).setContentType(n.getStringValue()); }); + this.put("isInline", (o, n) -> { ((Attachment)o).setIsInline(n.getBooleanValue()); }); + this.put("lastModifiedDateTime", (o, n) -> { ((Attachment)o).setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + this.put("name", (o, n) -> { ((Attachment)o).setName(n.getStringValue()); }); + this.put("size", (o, n) -> { ((Attachment)o).setSize(n.getIntegerValue()); }); }}; } /** @@ -46,10 +88,50 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeStringValue("contentType", contentType); - writer.writeBooleanValue("isInline", isInline); - writer.writeOffsetDateTimeValue("lastModifiedDateTime", lastModifiedDateTime); - writer.writeStringValue("name", name); - writer.writeIntegerValue("size", size); + writer.writeStringValue("contentType", this.getContentType()); + writer.writeBooleanValue("isInline", this.getIsInline()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeStringValue("name", this.getName()); + writer.writeIntegerValue("size", this.getSize()); + } + /** + * Sets the contentType property value. The MIME type. + * @param value Value to set for the contentType property. + * @return a void + */ + public void setContentType(@javax.annotation.Nullable final String value) { + this._contentType = value; + } + /** + * Sets the isInline property value. true if the attachment is an inline attachment; otherwise, false. + * @param value Value to set for the isInline property. + * @return a void + */ + public void setIsInline(@javax.annotation.Nullable final Boolean value) { + this._isInline = value; + } + /** + * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the lastModifiedDateTime property. + * @return a void + */ + public void setLastModifiedDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._lastModifiedDateTime = value; + } + /** + * Sets the name property value. The display name of the attachment. This does not need to be the actual file name. + * @param value Value to set for the name property. + * @return a void + */ + public void setName(@javax.annotation.Nullable final String value) { + this._name = value; + } + /** + * Sets the size property value. The length of the attachment in bytes. + * @param value Value to set for the size property. + * @return a void + */ + public void setSize(@javax.annotation.Nullable final Integer value) { + this._size = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java index c080c96a2..9d7327305 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java @@ -9,21 +9,41 @@ import java.util.Objects; public class DateTimeTimeZone implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); + private IDictionary _additionalData; /** A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. */ - @javax.annotation.Nullable - public String dateTime; + private String _dateTime; /** Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. */ - @javax.annotation.Nullable - public String timeZone; + private String _timeZone; + /** + * Instantiates a new dateTimeTimeZone and sets the default values. + * @return a void + */ + public DateTimeTimeZone() { + this._additionalData = new Dictionary(); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary */ @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. + * @return a string + */ + @javax.annotation.Nullable + public String getDateTime() { + return this._dateTime; + } + /** + * Gets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. + * @return a string + */ + @javax.annotation.Nullable + public String getTimeZone() { + return this._timeZone; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("dateTime", (o, n) -> { ((DateTimeTimeZone)o).dateTime = n.getStringValue(); }); - this.put("timeZone", (o, n) -> { ((DateTimeTimeZone)o).timeZone = n.getStringValue(); }); + this.put("dateTime", (o, n) -> { ((DateTimeTimeZone)o).setDateTime(n.getStringValue()); }); + this.put("timeZone", (o, n) -> { ((DateTimeTimeZone)o).setTimeZone(n.getStringValue()); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("dateTime", dateTime); - writer.writeStringValue("timeZone", timeZone); + writer.writeStringValue("dateTime", this.getDateTime()); + writer.writeStringValue("timeZone", this.getTimeZone()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. + * @param value Value to set for the dateTime property. + * @return a void + */ + public void setDateTime(@javax.annotation.Nullable final String value) { + this._dateTime = value; + } + /** + * Sets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. + * @param value Value to set for the timeZone property. + * @return a void + */ + public void setTimeZone(@javax.annotation.Nullable final String value) { + this._timeZone = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java index 3bd428b9b..428fec1d0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java @@ -9,21 +9,41 @@ import java.util.Objects; public class EmailAddress implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); + private IDictionary _additionalData; /** The email address of an entity instance. */ - @javax.annotation.Nullable - public String address; + private String _address; /** The display name of an entity instance. */ - @javax.annotation.Nullable - public String name; + private String _name; + /** + * Instantiates a new emailAddress and sets the default values. + * @return a void + */ + public EmailAddress() { + this._additionalData = new Dictionary(); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary */ @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the address property value. The email address of an entity instance. + * @return a string + */ + @javax.annotation.Nullable + public String getAddress() { + return this._address; + } + /** + * Gets the name property value. The display name of an entity instance. + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this._name; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("address", (o, n) -> { ((EmailAddress)o).address = n.getStringValue(); }); - this.put("name", (o, n) -> { ((EmailAddress)o).name = n.getStringValue(); }); + this.put("address", (o, n) -> { ((EmailAddress)o).setAddress(n.getStringValue()); }); + this.put("name", (o, n) -> { ((EmailAddress)o).setName(n.getStringValue()); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("address", address); - writer.writeStringValue("name", name); + writer.writeStringValue("address", this.getAddress()); + writer.writeStringValue("name", this.getName()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the address property value. The email address of an entity instance. + * @param value Value to set for the address property. + * @return a void + */ + public void setAddress(@javax.annotation.Nullable final String value) { + this._address = value; + } + /** + * Sets the name property value. The display name of an entity instance. + * @param value Value to set for the name property. + * @return a void + */ + public void setName(@javax.annotation.Nullable final String value) { + this._name = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java index db5390734..c529580ea 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java @@ -9,18 +9,31 @@ import java.util.Objects; public class Entity implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); + private IDictionary _additionalData; /** Read-only. */ - @javax.annotation.Nullable - public String id; + private String _id; /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Instantiates a new entity and sets the default values. + * @return a void + */ + public Entity() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary */ @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the id property value. Read-only. + * @return a string + */ + @javax.annotation.Nullable + public String getId() { + return this._id; } /** * The deserialization information for the current model @@ -29,7 +42,7 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(1) {{ - this.put("id", (o, n) -> { ((Entity)o).id = n.getStringValue(); }); + this.put("id", (o, n) -> { ((Entity)o).setId(n.getStringValue()); }); }}; } /** @@ -39,7 +52,23 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("id", id); + writer.writeStringValue("id", this.getId()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the id property value. Read-only. + * @param value Value to set for the id property. + * @return a void + */ + public void setId(@javax.annotation.Nullable final String value) { + this._id = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java index 60e33b060..4991cd959 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Extension.java @@ -8,6 +8,13 @@ import java.util.Map; import java.util.Objects; public class Extension extends Entity implements Parsable { + /** + * Instantiates a new extension and sets the default values. + * @return a void + */ + public Extension() { + super(); + } /** * The deserialization information for the current model * @return a Map> diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java index 8165904a6..bf333fcb5 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java @@ -9,23 +9,57 @@ import java.util.Objects; public class FollowupFlag implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private DateTimeTimeZone _completedDateTime; + private DateTimeTimeZone _dueDateTime; + private FollowupFlagStatus _flagStatus; + private DateTimeTimeZone _startDateTime; + /** + * Instantiates a new followupFlag and sets the default values. + * @return a void + */ + public FollowupFlag() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public DateTimeTimeZone completedDateTime; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the completedDateTime property value. + * @return a dateTimeTimeZone + */ @javax.annotation.Nullable - public DateTimeTimeZone dueDateTime; + public DateTimeTimeZone getCompletedDateTime() { + return this._completedDateTime; + } + /** + * Gets the dueDateTime property value. + * @return a dateTimeTimeZone + */ @javax.annotation.Nullable - public FollowupFlagStatus flagStatus; + public DateTimeTimeZone getDueDateTime() { + return this._dueDateTime; + } + /** + * Gets the flagStatus property value. + * @return a followupFlagStatus + */ @javax.annotation.Nullable - public DateTimeTimeZone startDateTime; + public FollowupFlagStatus getFlagStatus() { + return this._flagStatus; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the startDateTime property value. + * @return a dateTimeTimeZone */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public DateTimeTimeZone getStartDateTime() { + return this._startDateTime; } /** * The deserialization information for the current model @@ -34,10 +68,10 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(4) {{ - this.put("completedDateTime", (o, n) -> { ((FollowupFlag)o).completedDateTime = n.getObjectValue(DateTimeTimeZone.class); }); - this.put("dueDateTime", (o, n) -> { ((FollowupFlag)o).dueDateTime = n.getObjectValue(DateTimeTimeZone.class); }); - this.put("flagStatus", (o, n) -> { ((FollowupFlag)o).flagStatus = n.getEnumValue(FollowupFlagStatus.class); }); - this.put("startDateTime", (o, n) -> { ((FollowupFlag)o).startDateTime = n.getObjectValue(DateTimeTimeZone.class); }); + this.put("completedDateTime", (o, n) -> { ((FollowupFlag)o).setCompletedDateTime(n.getObjectValue(DateTimeTimeZone.class)); }); + this.put("dueDateTime", (o, n) -> { ((FollowupFlag)o).setDueDateTime(n.getObjectValue(DateTimeTimeZone.class)); }); + this.put("flagStatus", (o, n) -> { ((FollowupFlag)o).setFlagStatus(n.getEnumValue(FollowupFlagStatus.class)); }); + this.put("startDateTime", (o, n) -> { ((FollowupFlag)o).setStartDateTime(n.getObjectValue(DateTimeTimeZone.class)); }); }}; } /** @@ -47,10 +81,50 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeObjectValue("completedDateTime", completedDateTime); - writer.writeObjectValue("dueDateTime", dueDateTime); - writer.writeEnumValue("flagStatus", flagStatus); - writer.writeObjectValue("startDateTime", startDateTime); + writer.writeObjectValue("completedDateTime", this.getCompletedDateTime()); + writer.writeObjectValue("dueDateTime", this.getDueDateTime()); + writer.writeEnumValue("flagStatus", this.getFlagStatus()); + writer.writeObjectValue("startDateTime", this.getStartDateTime()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the completedDateTime property value. + * @param value Value to set for the completedDateTime property. + * @return a void + */ + public void setCompletedDateTime(@javax.annotation.Nullable final DateTimeTimeZone value) { + this._completedDateTime = value; + } + /** + * Sets the dueDateTime property value. + * @param value Value to set for the dueDateTime property. + * @return a void + */ + public void setDueDateTime(@javax.annotation.Nullable final DateTimeTimeZone value) { + this._dueDateTime = value; + } + /** + * Sets the flagStatus property value. + * @param value Value to set for the flagStatus property. + * @return a void + */ + public void setFlagStatus(@javax.annotation.Nullable final FollowupFlagStatus value) { + this._flagStatus = value; + } + /** + * Sets the startDateTime property value. + * @param value Value to set for the startDateTime property. + * @return a void + */ + public void setStartDateTime(@javax.annotation.Nullable final DateTimeTimeZone value) { + this._startDateTime = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java index 2470a6bb2..9a342ce47 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java @@ -9,21 +9,41 @@ import java.util.Objects; public class InternetMessageHeader implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); + private IDictionary _additionalData; /** Represents the key in a key-value pair. */ - @javax.annotation.Nullable - public String name; + private String _name; /** The value in a key-value pair. */ - @javax.annotation.Nullable - public String value; + private String _value; + /** + * Instantiates a new internetMessageHeader and sets the default values. + * @return a void + */ + public InternetMessageHeader() { + this._additionalData = new Dictionary(); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary */ @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the name property value. Represents the key in a key-value pair. + * @return a string + */ + @javax.annotation.Nullable + public String getName() { + return this._name; + } + /** + * Gets the value property value. The value in a key-value pair. + * @return a string + */ + @javax.annotation.Nullable + public String getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("name", (o, n) -> { ((InternetMessageHeader)o).name = n.getStringValue(); }); - this.put("value", (o, n) -> { ((InternetMessageHeader)o).value = n.getStringValue(); }); + this.put("name", (o, n) -> { ((InternetMessageHeader)o).setName(n.getStringValue()); }); + this.put("value", (o, n) -> { ((InternetMessageHeader)o).setValue(n.getStringValue()); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("name", name); - writer.writeStringValue("value", value); + writer.writeStringValue("name", this.getName()); + writer.writeStringValue("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the name property value. Represents the key in a key-value pair. + * @param value Value to set for the name property. + * @return a void + */ + public void setName(@javax.annotation.Nullable final String value) { + this._name = value; + } + /** + * Sets the value property value. The value in a key-value pair. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final String value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java index 9aa6b64a6..7b1831f77 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java @@ -9,20 +9,40 @@ import java.util.Objects; public class ItemBody implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); + private IDictionary _additionalData; /** The content of the item. */ - @javax.annotation.Nullable - public String content; - @javax.annotation.Nullable - public BodyType contentType; + private String _content; + private BodyType _contentType; + /** + * Instantiates a new itemBody and sets the default values. + * @return a void + */ + public ItemBody() { + this._additionalData = new Dictionary(); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary */ @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the content property value. The content of the item. + * @return a string + */ + @javax.annotation.Nullable + public String getContent() { + return this._content; + } + /** + * Gets the contentType property value. + * @return a bodyType + */ + @javax.annotation.Nullable + public BodyType getContentType() { + return this._contentType; } /** * The deserialization information for the current model @@ -31,8 +51,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("content", (o, n) -> { ((ItemBody)o).content = n.getStringValue(); }); - this.put("contentType", (o, n) -> { ((ItemBody)o).contentType = n.getEnumValue(BodyType.class); }); + this.put("content", (o, n) -> { ((ItemBody)o).setContent(n.getStringValue()); }); + this.put("contentType", (o, n) -> { ((ItemBody)o).setContentType(n.getEnumValue(BodyType.class)); }); }}; } /** @@ -42,8 +62,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("content", content); - writer.writeEnumValue("contentType", contentType); + writer.writeStringValue("content", this.getContent()); + writer.writeEnumValue("contentType", this.getContentType()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the content property value. The content of the item. + * @param value Value to set for the content property. + * @return a void + */ + public void setContent(@javax.annotation.Nullable final String value) { + this._content = value; + } + /** + * Sets the contentType property value. + * @param value Value to set for the contentType property. + * @return a void + */ + public void setContentType(@javax.annotation.Nullable final BodyType value) { + this._contentType = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java index 621156e65..2f8ebcf89 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MailFolder.java @@ -10,38 +10,122 @@ import java.util.Objects; public class MailFolder extends Entity implements Parsable { /** The number of immediate child mailFolders in the current mailFolder. */ - @javax.annotation.Nullable - public Integer childFolderCount; + private Integer _childFolderCount; /** The collection of child folders in the mailFolder. */ - @javax.annotation.Nullable - public List childFolders; + private List _childFolders; /** The mailFolder's display name. */ - @javax.annotation.Nullable - public String displayName; + private String _displayName; /** Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. */ - @javax.annotation.Nullable - public Boolean isHidden; + private Boolean _isHidden; /** The collection of rules that apply to the user's Inbox folder. */ - @javax.annotation.Nullable - public List messageRules; + private List _messageRules; /** The collection of messages in the mailFolder. */ - @javax.annotation.Nullable - public List messages; + private List _messages; /** The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. */ - @javax.annotation.Nullable - public List multiValueExtendedProperties; + private List _multiValueExtendedProperties; /** The unique identifier for the mailFolder's parent mailFolder. */ - @javax.annotation.Nullable - public String parentFolderId; + private String _parentFolderId; /** The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. */ - @javax.annotation.Nullable - public List singleValueExtendedProperties; + private List _singleValueExtendedProperties; /** The number of items in the mailFolder. */ - @javax.annotation.Nullable - public Integer totalItemCount; + private Integer _totalItemCount; /** The number of items in the mailFolder marked as unread. */ + private Integer _unreadItemCount; + /** + * Instantiates a new mailFolder and sets the default values. + * @return a void + */ + public MailFolder() { + super(); + } + /** + * Gets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. + * @return a integer + */ @javax.annotation.Nullable - public Integer unreadItemCount; + public Integer getChildFolderCount() { + return this._childFolderCount; + } + /** + * Gets the childFolders property value. The collection of child folders in the mailFolder. + * @return a mailFolder + */ + @javax.annotation.Nullable + public List getChildFolders() { + return this._childFolders; + } + /** + * Gets the displayName property value. The mailFolder's display name. + * @return a string + */ + @javax.annotation.Nullable + public String getDisplayName() { + return this._displayName; + } + /** + * Gets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getIsHidden() { + return this._isHidden; + } + /** + * Gets the messageRules property value. The collection of rules that apply to the user's Inbox folder. + * @return a messageRule + */ + @javax.annotation.Nullable + public List getMessageRules() { + return this._messageRules; + } + /** + * Gets the messages property value. The collection of messages in the mailFolder. + * @return a message + */ + @javax.annotation.Nullable + public List getMessages() { + return this._messages; + } + /** + * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. + * @return a multiValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getMultiValueExtendedProperties() { + return this._multiValueExtendedProperties; + } + /** + * Gets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. + * @return a string + */ + @javax.annotation.Nullable + public String getParentFolderId() { + return this._parentFolderId; + } + /** + * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. + * @return a singleValueLegacyExtendedProperty + */ + @javax.annotation.Nullable + public List getSingleValueExtendedProperties() { + return this._singleValueExtendedProperties; + } + /** + * Gets the totalItemCount property value. The number of items in the mailFolder. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getTotalItemCount() { + return this._totalItemCount; + } + /** + * Gets the unreadItemCount property value. The number of items in the mailFolder marked as unread. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getUnreadItemCount() { + return this._unreadItemCount; + } /** * The deserialization information for the current model * @return a Map> @@ -49,17 +133,17 @@ public class MailFolder extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("childFolderCount", (o, n) -> { ((MailFolder)o).childFolderCount = n.getIntegerValue(); }); - this.put("childFolders", (o, n) -> { ((MailFolder)o).childFolders = n.getCollectionOfObjectValues(MailFolder.class); }); - this.put("displayName", (o, n) -> { ((MailFolder)o).displayName = n.getStringValue(); }); - this.put("isHidden", (o, n) -> { ((MailFolder)o).isHidden = n.getBooleanValue(); }); - this.put("messageRules", (o, n) -> { ((MailFolder)o).messageRules = n.getCollectionOfObjectValues(MessageRule.class); }); - this.put("messages", (o, n) -> { ((MailFolder)o).messages = n.getCollectionOfObjectValues(Message.class); }); - this.put("multiValueExtendedProperties", (o, n) -> { ((MailFolder)o).multiValueExtendedProperties = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); - this.put("parentFolderId", (o, n) -> { ((MailFolder)o).parentFolderId = n.getStringValue(); }); - this.put("singleValueExtendedProperties", (o, n) -> { ((MailFolder)o).singleValueExtendedProperties = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); - this.put("totalItemCount", (o, n) -> { ((MailFolder)o).totalItemCount = n.getIntegerValue(); }); - this.put("unreadItemCount", (o, n) -> { ((MailFolder)o).unreadItemCount = n.getIntegerValue(); }); + this.put("childFolderCount", (o, n) -> { ((MailFolder)o).setChildFolderCount(n.getIntegerValue()); }); + this.put("childFolders", (o, n) -> { ((MailFolder)o).setChildFolders(n.getCollectionOfObjectValues(MailFolder.class)); }); + this.put("displayName", (o, n) -> { ((MailFolder)o).setDisplayName(n.getStringValue()); }); + this.put("isHidden", (o, n) -> { ((MailFolder)o).setIsHidden(n.getBooleanValue()); }); + this.put("messageRules", (o, n) -> { ((MailFolder)o).setMessageRules(n.getCollectionOfObjectValues(MessageRule.class)); }); + this.put("messages", (o, n) -> { ((MailFolder)o).setMessages(n.getCollectionOfObjectValues(Message.class)); }); + this.put("multiValueExtendedProperties", (o, n) -> { ((MailFolder)o).setMultiValueExtendedProperties(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); + this.put("parentFolderId", (o, n) -> { ((MailFolder)o).setParentFolderId(n.getStringValue()); }); + this.put("singleValueExtendedProperties", (o, n) -> { ((MailFolder)o).setSingleValueExtendedProperties(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); + this.put("totalItemCount", (o, n) -> { ((MailFolder)o).setTotalItemCount(n.getIntegerValue()); }); + this.put("unreadItemCount", (o, n) -> { ((MailFolder)o).setUnreadItemCount(n.getIntegerValue()); }); }}; } /** @@ -70,16 +154,104 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeIntegerValue("childFolderCount", childFolderCount); - writer.writeCollectionOfObjectValues("childFolders", childFolders); - writer.writeStringValue("displayName", displayName); - writer.writeBooleanValue("isHidden", isHidden); - writer.writeCollectionOfObjectValues("messageRules", messageRules); - writer.writeCollectionOfObjectValues("messages", messages); - writer.writeCollectionOfObjectValues("multiValueExtendedProperties", multiValueExtendedProperties); - writer.writeStringValue("parentFolderId", parentFolderId); - writer.writeCollectionOfObjectValues("singleValueExtendedProperties", singleValueExtendedProperties); - writer.writeIntegerValue("totalItemCount", totalItemCount); - writer.writeIntegerValue("unreadItemCount", unreadItemCount); + writer.writeIntegerValue("childFolderCount", this.getChildFolderCount()); + writer.writeCollectionOfObjectValues("childFolders", this.getChildFolders()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeBooleanValue("isHidden", this.getIsHidden()); + writer.writeCollectionOfObjectValues("messageRules", this.getMessageRules()); + writer.writeCollectionOfObjectValues("messages", this.getMessages()); + writer.writeCollectionOfObjectValues("multiValueExtendedProperties", this.getMultiValueExtendedProperties()); + writer.writeStringValue("parentFolderId", this.getParentFolderId()); + writer.writeCollectionOfObjectValues("singleValueExtendedProperties", this.getSingleValueExtendedProperties()); + writer.writeIntegerValue("totalItemCount", this.getTotalItemCount()); + writer.writeIntegerValue("unreadItemCount", this.getUnreadItemCount()); + } + /** + * Sets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder. + * @param value Value to set for the childFolderCount property. + * @return a void + */ + public void setChildFolderCount(@javax.annotation.Nullable final Integer value) { + this._childFolderCount = value; + } + /** + * Sets the childFolders property value. The collection of child folders in the mailFolder. + * @param value Value to set for the childFolders property. + * @return a void + */ + public void setChildFolders(@javax.annotation.Nullable final List value) { + this._childFolders = value; + } + /** + * Sets the displayName property value. The mailFolder's display name. + * @param value Value to set for the displayName property. + * @return a void + */ + public void setDisplayName(@javax.annotation.Nullable final String value) { + this._displayName = value; + } + /** + * Sets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders. + * @param value Value to set for the isHidden property. + * @return a void + */ + public void setIsHidden(@javax.annotation.Nullable final Boolean value) { + this._isHidden = value; + } + /** + * Sets the messageRules property value. The collection of rules that apply to the user's Inbox folder. + * @param value Value to set for the messageRules property. + * @return a void + */ + public void setMessageRules(@javax.annotation.Nullable final List value) { + this._messageRules = value; + } + /** + * Sets the messages property value. The collection of messages in the mailFolder. + * @param value Value to set for the messages property. + * @return a void + */ + public void setMessages(@javax.annotation.Nullable final List value) { + this._messages = value; + } + /** + * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. + * @param value Value to set for the multiValueExtendedProperties property. + * @return a void + */ + public void setMultiValueExtendedProperties(@javax.annotation.Nullable final List value) { + this._multiValueExtendedProperties = value; + } + /** + * Sets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder. + * @param value Value to set for the parentFolderId property. + * @return a void + */ + public void setParentFolderId(@javax.annotation.Nullable final String value) { + this._parentFolderId = value; + } + /** + * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. + * @param value Value to set for the singleValueExtendedProperties property. + * @return a void + */ + public void setSingleValueExtendedProperties(@javax.annotation.Nullable final List value) { + this._singleValueExtendedProperties = value; + } + /** + * Sets the totalItemCount property value. The number of items in the mailFolder. + * @param value Value to set for the totalItemCount property. + * @return a void + */ + public void setTotalItemCount(@javax.annotation.Nullable final Integer value) { + this._totalItemCount = value; + } + /** + * Sets the unreadItemCount property value. The number of items in the mailFolder marked as unread. + * @param value Value to set for the unreadItemCount property. + * @return a void + */ + public void setUnreadItemCount(@javax.annotation.Nullable final Integer value) { + this._unreadItemCount = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java index 472180fb8..7a5d7e9aa 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Message.java @@ -11,88 +11,305 @@ import java.util.Objects; public class Message extends OutlookItem implements Parsable { /** The fileAttachment and itemAttachment attachments for the message. */ - @javax.annotation.Nullable - public List attachments; + private List _attachments; /** The Bcc: recipients for the message. */ + private List _bccRecipients; + private ItemBody _body; + /** The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. */ + private String _bodyPreview; + /** The Cc: recipients for the message. */ + private List _ccRecipients; + /** The ID of the conversation the email belongs to. */ + private String _conversationId; + /** Indicates the position of the message within the conversation. */ + private String _conversationIndex; + /** The collection of open extensions defined for the message. Nullable. */ + private List _extensions; + private FollowupFlag _flag; + private Recipient _from; + /** Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . */ + private Boolean _hasAttachments; + private Importance _importance; + private InferenceClassificationType _inferenceClassification; + /** A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. */ + private List _internetMessageHeaders; + /** The message ID in the format specified by RFC2822. */ + private String _internetMessageId; + /** Indicates whether a read receipt is requested for the message. */ + private Boolean _isDeliveryReceiptRequested; + /** Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. */ + private Boolean _isDraft; + /** Indicates whether the message has been read. */ + private Boolean _isRead; + /** Indicates whether a read receipt is requested for the message. */ + private Boolean _isReadReceiptRequested; + /** The collection of multi-value extended properties defined for the message. Nullable. */ + private List _multiValueExtendedProperties; + /** The unique identifier for the message's parent mailFolder. */ + private String _parentFolderId; + /** The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ + private OffsetDateTime _receivedDateTime; + /** The email addresses to use when replying. */ + private List _replyTo; + private Recipient _sender; + /** The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ + private OffsetDateTime _sentDateTime; + /** The collection of single-value extended properties defined for the message. Nullable. */ + private List _singleValueExtendedProperties; + /** The subject of the message. */ + private String _subject; + /** The To: recipients for the message. */ + private List _toRecipients; + private ItemBody _uniqueBody; + /** The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. */ + private String _webLink; + /** + * Instantiates a new message and sets the default values. + * @return a void + */ + public Message() { + super(); + } + /** + * Gets the attachments property value. The fileAttachment and itemAttachment attachments for the message. + * @return a attachment + */ @javax.annotation.Nullable - public List bccRecipients; + public List getAttachments() { + return this._attachments; + } + /** + * Gets the bccRecipients property value. The Bcc: recipients for the message. + * @return a recipient + */ @javax.annotation.Nullable - public ItemBody body; - /** The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. */ + public List getBccRecipients() { + return this._bccRecipients; + } + /** + * Gets the body property value. + * @return a itemBody + */ @javax.annotation.Nullable - public String bodyPreview; - /** The Cc: recipients for the message. */ + public ItemBody getBody() { + return this._body; + } + /** + * Gets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. + * @return a string + */ @javax.annotation.Nullable - public List ccRecipients; - /** The ID of the conversation the email belongs to. */ + public String getBodyPreview() { + return this._bodyPreview; + } + /** + * Gets the ccRecipients property value. The Cc: recipients for the message. + * @return a recipient + */ @javax.annotation.Nullable - public String conversationId; - /** Indicates the position of the message within the conversation. */ + public List getCcRecipients() { + return this._ccRecipients; + } + /** + * Gets the conversationId property value. The ID of the conversation the email belongs to. + * @return a string + */ @javax.annotation.Nullable - public String conversationIndex; - /** The collection of open extensions defined for the message. Nullable. */ + public String getConversationId() { + return this._conversationId; + } + /** + * Gets the conversationIndex property value. Indicates the position of the message within the conversation. + * @return a string + */ @javax.annotation.Nullable - public List extensions; + public String getConversationIndex() { + return this._conversationIndex; + } + /** + * Gets the extensions property value. The collection of open extensions defined for the message. Nullable. + * @return a extension + */ @javax.annotation.Nullable - public FollowupFlag flag; + public List getExtensions() { + return this._extensions; + } + /** + * Gets the flag property value. + * @return a followupFlag + */ @javax.annotation.Nullable - public Recipient from; - /** Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . */ + public FollowupFlag getFlag() { + return this._flag; + } + /** + * Gets the from property value. + * @return a recipient + */ @javax.annotation.Nullable - public Boolean hasAttachments; + public Recipient getFrom() { + return this._from; + } + /** + * Gets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . + * @return a boolean + */ @javax.annotation.Nullable - public Importance importance; + public Boolean getHasAttachments() { + return this._hasAttachments; + } + /** + * Gets the importance property value. + * @return a importance + */ @javax.annotation.Nullable - public InferenceClassificationType inferenceClassification; - /** A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. */ + public Importance getImportance() { + return this._importance; + } + /** + * Gets the inferenceClassification property value. + * @return a inferenceClassificationType + */ @javax.annotation.Nullable - public List internetMessageHeaders; - /** The message ID in the format specified by RFC2822. */ + public InferenceClassificationType getInferenceClassification() { + return this._inferenceClassification; + } + /** + * Gets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. + * @return a internetMessageHeader + */ @javax.annotation.Nullable - public String internetMessageId; - /** Indicates whether a read receipt is requested for the message. */ + public List getInternetMessageHeaders() { + return this._internetMessageHeaders; + } + /** + * Gets the internetMessageId property value. The message ID in the format specified by RFC2822. + * @return a string + */ @javax.annotation.Nullable - public Boolean isDeliveryReceiptRequested; - /** Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. */ + public String getInternetMessageId() { + return this._internetMessageId; + } + /** + * Gets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isDraft; - /** Indicates whether the message has been read. */ + public Boolean getIsDeliveryReceiptRequested() { + return this._isDeliveryReceiptRequested; + } + /** + * Gets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isRead; - /** Indicates whether a read receipt is requested for the message. */ + public Boolean getIsDraft() { + return this._isDraft; + } + /** + * Gets the isRead property value. Indicates whether the message has been read. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isReadReceiptRequested; - /** The collection of multi-value extended properties defined for the message. Nullable. */ + public Boolean getIsRead() { + return this._isRead; + } + /** + * Gets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @return a boolean + */ @javax.annotation.Nullable - public List multiValueExtendedProperties; - /** The unique identifier for the message's parent mailFolder. */ + public Boolean getIsReadReceiptRequested() { + return this._isReadReceiptRequested; + } + /** + * Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. + * @return a multiValueLegacyExtendedProperty + */ @javax.annotation.Nullable - public String parentFolderId; - /** The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ + public List getMultiValueExtendedProperties() { + return this._multiValueExtendedProperties; + } + /** + * Gets the parentFolderId property value. The unique identifier for the message's parent mailFolder. + * @return a string + */ @javax.annotation.Nullable - public OffsetDateTime receivedDateTime; - /** The email addresses to use when replying. */ + public String getParentFolderId() { + return this._parentFolderId; + } + /** + * Gets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a OffsetDateTime + */ @javax.annotation.Nullable - public List replyTo; + public OffsetDateTime getReceivedDateTime() { + return this._receivedDateTime; + } + /** + * Gets the replyTo property value. The email addresses to use when replying. + * @return a recipient + */ @javax.annotation.Nullable - public Recipient sender; - /** The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. */ + public List getReplyTo() { + return this._replyTo; + } + /** + * Gets the sender property value. + * @return a recipient + */ @javax.annotation.Nullable - public OffsetDateTime sentDateTime; - /** The collection of single-value extended properties defined for the message. Nullable. */ + public Recipient getSender() { + return this._sender; + } + /** + * Gets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @return a OffsetDateTime + */ @javax.annotation.Nullable - public List singleValueExtendedProperties; - /** The subject of the message. */ + public OffsetDateTime getSentDateTime() { + return this._sentDateTime; + } + /** + * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. + * @return a singleValueLegacyExtendedProperty + */ @javax.annotation.Nullable - public String subject; - /** The To: recipients for the message. */ + public List getSingleValueExtendedProperties() { + return this._singleValueExtendedProperties; + } + /** + * Gets the subject property value. The subject of the message. + * @return a string + */ + @javax.annotation.Nullable + public String getSubject() { + return this._subject; + } + /** + * Gets the toRecipients property value. The To: recipients for the message. + * @return a recipient + */ @javax.annotation.Nullable - public List toRecipients; + public List getToRecipients() { + return this._toRecipients; + } + /** + * Gets the uniqueBody property value. + * @return a itemBody + */ @javax.annotation.Nullable - public ItemBody uniqueBody; - /** The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. */ + public ItemBody getUniqueBody() { + return this._uniqueBody; + } + /** + * Gets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. + * @return a string + */ @javax.annotation.Nullable - public String webLink; + public String getWebLink() { + return this._webLink; + } /** * The deserialization information for the current model * @return a Map> @@ -100,36 +317,36 @@ public class Message extends OutlookItem implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("attachments", (o, n) -> { ((Message)o).attachments = n.getCollectionOfObjectValues(Attachment.class); }); - this.put("bccRecipients", (o, n) -> { ((Message)o).bccRecipients = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("body", (o, n) -> { ((Message)o).body = n.getObjectValue(ItemBody.class); }); - this.put("bodyPreview", (o, n) -> { ((Message)o).bodyPreview = n.getStringValue(); }); - this.put("ccRecipients", (o, n) -> { ((Message)o).ccRecipients = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("conversationId", (o, n) -> { ((Message)o).conversationId = n.getStringValue(); }); - this.put("conversationIndex", (o, n) -> { ((Message)o).conversationIndex = n.getStringValue(); }); - this.put("extensions", (o, n) -> { ((Message)o).extensions = n.getCollectionOfObjectValues(Extension.class); }); - this.put("flag", (o, n) -> { ((Message)o).flag = n.getObjectValue(FollowupFlag.class); }); - this.put("from", (o, n) -> { ((Message)o).from = n.getObjectValue(Recipient.class); }); - this.put("hasAttachments", (o, n) -> { ((Message)o).hasAttachments = n.getBooleanValue(); }); - this.put("importance", (o, n) -> { ((Message)o).importance = n.getEnumValue(Importance.class); }); - this.put("inferenceClassification", (o, n) -> { ((Message)o).inferenceClassification = n.getEnumValue(InferenceClassificationType.class); }); - this.put("internetMessageHeaders", (o, n) -> { ((Message)o).internetMessageHeaders = n.getCollectionOfObjectValues(InternetMessageHeader.class); }); - this.put("internetMessageId", (o, n) -> { ((Message)o).internetMessageId = n.getStringValue(); }); - this.put("isDeliveryReceiptRequested", (o, n) -> { ((Message)o).isDeliveryReceiptRequested = n.getBooleanValue(); }); - this.put("isDraft", (o, n) -> { ((Message)o).isDraft = n.getBooleanValue(); }); - this.put("isRead", (o, n) -> { ((Message)o).isRead = n.getBooleanValue(); }); - this.put("isReadReceiptRequested", (o, n) -> { ((Message)o).isReadReceiptRequested = n.getBooleanValue(); }); - this.put("multiValueExtendedProperties", (o, n) -> { ((Message)o).multiValueExtendedProperties = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); - this.put("parentFolderId", (o, n) -> { ((Message)o).parentFolderId = n.getStringValue(); }); - this.put("receivedDateTime", (o, n) -> { ((Message)o).receivedDateTime = n.getOffsetDateTimeValue(); }); - this.put("replyTo", (o, n) -> { ((Message)o).replyTo = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("sender", (o, n) -> { ((Message)o).sender = n.getObjectValue(Recipient.class); }); - this.put("sentDateTime", (o, n) -> { ((Message)o).sentDateTime = n.getOffsetDateTimeValue(); }); - this.put("singleValueExtendedProperties", (o, n) -> { ((Message)o).singleValueExtendedProperties = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); - this.put("subject", (o, n) -> { ((Message)o).subject = n.getStringValue(); }); - this.put("toRecipients", (o, n) -> { ((Message)o).toRecipients = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("uniqueBody", (o, n) -> { ((Message)o).uniqueBody = n.getObjectValue(ItemBody.class); }); - this.put("webLink", (o, n) -> { ((Message)o).webLink = n.getStringValue(); }); + this.put("attachments", (o, n) -> { ((Message)o).setAttachments(n.getCollectionOfObjectValues(Attachment.class)); }); + this.put("bccRecipients", (o, n) -> { ((Message)o).setBccRecipients(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("body", (o, n) -> { ((Message)o).setBody(n.getObjectValue(ItemBody.class)); }); + this.put("bodyPreview", (o, n) -> { ((Message)o).setBodyPreview(n.getStringValue()); }); + this.put("ccRecipients", (o, n) -> { ((Message)o).setCcRecipients(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("conversationId", (o, n) -> { ((Message)o).setConversationId(n.getStringValue()); }); + this.put("conversationIndex", (o, n) -> { ((Message)o).setConversationIndex(n.getStringValue()); }); + this.put("extensions", (o, n) -> { ((Message)o).setExtensions(n.getCollectionOfObjectValues(Extension.class)); }); + this.put("flag", (o, n) -> { ((Message)o).setFlag(n.getObjectValue(FollowupFlag.class)); }); + this.put("from", (o, n) -> { ((Message)o).setFrom(n.getObjectValue(Recipient.class)); }); + this.put("hasAttachments", (o, n) -> { ((Message)o).setHasAttachments(n.getBooleanValue()); }); + this.put("importance", (o, n) -> { ((Message)o).setImportance(n.getEnumValue(Importance.class)); }); + this.put("inferenceClassification", (o, n) -> { ((Message)o).setInferenceClassification(n.getEnumValue(InferenceClassificationType.class)); }); + this.put("internetMessageHeaders", (o, n) -> { ((Message)o).setInternetMessageHeaders(n.getCollectionOfObjectValues(InternetMessageHeader.class)); }); + this.put("internetMessageId", (o, n) -> { ((Message)o).setInternetMessageId(n.getStringValue()); }); + this.put("isDeliveryReceiptRequested", (o, n) -> { ((Message)o).setIsDeliveryReceiptRequested(n.getBooleanValue()); }); + this.put("isDraft", (o, n) -> { ((Message)o).setIsDraft(n.getBooleanValue()); }); + this.put("isRead", (o, n) -> { ((Message)o).setIsRead(n.getBooleanValue()); }); + this.put("isReadReceiptRequested", (o, n) -> { ((Message)o).setIsReadReceiptRequested(n.getBooleanValue()); }); + this.put("multiValueExtendedProperties", (o, n) -> { ((Message)o).setMultiValueExtendedProperties(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); + this.put("parentFolderId", (o, n) -> { ((Message)o).setParentFolderId(n.getStringValue()); }); + this.put("receivedDateTime", (o, n) -> { ((Message)o).setReceivedDateTime(n.getOffsetDateTimeValue()); }); + this.put("replyTo", (o, n) -> { ((Message)o).setReplyTo(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("sender", (o, n) -> { ((Message)o).setSender(n.getObjectValue(Recipient.class)); }); + this.put("sentDateTime", (o, n) -> { ((Message)o).setSentDateTime(n.getOffsetDateTimeValue()); }); + this.put("singleValueExtendedProperties", (o, n) -> { ((Message)o).setSingleValueExtendedProperties(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); + this.put("subject", (o, n) -> { ((Message)o).setSubject(n.getStringValue()); }); + this.put("toRecipients", (o, n) -> { ((Message)o).setToRecipients(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("uniqueBody", (o, n) -> { ((Message)o).setUniqueBody(n.getObjectValue(ItemBody.class)); }); + this.put("webLink", (o, n) -> { ((Message)o).setWebLink(n.getStringValue()); }); }}; } /** @@ -140,35 +357,275 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeCollectionOfObjectValues("attachments", attachments); - writer.writeCollectionOfObjectValues("bccRecipients", bccRecipients); - writer.writeObjectValue("body", body); - writer.writeStringValue("bodyPreview", bodyPreview); - writer.writeCollectionOfObjectValues("ccRecipients", ccRecipients); - writer.writeStringValue("conversationId", conversationId); - writer.writeStringValue("conversationIndex", conversationIndex); - writer.writeCollectionOfObjectValues("extensions", extensions); - writer.writeObjectValue("flag", flag); - writer.writeObjectValue("from", from); - writer.writeBooleanValue("hasAttachments", hasAttachments); - writer.writeEnumValue("importance", importance); - writer.writeEnumValue("inferenceClassification", inferenceClassification); - writer.writeCollectionOfObjectValues("internetMessageHeaders", internetMessageHeaders); - writer.writeStringValue("internetMessageId", internetMessageId); - writer.writeBooleanValue("isDeliveryReceiptRequested", isDeliveryReceiptRequested); - writer.writeBooleanValue("isDraft", isDraft); - writer.writeBooleanValue("isRead", isRead); - writer.writeBooleanValue("isReadReceiptRequested", isReadReceiptRequested); - writer.writeCollectionOfObjectValues("multiValueExtendedProperties", multiValueExtendedProperties); - writer.writeStringValue("parentFolderId", parentFolderId); - writer.writeOffsetDateTimeValue("receivedDateTime", receivedDateTime); - writer.writeCollectionOfObjectValues("replyTo", replyTo); - writer.writeObjectValue("sender", sender); - writer.writeOffsetDateTimeValue("sentDateTime", sentDateTime); - writer.writeCollectionOfObjectValues("singleValueExtendedProperties", singleValueExtendedProperties); - writer.writeStringValue("subject", subject); - writer.writeCollectionOfObjectValues("toRecipients", toRecipients); - writer.writeObjectValue("uniqueBody", uniqueBody); - writer.writeStringValue("webLink", webLink); + writer.writeCollectionOfObjectValues("attachments", this.getAttachments()); + writer.writeCollectionOfObjectValues("bccRecipients", this.getBccRecipients()); + writer.writeObjectValue("body", this.getBody()); + writer.writeStringValue("bodyPreview", this.getBodyPreview()); + writer.writeCollectionOfObjectValues("ccRecipients", this.getCcRecipients()); + writer.writeStringValue("conversationId", this.getConversationId()); + writer.writeStringValue("conversationIndex", this.getConversationIndex()); + writer.writeCollectionOfObjectValues("extensions", this.getExtensions()); + writer.writeObjectValue("flag", this.getFlag()); + writer.writeObjectValue("from", this.getFrom()); + writer.writeBooleanValue("hasAttachments", this.getHasAttachments()); + writer.writeEnumValue("importance", this.getImportance()); + writer.writeEnumValue("inferenceClassification", this.getInferenceClassification()); + writer.writeCollectionOfObjectValues("internetMessageHeaders", this.getInternetMessageHeaders()); + writer.writeStringValue("internetMessageId", this.getInternetMessageId()); + writer.writeBooleanValue("isDeliveryReceiptRequested", this.getIsDeliveryReceiptRequested()); + writer.writeBooleanValue("isDraft", this.getIsDraft()); + writer.writeBooleanValue("isRead", this.getIsRead()); + writer.writeBooleanValue("isReadReceiptRequested", this.getIsReadReceiptRequested()); + writer.writeCollectionOfObjectValues("multiValueExtendedProperties", this.getMultiValueExtendedProperties()); + writer.writeStringValue("parentFolderId", this.getParentFolderId()); + writer.writeOffsetDateTimeValue("receivedDateTime", this.getReceivedDateTime()); + writer.writeCollectionOfObjectValues("replyTo", this.getReplyTo()); + writer.writeObjectValue("sender", this.getSender()); + writer.writeOffsetDateTimeValue("sentDateTime", this.getSentDateTime()); + writer.writeCollectionOfObjectValues("singleValueExtendedProperties", this.getSingleValueExtendedProperties()); + writer.writeStringValue("subject", this.getSubject()); + writer.writeCollectionOfObjectValues("toRecipients", this.getToRecipients()); + writer.writeObjectValue("uniqueBody", this.getUniqueBody()); + writer.writeStringValue("webLink", this.getWebLink()); + } + /** + * Sets the attachments property value. The fileAttachment and itemAttachment attachments for the message. + * @param value Value to set for the attachments property. + * @return a void + */ + public void setAttachments(@javax.annotation.Nullable final List value) { + this._attachments = value; + } + /** + * Sets the bccRecipients property value. The Bcc: recipients for the message. + * @param value Value to set for the bccRecipients property. + * @return a void + */ + public void setBccRecipients(@javax.annotation.Nullable final List value) { + this._bccRecipients = value; + } + /** + * Sets the body property value. + * @param value Value to set for the body property. + * @return a void + */ + public void setBody(@javax.annotation.Nullable final ItemBody value) { + this._body = value; + } + /** + * Sets the bodyPreview property value. The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. + * @param value Value to set for the bodyPreview property. + * @return a void + */ + public void setBodyPreview(@javax.annotation.Nullable final String value) { + this._bodyPreview = value; + } + /** + * Sets the ccRecipients property value. The Cc: recipients for the message. + * @param value Value to set for the ccRecipients property. + * @return a void + */ + public void setCcRecipients(@javax.annotation.Nullable final List value) { + this._ccRecipients = value; + } + /** + * Sets the conversationId property value. The ID of the conversation the email belongs to. + * @param value Value to set for the conversationId property. + * @return a void + */ + public void setConversationId(@javax.annotation.Nullable final String value) { + this._conversationId = value; + } + /** + * Sets the conversationIndex property value. Indicates the position of the message within the conversation. + * @param value Value to set for the conversationIndex property. + * @return a void + */ + public void setConversationIndex(@javax.annotation.Nullable final String value) { + this._conversationIndex = value; + } + /** + * Sets the extensions property value. The collection of open extensions defined for the message. Nullable. + * @param value Value to set for the extensions property. + * @return a void + */ + public void setExtensions(@javax.annotation.Nullable final List value) { + this._extensions = value; + } + /** + * Sets the flag property value. + * @param value Value to set for the flag property. + * @return a void + */ + public void setFlag(@javax.annotation.Nullable final FollowupFlag value) { + this._flag = value; + } + /** + * Sets the from property value. + * @param value Value to set for the from property. + * @return a void + */ + public void setFrom(@javax.annotation.Nullable final Recipient value) { + this._from = value; + } + /** + * Sets the hasAttachments property value. Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as . + * @param value Value to set for the hasAttachments property. + * @return a void + */ + public void setHasAttachments(@javax.annotation.Nullable final Boolean value) { + this._hasAttachments = value; + } + /** + * Sets the importance property value. + * @param value Value to set for the importance property. + * @return a void + */ + public void setImportance(@javax.annotation.Nullable final Importance value) { + this._importance = value; + } + /** + * Sets the inferenceClassification property value. + * @param value Value to set for the inferenceClassification property. + * @return a void + */ + public void setInferenceClassification(@javax.annotation.Nullable final InferenceClassificationType value) { + this._inferenceClassification = value; + } + /** + * Sets the internetMessageHeaders property value. A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. + * @param value Value to set for the internetMessageHeaders property. + * @return a void + */ + public void setInternetMessageHeaders(@javax.annotation.Nullable final List value) { + this._internetMessageHeaders = value; + } + /** + * Sets the internetMessageId property value. The message ID in the format specified by RFC2822. + * @param value Value to set for the internetMessageId property. + * @return a void + */ + public void setInternetMessageId(@javax.annotation.Nullable final String value) { + this._internetMessageId = value; + } + /** + * Sets the isDeliveryReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @param value Value to set for the isDeliveryReceiptRequested property. + * @return a void + */ + public void setIsDeliveryReceiptRequested(@javax.annotation.Nullable final Boolean value) { + this._isDeliveryReceiptRequested = value; + } + /** + * Sets the isDraft property value. Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. + * @param value Value to set for the isDraft property. + * @return a void + */ + public void setIsDraft(@javax.annotation.Nullable final Boolean value) { + this._isDraft = value; + } + /** + * Sets the isRead property value. Indicates whether the message has been read. + * @param value Value to set for the isRead property. + * @return a void + */ + public void setIsRead(@javax.annotation.Nullable final Boolean value) { + this._isRead = value; + } + /** + * Sets the isReadReceiptRequested property value. Indicates whether a read receipt is requested for the message. + * @param value Value to set for the isReadReceiptRequested property. + * @return a void + */ + public void setIsReadReceiptRequested(@javax.annotation.Nullable final Boolean value) { + this._isReadReceiptRequested = value; + } + /** + * Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the message. Nullable. + * @param value Value to set for the multiValueExtendedProperties property. + * @return a void + */ + public void setMultiValueExtendedProperties(@javax.annotation.Nullable final List value) { + this._multiValueExtendedProperties = value; + } + /** + * Sets the parentFolderId property value. The unique identifier for the message's parent mailFolder. + * @param value Value to set for the parentFolderId property. + * @return a void + */ + public void setParentFolderId(@javax.annotation.Nullable final String value) { + this._parentFolderId = value; + } + /** + * Sets the receivedDateTime property value. The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the receivedDateTime property. + * @return a void + */ + public void setReceivedDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._receivedDateTime = value; + } + /** + * Sets the replyTo property value. The email addresses to use when replying. + * @param value Value to set for the replyTo property. + * @return a void + */ + public void setReplyTo(@javax.annotation.Nullable final List value) { + this._replyTo = value; + } + /** + * Sets the sender property value. + * @param value Value to set for the sender property. + * @return a void + */ + public void setSender(@javax.annotation.Nullable final Recipient value) { + this._sender = value; + } + /** + * Sets the sentDateTime property value. The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * @param value Value to set for the sentDateTime property. + * @return a void + */ + public void setSentDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._sentDateTime = value; + } + /** + * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the message. Nullable. + * @param value Value to set for the singleValueExtendedProperties property. + * @return a void + */ + public void setSingleValueExtendedProperties(@javax.annotation.Nullable final List value) { + this._singleValueExtendedProperties = value; + } + /** + * Sets the subject property value. The subject of the message. + * @param value Value to set for the subject property. + * @return a void + */ + public void setSubject(@javax.annotation.Nullable final String value) { + this._subject = value; + } + /** + * Sets the toRecipients property value. The To: recipients for the message. + * @param value Value to set for the toRecipients property. + * @return a void + */ + public void setToRecipients(@javax.annotation.Nullable final List value) { + this._toRecipients = value; + } + /** + * Sets the uniqueBody property value. + * @param value Value to set for the uniqueBody property. + * @return a void + */ + public void setUniqueBody(@javax.annotation.Nullable final ItemBody value) { + this._uniqueBody = value; + } + /** + * Sets the webLink property value. The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. + * @param value Value to set for the webLink property. + * @return a void + */ + public void setWebLink(@javax.annotation.Nullable final String value) { + this._webLink = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java index ca61d772b..28641d8c6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MessageRule.java @@ -10,27 +10,90 @@ import java.util.Map; import java.util.Objects; public class MessageRule extends Entity implements Parsable { + private MessageRuleActions _actions; + private MessageRulePredicates _conditions; + /** The display name of the rule. */ + private String _displayName; + private MessageRulePredicates _exceptions; + /** Indicates whether the rule is in an error condition. Read-only. */ + private Boolean _hasError; + /** Indicates whether the rule is enabled to be applied to messages. */ + private Boolean _isEnabled; + /** Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. */ + private Boolean _isReadOnly; + /** Indicates the order in which the rule is executed, among other rules. */ + private Integer _sequence; + /** + * Instantiates a new messageRule and sets the default values. + * @return a void + */ + public MessageRule() { + super(); + } + /** + * Gets the actions property value. + * @return a messageRuleActions + */ @javax.annotation.Nullable - public MessageRuleActions actions; + public MessageRuleActions getActions() { + return this._actions; + } + /** + * Gets the conditions property value. + * @return a messageRulePredicates + */ @javax.annotation.Nullable - public MessageRulePredicates conditions; - /** The display name of the rule. */ + public MessageRulePredicates getConditions() { + return this._conditions; + } + /** + * Gets the displayName property value. The display name of the rule. + * @return a string + */ @javax.annotation.Nullable - public String displayName; + public String getDisplayName() { + return this._displayName; + } + /** + * Gets the exceptions property value. + * @return a messageRulePredicates + */ @javax.annotation.Nullable - public MessageRulePredicates exceptions; - /** Indicates whether the rule is in an error condition. Read-only. */ + public MessageRulePredicates getExceptions() { + return this._exceptions; + } + /** + * Gets the hasError property value. Indicates whether the rule is in an error condition. Read-only. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean hasError; - /** Indicates whether the rule is enabled to be applied to messages. */ + public Boolean getHasError() { + return this._hasError; + } + /** + * Gets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isEnabled; - /** Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. */ + public Boolean getIsEnabled() { + return this._isEnabled; + } + /** + * Gets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isReadOnly; - /** Indicates the order in which the rule is executed, among other rules. */ + public Boolean getIsReadOnly() { + return this._isReadOnly; + } + /** + * Gets the sequence property value. Indicates the order in which the rule is executed, among other rules. + * @return a integer + */ @javax.annotation.Nullable - public Integer sequence; + public Integer getSequence() { + return this._sequence; + } /** * The deserialization information for the current model * @return a Map> @@ -38,14 +101,14 @@ public class MessageRule extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("actions", (o, n) -> { ((MessageRule)o).actions = n.getObjectValue(MessageRuleActions.class); }); - this.put("conditions", (o, n) -> { ((MessageRule)o).conditions = n.getObjectValue(MessageRulePredicates.class); }); - this.put("displayName", (o, n) -> { ((MessageRule)o).displayName = n.getStringValue(); }); - this.put("exceptions", (o, n) -> { ((MessageRule)o).exceptions = n.getObjectValue(MessageRulePredicates.class); }); - this.put("hasError", (o, n) -> { ((MessageRule)o).hasError = n.getBooleanValue(); }); - this.put("isEnabled", (o, n) -> { ((MessageRule)o).isEnabled = n.getBooleanValue(); }); - this.put("isReadOnly", (o, n) -> { ((MessageRule)o).isReadOnly = n.getBooleanValue(); }); - this.put("sequence", (o, n) -> { ((MessageRule)o).sequence = n.getIntegerValue(); }); + this.put("actions", (o, n) -> { ((MessageRule)o).setActions(n.getObjectValue(MessageRuleActions.class)); }); + this.put("conditions", (o, n) -> { ((MessageRule)o).setConditions(n.getObjectValue(MessageRulePredicates.class)); }); + this.put("displayName", (o, n) -> { ((MessageRule)o).setDisplayName(n.getStringValue()); }); + this.put("exceptions", (o, n) -> { ((MessageRule)o).setExceptions(n.getObjectValue(MessageRulePredicates.class)); }); + this.put("hasError", (o, n) -> { ((MessageRule)o).setHasError(n.getBooleanValue()); }); + this.put("isEnabled", (o, n) -> { ((MessageRule)o).setIsEnabled(n.getBooleanValue()); }); + this.put("isReadOnly", (o, n) -> { ((MessageRule)o).setIsReadOnly(n.getBooleanValue()); }); + this.put("sequence", (o, n) -> { ((MessageRule)o).setSequence(n.getIntegerValue()); }); }}; } /** @@ -56,13 +119,77 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeObjectValue("actions", actions); - writer.writeObjectValue("conditions", conditions); - writer.writeStringValue("displayName", displayName); - writer.writeObjectValue("exceptions", exceptions); - writer.writeBooleanValue("hasError", hasError); - writer.writeBooleanValue("isEnabled", isEnabled); - writer.writeBooleanValue("isReadOnly", isReadOnly); - writer.writeIntegerValue("sequence", sequence); + writer.writeObjectValue("actions", this.getActions()); + writer.writeObjectValue("conditions", this.getConditions()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeObjectValue("exceptions", this.getExceptions()); + writer.writeBooleanValue("hasError", this.getHasError()); + writer.writeBooleanValue("isEnabled", this.getIsEnabled()); + writer.writeBooleanValue("isReadOnly", this.getIsReadOnly()); + writer.writeIntegerValue("sequence", this.getSequence()); + } + /** + * Sets the actions property value. + * @param value Value to set for the actions property. + * @return a void + */ + public void setActions(@javax.annotation.Nullable final MessageRuleActions value) { + this._actions = value; + } + /** + * Sets the conditions property value. + * @param value Value to set for the conditions property. + * @return a void + */ + public void setConditions(@javax.annotation.Nullable final MessageRulePredicates value) { + this._conditions = value; + } + /** + * Sets the displayName property value. The display name of the rule. + * @param value Value to set for the displayName property. + * @return a void + */ + public void setDisplayName(@javax.annotation.Nullable final String value) { + this._displayName = value; + } + /** + * Sets the exceptions property value. + * @param value Value to set for the exceptions property. + * @return a void + */ + public void setExceptions(@javax.annotation.Nullable final MessageRulePredicates value) { + this._exceptions = value; + } + /** + * Sets the hasError property value. Indicates whether the rule is in an error condition. Read-only. + * @param value Value to set for the hasError property. + * @return a void + */ + public void setHasError(@javax.annotation.Nullable final Boolean value) { + this._hasError = value; + } + /** + * Sets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages. + * @param value Value to set for the isEnabled property. + * @return a void + */ + public void setIsEnabled(@javax.annotation.Nullable final Boolean value) { + this._isEnabled = value; + } + /** + * Sets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API. + * @param value Value to set for the isReadOnly property. + * @return a void + */ + public void setIsReadOnly(@javax.annotation.Nullable final Boolean value) { + this._isReadOnly = value; + } + /** + * Sets the sequence property value. Indicates the order in which the rule is executed, among other rules. + * @param value Value to set for the sequence property. + * @return a void + */ + public void setSequence(@javax.annotation.Nullable final Integer value) { + this._sequence = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java index 1f3fccdf7..959a962d6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/MultiValueLegacyExtendedProperty.java @@ -10,8 +10,22 @@ import java.util.Objects; public class MultiValueLegacyExtendedProperty extends Entity implements Parsable { /** A collection of property values. */ + private List _value; + /** + * Instantiates a new multiValueLegacyExtendedProperty and sets the default values. + * @return a void + */ + public MultiValueLegacyExtendedProperty() { + super(); + } + /** + * Gets the value property value. A collection of property values. + * @return a string + */ @javax.annotation.Nullable - public List value; + public List getValue() { + return this._value; + } /** * The deserialization information for the current model * @return a Map> @@ -19,7 +33,7 @@ public class MultiValueLegacyExtendedProperty extends Entity implements Parsable @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("value", (o, n) -> { ((MultiValueLegacyExtendedProperty)o).value = n.getCollectionOfPrimitiveValues(String.class); }); + this.put("value", (o, n) -> { ((MultiValueLegacyExtendedProperty)o).setValue(n.getCollectionOfPrimitiveValues(String.class)); }); }}; } /** @@ -30,6 +44,14 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeCollectionOfPrimitiveValues("value", value); + writer.writeCollectionOfPrimitiveValues("value", this.getValue()); + } + /** + * Sets the value property value. A collection of property values. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java index ad6d63065..0f4174ad9 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/OutlookItem.java @@ -11,17 +11,52 @@ import java.util.Objects; public class OutlookItem extends Entity implements Parsable { /** The categories associated with the item */ - @javax.annotation.Nullable - public List categories; + private List _categories; /** Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. */ - @javax.annotation.Nullable - public String changeKey; + private String _changeKey; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ - @javax.annotation.Nullable - public OffsetDateTime createdDateTime; + private OffsetDateTime _createdDateTime; /** The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ + private OffsetDateTime _lastModifiedDateTime; + /** + * Instantiates a new outlookItem and sets the default values. + * @return a void + */ + public OutlookItem() { + super(); + } + /** + * Gets the categories property value. The categories associated with the item + * @return a string + */ + @javax.annotation.Nullable + public List getCategories() { + return this._categories; + } + /** + * Gets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. + * @return a string + */ + @javax.annotation.Nullable + public String getChangeKey() { + return this._changeKey; + } + /** + * Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @return a OffsetDateTime + */ + @javax.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this._createdDateTime; + } + /** + * Gets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @return a OffsetDateTime + */ @javax.annotation.Nullable - public OffsetDateTime lastModifiedDateTime; + public OffsetDateTime getLastModifiedDateTime() { + return this._lastModifiedDateTime; + } /** * The deserialization information for the current model * @return a Map> @@ -29,10 +64,10 @@ public class OutlookItem extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("categories", (o, n) -> { ((OutlookItem)o).categories = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("changeKey", (o, n) -> { ((OutlookItem)o).changeKey = n.getStringValue(); }); - this.put("createdDateTime", (o, n) -> { ((OutlookItem)o).createdDateTime = n.getOffsetDateTimeValue(); }); - this.put("lastModifiedDateTime", (o, n) -> { ((OutlookItem)o).lastModifiedDateTime = n.getOffsetDateTimeValue(); }); + this.put("categories", (o, n) -> { ((OutlookItem)o).setCategories(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("changeKey", (o, n) -> { ((OutlookItem)o).setChangeKey(n.getStringValue()); }); + this.put("createdDateTime", (o, n) -> { ((OutlookItem)o).setCreatedDateTime(n.getOffsetDateTimeValue()); }); + this.put("lastModifiedDateTime", (o, n) -> { ((OutlookItem)o).setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); }}; } /** @@ -43,9 +78,41 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeCollectionOfPrimitiveValues("categories", categories); - writer.writeStringValue("changeKey", changeKey); - writer.writeOffsetDateTimeValue("createdDateTime", createdDateTime); - writer.writeOffsetDateTimeValue("lastModifiedDateTime", lastModifiedDateTime); + writer.writeCollectionOfPrimitiveValues("categories", this.getCategories()); + writer.writeStringValue("changeKey", this.getChangeKey()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + } + /** + * Sets the categories property value. The categories associated with the item + * @param value Value to set for the categories property. + * @return a void + */ + public void setCategories(@javax.annotation.Nullable final List value) { + this._categories = value; + } + /** + * Sets the changeKey property value. Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. + * @param value Value to set for the changeKey property. + * @return a void + */ + public void setChangeKey(@javax.annotation.Nullable final String value) { + this._changeKey = value; + } + /** + * Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the createdDateTime property. + * @return a void + */ + public void setCreatedDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._createdDateTime = value; + } + /** + * Sets the lastModifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * @param value Value to set for the lastModifiedDateTime property. + * @return a void + */ + public void setLastModifiedDateTime(@javax.annotation.Nullable final OffsetDateTime value) { + this._lastModifiedDateTime = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java index 38a2118bc..decf0f653 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java @@ -9,17 +9,30 @@ import java.util.Objects; public class Recipient implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public EmailAddress emailAddress; + private IDictionary _additionalData; + private EmailAddress _emailAddress; /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Instantiates a new recipient and sets the default values. + * @return a void + */ + public Recipient() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary */ @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the emailAddress property value. + * @return a emailAddress + */ + @javax.annotation.Nullable + public EmailAddress getEmailAddress() { + return this._emailAddress; } /** * The deserialization information for the current model @@ -28,7 +41,7 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(1) {{ - this.put("emailAddress", (o, n) -> { ((Recipient)o).emailAddress = n.getObjectValue(EmailAddress.class); }); + this.put("emailAddress", (o, n) -> { ((Recipient)o).setEmailAddress(n.getObjectValue(EmailAddress.class)); }); }}; } /** @@ -38,7 +51,23 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeObjectValue("emailAddress", emailAddress); + writer.writeObjectValue("emailAddress", this.getEmailAddress()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the emailAddress property value. + * @param value Value to set for the emailAddress property. + * @return a void + */ + public void setEmailAddress(@javax.annotation.Nullable final EmailAddress value) { + this._emailAddress = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java index bf90cd58b..b1be93a15 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/SingleValueLegacyExtendedProperty.java @@ -9,8 +9,22 @@ import java.util.Objects; public class SingleValueLegacyExtendedProperty extends Entity implements Parsable { /** A property value. */ + private String _value; + /** + * Instantiates a new singleValueLegacyExtendedProperty and sets the default values. + * @return a void + */ + public SingleValueLegacyExtendedProperty() { + super(); + } + /** + * Gets the value property value. A property value. + * @return a string + */ @javax.annotation.Nullable - public String value; + public String getValue() { + return this._value; + } /** * The deserialization information for the current model * @return a Map> @@ -18,7 +32,7 @@ public class SingleValueLegacyExtendedProperty extends Entity implements Parsabl @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("value", (o, n) -> { ((SingleValueLegacyExtendedProperty)o).value = n.getStringValue(); }); + this.put("value", (o, n) -> { ((SingleValueLegacyExtendedProperty)o).setValue(n.getStringValue()); }); }}; } /** @@ -29,6 +43,14 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeStringValue("value", value); + writer.writeStringValue("value", this.getValue()); + } + /** + * Sets the value property value. A property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final String value) { + this._value = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/UsersRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/UsersRequestBuilder.java index 5e93df568..8a78fb2b6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/UsersRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/UsersRequestBuilder.java @@ -21,9 +21,15 @@ public class UsersRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/users"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new UsersRequestBuilder and sets the default values. + * @return a void + */ + public UsersRequestBuilder() { + this.pathSegment = "/users"; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java index 8a4dc77ea..7c15042f0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassification.java @@ -11,8 +11,22 @@ import java.util.Objects; public class InferenceClassification extends Entity implements Parsable { /** A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. */ + private List _overrides; + /** + * Instantiates a new InferenceClassification and sets the default values. + * @return a void + */ + public InferenceClassification() { + super(); + } + /** + * Gets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. + * @return a inferenceClassificationOverride + */ @javax.annotation.Nullable - public List overrides; + public List getOverrides() { + return this._overrides; + } /** * The deserialization information for the current model * @return a Map> @@ -20,7 +34,7 @@ public class InferenceClassification extends Entity implements Parsable { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("overrides", (o, n) -> { ((InferenceClassification)o).overrides = n.getCollectionOfObjectValues(InferenceClassificationOverride.class); }); + this.put("overrides", (o, n) -> { ((InferenceClassification)o).setOverrides(n.getCollectionOfObjectValues(InferenceClassificationOverride.class)); }); }}; } /** @@ -31,6 +45,14 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeCollectionOfObjectValues("overrides", overrides); + writer.writeCollectionOfObjectValues("overrides", this.getOverrides()); + } + /** + * Sets the overrides property value. A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. + * @param value Value to set for the overrides property. + * @return a void + */ + public void setOverrides(@javax.annotation.Nullable final List value) { + this._overrides = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java index 5e9e5b032..516f62a2c 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationOverride.java @@ -11,10 +11,31 @@ import java.util.Map; import java.util.Objects; public class InferenceClassificationOverride extends Entity implements Parsable { + private InferenceClassificationType _classifyAs; + private EmailAddress _senderEmailAddress; + /** + * Instantiates a new inferenceClassificationOverride and sets the default values. + * @return a void + */ + public InferenceClassificationOverride() { + super(); + } + /** + * Gets the classifyAs property value. + * @return a inferenceClassificationType + */ @javax.annotation.Nullable - public InferenceClassificationType classifyAs; + public InferenceClassificationType getClassifyAs() { + return this._classifyAs; + } + /** + * Gets the senderEmailAddress property value. + * @return a emailAddress + */ @javax.annotation.Nullable - public EmailAddress senderEmailAddress; + public EmailAddress getSenderEmailAddress() { + return this._senderEmailAddress; + } /** * The deserialization information for the current model * @return a Map> @@ -22,8 +43,8 @@ public class InferenceClassificationOverride extends Entity implements Parsable @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(super.getFieldDeserializers()) {{ - this.put("classifyAs", (o, n) -> { ((InferenceClassificationOverride)o).classifyAs = n.getEnumValue(InferenceClassificationType.class); }); - this.put("senderEmailAddress", (o, n) -> { ((InferenceClassificationOverride)o).senderEmailAddress = n.getObjectValue(EmailAddress.class); }); + this.put("classifyAs", (o, n) -> { ((InferenceClassificationOverride)o).setClassifyAs(n.getEnumValue(InferenceClassificationType.class)); }); + this.put("senderEmailAddress", (o, n) -> { ((InferenceClassificationOverride)o).setSenderEmailAddress(n.getObjectValue(EmailAddress.class)); }); }}; } /** @@ -34,7 +55,23 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeEnumValue("classifyAs", classifyAs); - writer.writeObjectValue("senderEmailAddress", senderEmailAddress); + writer.writeEnumValue("classifyAs", this.getClassifyAs()); + writer.writeObjectValue("senderEmailAddress", this.getSenderEmailAddress()); + } + /** + * Sets the classifyAs property value. + * @param value Value to set for the classifyAs property. + * @return a void + */ + public void setClassifyAs(@javax.annotation.Nullable final InferenceClassificationType value) { + this._classifyAs = value; + } + /** + * Sets the senderEmailAddress property value. + * @param value Value to set for the senderEmailAddress property. + * @return a void + */ + public void setSenderEmailAddress(@javax.annotation.Nullable final EmailAddress value) { + this._senderEmailAddress = value; } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java index 80d8f7444..d644c58a2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java @@ -31,11 +31,17 @@ public OverridesRequestBuilder overrides() { return new OverridesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/inferenceClassification"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new InferenceClassificationRequestBuilder and sets the default values. + * @return a void + */ + public InferenceClassificationRequestBuilder() { + this.pathSegment = "/inferenceClassification"; + } /** * Delete navigation property inferenceClassification for users * @return a RequestInfo @@ -152,7 +158,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Infere * Delete navigation property inferenceClassification for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -166,7 +172,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -181,7 +187,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -195,7 +201,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get inferenceClassification from users * @return a CompletableFuture of InferenceClassification */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< InferenceClassification > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -209,7 +215,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassification */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InferenceClassification > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -224,7 +230,7 @@ public java.util.concurrent.CompletableFuture get(@java * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassification */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InferenceClassification > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -241,7 +247,7 @@ public java.util.concurrent.CompletableFuture get(@java * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassification */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InferenceClassification > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -269,7 +275,7 @@ public InferenceClassificationOverrideRequestBuilder overrides(@javax.annotation * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassification body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassification body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -286,7 +292,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassification body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassification body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -304,7 +310,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassification body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassification body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java index a429b0303..a8a0ddfb2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java @@ -23,11 +23,17 @@ public class OverridesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/overrides"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new OverridesRequestBuilder and sets the default values. + * @return a void + */ + public OverridesRequestBuilder() { + this.pathSegment = "/overrides"; + } /** * Get overrides from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Inferen * Get overrides from users * @return a CompletableFuture of OverridesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< OverridesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of OverridesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< OverridesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.anno * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of OverridesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< OverridesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.anno * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of OverridesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< OverridesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.anno * @param body * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final InferenceClassificationOverride body) { + public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > post(@javax.annotation.Nonnull final InferenceClassificationOverride body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture p * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > post(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture p * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > post(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java index 7bbdfb3d1..27ca2bf97 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class OverridesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new OverridesResponse and sets the default values. + * @return a void + */ + public OverridesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a inferenceClassificationOverride */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((OverridesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((OverridesResponse)o).value = n.getCollectionOfObjectValues(InferenceClassificationOverride.class); }); + this.put("@odata.nextLink", (o, n) -> { ((OverridesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((OverridesResponse)o).setValue(n.getCollectionOfObjectValues(InferenceClassificationOverride.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java index 841cc3a4a..26c982d8a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java @@ -23,11 +23,17 @@ public class InferenceClassificationOverrideRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new InferenceClassificationOverrideRequestBuilder and sets the default values. + * @return a void + */ + public InferenceClassificationOverrideRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property overrides for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Infere * Delete navigation property overrides for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get overrides from users * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture g * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture g * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture g * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture g * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassificationOverride body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassificationOverride body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/item/UserRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/item/UserRequestBuilder.java index 94cae22c6..4dbc671b2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/item/UserRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/item/UserRequestBuilder.java @@ -48,11 +48,17 @@ public MessagesRequestBuilder messages() { return new MessagesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new UserRequestBuilder and sets the default values. + * @return a void + */ + public UserRequestBuilder() { + this.pathSegment = ""; + } /** * Gets an item from the graphjavav4.utilities.users.mailFolders collection * @param id Unique identifier of the item diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java index e51790550..e27572087 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java @@ -23,11 +23,17 @@ public class MailFoldersRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/mailFolders"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MailFoldersRequestBuilder and sets the default values. + * @return a void + */ + public MailFoldersRequestBuilder() { + this.pathSegment = "/mailFolders"; + } /** * Get mailFolders from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MailFol * Get mailFolders from users * @return a CompletableFuture of MailFoldersResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MailFoldersResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFoldersResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFoldersResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.an * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFoldersResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFoldersResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.an * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFoldersResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFoldersResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.an * @param body * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body) { + public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java index 8380ffdcb..12900f4a5 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MailFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MailFoldersResponse and sets the default values. + * @return a void + */ + public MailFoldersResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a mailFolder */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MailFoldersResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MailFoldersResponse)o).value = n.getCollectionOfObjectValues(MailFolder.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MailFoldersResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MailFoldersResponse)o).setValue(n.getCollectionOfObjectValues(MailFolder.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java index d8ed51889..91fe3fdb8 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java @@ -12,47 +12,130 @@ import java.util.Objects; public class MessageRuleActions implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); + private IDictionary _additionalData; /** A list of categories to be assigned to a message. */ - @javax.annotation.Nullable - public List assignCategories; + private List _assignCategories; /** The ID of a folder that a message is to be copied to. */ - @javax.annotation.Nullable - public String copyToFolder; + private String _copyToFolder; /** Indicates whether a message should be moved to the Deleted Items folder. */ - @javax.annotation.Nullable - public Boolean delete; + private Boolean _delete; /** The email addresses of the recipients to which a message should be forwarded as an attachment. */ - @javax.annotation.Nullable - public List forwardAsAttachmentTo; + private List _forwardAsAttachmentTo; /** The email addresses of the recipients to which a message should be forwarded. */ - @javax.annotation.Nullable - public List forwardTo; + private List _forwardTo; /** Indicates whether a message should be marked as read. */ + private Boolean _markAsRead; + private Importance _markImportance; + /** The ID of the folder that a message will be moved to. */ + private String _moveToFolder; + /** Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. */ + private Boolean _permanentDelete; + /** The email address to which a message should be redirected. */ + private List _redirectTo; + /** Indicates whether subsequent rules should be evaluated. */ + private Boolean _stopProcessingRules; + /** + * Instantiates a new messageRuleActions and sets the default values. + * @return a void + */ + public MessageRuleActions() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ + @javax.annotation.Nonnull + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the assignCategories property value. A list of categories to be assigned to a message. + * @return a string + */ @javax.annotation.Nullable - public Boolean markAsRead; + public List getAssignCategories() { + return this._assignCategories; + } + /** + * Gets the copyToFolder property value. The ID of a folder that a message is to be copied to. + * @return a string + */ @javax.annotation.Nullable - public Importance markImportance; - /** The ID of the folder that a message will be moved to. */ + public String getCopyToFolder() { + return this._copyToFolder; + } + /** + * Gets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. + * @return a boolean + */ @javax.annotation.Nullable - public String moveToFolder; - /** Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. */ + public Boolean getDelete() { + return this._delete; + } + /** + * Gets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. + * @return a recipient + */ @javax.annotation.Nullable - public Boolean permanentDelete; - /** The email address to which a message should be redirected. */ + public List getForwardAsAttachmentTo() { + return this._forwardAsAttachmentTo; + } + /** + * Gets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. + * @return a recipient + */ @javax.annotation.Nullable - public List redirectTo; - /** Indicates whether subsequent rules should be evaluated. */ + public List getForwardTo() { + return this._forwardTo; + } + /** + * Gets the markAsRead property value. Indicates whether a message should be marked as read. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getMarkAsRead() { + return this._markAsRead; + } + /** + * Gets the markImportance property value. + * @return a importance + */ @javax.annotation.Nullable - public Boolean stopProcessingRules; + public Importance getMarkImportance() { + return this._markImportance; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the moveToFolder property value. The ID of the folder that a message will be moved to. + * @return a string */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public String getMoveToFolder() { + return this._moveToFolder; + } + /** + * Gets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getPermanentDelete() { + return this._permanentDelete; + } + /** + * Gets the redirectTo property value. The email address to which a message should be redirected. + * @return a recipient + */ + @javax.annotation.Nullable + public List getRedirectTo() { + return this._redirectTo; + } + /** + * Gets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getStopProcessingRules() { + return this._stopProcessingRules; } /** * The deserialization information for the current model @@ -61,17 +144,17 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(11) {{ - this.put("assignCategories", (o, n) -> { ((MessageRuleActions)o).assignCategories = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("copyToFolder", (o, n) -> { ((MessageRuleActions)o).copyToFolder = n.getStringValue(); }); - this.put("delete", (o, n) -> { ((MessageRuleActions)o).delete = n.getBooleanValue(); }); - this.put("forwardAsAttachmentTo", (o, n) -> { ((MessageRuleActions)o).forwardAsAttachmentTo = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("forwardTo", (o, n) -> { ((MessageRuleActions)o).forwardTo = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("markAsRead", (o, n) -> { ((MessageRuleActions)o).markAsRead = n.getBooleanValue(); }); - this.put("markImportance", (o, n) -> { ((MessageRuleActions)o).markImportance = n.getEnumValue(Importance.class); }); - this.put("moveToFolder", (o, n) -> { ((MessageRuleActions)o).moveToFolder = n.getStringValue(); }); - this.put("permanentDelete", (o, n) -> { ((MessageRuleActions)o).permanentDelete = n.getBooleanValue(); }); - this.put("redirectTo", (o, n) -> { ((MessageRuleActions)o).redirectTo = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("stopProcessingRules", (o, n) -> { ((MessageRuleActions)o).stopProcessingRules = n.getBooleanValue(); }); + this.put("assignCategories", (o, n) -> { ((MessageRuleActions)o).setAssignCategories(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("copyToFolder", (o, n) -> { ((MessageRuleActions)o).setCopyToFolder(n.getStringValue()); }); + this.put("delete", (o, n) -> { ((MessageRuleActions)o).setDelete(n.getBooleanValue()); }); + this.put("forwardAsAttachmentTo", (o, n) -> { ((MessageRuleActions)o).setForwardAsAttachmentTo(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("forwardTo", (o, n) -> { ((MessageRuleActions)o).setForwardTo(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("markAsRead", (o, n) -> { ((MessageRuleActions)o).setMarkAsRead(n.getBooleanValue()); }); + this.put("markImportance", (o, n) -> { ((MessageRuleActions)o).setMarkImportance(n.getEnumValue(Importance.class)); }); + this.put("moveToFolder", (o, n) -> { ((MessageRuleActions)o).setMoveToFolder(n.getStringValue()); }); + this.put("permanentDelete", (o, n) -> { ((MessageRuleActions)o).setPermanentDelete(n.getBooleanValue()); }); + this.put("redirectTo", (o, n) -> { ((MessageRuleActions)o).setRedirectTo(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("stopProcessingRules", (o, n) -> { ((MessageRuleActions)o).setStopProcessingRules(n.getBooleanValue()); }); }}; } /** @@ -81,17 +164,113 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeCollectionOfPrimitiveValues("assignCategories", assignCategories); - writer.writeStringValue("copyToFolder", copyToFolder); - writer.writeBooleanValue("delete", delete); - writer.writeCollectionOfObjectValues("forwardAsAttachmentTo", forwardAsAttachmentTo); - writer.writeCollectionOfObjectValues("forwardTo", forwardTo); - writer.writeBooleanValue("markAsRead", markAsRead); - writer.writeEnumValue("markImportance", markImportance); - writer.writeStringValue("moveToFolder", moveToFolder); - writer.writeBooleanValue("permanentDelete", permanentDelete); - writer.writeCollectionOfObjectValues("redirectTo", redirectTo); - writer.writeBooleanValue("stopProcessingRules", stopProcessingRules); + writer.writeCollectionOfPrimitiveValues("assignCategories", this.getAssignCategories()); + writer.writeStringValue("copyToFolder", this.getCopyToFolder()); + writer.writeBooleanValue("delete", this.getDelete()); + writer.writeCollectionOfObjectValues("forwardAsAttachmentTo", this.getForwardAsAttachmentTo()); + writer.writeCollectionOfObjectValues("forwardTo", this.getForwardTo()); + writer.writeBooleanValue("markAsRead", this.getMarkAsRead()); + writer.writeEnumValue("markImportance", this.getMarkImportance()); + writer.writeStringValue("moveToFolder", this.getMoveToFolder()); + writer.writeBooleanValue("permanentDelete", this.getPermanentDelete()); + writer.writeCollectionOfObjectValues("redirectTo", this.getRedirectTo()); + writer.writeBooleanValue("stopProcessingRules", this.getStopProcessingRules()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the assignCategories property value. A list of categories to be assigned to a message. + * @param value Value to set for the assignCategories property. + * @return a void + */ + public void setAssignCategories(@javax.annotation.Nullable final List value) { + this._assignCategories = value; + } + /** + * Sets the copyToFolder property value. The ID of a folder that a message is to be copied to. + * @param value Value to set for the copyToFolder property. + * @return a void + */ + public void setCopyToFolder(@javax.annotation.Nullable final String value) { + this._copyToFolder = value; + } + /** + * Sets the delete property value. Indicates whether a message should be moved to the Deleted Items folder. + * @param value Value to set for the delete property. + * @return a void + */ + public void setDelete(@javax.annotation.Nullable final Boolean value) { + this._delete = value; + } + /** + * Sets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment. + * @param value Value to set for the forwardAsAttachmentTo property. + * @return a void + */ + public void setForwardAsAttachmentTo(@javax.annotation.Nullable final List value) { + this._forwardAsAttachmentTo = value; + } + /** + * Sets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded. + * @param value Value to set for the forwardTo property. + * @return a void + */ + public void setForwardTo(@javax.annotation.Nullable final List value) { + this._forwardTo = value; + } + /** + * Sets the markAsRead property value. Indicates whether a message should be marked as read. + * @param value Value to set for the markAsRead property. + * @return a void + */ + public void setMarkAsRead(@javax.annotation.Nullable final Boolean value) { + this._markAsRead = value; + } + /** + * Sets the markImportance property value. + * @param value Value to set for the markImportance property. + * @return a void + */ + public void setMarkImportance(@javax.annotation.Nullable final Importance value) { + this._markImportance = value; + } + /** + * Sets the moveToFolder property value. The ID of the folder that a message will be moved to. + * @param value Value to set for the moveToFolder property. + * @return a void + */ + public void setMoveToFolder(@javax.annotation.Nullable final String value) { + this._moveToFolder = value; + } + /** + * Sets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder. + * @param value Value to set for the permanentDelete property. + * @return a void + */ + public void setPermanentDelete(@javax.annotation.Nullable final Boolean value) { + this._permanentDelete = value; + } + /** + * Sets the redirectTo property value. The email address to which a message should be redirected. + * @param value Value to set for the redirectTo property. + * @return a void + */ + public void setRedirectTo(@javax.annotation.Nullable final List value) { + this._redirectTo = value; + } + /** + * Sets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated. + * @param value Value to set for the stopProcessingRules property. + * @return a void + */ + public void setStopProcessingRules(@javax.annotation.Nullable final Boolean value) { + this._stopProcessingRules = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java index c09a6b656..507936a46 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java @@ -12,101 +12,317 @@ import java.util.Objects; public class MessageRulePredicates implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); + private IDictionary _additionalData; /** Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public List bodyContains; + private List _bodyContains; /** Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public List bodyOrSubjectContains; + private List _bodyOrSubjectContains; /** Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public List categories; + private List _categories; /** Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public List fromAddresses; + private List _fromAddresses; /** Indicates whether an incoming message must have attachments in order for the condition or exception to apply. */ - @javax.annotation.Nullable - public Boolean hasAttachments; + private Boolean _hasAttachments; /** Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. */ + private List _headerContains; + private Importance _importance; + /** Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. */ + private Boolean _isApprovalRequest; + /** Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. */ + private Boolean _isAutomaticForward; + /** Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. */ + private Boolean _isAutomaticReply; + /** Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. */ + private Boolean _isEncrypted; + /** Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. */ + private Boolean _isMeetingRequest; + /** Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. */ + private Boolean _isMeetingResponse; + /** Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. */ + private Boolean _isNonDeliveryReport; + /** Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. */ + private Boolean _isPermissionControlled; + /** Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. */ + private Boolean _isReadReceipt; + /** Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. */ + private Boolean _isSigned; + /** Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. */ + private Boolean _isVoicemail; + private MessageActionFlag _messageActionFlag; + /** Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. */ + private Boolean _notSentToMe; + /** Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. */ + private List _recipientContains; + /** Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. */ + private List _senderContains; + private Sensitivity _sensitivity; + /** Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. */ + private Boolean _sentCcMe; + /** Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. */ + private Boolean _sentOnlyToMe; + /** Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. */ + private List _sentToAddresses; + /** Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. */ + private Boolean _sentToMe; + /** Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. */ + private Boolean _sentToOrCcMe; + /** Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. */ + private List _subjectContains; + private SizeRange _withinSizeRange; + /** + * Instantiates a new messageRulePredicates and sets the default values. + * @return a void + */ + public MessageRulePredicates() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ + @javax.annotation.Nonnull + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public List headerContains; + public List getBodyContains() { + return this._bodyContains; + } + /** + * Gets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public Importance importance; - /** Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. */ + public List getBodyOrSubjectContains() { + return this._bodyOrSubjectContains; + } + /** + * Gets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public Boolean isApprovalRequest; - /** Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. */ + public List getCategories() { + return this._categories; + } + /** + * Gets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. + * @return a recipient + */ @javax.annotation.Nullable - public Boolean isAutomaticForward; - /** Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. */ + public List getFromAddresses() { + return this._fromAddresses; + } + /** + * Gets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isAutomaticReply; - /** Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. */ + public Boolean getHasAttachments() { + return this._hasAttachments; + } + /** + * Gets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public Boolean isEncrypted; - /** Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. */ + public List getHeaderContains() { + return this._headerContains; + } + /** + * Gets the importance property value. + * @return a importance + */ @javax.annotation.Nullable - public Boolean isMeetingRequest; - /** Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. */ + public Importance getImportance() { + return this._importance; + } + /** + * Gets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isMeetingResponse; - /** Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. */ + public Boolean getIsApprovalRequest() { + return this._isApprovalRequest; + } + /** + * Gets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isNonDeliveryReport; - /** Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. */ + public Boolean getIsAutomaticForward() { + return this._isAutomaticForward; + } + /** + * Gets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isPermissionControlled; - /** Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. */ + public Boolean getIsAutomaticReply() { + return this._isAutomaticReply; + } + /** + * Gets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isReadReceipt; - /** Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. */ + public Boolean getIsEncrypted() { + return this._isEncrypted; + } + /** + * Gets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isSigned; - /** Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. */ + public Boolean getIsMeetingRequest() { + return this._isMeetingRequest; + } + /** + * Gets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean isVoicemail; + public Boolean getIsMeetingResponse() { + return this._isMeetingResponse; + } + /** + * Gets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public MessageActionFlag messageActionFlag; - /** Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. */ + public Boolean getIsNonDeliveryReport() { + return this._isNonDeliveryReport; + } + /** + * Gets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean notSentToMe; - /** Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. */ + public Boolean getIsPermissionControlled() { + return this._isPermissionControlled; + } + /** + * Gets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public List recipientContains; - /** Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. */ + public Boolean getIsReadReceipt() { + return this._isReadReceipt; + } + /** + * Gets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public List senderContains; + public Boolean getIsSigned() { + return this._isSigned; + } + /** + * Gets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Sensitivity sensitivity; - /** Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. */ + public Boolean getIsVoicemail() { + return this._isVoicemail; + } + /** + * Gets the messageActionFlag property value. + * @return a messageActionFlag + */ @javax.annotation.Nullable - public Boolean sentCcMe; - /** Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. */ + public MessageActionFlag getMessageActionFlag() { + return this._messageActionFlag; + } + /** + * Gets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public Boolean sentOnlyToMe; - /** Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. */ + public Boolean getNotSentToMe() { + return this._notSentToMe; + } + /** + * Gets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public List sentToAddresses; - /** Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. */ + public List getRecipientContains() { + return this._recipientContains; + } + /** + * Gets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. + * @return a string + */ @javax.annotation.Nullable - public Boolean sentToMe; - /** Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. */ + public List getSenderContains() { + return this._senderContains; + } + /** + * Gets the sensitivity property value. + * @return a sensitivity + */ @javax.annotation.Nullable - public Boolean sentToOrCcMe; - /** Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. */ + public Sensitivity getSensitivity() { + return this._sensitivity; + } + /** + * Gets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public List subjectContains; + public Boolean getSentCcMe() { + return this._sentCcMe; + } + /** + * Gets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. + * @return a boolean + */ @javax.annotation.Nullable - public SizeRange withinSizeRange; + public Boolean getSentOnlyToMe() { + return this._sentOnlyToMe; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. + * @return a recipient */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getSentToAddresses() { + return this._sentToAddresses; + } + /** + * Gets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getSentToMe() { + return this._sentToMe; + } + /** + * Gets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. + * @return a boolean + */ + @javax.annotation.Nullable + public Boolean getSentToOrCcMe() { + return this._sentToOrCcMe; + } + /** + * Gets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. + * @return a string + */ + @javax.annotation.Nullable + public List getSubjectContains() { + return this._subjectContains; + } + /** + * Gets the withinSizeRange property value. + * @return a sizeRange + */ + @javax.annotation.Nullable + public SizeRange getWithinSizeRange() { + return this._withinSizeRange; } /** * The deserialization information for the current model @@ -115,36 +331,36 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(30) {{ - this.put("bodyContains", (o, n) -> { ((MessageRulePredicates)o).bodyContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("bodyOrSubjectContains", (o, n) -> { ((MessageRulePredicates)o).bodyOrSubjectContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("categories", (o, n) -> { ((MessageRulePredicates)o).categories = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("fromAddresses", (o, n) -> { ((MessageRulePredicates)o).fromAddresses = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("hasAttachments", (o, n) -> { ((MessageRulePredicates)o).hasAttachments = n.getBooleanValue(); }); - this.put("headerContains", (o, n) -> { ((MessageRulePredicates)o).headerContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("importance", (o, n) -> { ((MessageRulePredicates)o).importance = n.getEnumValue(Importance.class); }); - this.put("isApprovalRequest", (o, n) -> { ((MessageRulePredicates)o).isApprovalRequest = n.getBooleanValue(); }); - this.put("isAutomaticForward", (o, n) -> { ((MessageRulePredicates)o).isAutomaticForward = n.getBooleanValue(); }); - this.put("isAutomaticReply", (o, n) -> { ((MessageRulePredicates)o).isAutomaticReply = n.getBooleanValue(); }); - this.put("isEncrypted", (o, n) -> { ((MessageRulePredicates)o).isEncrypted = n.getBooleanValue(); }); - this.put("isMeetingRequest", (o, n) -> { ((MessageRulePredicates)o).isMeetingRequest = n.getBooleanValue(); }); - this.put("isMeetingResponse", (o, n) -> { ((MessageRulePredicates)o).isMeetingResponse = n.getBooleanValue(); }); - this.put("isNonDeliveryReport", (o, n) -> { ((MessageRulePredicates)o).isNonDeliveryReport = n.getBooleanValue(); }); - this.put("isPermissionControlled", (o, n) -> { ((MessageRulePredicates)o).isPermissionControlled = n.getBooleanValue(); }); - this.put("isReadReceipt", (o, n) -> { ((MessageRulePredicates)o).isReadReceipt = n.getBooleanValue(); }); - this.put("isSigned", (o, n) -> { ((MessageRulePredicates)o).isSigned = n.getBooleanValue(); }); - this.put("isVoicemail", (o, n) -> { ((MessageRulePredicates)o).isVoicemail = n.getBooleanValue(); }); - this.put("messageActionFlag", (o, n) -> { ((MessageRulePredicates)o).messageActionFlag = n.getEnumValue(MessageActionFlag.class); }); - this.put("notSentToMe", (o, n) -> { ((MessageRulePredicates)o).notSentToMe = n.getBooleanValue(); }); - this.put("recipientContains", (o, n) -> { ((MessageRulePredicates)o).recipientContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("senderContains", (o, n) -> { ((MessageRulePredicates)o).senderContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("sensitivity", (o, n) -> { ((MessageRulePredicates)o).sensitivity = n.getEnumValue(Sensitivity.class); }); - this.put("sentCcMe", (o, n) -> { ((MessageRulePredicates)o).sentCcMe = n.getBooleanValue(); }); - this.put("sentOnlyToMe", (o, n) -> { ((MessageRulePredicates)o).sentOnlyToMe = n.getBooleanValue(); }); - this.put("sentToAddresses", (o, n) -> { ((MessageRulePredicates)o).sentToAddresses = n.getCollectionOfObjectValues(Recipient.class); }); - this.put("sentToMe", (o, n) -> { ((MessageRulePredicates)o).sentToMe = n.getBooleanValue(); }); - this.put("sentToOrCcMe", (o, n) -> { ((MessageRulePredicates)o).sentToOrCcMe = n.getBooleanValue(); }); - this.put("subjectContains", (o, n) -> { ((MessageRulePredicates)o).subjectContains = n.getCollectionOfPrimitiveValues(String.class); }); - this.put("withinSizeRange", (o, n) -> { ((MessageRulePredicates)o).withinSizeRange = n.getObjectValue(SizeRange.class); }); + this.put("bodyContains", (o, n) -> { ((MessageRulePredicates)o).setBodyContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("bodyOrSubjectContains", (o, n) -> { ((MessageRulePredicates)o).setBodyOrSubjectContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("categories", (o, n) -> { ((MessageRulePredicates)o).setCategories(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("fromAddresses", (o, n) -> { ((MessageRulePredicates)o).setFromAddresses(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("hasAttachments", (o, n) -> { ((MessageRulePredicates)o).setHasAttachments(n.getBooleanValue()); }); + this.put("headerContains", (o, n) -> { ((MessageRulePredicates)o).setHeaderContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("importance", (o, n) -> { ((MessageRulePredicates)o).setImportance(n.getEnumValue(Importance.class)); }); + this.put("isApprovalRequest", (o, n) -> { ((MessageRulePredicates)o).setIsApprovalRequest(n.getBooleanValue()); }); + this.put("isAutomaticForward", (o, n) -> { ((MessageRulePredicates)o).setIsAutomaticForward(n.getBooleanValue()); }); + this.put("isAutomaticReply", (o, n) -> { ((MessageRulePredicates)o).setIsAutomaticReply(n.getBooleanValue()); }); + this.put("isEncrypted", (o, n) -> { ((MessageRulePredicates)o).setIsEncrypted(n.getBooleanValue()); }); + this.put("isMeetingRequest", (o, n) -> { ((MessageRulePredicates)o).setIsMeetingRequest(n.getBooleanValue()); }); + this.put("isMeetingResponse", (o, n) -> { ((MessageRulePredicates)o).setIsMeetingResponse(n.getBooleanValue()); }); + this.put("isNonDeliveryReport", (o, n) -> { ((MessageRulePredicates)o).setIsNonDeliveryReport(n.getBooleanValue()); }); + this.put("isPermissionControlled", (o, n) -> { ((MessageRulePredicates)o).setIsPermissionControlled(n.getBooleanValue()); }); + this.put("isReadReceipt", (o, n) -> { ((MessageRulePredicates)o).setIsReadReceipt(n.getBooleanValue()); }); + this.put("isSigned", (o, n) -> { ((MessageRulePredicates)o).setIsSigned(n.getBooleanValue()); }); + this.put("isVoicemail", (o, n) -> { ((MessageRulePredicates)o).setIsVoicemail(n.getBooleanValue()); }); + this.put("messageActionFlag", (o, n) -> { ((MessageRulePredicates)o).setMessageActionFlag(n.getEnumValue(MessageActionFlag.class)); }); + this.put("notSentToMe", (o, n) -> { ((MessageRulePredicates)o).setNotSentToMe(n.getBooleanValue()); }); + this.put("recipientContains", (o, n) -> { ((MessageRulePredicates)o).setRecipientContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("senderContains", (o, n) -> { ((MessageRulePredicates)o).setSenderContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("sensitivity", (o, n) -> { ((MessageRulePredicates)o).setSensitivity(n.getEnumValue(Sensitivity.class)); }); + this.put("sentCcMe", (o, n) -> { ((MessageRulePredicates)o).setSentCcMe(n.getBooleanValue()); }); + this.put("sentOnlyToMe", (o, n) -> { ((MessageRulePredicates)o).setSentOnlyToMe(n.getBooleanValue()); }); + this.put("sentToAddresses", (o, n) -> { ((MessageRulePredicates)o).setSentToAddresses(n.getCollectionOfObjectValues(Recipient.class)); }); + this.put("sentToMe", (o, n) -> { ((MessageRulePredicates)o).setSentToMe(n.getBooleanValue()); }); + this.put("sentToOrCcMe", (o, n) -> { ((MessageRulePredicates)o).setSentToOrCcMe(n.getBooleanValue()); }); + this.put("subjectContains", (o, n) -> { ((MessageRulePredicates)o).setSubjectContains(n.getCollectionOfPrimitiveValues(String.class)); }); + this.put("withinSizeRange", (o, n) -> { ((MessageRulePredicates)o).setWithinSizeRange(n.getObjectValue(SizeRange.class)); }); }}; } /** @@ -154,36 +370,284 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeCollectionOfPrimitiveValues("bodyContains", bodyContains); - writer.writeCollectionOfPrimitiveValues("bodyOrSubjectContains", bodyOrSubjectContains); - writer.writeCollectionOfPrimitiveValues("categories", categories); - writer.writeCollectionOfObjectValues("fromAddresses", fromAddresses); - writer.writeBooleanValue("hasAttachments", hasAttachments); - writer.writeCollectionOfPrimitiveValues("headerContains", headerContains); - writer.writeEnumValue("importance", importance); - writer.writeBooleanValue("isApprovalRequest", isApprovalRequest); - writer.writeBooleanValue("isAutomaticForward", isAutomaticForward); - writer.writeBooleanValue("isAutomaticReply", isAutomaticReply); - writer.writeBooleanValue("isEncrypted", isEncrypted); - writer.writeBooleanValue("isMeetingRequest", isMeetingRequest); - writer.writeBooleanValue("isMeetingResponse", isMeetingResponse); - writer.writeBooleanValue("isNonDeliveryReport", isNonDeliveryReport); - writer.writeBooleanValue("isPermissionControlled", isPermissionControlled); - writer.writeBooleanValue("isReadReceipt", isReadReceipt); - writer.writeBooleanValue("isSigned", isSigned); - writer.writeBooleanValue("isVoicemail", isVoicemail); - writer.writeEnumValue("messageActionFlag", messageActionFlag); - writer.writeBooleanValue("notSentToMe", notSentToMe); - writer.writeCollectionOfPrimitiveValues("recipientContains", recipientContains); - writer.writeCollectionOfPrimitiveValues("senderContains", senderContains); - writer.writeEnumValue("sensitivity", sensitivity); - writer.writeBooleanValue("sentCcMe", sentCcMe); - writer.writeBooleanValue("sentOnlyToMe", sentOnlyToMe); - writer.writeCollectionOfObjectValues("sentToAddresses", sentToAddresses); - writer.writeBooleanValue("sentToMe", sentToMe); - writer.writeBooleanValue("sentToOrCcMe", sentToOrCcMe); - writer.writeCollectionOfPrimitiveValues("subjectContains", subjectContains); - writer.writeObjectValue("withinSizeRange", withinSizeRange); + writer.writeCollectionOfPrimitiveValues("bodyContains", this.getBodyContains()); + writer.writeCollectionOfPrimitiveValues("bodyOrSubjectContains", this.getBodyOrSubjectContains()); + writer.writeCollectionOfPrimitiveValues("categories", this.getCategories()); + writer.writeCollectionOfObjectValues("fromAddresses", this.getFromAddresses()); + writer.writeBooleanValue("hasAttachments", this.getHasAttachments()); + writer.writeCollectionOfPrimitiveValues("headerContains", this.getHeaderContains()); + writer.writeEnumValue("importance", this.getImportance()); + writer.writeBooleanValue("isApprovalRequest", this.getIsApprovalRequest()); + writer.writeBooleanValue("isAutomaticForward", this.getIsAutomaticForward()); + writer.writeBooleanValue("isAutomaticReply", this.getIsAutomaticReply()); + writer.writeBooleanValue("isEncrypted", this.getIsEncrypted()); + writer.writeBooleanValue("isMeetingRequest", this.getIsMeetingRequest()); + writer.writeBooleanValue("isMeetingResponse", this.getIsMeetingResponse()); + writer.writeBooleanValue("isNonDeliveryReport", this.getIsNonDeliveryReport()); + writer.writeBooleanValue("isPermissionControlled", this.getIsPermissionControlled()); + writer.writeBooleanValue("isReadReceipt", this.getIsReadReceipt()); + writer.writeBooleanValue("isSigned", this.getIsSigned()); + writer.writeBooleanValue("isVoicemail", this.getIsVoicemail()); + writer.writeEnumValue("messageActionFlag", this.getMessageActionFlag()); + writer.writeBooleanValue("notSentToMe", this.getNotSentToMe()); + writer.writeCollectionOfPrimitiveValues("recipientContains", this.getRecipientContains()); + writer.writeCollectionOfPrimitiveValues("senderContains", this.getSenderContains()); + writer.writeEnumValue("sensitivity", this.getSensitivity()); + writer.writeBooleanValue("sentCcMe", this.getSentCcMe()); + writer.writeBooleanValue("sentOnlyToMe", this.getSentOnlyToMe()); + writer.writeCollectionOfObjectValues("sentToAddresses", this.getSentToAddresses()); + writer.writeBooleanValue("sentToMe", this.getSentToMe()); + writer.writeBooleanValue("sentToOrCcMe", this.getSentToOrCcMe()); + writer.writeCollectionOfPrimitiveValues("subjectContains", this.getSubjectContains()); + writer.writeObjectValue("withinSizeRange", this.getWithinSizeRange()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the bodyContains property value. Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the bodyContains property. + * @return a void + */ + public void setBodyContains(@javax.annotation.Nullable final List value) { + this._bodyContains = value; + } + /** + * Sets the bodyOrSubjectContains property value. Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the bodyOrSubjectContains property. + * @return a void + */ + public void setBodyOrSubjectContains(@javax.annotation.Nullable final List value) { + this._bodyOrSubjectContains = value; + } + /** + * Sets the categories property value. Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply. + * @param value Value to set for the categories property. + * @return a void + */ + public void setCategories(@javax.annotation.Nullable final List value) { + this._categories = value; + } + /** + * Sets the fromAddresses property value. Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the fromAddresses property. + * @return a void + */ + public void setFromAddresses(@javax.annotation.Nullable final List value) { + this._fromAddresses = value; + } + /** + * Sets the hasAttachments property value. Indicates whether an incoming message must have attachments in order for the condition or exception to apply. + * @param value Value to set for the hasAttachments property. + * @return a void + */ + public void setHasAttachments(@javax.annotation.Nullable final Boolean value) { + this._hasAttachments = value; + } + /** + * Sets the headerContains property value. Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the headerContains property. + * @return a void + */ + public void setHeaderContains(@javax.annotation.Nullable final List value) { + this._headerContains = value; + } + /** + * Sets the importance property value. + * @param value Value to set for the importance property. + * @return a void + */ + public void setImportance(@javax.annotation.Nullable final Importance value) { + this._importance = value; + } + /** + * Sets the isApprovalRequest property value. Indicates whether an incoming message must be an approval request in order for the condition or exception to apply. + * @param value Value to set for the isApprovalRequest property. + * @return a void + */ + public void setIsApprovalRequest(@javax.annotation.Nullable final Boolean value) { + this._isApprovalRequest = value; + } + /** + * Sets the isAutomaticForward property value. Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply. + * @param value Value to set for the isAutomaticForward property. + * @return a void + */ + public void setIsAutomaticForward(@javax.annotation.Nullable final Boolean value) { + this._isAutomaticForward = value; + } + /** + * Sets the isAutomaticReply property value. Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply. + * @param value Value to set for the isAutomaticReply property. + * @return a void + */ + public void setIsAutomaticReply(@javax.annotation.Nullable final Boolean value) { + this._isAutomaticReply = value; + } + /** + * Sets the isEncrypted property value. Indicates whether an incoming message must be encrypted in order for the condition or exception to apply. + * @param value Value to set for the isEncrypted property. + * @return a void + */ + public void setIsEncrypted(@javax.annotation.Nullable final Boolean value) { + this._isEncrypted = value; + } + /** + * Sets the isMeetingRequest property value. Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply. + * @param value Value to set for the isMeetingRequest property. + * @return a void + */ + public void setIsMeetingRequest(@javax.annotation.Nullable final Boolean value) { + this._isMeetingRequest = value; + } + /** + * Sets the isMeetingResponse property value. Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply. + * @param value Value to set for the isMeetingResponse property. + * @return a void + */ + public void setIsMeetingResponse(@javax.annotation.Nullable final Boolean value) { + this._isMeetingResponse = value; + } + /** + * Sets the isNonDeliveryReport property value. Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply. + * @param value Value to set for the isNonDeliveryReport property. + * @return a void + */ + public void setIsNonDeliveryReport(@javax.annotation.Nullable final Boolean value) { + this._isNonDeliveryReport = value; + } + /** + * Sets the isPermissionControlled property value. Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply. + * @param value Value to set for the isPermissionControlled property. + * @return a void + */ + public void setIsPermissionControlled(@javax.annotation.Nullable final Boolean value) { + this._isPermissionControlled = value; + } + /** + * Sets the isReadReceipt property value. Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply. + * @param value Value to set for the isReadReceipt property. + * @return a void + */ + public void setIsReadReceipt(@javax.annotation.Nullable final Boolean value) { + this._isReadReceipt = value; + } + /** + * Sets the isSigned property value. Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply. + * @param value Value to set for the isSigned property. + * @return a void + */ + public void setIsSigned(@javax.annotation.Nullable final Boolean value) { + this._isSigned = value; + } + /** + * Sets the isVoicemail property value. Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply. + * @param value Value to set for the isVoicemail property. + * @return a void + */ + public void setIsVoicemail(@javax.annotation.Nullable final Boolean value) { + this._isVoicemail = value; + } + /** + * Sets the messageActionFlag property value. + * @param value Value to set for the messageActionFlag property. + * @return a void + */ + public void setMessageActionFlag(@javax.annotation.Nullable final MessageActionFlag value) { + this._messageActionFlag = value; + } + /** + * Sets the notSentToMe property value. Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the notSentToMe property. + * @return a void + */ + public void setNotSentToMe(@javax.annotation.Nullable final Boolean value) { + this._notSentToMe = value; + } + /** + * Sets the recipientContains property value. Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the recipientContains property. + * @return a void + */ + public void setRecipientContains(@javax.annotation.Nullable final List value) { + this._recipientContains = value; + } + /** + * Sets the senderContains property value. Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the senderContains property. + * @return a void + */ + public void setSenderContains(@javax.annotation.Nullable final List value) { + this._senderContains = value; + } + /** + * Sets the sensitivity property value. + * @param value Value to set for the sensitivity property. + * @return a void + */ + public void setSensitivity(@javax.annotation.Nullable final Sensitivity value) { + this._sensitivity = value; + } + /** + * Sets the sentCcMe property value. Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentCcMe property. + * @return a void + */ + public void setSentCcMe(@javax.annotation.Nullable final Boolean value) { + this._sentCcMe = value; + } + /** + * Sets the sentOnlyToMe property value. Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentOnlyToMe property. + * @return a void + */ + public void setSentOnlyToMe(@javax.annotation.Nullable final Boolean value) { + this._sentOnlyToMe = value; + } + /** + * Sets the sentToAddresses property value. Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. + * @param value Value to set for the sentToAddresses property. + * @return a void + */ + public void setSentToAddresses(@javax.annotation.Nullable final List value) { + this._sentToAddresses = value; + } + /** + * Sets the sentToMe property value. Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentToMe property. + * @return a void + */ + public void setSentToMe(@javax.annotation.Nullable final Boolean value) { + this._sentToMe = value; + } + /** + * Sets the sentToOrCcMe property value. Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the sentToOrCcMe property. + * @return a void + */ + public void setSentToOrCcMe(@javax.annotation.Nullable final Boolean value) { + this._sentToOrCcMe = value; + } + /** + * Sets the subjectContains property value. Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply. + * @param value Value to set for the subjectContains property. + * @return a void + */ + public void setSubjectContains(@javax.annotation.Nullable final List value) { + this._subjectContains = value; + } + /** + * Sets the withinSizeRange property value. + * @param value Value to set for the withinSizeRange property. + * @return a void + */ + public void setWithinSizeRange(@javax.annotation.Nullable final SizeRange value) { + this._withinSizeRange = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java index 36c76ff2f..538b0faeb 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java @@ -9,21 +9,41 @@ import java.util.Objects; public class SizeRange implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); + private IDictionary _additionalData; /** The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ - @javax.annotation.Nullable - public Integer maximumSize; + private Integer _maximumSize; /** The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ - @javax.annotation.Nullable - public Integer minimumSize; + private Integer _minimumSize; + /** + * Instantiates a new sizeRange and sets the default values. + * @return a void + */ + public SizeRange() { + this._additionalData = new Dictionary(); + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary */ @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getMaximumSize() { + return this._maximumSize; + } + /** + * Gets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @return a integer + */ + @javax.annotation.Nullable + public Integer getMinimumSize() { + return this._minimumSize; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("maximumSize", (o, n) -> { ((SizeRange)o).maximumSize = n.getIntegerValue(); }); - this.put("minimumSize", (o, n) -> { ((SizeRange)o).minimumSize = n.getIntegerValue(); }); + this.put("maximumSize", (o, n) -> { ((SizeRange)o).setMaximumSize(n.getIntegerValue()); }); + this.put("minimumSize", (o, n) -> { ((SizeRange)o).setMinimumSize(n.getIntegerValue()); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeIntegerValue("maximumSize", maximumSize); - writer.writeIntegerValue("minimumSize", minimumSize); + writer.writeIntegerValue("maximumSize", this.getMaximumSize()); + writer.writeIntegerValue("minimumSize", this.getMinimumSize()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the maximumSize property value. The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @param value Value to set for the maximumSize property. + * @return a void + */ + public void setMaximumSize(@javax.annotation.Nullable final Integer value) { + this._maximumSize = value; + } + /** + * Sets the minimumSize property value. The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. + * @param value Value to set for the minimumSize property. + * @return a void + */ + public void setMinimumSize(@javax.annotation.Nullable final Integer value) { + this._minimumSize = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java index 4ae562a53..ee46f4ea8 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java @@ -23,11 +23,17 @@ public class ChildFoldersRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/childFolders"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ChildFoldersRequestBuilder and sets the default values. + * @return a void + */ + public ChildFoldersRequestBuilder() { + this.pathSegment = "/childFolders"; + } /** * Get childFolders from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MailFol * Get childFolders from users * @return a CompletableFuture of ChildFoldersResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ChildFoldersResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.a * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ChildFoldersResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.a * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ChildFoldersResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.a * @param body * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body) { + public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java index a7e099d4a..08075037c 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class ChildFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new ChildFoldersResponse and sets the default values. + * @return a void + */ + public ChildFoldersResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a mailFolder */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((ChildFoldersResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((ChildFoldersResponse)o).value = n.getCollectionOfObjectValues(MailFolder.class); }); + this.put("@odata.nextLink", (o, n) -> { ((ChildFoldersResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((ChildFoldersResponse)o).setValue(n.getCollectionOfObjectValues(MailFolder.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java index 3e6fceff1..33a35f7b9 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java @@ -23,11 +23,17 @@ public class MailFolderRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MailFolderRequestBuilder and sets the default values. + * @return a void + */ + public MailFolderRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property childFolders for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MailFo * Delete navigation property childFolders for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get childFolders from users * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MailFolder > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java index 52e401bd2..df29725d8 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java @@ -60,8 +60,7 @@ public MultiValueExtendedPropertiesRequestBuilder multiValueExtendedProperties() return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; @@ -85,6 +84,13 @@ public MailFolderRequestBuilder childFolders(@javax.annotation.Nonnull final Str final SerializationWriterFactory parentSerializationFactory = serializerFactory; return new MailFolderRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } + /** + * Instantiates a new MailFolderRequestBuilder and sets the default values. + * @return a void + */ + public MailFolderRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property mailFolders for users * @return a RequestInfo @@ -201,7 +207,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MailFo * Delete navigation property mailFolders for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -215,7 +221,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -230,7 +236,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -244,7 +250,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get mailFolders from users * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MailFolder > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -258,7 +264,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -273,7 +279,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -290,7 +296,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -344,7 +350,7 @@ public MultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperti * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -361,7 +367,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -379,7 +385,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java index eb6dc1415..66f8508ac 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java @@ -23,11 +23,17 @@ public class MessageRulesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/messageRules"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MessageRulesRequestBuilder and sets the default values. + * @return a void + */ + public MessageRulesRequestBuilder() { + this.pathSegment = "/messageRules"; + } /** * Get messageRules from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Message * Get messageRules from users * @return a CompletableFuture of MessageRulesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MessageRulesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRulesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessageRulesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.a * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRulesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessageRulesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.a * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRulesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessageRulesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.a * @param body * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MessageRule body) { + public java.util.concurrent.CompletableFuture< MessageRule > post(@javax.annotation.Nonnull final MessageRule body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessageRule > post(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessageRule > post(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java index 65f8f7c5e..a6450d07c 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MessageRulesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MessageRulesResponse and sets the default values. + * @return a void + */ + public MessageRulesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a messageRule */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MessageRulesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MessageRulesResponse)o).value = n.getCollectionOfObjectValues(MessageRule.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MessageRulesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MessageRulesResponse)o).setValue(n.getCollectionOfObjectValues(MessageRule.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java index b538226c9..36666d668 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java @@ -23,11 +23,17 @@ public class MessageRuleRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MessageRuleRequestBuilder and sets the default values. + * @return a void + */ + public MessageRuleRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property messageRules for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Messag * Delete navigation property messageRules for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get messageRules from users * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MessageRule > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessageRule > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessageRule > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessageRule > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MessageRule body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MessageRule body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java index b2bb499b4..890eef6f9 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java @@ -23,11 +23,17 @@ public class MessagesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/messages"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MessagesRequestBuilder and sets the default values. + * @return a void + */ + public MessagesRequestBuilder() { + this.pathSegment = "/messages"; + } /** * Get messages from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Message * Get messages from users * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MessagesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annot * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annot * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annot * @param body * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body) { + public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java index 1337000d7..f04131a6b 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MessagesResponse and sets the default values. + * @return a void + */ + public MessagesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a message */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MessagesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MessagesResponse)o).value = n.getCollectionOfObjectValues(Message.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MessagesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MessagesResponse)o).setValue(n.getCollectionOfObjectValues(Message.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java index 20ca67903..0859e59e0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java @@ -23,11 +23,17 @@ public class AttachmentsRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/attachments"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new AttachmentsRequestBuilder and sets the default values. + * @return a void + */ + public AttachmentsRequestBuilder() { + this.pathSegment = "/attachments"; + } /** * Get attachments from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Attachm * Get attachments from users * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< AttachmentsResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.an * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.an * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.an * @param body * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body) { + public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java index a9d914c3b..689ba05d4 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new AttachmentsResponse and sets the default values. + * @return a void + */ + public AttachmentsResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a attachment */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((AttachmentsResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((AttachmentsResponse)o).value = n.getCollectionOfObjectValues(Attachment.class); }); + this.put("@odata.nextLink", (o, n) -> { ((AttachmentsResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((AttachmentsResponse)o).setValue(n.getCollectionOfObjectValues(Attachment.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java index 3e7999499..f5a02c278 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java @@ -23,11 +23,17 @@ public class AttachmentRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new AttachmentRequestBuilder and sets the default values. + * @return a void + */ + public AttachmentRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property attachments for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Attach * Delete navigation property attachments for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get attachments from users * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< Attachment > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java index d7330cd91..5256fb9b5 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java @@ -22,11 +22,17 @@ public class ContentRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/$value"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ContentRequestBuilder and sets the default values. + * @return a void + */ + public ContentRequestBuilder() { + this.pathSegment = "/$value"; + } /** * Get media content for the navigation property messages from users * @return a RequestInfo @@ -93,7 +99,7 @@ public RequestInfo createPutRequestInfo(@javax.annotation.Nonnull final InputStr * Get media content for the navigation property messages from users * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< InputStream > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -107,7 +113,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -122,7 +128,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -137,7 +143,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation * @param body Binary request body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body) { + public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( @@ -154,7 +160,7 @@ public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( @@ -172,7 +178,7 @@ public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java index 8a76c6b98..d7fc9c2c7 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java @@ -23,11 +23,17 @@ public class ExtensionsRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/extensions"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ExtensionsRequestBuilder and sets the default values. + * @return a void + */ + public ExtensionsRequestBuilder() { + this.pathSegment = "/extensions"; + } /** * Get extensions from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Extensi * Get extensions from users * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< ExtensionsResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.ann * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.ann * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.ann * @param body * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body) { + public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java index 45328770a..3d9f5d1a4 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new ExtensionsResponse and sets the default values. + * @return a void + */ + public ExtensionsResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a extension */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((ExtensionsResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((ExtensionsResponse)o).value = n.getCollectionOfObjectValues(Extension.class); }); + this.put("@odata.nextLink", (o, n) -> { ((ExtensionsResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((ExtensionsResponse)o).setValue(n.getCollectionOfObjectValues(Extension.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java index 7722f084e..54aed8adf 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java @@ -23,11 +23,17 @@ public class ExtensionRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ExtensionRequestBuilder and sets the default values. + * @return a void + */ + public ExtensionRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property extensions for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Extens * Delete navigation property extensions for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get extensions from users * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< Extension > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.N * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java index d0d2cd448..b5816e1a1 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java @@ -60,8 +60,7 @@ public MultiValueExtendedPropertiesRequestBuilder multiValueExtendedProperties() return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; @@ -85,6 +84,13 @@ public AttachmentRequestBuilder attachments(@javax.annotation.Nonnull final Stri final SerializationWriterFactory parentSerializationFactory = serializerFactory; return new AttachmentRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } + /** + * Instantiates a new MessageRequestBuilder and sets the default values. + * @return a void + */ + public MessageRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property messages for users * @return a RequestInfo @@ -201,7 +207,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Messag * Delete navigation property messages for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -215,7 +221,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -230,7 +236,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -257,7 +263,7 @@ public ExtensionRequestBuilder extensions(@javax.annotation.Nonnull final String * Get messages from users * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< Message > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -271,7 +277,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -286,7 +292,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -303,7 +309,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -331,7 +337,7 @@ public MultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperti * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -348,7 +354,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -366,7 +372,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java index f0c6a30c6..0b26946de 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/multiValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/multiValueExtendedProperties"; + } /** * Get multiValueExtendedProperties from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MultiVa * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index b8d3330c0..150cbc0e9 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a multiValueLegacyExtendedProperty */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java index 42d533a98..e1e288c7e 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property multiValueExtendedProperties for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MultiV * Delete navigation property multiValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java index 13c898b75..138d5de79 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/singleValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/singleValueExtendedProperties"; + } /** * Get singleValueExtendedProperties from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final SingleV * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index b168d0ea6..a4b7bb4c5 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a singleValueLegacyExtendedProperty */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java index 5a6179e7b..c1c3f5af5 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property singleValueExtendedProperties for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Single * Delete navigation property singleValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java index 65c7bdf1a..012a1777d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/multiValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/multiValueExtendedProperties"; + } /** * Get multiValueExtendedProperties from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MultiVa * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index d220801c9..931f024d0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a multiValueLegacyExtendedProperty */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java index b41f97916..69bea40e2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property multiValueExtendedProperties for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MultiV * Delete navigation property multiValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java index 8f822881d..b87769caa 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/singleValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/singleValueExtendedProperties"; + } /** * Get singleValueExtendedProperties from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final SingleV * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index b97cb2cb7..d30201df8 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a singleValueLegacyExtendedProperty */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java index 9fdec8b01..f9fc821bf 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property singleValueExtendedProperties for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Single * Delete navigation property singleValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java index 682ec0d00..82d110a8d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java @@ -23,11 +23,17 @@ public class MessagesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/messages"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MessagesRequestBuilder and sets the default values. + * @return a void + */ + public MessagesRequestBuilder() { + this.pathSegment = "/messages"; + } /** * Get messages from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Message * Get messages from users * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MessagesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annot * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annot * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annot * @param body * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body) { + public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java index 08c18f3ab..c5dc05e0a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MessagesResponse and sets the default values. + * @return a void + */ + public MessagesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a message */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MessagesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MessagesResponse)o).value = n.getCollectionOfObjectValues(Message.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MessagesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MessagesResponse)o).setValue(n.getCollectionOfObjectValues(Message.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java index 62540d25e..0c6eb6f5c 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java @@ -23,11 +23,17 @@ public class AttachmentsRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/attachments"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new AttachmentsRequestBuilder and sets the default values. + * @return a void + */ + public AttachmentsRequestBuilder() { + this.pathSegment = "/attachments"; + } /** * Get attachments from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Attachm * Get attachments from users * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< AttachmentsResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.an * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.an * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.an * @param body * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body) { + public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java index e78fb33ba..dcae20383 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new AttachmentsResponse and sets the default values. + * @return a void + */ + public AttachmentsResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a attachment */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((AttachmentsResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((AttachmentsResponse)o).value = n.getCollectionOfObjectValues(Attachment.class); }); + this.put("@odata.nextLink", (o, n) -> { ((AttachmentsResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((AttachmentsResponse)o).setValue(n.getCollectionOfObjectValues(Attachment.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java index 202dd9c3d..733f97db7 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java @@ -23,11 +23,17 @@ public class AttachmentRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new AttachmentRequestBuilder and sets the default values. + * @return a void + */ + public AttachmentRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property attachments for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Attach * Delete navigation property attachments for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get attachments from users * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< Attachment > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation. * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java index bf48d905f..99bbf4761 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java @@ -22,11 +22,17 @@ public class ContentRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/$value"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ContentRequestBuilder and sets the default values. + * @return a void + */ + public ContentRequestBuilder() { + this.pathSegment = "/$value"; + } /** * Get media content for the navigation property messages from users * @return a RequestInfo @@ -93,7 +99,7 @@ public RequestInfo createPutRequestInfo(@javax.annotation.Nonnull final InputStr * Get media content for the navigation property messages from users * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< InputStream > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -107,7 +113,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -122,7 +128,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -137,7 +143,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation * @param body Binary request body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body) { + public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( @@ -154,7 +160,7 @@ public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( @@ -172,7 +178,7 @@ public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java index 3873b890c..801957f79 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java @@ -23,11 +23,17 @@ public class ExtensionsRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/extensions"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ExtensionsRequestBuilder and sets the default values. + * @return a void + */ + public ExtensionsRequestBuilder() { + this.pathSegment = "/extensions"; + } /** * Get extensions from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Extensi * Get extensions from users * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< ExtensionsResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.ann * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.ann * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture get(@javax.ann * @param body * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body) { + public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java index ae13a97c6..17dce29f5 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new ExtensionsResponse and sets the default values. + * @return a void + */ + public ExtensionsResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a extension */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((ExtensionsResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((ExtensionsResponse)o).value = n.getCollectionOfObjectValues(Extension.class); }); + this.put("@odata.nextLink", (o, n) -> { ((ExtensionsResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((ExtensionsResponse)o).setValue(n.getCollectionOfObjectValues(Extension.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java index 7fc532809..bbbee98b0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java @@ -23,11 +23,17 @@ public class ExtensionRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new ExtensionRequestBuilder and sets the default values. + * @return a void + */ + public ExtensionRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property extensions for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Extens * Delete navigation property extensions for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get extensions from users * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< Extension > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.N * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java index caa1411c7..06900c8ac 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java @@ -60,8 +60,7 @@ public MultiValueExtendedPropertiesRequestBuilder multiValueExtendedProperties() return new MultiValueExtendedPropertiesRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; @@ -85,6 +84,13 @@ public AttachmentRequestBuilder attachments(@javax.annotation.Nonnull final Stri final SerializationWriterFactory parentSerializationFactory = serializerFactory; return new AttachmentRequestBuilder() {{ currentPath = parentPath; httpCore = parentCore; serializerFactory = parentSerializationFactory; }}; } + /** + * Instantiates a new MessageRequestBuilder and sets the default values. + * @return a void + */ + public MessageRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property messages for users * @return a RequestInfo @@ -201,7 +207,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Messag * Delete navigation property messages for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -215,7 +221,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -230,7 +236,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -257,7 +263,7 @@ public ExtensionRequestBuilder extensions(@javax.annotation.Nonnull final String * Get messages from users * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< Message > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -271,7 +277,7 @@ public java.util.concurrent.CompletableFuture get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -286,7 +292,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -303,7 +309,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -331,7 +337,7 @@ public MultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperti * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -348,7 +354,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -366,7 +372,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java index c6146fe15..6fe70c317 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/multiValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/multiValueExtendedProperties"; + } /** * Get multiValueExtendedProperties from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MultiVa * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index dd00690e9..1970b796d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public MultiValueExtendedPropertiesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a multiValueLegacyExtendedProperty */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((MultiValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(MultiValueLegacyExtendedProperty.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java index b02e35229..64b704e63 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public MultiValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property multiValueExtendedProperties for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MultiV * Delete navigation property multiValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java index be08a2a47..115d00cf2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueExtendedPropertiesRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = "/singleValueExtendedProperties"; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesRequestBuilder() { + this.pathSegment = "/singleValueExtendedProperties"; + } /** * Get singleValueExtendedProperties from users * @return a RequestInfo @@ -116,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final SingleV * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -130,7 +136,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -145,7 +151,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -162,7 +168,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -177,7 +183,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -194,7 +200,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -212,7 +218,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index 352812d97..a6eedff2b 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -11,19 +11,39 @@ import java.util.Objects; public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ + private IDictionary _additionalData; + private String _nextLink; + private List _value; + /** + * Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + * @return a void + */ + public SingleValueExtendedPropertiesResponse() { + this._additionalData = new Dictionary(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a IDictionary + */ @javax.annotation.Nonnull - private Map additionalData = new HashMap<>(); - @javax.annotation.Nullable - public String nextLink; + public IDictionary getAdditionalData() { + return this._additionalData; + } + /** + * Gets the nextLink property value. + * @return a string + */ @javax.annotation.Nullable - public List value; + public String getNextLink() { + return this._nextLink; + } /** - * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a Map + * Gets the value property value. + * @return a singleValueLegacyExtendedProperty */ - @javax.annotation.Nonnull - public Map getAdditionalData() { - return additionalData; + @javax.annotation.Nullable + public List getValue() { + return this._value; } /** * The deserialization information for the current model @@ -32,8 +52,8 @@ public Map getAdditionalData() { @javax.annotation.Nonnull public Map> getFieldDeserializers() { return new HashMap<>(2) {{ - this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).nextLink = n.getStringValue(); }); - this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).value = n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class); }); + this.put("@odata.nextLink", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setNextLink(n.getStringValue()); }); + this.put("value", (o, n) -> { ((SingleValueExtendedPropertiesResponse)o).setValue(n.getCollectionOfObjectValues(SingleValueLegacyExtendedProperty.class)); }); }}; } /** @@ -43,8 +63,32 @@ public Map> getFieldDeserializers() { */ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); - writer.writeStringValue("@odata.nextLink", nextLink); - writer.writeCollectionOfObjectValues("value", value); + writer.writeStringValue("@odata.nextLink", this.getNextLink()); + writer.writeCollectionOfObjectValues("value", this.getValue()); writer.writeAdditionalData(this.additionalData); } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + * @return a void + */ + public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + this._additionalData = value; + } + /** + * Sets the nextLink property value. + * @param value Value to set for the nextLink property. + * @return a void + */ + public void setNextLink(@javax.annotation.Nullable final String value) { + this._nextLink = value; + } + /** + * Sets the value property value. + * @param value Value to set for the value property. + * @return a void + */ + public void setValue(@javax.annotation.Nullable final List value) { + this._value = value; + } } diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java index 28b02929b..876c35b6c 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java @@ -23,11 +23,17 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { @javax.annotation.Nullable public HttpCore httpCore; /** Path segment to use to build the URL for the current request builder */ - @javax.annotation.Nonnull - private final String pathSegment = ""; + private final String pathSegment; /** Factory to use to get a serializer for payload serialization */ @javax.annotation.Nullable public SerializationWriterFactory serializerFactory; + /** + * Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + * @return a void + */ + public SingleValueLegacyExtendedPropertyRequestBuilder() { + this.pathSegment = ""; + } /** * Delete navigation property singleValueExtendedProperties for users * @return a RequestInfo @@ -144,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Single * Delete navigation property singleValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete() { + public java.util.concurrent.CompletableFuture< Void > delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -158,7 +164,7 @@ public java.util.concurrent.CompletableFuture delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -173,7 +179,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -187,7 +193,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nul * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get() { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -201,7 +207,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -216,7 +222,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -233,7 +239,7 @@ public java.util.concurrent.CompletableFuture * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -248,7 +254,7 @@ public java.util.concurrent.CompletableFuture * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -265,7 +271,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -283,7 +289,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( From d1623027371bcfe4fd2b2388aa51149f0407a6a6 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 15 Jun 2021 11:28:53 -0400 Subject: [PATCH 06/11] - code-gen: java additional data type correction and access --- .../utilities/users/DateTimeTimeZone.java | 12 ++++++------ .../graphjavav4/utilities/users/EmailAddress.java | 12 ++++++------ .../java/graphjavav4/utilities/users/Entity.java | 12 ++++++------ .../graphjavav4/utilities/users/FollowupFlag.java | 12 ++++++------ .../utilities/users/InternetMessageHeader.java | 12 ++++++------ .../java/graphjavav4/utilities/users/ItemBody.java | 12 ++++++------ .../java/graphjavav4/utilities/users/Recipient.java | 12 ++++++------ .../overrides/OverridesResponse.java | 12 ++++++------ .../users/mailFolders/MailFoldersResponse.java | 12 ++++++------ .../users/mailFolders/MessageRuleActions.java | 12 ++++++------ .../users/mailFolders/MessageRulePredicates.java | 12 ++++++------ .../utilities/users/mailFolders/SizeRange.java | 12 ++++++------ .../childFolders/ChildFoldersResponse.java | 12 ++++++------ .../messageRules/MessageRulesResponse.java | 12 ++++++------ .../users/mailFolders/messages/MessagesResponse.java | 12 ++++++------ .../messages/attachments/AttachmentsResponse.java | 12 ++++++------ .../messages/extensions/ExtensionsResponse.java | 12 ++++++------ .../MultiValueExtendedPropertiesResponse.java | 12 ++++++------ .../SingleValueExtendedPropertiesResponse.java | 12 ++++++------ .../MultiValueExtendedPropertiesResponse.java | 12 ++++++------ .../SingleValueExtendedPropertiesResponse.java | 12 ++++++------ .../utilities/users/messages/MessagesResponse.java | 12 ++++++------ .../messages/attachments/AttachmentsResponse.java | 12 ++++++------ .../messages/extensions/ExtensionsResponse.java | 12 ++++++------ .../MultiValueExtendedPropertiesResponse.java | 12 ++++++------ .../SingleValueExtendedPropertiesResponse.java | 12 ++++++------ 26 files changed, 156 insertions(+), 156 deletions(-) diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java index 9d7327305..fee3dac48 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java @@ -9,7 +9,7 @@ import java.util.Objects; public class DateTimeTimeZone implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; /** A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. */ private String _dateTime; /** Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. */ @@ -19,14 +19,14 @@ public class DateTimeTimeZone implements Parsable { * @return a void */ public DateTimeTimeZone() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("dateTime", this.getDateTime()); writer.writeStringValue("timeZone", this.getTimeZone()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java index 428fec1d0..bcc07c285 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java @@ -9,7 +9,7 @@ import java.util.Objects; public class EmailAddress implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; /** The email address of an entity instance. */ private String _address; /** The display name of an entity instance. */ @@ -19,14 +19,14 @@ public class EmailAddress implements Parsable { * @return a void */ public EmailAddress() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("address", this.getAddress()); writer.writeStringValue("name", this.getName()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java index c529580ea..341751d7e 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java @@ -9,7 +9,7 @@ import java.util.Objects; public class Entity implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; /** Read-only. */ private String _id; /** @@ -17,14 +17,14 @@ public class Entity implements Parsable { * @return a void */ public Entity() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -53,14 +53,14 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); writer.writeStringValue("id", this.getId()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java index bf333fcb5..65344a168 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java @@ -9,7 +9,7 @@ import java.util.Objects; public class FollowupFlag implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private DateTimeTimeZone _completedDateTime; private DateTimeTimeZone _dueDateTime; private FollowupFlagStatus _flagStatus; @@ -19,14 +19,14 @@ public class FollowupFlag implements Parsable { * @return a void */ public FollowupFlag() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -85,14 +85,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer writer.writeObjectValue("dueDateTime", this.getDueDateTime()); writer.writeEnumValue("flagStatus", this.getFlagStatus()); writer.writeObjectValue("startDateTime", this.getStartDateTime()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java index 9a342ce47..5d8c630d8 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java @@ -9,7 +9,7 @@ import java.util.Objects; public class InternetMessageHeader implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; /** Represents the key in a key-value pair. */ private String _name; /** The value in a key-value pair. */ @@ -19,14 +19,14 @@ public class InternetMessageHeader implements Parsable { * @return a void */ public InternetMessageHeader() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("name", this.getName()); writer.writeStringValue("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java index 7b1831f77..e74f5b068 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java @@ -9,7 +9,7 @@ import java.util.Objects; public class ItemBody implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; /** The content of the item. */ private String _content; private BodyType _contentType; @@ -18,14 +18,14 @@ public class ItemBody implements Parsable { * @return a void */ public ItemBody() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -64,14 +64,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("content", this.getContent()); writer.writeEnumValue("contentType", this.getContentType()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java index decf0f653..0e8da3df8 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java @@ -9,21 +9,21 @@ import java.util.Objects; public class Recipient implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private EmailAddress _emailAddress; /** * Instantiates a new recipient and sets the default values. * @return a void */ public Recipient() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -52,14 +52,14 @@ public Map> getFieldDeserializers() { public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); writer.writeObjectValue("emailAddress", this.getEmailAddress()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java index 27ca2bf97..7cba764a0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class OverridesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class OverridesResponse implements Parsable { * @return a void */ public OverridesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java index 12900f4a5..fc8a06178 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class MailFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class MailFoldersResponse implements Parsable { * @return a void */ public MailFoldersResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java index 91fe3fdb8..736f14429 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java @@ -12,7 +12,7 @@ import java.util.Objects; public class MessageRuleActions implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; /** A list of categories to be assigned to a message. */ private List _assignCategories; /** The ID of a folder that a message is to be copied to. */ @@ -39,14 +39,14 @@ public class MessageRuleActions implements Parsable { * @return a void */ public MessageRuleActions() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -175,14 +175,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer writer.writeBooleanValue("permanentDelete", this.getPermanentDelete()); writer.writeCollectionOfObjectValues("redirectTo", this.getRedirectTo()); writer.writeBooleanValue("stopProcessingRules", this.getStopProcessingRules()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java index 507936a46..3e388dafd 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java @@ -12,7 +12,7 @@ import java.util.Objects; public class MessageRulePredicates implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; /** Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. */ private List _bodyContains; /** Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. */ @@ -74,14 +74,14 @@ public class MessageRulePredicates implements Parsable { * @return a void */ public MessageRulePredicates() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -400,14 +400,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer writer.writeBooleanValue("sentToOrCcMe", this.getSentToOrCcMe()); writer.writeCollectionOfPrimitiveValues("subjectContains", this.getSubjectContains()); writer.writeObjectValue("withinSizeRange", this.getWithinSizeRange()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java index 538b0faeb..19ccfb8fa 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java @@ -9,7 +9,7 @@ import java.util.Objects; public class SizeRange implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; /** The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ private Integer _maximumSize; /** The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. */ @@ -19,14 +19,14 @@ public class SizeRange implements Parsable { * @return a void */ public SizeRange() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeIntegerValue("maximumSize", this.getMaximumSize()); writer.writeIntegerValue("minimumSize", this.getMinimumSize()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java index 08075037c..6239acaed 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class ChildFoldersResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class ChildFoldersResponse implements Parsable { * @return a void */ public ChildFoldersResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java index a6450d07c..d27469be2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class MessageRulesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class MessageRulesResponse implements Parsable { * @return a void */ public MessageRulesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java index f04131a6b..0acee192b 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class MessagesResponse implements Parsable { * @return a void */ public MessagesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java index 689ba05d4..3d0b1ac14 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class AttachmentsResponse implements Parsable { * @return a void */ public AttachmentsResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java index 3d9f5d1a4..f4eb7d12d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class ExtensionsResponse implements Parsable { * @return a void */ public ExtensionsResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index 150cbc0e9..a7216ecef 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class MultiValueExtendedPropertiesResponse implements Parsable { * @return a void */ public MultiValueExtendedPropertiesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index a4b7bb4c5..bf21f1ddf 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class SingleValueExtendedPropertiesResponse implements Parsable { * @return a void */ public SingleValueExtendedPropertiesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index 931f024d0..4cc2a6361 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class MultiValueExtendedPropertiesResponse implements Parsable { * @return a void */ public MultiValueExtendedPropertiesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index d30201df8..5913721fe 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class SingleValueExtendedPropertiesResponse implements Parsable { * @return a void */ public SingleValueExtendedPropertiesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java index c5dc05e0a..6f33e8fff 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class MessagesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class MessagesResponse implements Parsable { * @return a void */ public MessagesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java index dcae20383..47127dcd2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class AttachmentsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class AttachmentsResponse implements Parsable { * @return a void */ public AttachmentsResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java index 17dce29f5..a6084ff09 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class ExtensionsResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class ExtensionsResponse implements Parsable { * @return a void */ public ExtensionsResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index 1970b796d..bbd839e8a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class MultiValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class MultiValueExtendedPropertiesResponse implements Parsable { * @return a void */ public MultiValueExtendedPropertiesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index a6eedff2b..1cc9e2c7f 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -11,7 +11,7 @@ import java.util.Objects; public class SingleValueExtendedPropertiesResponse implements Parsable { /** Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ - private IDictionary _additionalData; + private Map _additionalData; private String _nextLink; private List _value; /** @@ -19,14 +19,14 @@ public class SingleValueExtendedPropertiesResponse implements Parsable { * @return a void */ public SingleValueExtendedPropertiesResponse() { - this._additionalData = new Dictionary(); + this._additionalData = new HashMap<>(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a IDictionary + * @return a Map */ @javax.annotation.Nonnull - public IDictionary getAdditionalData() { + public Map getAdditionalData() { return this._additionalData; } /** @@ -65,14 +65,14 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer Objects.requireNonNull(writer); writer.writeStringValue("@odata.nextLink", this.getNextLink()); writer.writeCollectionOfObjectValues("value", this.getValue()); - writer.writeAdditionalData(this.additionalData); + writer.writeAdditionalData(this.getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param value Value to set for the AdditionalData property. * @return a void */ - public void setAdditionalData(@javax.annotation.Nullable final IDictionary value) { + public void setAdditionalData(@javax.annotation.Nullable final Map value) { this._additionalData = value; } /** From 31568203536abfc20e72f76f1be1c3f09a1ac860 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 16 Jun 2021 13:31:18 -0400 Subject: [PATCH 07/11] - java debug configuration update --- .../.settings/org.eclipse.buildship.core.prefs | 2 +- msgraph-mail/java/app/.classpath | 15 +-------------- .../.settings/org.eclipse.buildship.core.prefs | 13 ++++++++++++- msgraph-mail/java/utilities/.classpath | 17 ++--------------- .../.settings/org.eclipse.buildship.core.prefs | 2 +- 5 files changed, 17 insertions(+), 32 deletions(-) diff --git a/msgraph-mail/java/.settings/org.eclipse.buildship.core.prefs b/msgraph-mail/java/.settings/org.eclipse.buildship.core.prefs index fcb699352..42df0c148 100644 --- a/msgraph-mail/java/.settings/org.eclipse.buildship.core.prefs +++ b/msgraph-mail/java/.settings/org.eclipse.buildship.core.prefs @@ -5,7 +5,7 @@ connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) connection.project.dir= eclipse.preferences.version=1 gradle.user.home= -java.home=C\:/Program Files/AdoptOpenJDK/jdk-16.0.0.36-hotspot +java.home=C\:/Program Files/AdoptOpenJDK/jdk-16.0.1.9-hotspot jvm.arguments= offline.mode=false override.workspace.settings=true diff --git a/msgraph-mail/java/app/.classpath b/msgraph-mail/java/app/.classpath index 93711e04a..5933c3f21 100644 --- a/msgraph-mail/java/app/.classpath +++ b/msgraph-mail/java/app/.classpath @@ -6,12 +6,6 @@ - - - - - - @@ -19,14 +13,7 @@ - - - - - - - - + diff --git a/msgraph-mail/java/app/.settings/org.eclipse.buildship.core.prefs b/msgraph-mail/java/app/.settings/org.eclipse.buildship.core.prefs index b1886adb4..f155ebb43 100644 --- a/msgraph-mail/java/app/.settings/org.eclipse.buildship.core.prefs +++ b/msgraph-mail/java/app/.settings/org.eclipse.buildship.core.prefs @@ -1,2 +1,13 @@ -connection.project.dir=.. +arguments= +auto.sync=false +build.scans.enabled=false +connection.gradle.distribution=GRADLE_DISTRIBUTION(LOCAL_INSTALLATION(C\:\\ProgramData\\chocolatey\\lib\\gradle\\tools\\gradle-7.0.2)) +connection.project.dir= eclipse.preferences.version=1 +gradle.user.home= +java.home=C\:/Program Files/AdoptOpenJDK/jdk-16.0.1.9-hotspot +jvm.arguments= +offline.mode=false +override.workspace.settings=true +show.console.view=true +show.executions.view=true diff --git a/msgraph-mail/java/utilities/.classpath b/msgraph-mail/java/utilities/.classpath index 6e87a05d4..5617815c0 100644 --- a/msgraph-mail/java/utilities/.classpath +++ b/msgraph-mail/java/utilities/.classpath @@ -6,20 +6,7 @@ - - - - - - - - - - - - - - + - + diff --git a/msgraph-mail/java/utilities/.settings/org.eclipse.buildship.core.prefs b/msgraph-mail/java/utilities/.settings/org.eclipse.buildship.core.prefs index dc08b6eaf..777998de0 100644 --- a/msgraph-mail/java/utilities/.settings/org.eclipse.buildship.core.prefs +++ b/msgraph-mail/java/utilities/.settings/org.eclipse.buildship.core.prefs @@ -2,7 +2,7 @@ arguments= auto.sync=false build.scans.enabled=false connection.gradle.distribution=GRADLE_DISTRIBUTION(LOCAL_INSTALLATION(C\:\\ProgramData\\chocolatey\\lib\\gradle\\tools\\gradle-6.7)) -connection.project.dir=.. +connection.project.dir=../app eclipse.preferences.version=1 gradle.user.home= java.home=C\:/Program Files/AdoptOpenJDK/jdk-15.0.1.9-hotspot From 22601f92c19f3f2e014f5e5c20575a18d6dfe03d Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 16 Jun 2021 13:35:17 -0400 Subject: [PATCH 08/11] - code-gen: java switch to setter to initialize additional data --- .../main/java/graphjavav4/utilities/users/DateTimeTimeZone.java | 2 +- .../src/main/java/graphjavav4/utilities/users/EmailAddress.java | 2 +- .../src/main/java/graphjavav4/utilities/users/Entity.java | 2 +- .../src/main/java/graphjavav4/utilities/users/FollowupFlag.java | 2 +- .../java/graphjavav4/utilities/users/InternetMessageHeader.java | 2 +- .../src/main/java/graphjavav4/utilities/users/ItemBody.java | 2 +- .../src/main/java/graphjavav4/utilities/users/Recipient.java | 2 +- .../inferenceClassification/overrides/OverridesResponse.java | 2 +- .../utilities/users/mailFolders/MailFoldersResponse.java | 2 +- .../utilities/users/mailFolders/MessageRuleActions.java | 2 +- .../utilities/users/mailFolders/MessageRulePredicates.java | 2 +- .../java/graphjavav4/utilities/users/mailFolders/SizeRange.java | 2 +- .../users/mailFolders/childFolders/ChildFoldersResponse.java | 2 +- .../users/mailFolders/messageRules/MessageRulesResponse.java | 2 +- .../utilities/users/mailFolders/messages/MessagesResponse.java | 2 +- .../mailFolders/messages/attachments/AttachmentsResponse.java | 2 +- .../mailFolders/messages/extensions/ExtensionsResponse.java | 2 +- .../MultiValueExtendedPropertiesResponse.java | 2 +- .../SingleValueExtendedPropertiesResponse.java | 2 +- .../MultiValueExtendedPropertiesResponse.java | 2 +- .../SingleValueExtendedPropertiesResponse.java | 2 +- .../graphjavav4/utilities/users/messages/MessagesResponse.java | 2 +- .../users/messages/attachments/AttachmentsResponse.java | 2 +- .../utilities/users/messages/extensions/ExtensionsResponse.java | 2 +- .../MultiValueExtendedPropertiesResponse.java | 2 +- .../SingleValueExtendedPropertiesResponse.java | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java index fee3dac48..d20053b9a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/DateTimeTimeZone.java @@ -19,7 +19,7 @@ public class DateTimeTimeZone implements Parsable { * @return a void */ public DateTimeTimeZone() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java index bcc07c285..151739ffb 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/EmailAddress.java @@ -19,7 +19,7 @@ public class EmailAddress implements Parsable { * @return a void */ public EmailAddress() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java index 341751d7e..9642c8a52 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Entity.java @@ -17,7 +17,7 @@ public class Entity implements Parsable { * @return a void */ public Entity() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java index 65344a168..0145159c0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/FollowupFlag.java @@ -19,7 +19,7 @@ public class FollowupFlag implements Parsable { * @return a void */ public FollowupFlag() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java index 5d8c630d8..cbcff8ff7 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/InternetMessageHeader.java @@ -19,7 +19,7 @@ public class InternetMessageHeader implements Parsable { * @return a void */ public InternetMessageHeader() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java index e74f5b068..de78a6fb1 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/ItemBody.java @@ -18,7 +18,7 @@ public class ItemBody implements Parsable { * @return a void */ public ItemBody() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java index 0e8da3df8..dc3b046b1 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/Recipient.java @@ -16,7 +16,7 @@ public class Recipient implements Parsable { * @return a void */ public Recipient() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java index 7cba764a0..2fa670bd7 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesResponse.java @@ -19,7 +19,7 @@ public class OverridesResponse implements Parsable { * @return a void */ public OverridesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java index fc8a06178..885e368c2 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersResponse.java @@ -19,7 +19,7 @@ public class MailFoldersResponse implements Parsable { * @return a void */ public MailFoldersResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java index 736f14429..2ec603293 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRuleActions.java @@ -39,7 +39,7 @@ public class MessageRuleActions implements Parsable { * @return a void */ public MessageRuleActions() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java index 3e388dafd..c07a78871 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MessageRulePredicates.java @@ -74,7 +74,7 @@ public class MessageRulePredicates implements Parsable { * @return a void */ public MessageRulePredicates() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java index 19ccfb8fa..9f67f8c6a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/SizeRange.java @@ -19,7 +19,7 @@ public class SizeRange implements Parsable { * @return a void */ public SizeRange() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java index 6239acaed..94d043acd 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersResponse.java @@ -19,7 +19,7 @@ public class ChildFoldersResponse implements Parsable { * @return a void */ public ChildFoldersResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java index d27469be2..71e850575 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesResponse.java @@ -19,7 +19,7 @@ public class MessageRulesResponse implements Parsable { * @return a void */ public MessageRulesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java index 0acee192b..6934f3e6e 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesResponse.java @@ -19,7 +19,7 @@ public class MessagesResponse implements Parsable { * @return a void */ public MessagesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java index 3d0b1ac14..c98d68bde 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsResponse.java @@ -19,7 +19,7 @@ public class AttachmentsResponse implements Parsable { * @return a void */ public AttachmentsResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java index f4eb7d12d..c9ab2b1b6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsResponse.java @@ -19,7 +19,7 @@ public class ExtensionsResponse implements Parsable { * @return a void */ public ExtensionsResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index a7216ecef..73358015f 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -19,7 +19,7 @@ public class MultiValueExtendedPropertiesResponse implements Parsable { * @return a void */ public MultiValueExtendedPropertiesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index bf21f1ddf..f90044285 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -19,7 +19,7 @@ public class SingleValueExtendedPropertiesResponse implements Parsable { * @return a void */ public SingleValueExtendedPropertiesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index 4cc2a6361..aec5f7874 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -19,7 +19,7 @@ public class MultiValueExtendedPropertiesResponse implements Parsable { * @return a void */ public MultiValueExtendedPropertiesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index 5913721fe..035e65262 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -19,7 +19,7 @@ public class SingleValueExtendedPropertiesResponse implements Parsable { * @return a void */ public SingleValueExtendedPropertiesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java index 6f33e8fff..330f9e8b0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesResponse.java @@ -19,7 +19,7 @@ public class MessagesResponse implements Parsable { * @return a void */ public MessagesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java index 47127dcd2..675389ea4 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsResponse.java @@ -19,7 +19,7 @@ public class AttachmentsResponse implements Parsable { * @return a void */ public AttachmentsResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java index a6084ff09..e6703871f 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsResponse.java @@ -19,7 +19,7 @@ public class ExtensionsResponse implements Parsable { * @return a void */ public ExtensionsResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java index bbd839e8a..099145857 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesResponse.java @@ -19,7 +19,7 @@ public class MultiValueExtendedPropertiesResponse implements Parsable { * @return a void */ public MultiValueExtendedPropertiesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java index 1cc9e2c7f..0359a62c4 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesResponse.java @@ -19,7 +19,7 @@ public class SingleValueExtendedPropertiesResponse implements Parsable { * @return a void */ public SingleValueExtendedPropertiesResponse() { - this._additionalData = new HashMap<>(); + this.setAdditionalData(new HashMap<>()); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. From 7928fa4bf8c1193c452d382d4068fe1fffe852d4 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 16 Jun 2021 13:48:48 -0400 Subject: [PATCH 09/11] - code-gen: switches to constructors in dotnet for default values --- msgraph-mail/dotnet/ApiClient.cs | 8 +++++++- msgraph-mail/dotnet/Users/Attachment.cs | 2 +- msgraph-mail/dotnet/Users/DateTimeTimeZone.cs | 10 ++++++++-- msgraph-mail/dotnet/Users/EmailAddress.cs | 10 ++++++++-- msgraph-mail/dotnet/Users/Entity.cs | 10 ++++++++-- msgraph-mail/dotnet/Users/Extension.cs | 2 +- msgraph-mail/dotnet/Users/FollowupFlag.cs | 10 ++++++++-- .../InferenceClassification/InferenceClassification.cs | 2 +- .../InferenceClassificationOverride.cs | 2 +- .../InferenceClassificationRequestBuilder.cs | 8 +++++++- .../InferenceClassificationOverrideRequestBuilder.cs | 8 +++++++- .../Overrides/OverridesRequestBuilder.cs | 8 +++++++- .../Overrides/OverridesResponse.cs | 10 ++++++++-- msgraph-mail/dotnet/Users/InternetMessageHeader.cs | 10 ++++++++-- msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs | 8 +++++++- msgraph-mail/dotnet/Users/ItemBody.cs | 10 ++++++++-- msgraph-mail/dotnet/Users/MailFolder.cs | 2 +- .../ChildFolders/ChildFoldersRequestBuilder.cs | 8 +++++++- .../MailFolders/ChildFolders/ChildFoldersResponse.cs | 10 ++++++++-- .../ChildFolders/Item/MailFolderRequestBuilder.cs | 8 +++++++- .../Users/MailFolders/Item/MailFolderRequestBuilder.cs | 8 +++++++- .../Users/MailFolders/MailFoldersRequestBuilder.cs | 8 +++++++- .../dotnet/Users/MailFolders/MailFoldersResponse.cs | 10 ++++++++-- .../dotnet/Users/MailFolders/MessageRuleActions.cs | 10 ++++++++-- .../dotnet/Users/MailFolders/MessageRulePredicates.cs | 10 ++++++++-- .../MessageRules/Item/MessageRuleRequestBuilder.cs | 8 +++++++- .../MessageRules/MessageRulesRequestBuilder.cs | 8 +++++++- .../MailFolders/MessageRules/MessageRulesResponse.cs | 10 ++++++++-- .../Messages/Attachments/AttachmentsRequestBuilder.cs | 8 +++++++- .../Messages/Attachments/AttachmentsResponse.cs | 10 ++++++++-- .../Attachments/Item/AttachmentRequestBuilder.cs | 8 +++++++- .../Messages/Content/ContentRequestBuilder.cs | 8 +++++++- .../Messages/Extensions/ExtensionsRequestBuilder.cs | 8 +++++++- .../Messages/Extensions/ExtensionsResponse.cs | 10 ++++++++-- .../Extensions/Item/ExtensionRequestBuilder.cs | 8 +++++++- .../MailFolders/Messages/Item/MessageRequestBuilder.cs | 8 +++++++- .../MailFolders/Messages/MessagesRequestBuilder.cs | 8 +++++++- .../Users/MailFolders/Messages/MessagesResponse.cs | 10 ++++++++-- .../MultiValueLegacyExtendedPropertyRequestBuilder.cs | 8 +++++++- .../MultiValueExtendedPropertiesRequestBuilder.cs | 8 +++++++- .../MultiValueExtendedPropertiesResponse.cs | 10 ++++++++-- .../SingleValueLegacyExtendedPropertyRequestBuilder.cs | 8 +++++++- .../SingleValueExtendedPropertiesRequestBuilder.cs | 8 +++++++- .../SingleValueExtendedPropertiesResponse.cs | 10 ++++++++-- .../MultiValueLegacyExtendedPropertyRequestBuilder.cs | 8 +++++++- .../MultiValueExtendedPropertiesRequestBuilder.cs | 8 +++++++- .../MultiValueExtendedPropertiesResponse.cs | 10 ++++++++-- .../SingleValueLegacyExtendedPropertyRequestBuilder.cs | 8 +++++++- .../SingleValueExtendedPropertiesRequestBuilder.cs | 8 +++++++- .../SingleValueExtendedPropertiesResponse.cs | 10 ++++++++-- msgraph-mail/dotnet/Users/MailFolders/SizeRange.cs | 10 ++++++++-- msgraph-mail/dotnet/Users/Message.cs | 2 +- msgraph-mail/dotnet/Users/MessageRule.cs | 2 +- .../Messages/Attachments/AttachmentsRequestBuilder.cs | 8 +++++++- .../Users/Messages/Attachments/AttachmentsResponse.cs | 10 ++++++++-- .../Attachments/Item/AttachmentRequestBuilder.cs | 8 +++++++- .../Users/Messages/Content/ContentRequestBuilder.cs | 8 +++++++- .../Messages/Extensions/ExtensionsRequestBuilder.cs | 8 +++++++- .../Users/Messages/Extensions/ExtensionsResponse.cs | 10 ++++++++-- .../Extensions/Item/ExtensionRequestBuilder.cs | 8 +++++++- .../Users/Messages/Item/MessageRequestBuilder.cs | 8 +++++++- .../dotnet/Users/Messages/MessagesRequestBuilder.cs | 8 +++++++- msgraph-mail/dotnet/Users/Messages/MessagesResponse.cs | 10 ++++++++-- .../MultiValueLegacyExtendedPropertyRequestBuilder.cs | 8 +++++++- .../MultiValueExtendedPropertiesRequestBuilder.cs | 8 +++++++- .../MultiValueExtendedPropertiesResponse.cs | 10 ++++++++-- .../SingleValueLegacyExtendedPropertyRequestBuilder.cs | 8 +++++++- .../SingleValueExtendedPropertiesRequestBuilder.cs | 8 +++++++- .../SingleValueExtendedPropertiesResponse.cs | 10 ++++++++-- .../dotnet/Users/MultiValueLegacyExtendedProperty.cs | 2 +- msgraph-mail/dotnet/Users/OutlookItem.cs | 2 +- msgraph-mail/dotnet/Users/Recipient.cs | 10 ++++++++-- .../dotnet/Users/SingleValueLegacyExtendedProperty.cs | 2 +- msgraph-mail/dotnet/Users/UsersRequestBuilder.cs | 8 +++++++- 74 files changed, 484 insertions(+), 100 deletions(-) diff --git a/msgraph-mail/dotnet/ApiClient.cs b/msgraph-mail/dotnet/ApiClient.cs index cd9875550..1e6e9be3f 100644 --- a/msgraph-mail/dotnet/ApiClient.cs +++ b/msgraph-mail/dotnet/ApiClient.cs @@ -14,11 +14,17 @@ public class ApiClient { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "https://graph.microsoft.com/v1.0"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } public UsersRequestBuilder Users { get => new UsersRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } + /// + /// Instantiates a new ApiClient and sets the default values. + /// + public ApiClient() { + PathSegment = "https://graph.microsoft.com/v1.0"; + } } } diff --git a/msgraph-mail/dotnet/Users/Attachment.cs b/msgraph-mail/dotnet/Users/Attachment.cs index c9fb9800d..1117b3841 100644 --- a/msgraph-mail/dotnet/Users/Attachment.cs +++ b/msgraph-mail/dotnet/Users/Attachment.cs @@ -27,7 +27,7 @@ public class Attachment : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/DateTimeTimeZone.cs b/msgraph-mail/dotnet/Users/DateTimeTimeZone.cs index 6b5594cea..1f5ed107a 100644 --- a/msgraph-mail/dotnet/Users/DateTimeTimeZone.cs +++ b/msgraph-mail/dotnet/Users/DateTimeTimeZone.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users { public class DateTimeTimeZone : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. public string DateTime { get; set; } /// Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. public string TimeZone { get; set; } /// + /// Instantiates a new dateTimeTimeZone and sets the default values. + /// + public DateTimeTimeZone() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -20,7 +26,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/EmailAddress.cs b/msgraph-mail/dotnet/Users/EmailAddress.cs index 8247e6d9b..edceb5c2d 100644 --- a/msgraph-mail/dotnet/Users/EmailAddress.cs +++ b/msgraph-mail/dotnet/Users/EmailAddress.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users { public class EmailAddress : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// The email address of an entity instance. public string Address { get; set; } /// The display name of an entity instance. public string Name { get; set; } /// + /// Instantiates a new emailAddress and sets the default values. + /// + public EmailAddress() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -20,7 +26,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Entity.cs b/msgraph-mail/dotnet/Users/Entity.cs index 3ef2a65cb..b1e0882c8 100644 --- a/msgraph-mail/dotnet/Users/Entity.cs +++ b/msgraph-mail/dotnet/Users/Entity.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users { public class Entity : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// Read-only. public string Id { get; set; } /// + /// Instantiates a new entity and sets the default values. + /// + public Entity() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -17,7 +23,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Extension.cs b/msgraph-mail/dotnet/Users/Extension.cs index 66d1e4a93..ad50e8403 100644 --- a/msgraph-mail/dotnet/Users/Extension.cs +++ b/msgraph-mail/dotnet/Users/Extension.cs @@ -12,7 +12,7 @@ public class Extension : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/FollowupFlag.cs b/msgraph-mail/dotnet/Users/FollowupFlag.cs index c45815059..58de4551c 100644 --- a/msgraph-mail/dotnet/Users/FollowupFlag.cs +++ b/msgraph-mail/dotnet/Users/FollowupFlag.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users { public class FollowupFlag : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public DateTimeTimeZone CompletedDateTime { get; set; } public DateTimeTimeZone DueDateTime { get; set; } public FollowupFlagStatus? FlagStatus { get; set; } public DateTimeTimeZone StartDateTime { get; set; } /// + /// Instantiates a new followupFlag and sets the default values. + /// + public FollowupFlag() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -22,7 +28,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassification.cs b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassification.cs index 9fcab3ef6..9e8cd38e2 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassification.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassification.cs @@ -15,7 +15,7 @@ public class InferenceClassification : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationOverride.cs b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationOverride.cs index d847fe5d3..6ac26d726 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationOverride.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationOverride.cs @@ -16,7 +16,7 @@ public class InferenceClassificationOverride : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs index 0e0e84269..5954539ff 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs @@ -17,10 +17,16 @@ public class InferenceClassificationRequestBuilder { new OverridesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/inferenceClassification"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new InferenceClassificationRequestBuilder and sets the default values. + /// + public InferenceClassificationRequestBuilder() { + PathSegment = "/inferenceClassification"; + } + /// /// Delete navigation property inferenceClassification for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/Item/InferenceClassificationOverrideRequestBuilder.cs b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/Item/InferenceClassificationOverrideRequestBuilder.cs index 87b5fd00e..52793778b 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/Item/InferenceClassificationOverrideRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/Item/InferenceClassificationOverrideRequestBuilder.cs @@ -13,10 +13,16 @@ public class InferenceClassificationOverrideRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new InferenceClassificationOverrideRequestBuilder and sets the default values. + /// + public InferenceClassificationOverrideRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property overrides for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs index 5ccf0f2ac..9a7c5daa2 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs @@ -14,7 +14,7 @@ public class OverridesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/overrides"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.inferenceClassification.overrides collection @@ -22,6 +22,12 @@ public InferenceClassificationOverrideRequestBuilder this[string position] { get return new InferenceClassificationOverrideRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new OverridesRequestBuilder and sets the default values. + /// + public OverridesRequestBuilder() { + PathSegment = "/overrides"; + } + /// /// Get overrides from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesResponse.cs b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesResponse.cs index 157dd01f1..e250406de 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesResponse.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.InferenceClassification.Overrides { public class OverridesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new OverridesResponse and sets the default values. + /// + public OverridesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/InternetMessageHeader.cs b/msgraph-mail/dotnet/Users/InternetMessageHeader.cs index f2722f905..e818da654 100644 --- a/msgraph-mail/dotnet/Users/InternetMessageHeader.cs +++ b/msgraph-mail/dotnet/Users/InternetMessageHeader.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users { public class InternetMessageHeader : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// Represents the key in a key-value pair. public string Name { get; set; } /// The value in a key-value pair. public string Value { get; set; } /// + /// Instantiates a new internetMessageHeader and sets the default values. + /// + public InternetMessageHeader() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -20,7 +26,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs index c20468475..27da6b50f 100644 --- a/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs @@ -25,8 +25,14 @@ public class UserRequestBuilder { new MessagesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } + /// + /// Instantiates a new UserRequestBuilder and sets the default values. + /// + public UserRequestBuilder() { + PathSegment = ""; + } } } diff --git a/msgraph-mail/dotnet/Users/ItemBody.cs b/msgraph-mail/dotnet/Users/ItemBody.cs index a7378f75f..8643bd923 100644 --- a/msgraph-mail/dotnet/Users/ItemBody.cs +++ b/msgraph-mail/dotnet/Users/ItemBody.cs @@ -5,11 +5,17 @@ namespace Graphdotnetv4.Users { public class ItemBody : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// The content of the item. public string Content { get; set; } public BodyType? ContentType { get; set; } /// + /// Instantiates a new itemBody and sets the default values. + /// + public ItemBody() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -19,7 +25,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolder.cs b/msgraph-mail/dotnet/Users/MailFolder.cs index a1d6e1847..9331aa239 100644 --- a/msgraph-mail/dotnet/Users/MailFolder.cs +++ b/msgraph-mail/dotnet/Users/MailFolder.cs @@ -45,7 +45,7 @@ public class MailFolder : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs index 06793890e..15ca1e3c2 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs @@ -14,7 +14,7 @@ public class ChildFoldersRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/childFolders"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.childFolders collection @@ -22,6 +22,12 @@ public MailFolderRequestBuilder this[string position] { get { return new MailFolderRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new ChildFoldersRequestBuilder and sets the default values. + /// + public ChildFoldersRequestBuilder() { + PathSegment = "/childFolders"; + } + /// /// Get childFolders from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersResponse.cs index 55d7c55cf..eba1b35ab 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.ChildFolders { public class ChildFoldersResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new ChildFoldersResponse and sets the default values. + /// + public ChildFoldersResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/Item/MailFolderRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/Item/MailFolderRequestBuilder.cs index e41b99b20..4772aafd5 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/Item/MailFolderRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/Item/MailFolderRequestBuilder.cs @@ -13,10 +13,16 @@ public class MailFolderRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MailFolderRequestBuilder and sets the default values. + /// + public MailFolderRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property childFolders for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs index f22d8d1a8..43afc272b 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs @@ -30,13 +30,19 @@ public class MailFolderRequestBuilder { new MultiValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } public SingleValueExtendedPropertiesRequestBuilder SingleValueExtendedProperties { get => new SingleValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// + /// Instantiates a new MailFolderRequestBuilder and sets the default values. + /// + public MailFolderRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property mailFolders for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs index 333b9b7fe..dfaa5776f 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs @@ -14,7 +14,7 @@ public class MailFoldersRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/mailFolders"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders collection @@ -22,6 +22,12 @@ public MailFolderRequestBuilder this[string position] { get { return new MailFolderRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MailFoldersRequestBuilder and sets the default values. + /// + public MailFoldersRequestBuilder() { + PathSegment = "/mailFolders"; + } + /// /// Get mailFolders from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersResponse.cs index 0b3bca1e8..759cfdbca 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders { public class MailFoldersResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MailFoldersResponse and sets the default values. + /// + public MailFoldersResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRuleActions.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRuleActions.cs index 8b0db245c..d7f8f7856 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRuleActions.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRuleActions.cs @@ -5,7 +5,7 @@ namespace Graphdotnetv4.Users.MailFolders { public class MessageRuleActions : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// A list of categories to be assigned to a message. public List AssignCategories { get; set; } /// The ID of a folder that a message is to be copied to. @@ -28,6 +28,12 @@ public class MessageRuleActions : IParsable { /// Indicates whether subsequent rules should be evaluated. public bool? StopProcessingRules { get; set; } /// + /// Instantiates a new messageRuleActions and sets the default values. + /// + public MessageRuleActions() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -46,7 +52,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRulePredicates.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRulePredicates.cs index f2c017082..388b78b2c 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRulePredicates.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRulePredicates.cs @@ -5,7 +5,7 @@ namespace Graphdotnetv4.Users.MailFolders { public class MessageRulePredicates : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply. public List BodyContains { get; set; } /// Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply. @@ -63,6 +63,12 @@ public class MessageRulePredicates : IParsable { public List SubjectContains { get; set; } public SizeRange WithinSizeRange { get; set; } /// + /// Instantiates a new messageRulePredicates and sets the default values. + /// + public MessageRulePredicates() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -100,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/Item/MessageRuleRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/Item/MessageRuleRequestBuilder.cs index dcc5b9636..3ad698e8a 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/Item/MessageRuleRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/Item/MessageRuleRequestBuilder.cs @@ -13,10 +13,16 @@ public class MessageRuleRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MessageRuleRequestBuilder and sets the default values. + /// + public MessageRuleRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property messageRules for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs index 9ad1bd425..65627d9c4 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs @@ -14,7 +14,7 @@ public class MessageRulesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/messageRules"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messageRules collection @@ -22,6 +22,12 @@ public MessageRuleRequestBuilder this[string position] { get { return new MessageRuleRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MessageRulesRequestBuilder and sets the default values. + /// + public MessageRulesRequestBuilder() { + PathSegment = "/messageRules"; + } + /// /// Get messageRules from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesResponse.cs index e67cbbe35..780c1e1fb 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.MessageRules { public class MessageRulesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MessageRulesResponse and sets the default values. + /// + public MessageRulesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs index 978f983a9..cccdc251a 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs @@ -14,7 +14,7 @@ public class AttachmentsRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/attachments"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages.attachments collection @@ -22,6 +22,12 @@ public AttachmentRequestBuilder this[string position] { get { return new AttachmentRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new AttachmentsRequestBuilder and sets the default values. + /// + public AttachmentsRequestBuilder() { + PathSegment = "/attachments"; + } + /// /// Get attachments from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsResponse.cs index 906aa452a..7f7805f77 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments { public class AttachmentsResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new AttachmentsResponse and sets the default values. + /// + public AttachmentsResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/Item/AttachmentRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/Item/AttachmentRequestBuilder.cs index 3dd28680d..b5308fc63 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/Item/AttachmentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/Item/AttachmentRequestBuilder.cs @@ -13,10 +13,16 @@ public class AttachmentRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new AttachmentRequestBuilder and sets the default values. + /// + public AttachmentRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property attachments for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Content/ContentRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Content/ContentRequestBuilder.cs index fb669fbb3..8dbdc6ee5 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Content/ContentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Content/ContentRequestBuilder.cs @@ -13,10 +13,16 @@ public class ContentRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/$value"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + public ContentRequestBuilder() { + PathSegment = "/$value"; + } + /// /// Get media content for the navigation property messages from users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs index 053898c8d..3be1b5e9d 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs @@ -14,7 +14,7 @@ public class ExtensionsRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/extensions"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages.extensions collection @@ -22,6 +22,12 @@ public ExtensionRequestBuilder this[string position] { get { return new ExtensionRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new ExtensionsRequestBuilder and sets the default values. + /// + public ExtensionsRequestBuilder() { + PathSegment = "/extensions"; + } + /// /// Get extensions from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsResponse.cs index 6a3756fda..35fe8677a 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions { public class ExtensionsResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new ExtensionsResponse and sets the default values. + /// + public ExtensionsResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/Item/ExtensionRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/Item/ExtensionRequestBuilder.cs index d6ee348d1..bf40f8ac4 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/Item/ExtensionRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/Item/ExtensionRequestBuilder.cs @@ -13,10 +13,16 @@ public class ExtensionRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new ExtensionRequestBuilder and sets the default values. + /// + public ExtensionRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property extensions for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs index 871f243b4..e943160a5 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs @@ -30,13 +30,19 @@ public class MessageRequestBuilder { new MultiValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } public SingleValueExtendedPropertiesRequestBuilder SingleValueExtendedProperties { get => new SingleValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// + /// Instantiates a new MessageRequestBuilder and sets the default values. + /// + public MessageRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property messages for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs index e57535853..9eb672fd3 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs @@ -14,7 +14,7 @@ public class MessagesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/messages"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages collection @@ -22,6 +22,12 @@ public MessageRequestBuilder this[string position] { get { return new MessageRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MessagesRequestBuilder and sets the default values. + /// + public MessagesRequestBuilder() { + PathSegment = "/messages"; + } + /// /// Get messages from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesResponse.cs index 3ef53fcb3..b9c109130 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages { public class MessagesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MessagesResponse and sets the default values. + /// + public MessagesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs index f72a3f1b9..6db1f07ac 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public MultiValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property multiValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs index 04d9b548f..ad4632752 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs @@ -14,7 +14,7 @@ public class MultiValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/multiValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages.multiValueExtendedProperties collection @@ -22,6 +22,12 @@ public MultiValueLegacyExtendedPropertyRequestBuilder this[string position] { ge return new MultiValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public MultiValueExtendedPropertiesRequestBuilder() { + PathSegment = "/multiValueExtendedProperties"; + } + /// /// Get multiValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs index d7eed6332..0375cdd6c 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties { public class MultiValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + /// + public MultiValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs index 0abd625be..9bef2ceaa 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public SingleValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property singleValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs index 9beceb451..4ed1f37c9 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs @@ -14,7 +14,7 @@ public class SingleValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/singleValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.messages.singleValueExtendedProperties collection @@ -22,6 +22,12 @@ public SingleValueLegacyExtendedPropertyRequestBuilder this[string position] { g return new SingleValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public SingleValueExtendedPropertiesRequestBuilder() { + PathSegment = "/singleValueExtendedProperties"; + } + /// /// Get singleValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs index 0c11ff073..26413854a 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties { public class SingleValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + /// + public SingleValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs index e7fe65b11..d1e3521b6 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public MultiValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property multiValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs index 4e9c51dca..977a00412 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs @@ -14,7 +14,7 @@ public class MultiValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/multiValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.multiValueExtendedProperties collection @@ -22,6 +22,12 @@ public MultiValueLegacyExtendedPropertyRequestBuilder this[string position] { ge return new MultiValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public MultiValueExtendedPropertiesRequestBuilder() { + PathSegment = "/multiValueExtendedProperties"; + } + /// /// Get multiValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs index 4c26fb4a1..ac1a55d41 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties { public class MultiValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + /// + public MultiValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs index 6f9a254aa..c4c13b4d5 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public SingleValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property singleValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs index 310d84bd1..f1b0cc9d0 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs @@ -14,7 +14,7 @@ public class SingleValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/singleValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.mailFolders.singleValueExtendedProperties collection @@ -22,6 +22,12 @@ public SingleValueLegacyExtendedPropertyRequestBuilder this[string position] { g return new SingleValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public SingleValueExtendedPropertiesRequestBuilder() { + PathSegment = "/singleValueExtendedProperties"; + } + /// /// Get singleValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs index e0b2edf7e..b3caf2e55 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties { public class SingleValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + /// + public SingleValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MailFolders/SizeRange.cs b/msgraph-mail/dotnet/Users/MailFolders/SizeRange.cs index b8004f13c..1373f56fe 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/SizeRange.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/SizeRange.cs @@ -5,12 +5,18 @@ namespace Graphdotnetv4.Users.MailFolders { public class SizeRange : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } /// The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. public int? MaximumSize { get; set; } /// The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. public int? MinimumSize { get; set; } /// + /// Instantiates a new sizeRange and sets the default values. + /// + public SizeRange() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -20,7 +26,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Message.cs b/msgraph-mail/dotnet/Users/Message.cs index 88db3103d..f7a6fb8a4 100644 --- a/msgraph-mail/dotnet/Users/Message.cs +++ b/msgraph-mail/dotnet/Users/Message.cs @@ -95,7 +95,7 @@ public class Message : OutlookItem, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MessageRule.cs b/msgraph-mail/dotnet/Users/MessageRule.cs index 7d4cf0fad..35df498a0 100644 --- a/msgraph-mail/dotnet/Users/MessageRule.cs +++ b/msgraph-mail/dotnet/Users/MessageRule.cs @@ -34,7 +34,7 @@ public class MessageRule : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs index 5cc29bfcd..a3f4c262d 100644 --- a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs @@ -14,7 +14,7 @@ public class AttachmentsRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/attachments"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages.attachments collection @@ -22,6 +22,12 @@ public AttachmentRequestBuilder this[string position] { get { return new AttachmentRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new AttachmentsRequestBuilder and sets the default values. + /// + public AttachmentsRequestBuilder() { + PathSegment = "/attachments"; + } + /// /// Get attachments from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsResponse.cs b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsResponse.cs index 2c63e4d87..403844277 100644 --- a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages.Attachments { public class AttachmentsResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new AttachmentsResponse and sets the default values. + /// + public AttachmentsResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/Attachments/Item/AttachmentRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Attachments/Item/AttachmentRequestBuilder.cs index d3326eafd..3c0c370aa 100644 --- a/msgraph-mail/dotnet/Users/Messages/Attachments/Item/AttachmentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Attachments/Item/AttachmentRequestBuilder.cs @@ -13,10 +13,16 @@ public class AttachmentRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new AttachmentRequestBuilder and sets the default values. + /// + public AttachmentRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property attachments for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/Content/ContentRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Content/ContentRequestBuilder.cs index 8f61abcf2..b9a92e67e 100644 --- a/msgraph-mail/dotnet/Users/Messages/Content/ContentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Content/ContentRequestBuilder.cs @@ -13,10 +13,16 @@ public class ContentRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/$value"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new ContentRequestBuilder and sets the default values. + /// + public ContentRequestBuilder() { + PathSegment = "/$value"; + } + /// /// Get media content for the navigation property messages from users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs index 89831d9db..807296563 100644 --- a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs @@ -14,7 +14,7 @@ public class ExtensionsRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/extensions"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages.extensions collection @@ -22,6 +22,12 @@ public ExtensionRequestBuilder this[string position] { get { return new ExtensionRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new ExtensionsRequestBuilder and sets the default values. + /// + public ExtensionsRequestBuilder() { + PathSegment = "/extensions"; + } + /// /// Get extensions from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsResponse.cs b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsResponse.cs index 994652b1b..0651ae654 100644 --- a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages.Extensions { public class ExtensionsResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new ExtensionsResponse and sets the default values. + /// + public ExtensionsResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/Extensions/Item/ExtensionRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Extensions/Item/ExtensionRequestBuilder.cs index 79be926af..5f5025ffb 100644 --- a/msgraph-mail/dotnet/Users/Messages/Extensions/Item/ExtensionRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Extensions/Item/ExtensionRequestBuilder.cs @@ -13,10 +13,16 @@ public class ExtensionRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new ExtensionRequestBuilder and sets the default values. + /// + public ExtensionRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property extensions for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs index 058b64dae..60eeb8fa9 100644 --- a/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs @@ -30,13 +30,19 @@ public class MessageRequestBuilder { new MultiValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } public SingleValueExtendedPropertiesRequestBuilder SingleValueExtendedProperties { get => new SingleValueExtendedPropertiesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment }; } /// + /// Instantiates a new MessageRequestBuilder and sets the default values. + /// + public MessageRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property messages for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs index 87dbe5a17..184c16a3a 100644 --- a/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs @@ -14,7 +14,7 @@ public class MessagesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/messages"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages collection @@ -22,6 +22,12 @@ public MessageRequestBuilder this[string position] { get { return new MessageRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MessagesRequestBuilder and sets the default values. + /// + public MessagesRequestBuilder() { + PathSegment = "/messages"; + } + /// /// Get messages from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/MessagesResponse.cs b/msgraph-mail/dotnet/Users/Messages/MessagesResponse.cs index ee6a95ef4..94bc5af43 100644 --- a/msgraph-mail/dotnet/Users/Messages/MessagesResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/MessagesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages { public class MessagesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MessagesResponse and sets the default values. + /// + public MessagesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs index 84a4c6836..017b4c7fe 100644 --- a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class MultiValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new MultiValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public MultiValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property multiValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs index 0de2ee2e0..1590c6443 100644 --- a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs @@ -14,7 +14,7 @@ public class MultiValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/multiValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages.multiValueExtendedProperties collection @@ -22,6 +22,12 @@ public MultiValueLegacyExtendedPropertyRequestBuilder this[string position] { ge return new MultiValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public MultiValueExtendedPropertiesRequestBuilder() { + PathSegment = "/multiValueExtendedProperties"; + } + /// /// Get multiValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs index d6e856275..f990faba0 100644 --- a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties { public class MultiValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new MultiValueExtendedPropertiesResponse and sets the default values. + /// + public MultiValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs index 72b0017c1..acf80bf6a 100644 --- a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyRequestBuilder.cs @@ -13,10 +13,16 @@ public class SingleValueLegacyExtendedPropertyRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = ""; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// + /// Instantiates a new SingleValueLegacyExtendedPropertyRequestBuilder and sets the default values. + /// + public SingleValueLegacyExtendedPropertyRequestBuilder() { + PathSegment = ""; + } + /// /// Delete navigation property singleValueExtendedProperties for users /// Request headers /// diff --git a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs index 0ff28321c..b10d93fab 100644 --- a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs @@ -14,7 +14,7 @@ public class SingleValueExtendedPropertiesRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/singleValueExtendedProperties"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users.messages.singleValueExtendedProperties collection @@ -22,6 +22,12 @@ public SingleValueLegacyExtendedPropertyRequestBuilder this[string position] { g return new SingleValueLegacyExtendedPropertyRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } /// + /// Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values. + /// + public SingleValueExtendedPropertiesRequestBuilder() { + PathSegment = "/singleValueExtendedProperties"; + } + /// /// Get singleValueExtendedProperties from users /// Request headers /// Request query parameters diff --git a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs index 278c32d15..f9b4e0017 100644 --- a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs +++ b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesResponse.cs @@ -5,10 +5,16 @@ namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties { public class SingleValueExtendedPropertiesResponse : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public string NextLink { get; set; } public List Value { get; set; } /// + /// Instantiates a new SingleValueExtendedPropertiesResponse and sets the default values. + /// + public SingleValueExtendedPropertiesResponse() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -18,7 +24,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/MultiValueLegacyExtendedProperty.cs b/msgraph-mail/dotnet/Users/MultiValueLegacyExtendedProperty.cs index 6697453c2..9bf05d2a8 100644 --- a/msgraph-mail/dotnet/Users/MultiValueLegacyExtendedProperty.cs +++ b/msgraph-mail/dotnet/Users/MultiValueLegacyExtendedProperty.cs @@ -15,7 +15,7 @@ public class MultiValueLegacyExtendedProperty : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/OutlookItem.cs b/msgraph-mail/dotnet/Users/OutlookItem.cs index 63ea6a68f..81c167a3a 100644 --- a/msgraph-mail/dotnet/Users/OutlookItem.cs +++ b/msgraph-mail/dotnet/Users/OutlookItem.cs @@ -24,7 +24,7 @@ public class OutlookItem : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/Recipient.cs b/msgraph-mail/dotnet/Users/Recipient.cs index 50aeda177..bc143b585 100644 --- a/msgraph-mail/dotnet/Users/Recipient.cs +++ b/msgraph-mail/dotnet/Users/Recipient.cs @@ -5,9 +5,15 @@ namespace Graphdotnetv4.Users { public class Recipient : IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; private set; } = new Dictionary(); + public IDictionary AdditionalData { get; set; } public EmailAddress EmailAddress { get; set; } /// + /// Instantiates a new recipient and sets the default values. + /// + public Recipient() { + AdditionalData = new Dictionary(); + } + /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { @@ -16,7 +22,7 @@ public IDictionary> GetFieldDeserializers() { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/SingleValueLegacyExtendedProperty.cs b/msgraph-mail/dotnet/Users/SingleValueLegacyExtendedProperty.cs index 33ea986ee..b85737112 100644 --- a/msgraph-mail/dotnet/Users/SingleValueLegacyExtendedProperty.cs +++ b/msgraph-mail/dotnet/Users/SingleValueLegacyExtendedProperty.cs @@ -15,7 +15,7 @@ public class SingleValueLegacyExtendedProperty : Entity, IParsable { }; } /// - /// Serialiazes information the current object + /// Serializes information the current object /// Serialization writer to use to serialize this model /// public new void Serialize(ISerializationWriter writer) { diff --git a/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs b/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs index e8fa72527..948f5c665 100644 --- a/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs @@ -14,12 +14,18 @@ public class UsersRequestBuilder { /// Core service to use to execute the requests public IHttpCore HttpCore { get; set; } /// Path segment to use to build the URL for the current request builder - private string PathSegment { get; set; } = "/users"; + private string PathSegment { get; set; } /// Factory to use to get a serializer for payload serialization public ISerializationWriterFactory SerializerFactory { get; set; } /// Gets an item from the Graphdotnetv4.users collection public UserRequestBuilder this[string position] { get { return new UserRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position}; } } + /// + /// Instantiates a new UsersRequestBuilder and sets the default values. + /// + public UsersRequestBuilder() { + PathSegment = "/users"; + } } } From 01451edeab6b294b6d4de7128ebf99e4c0ed6516 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 16 Jun 2021 14:40:41 -0400 Subject: [PATCH 10/11] - code-gen: CSharp namespace ordering --- msgraph-mail/dotnet/ApiClient.cs | 2 +- .../InferenceClassificationRequestBuilder.cs | 2 +- .../Overrides/OverridesRequestBuilder.cs | 2 +- msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs | 6 +++--- .../ChildFolders/ChildFoldersRequestBuilder.cs | 2 +- .../Users/MailFolders/Item/MailFolderRequestBuilder.cs | 10 +++++----- .../Users/MailFolders/MailFoldersRequestBuilder.cs | 2 +- .../MessageRules/MessageRulesRequestBuilder.cs | 2 +- .../Messages/Attachments/AttachmentsRequestBuilder.cs | 2 +- .../Messages/Extensions/ExtensionsRequestBuilder.cs | 2 +- .../MailFolders/Messages/Item/MessageRequestBuilder.cs | 10 +++++----- .../MailFolders/Messages/MessagesRequestBuilder.cs | 2 +- .../MultiValueExtendedPropertiesRequestBuilder.cs | 2 +- .../SingleValueExtendedPropertiesRequestBuilder.cs | 2 +- .../MultiValueExtendedPropertiesRequestBuilder.cs | 2 +- .../SingleValueExtendedPropertiesRequestBuilder.cs | 2 +- msgraph-mail/dotnet/Users/MessageRule.cs | 2 +- .../Messages/Attachments/AttachmentsRequestBuilder.cs | 2 +- .../Messages/Extensions/ExtensionsRequestBuilder.cs | 2 +- .../Users/Messages/Item/MessageRequestBuilder.cs | 10 +++++----- .../dotnet/Users/Messages/MessagesRequestBuilder.cs | 2 +- .../MultiValueExtendedPropertiesRequestBuilder.cs | 2 +- .../SingleValueExtendedPropertiesRequestBuilder.cs | 2 +- msgraph-mail/dotnet/Users/UsersRequestBuilder.cs | 2 +- 24 files changed, 38 insertions(+), 38 deletions(-) diff --git a/msgraph-mail/dotnet/ApiClient.cs b/msgraph-mail/dotnet/ApiClient.cs index 1e6e9be3f..291fb2d69 100644 --- a/msgraph-mail/dotnet/ApiClient.cs +++ b/msgraph-mail/dotnet/ApiClient.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users; namespace Graphdotnetv4 { /// The main entry point of the SDK, exposes the configuration and the fluent API. public class ApiClient { diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs index 5954539ff..fb70b6b83 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/InferenceClassificationRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.InferenceClassification.Overrides; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.InferenceClassification.Overrides; namespace Graphdotnetv4.Users.InferenceClassification { /// Builds and executes requests for operations under \users\{user-id}\inferenceClassification public class InferenceClassificationRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs index 9a7c5daa2..a87e0554f 100644 --- a/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/InferenceClassification/Overrides/OverridesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.InferenceClassification.Overrides.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.InferenceClassification.Overrides.Item; namespace Graphdotnetv4.Users.InferenceClassification.Overrides { /// Builds and executes requests for operations under \users\{user-id}\inferenceClassification\overrides public class OverridesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs index 27da6b50f..037da7cf8 100644 --- a/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs @@ -1,3 +1,6 @@ +using Graphdotnetv4.Users.InferenceClassification; +using Graphdotnetv4.Users.MailFolders; +using Graphdotnetv4.Users.Messages; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,9 +8,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.InferenceClassification; -using Graphdotnetv4.Users.MailFolders; -using Graphdotnetv4.Users.Messages; namespace Graphdotnetv4.Users.Item { /// Builds and executes requests for operations under \users\{user-id} public class UserRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs index 15ca1e3c2..be8cc2845 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/ChildFolders/ChildFoldersRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.ChildFolders.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.ChildFolders.Item; namespace Graphdotnetv4.Users.MailFolders.ChildFolders { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders public class ChildFoldersRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs index 43afc272b..f0bd18d1b 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Item/MailFolderRequestBuilder.cs @@ -1,3 +1,8 @@ +using Graphdotnetv4.Users.MailFolders.ChildFolders; +using Graphdotnetv4.Users.MailFolders.MessageRules; +using Graphdotnetv4.Users.MailFolders.Messages; +using Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties; +using Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,11 +10,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.ChildFolders; -using Graphdotnetv4.Users.MailFolders.MessageRules; -using Graphdotnetv4.Users.MailFolders.Messages; -using Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties; -using Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties; namespace Graphdotnetv4.Users.MailFolders.Item { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id} public class MailFolderRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs index dfaa5776f..99c47eebb 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MailFoldersRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Item; namespace Graphdotnetv4.Users.MailFolders { /// Builds and executes requests for operations under \users\{user-id}\mailFolders public class MailFoldersRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs index 65627d9c4..3ab3f5e3b 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MessageRules/MessageRulesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.MessageRules.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.MessageRules.Item; namespace Graphdotnetv4.Users.MailFolders.MessageRules { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messageRules public class MessageRulesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs index cccdc251a..705b3cdd4 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Attachments/AttachmentsRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.Attachments.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.Attachments.Item; namespace Graphdotnetv4.Users.MailFolders.Messages.Attachments { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\attachments public class AttachmentsRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs index 3be1b5e9d..536d95c85 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Extensions/ExtensionsRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.Extensions.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.Extensions.Item; namespace Graphdotnetv4.Users.MailFolders.Messages.Extensions { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\extensions public class ExtensionsRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs index e943160a5..dfd0fc31c 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/Item/MessageRequestBuilder.cs @@ -1,3 +1,8 @@ +using Graphdotnetv4.Users.MailFolders.Messages.Attachments; +using Graphdotnetv4.Users.MailFolders.Messages.Content; +using Graphdotnetv4.Users.MailFolders.Messages.Extensions; +using Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties; +using Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,11 +10,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.Attachments; -using Graphdotnetv4.Users.MailFolders.Messages.Content; -using Graphdotnetv4.Users.MailFolders.Messages.Extensions; -using Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties; -using Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties; namespace Graphdotnetv4.Users.MailFolders.Messages.Item { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id} public class MessageRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs index 9eb672fd3..a87f847ee 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MessagesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.Item; namespace Graphdotnetv4.Users.MailFolders.Messages { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages public class MessagesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs index ad4632752..06dc23029 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties.Item; namespace Graphdotnetv4.Users.MailFolders.Messages.MultiValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\multiValueExtendedProperties public class MultiValueExtendedPropertiesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs index 4ed1f37c9..019725bf8 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties.Item; namespace Graphdotnetv4.Users.MailFolders.Messages.SingleValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\singleValueExtendedProperties public class SingleValueExtendedPropertiesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs index 977a00412..50805feb1 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties.Item; namespace Graphdotnetv4.Users.MailFolders.MultiValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\multiValueExtendedProperties public class MultiValueExtendedPropertiesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs index f1b0cc9d0..079595051 100644 --- a/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/MailFolders/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties.Item; namespace Graphdotnetv4.Users.MailFolders.SingleValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\singleValueExtendedProperties public class SingleValueExtendedPropertiesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/MessageRule.cs b/msgraph-mail/dotnet/Users/MessageRule.cs index 35df498a0..86ba4f1fb 100644 --- a/msgraph-mail/dotnet/Users/MessageRule.cs +++ b/msgraph-mail/dotnet/Users/MessageRule.cs @@ -1,8 +1,8 @@ +using Graphdotnetv4.Users.MailFolders; using Microsoft.Kiota.Abstractions.Serialization; using System; using System.Collections.Generic; using System.Linq; -using Graphdotnetv4.Users.MailFolders; namespace Graphdotnetv4.Users { public class MessageRule : Entity, IParsable { public MessageRuleActions Actions { get; set; } diff --git a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs index a3f4c262d..68661e1cc 100644 --- a/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Attachments/AttachmentsRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.Attachments.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.Attachments.Item; namespace Graphdotnetv4.Users.Messages.Attachments { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\attachments public class AttachmentsRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs index 807296563..5cc9008e5 100644 --- a/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Extensions/ExtensionsRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.Extensions.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.Extensions.Item; namespace Graphdotnetv4.Users.Messages.Extensions { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\extensions public class ExtensionsRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs index 60eeb8fa9..0be562ecd 100644 --- a/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/Item/MessageRequestBuilder.cs @@ -1,3 +1,8 @@ +using Graphdotnetv4.Users.Messages.Attachments; +using Graphdotnetv4.Users.Messages.Content; +using Graphdotnetv4.Users.Messages.Extensions; +using Graphdotnetv4.Users.Messages.MultiValueExtendedProperties; +using Graphdotnetv4.Users.Messages.SingleValueExtendedProperties; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,11 +10,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.Attachments; -using Graphdotnetv4.Users.Messages.Content; -using Graphdotnetv4.Users.Messages.Extensions; -using Graphdotnetv4.Users.Messages.MultiValueExtendedProperties; -using Graphdotnetv4.Users.Messages.SingleValueExtendedProperties; namespace Graphdotnetv4.Users.Messages.Item { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id} public class MessageRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs index 184c16a3a..5a80e3d9e 100644 --- a/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/MessagesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.Item; namespace Graphdotnetv4.Users.Messages { /// Builds and executes requests for operations under \users\{user-id}\messages public class MessagesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs index 1590c6443..0cef4dfa0 100644 --- a/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.MultiValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.MultiValueExtendedProperties.Item; namespace Graphdotnetv4.Users.Messages.MultiValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\multiValueExtendedProperties public class MultiValueExtendedPropertiesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs index b10d93fab..f63912463 100644 --- a/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Messages/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Messages.SingleValueExtendedProperties.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Messages.SingleValueExtendedProperties.Item; namespace Graphdotnetv4.Users.Messages.SingleValueExtendedProperties { /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\singleValueExtendedProperties public class SingleValueExtendedPropertiesRequestBuilder { diff --git a/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs b/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs index 948f5c665..ed92b24cf 100644 --- a/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs @@ -1,3 +1,4 @@ +using Graphdotnetv4.Users.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -5,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Graphdotnetv4.Users.Item; namespace Graphdotnetv4.Users { /// Builds and executes requests for operations under \users public class UsersRequestBuilder { From 5fcede64730c561979cd8c9e8a126012561b4411 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 16 Jun 2021 14:57:13 -0400 Subject: [PATCH 11/11] - code-gen: fixes java method prototype spacing --- ...InferenceClassificationRequestBuilder.java | 20 +++++++++---------- .../overrides/OverridesRequestBuilder.java | 14 ++++++------- ...eClassificationOverrideRequestBuilder.java | 20 +++++++++---------- .../MailFoldersRequestBuilder.java | 14 ++++++------- .../ChildFoldersRequestBuilder.java | 14 ++++++------- .../item/MailFolderRequestBuilder.java | 20 +++++++++---------- .../item/MailFolderRequestBuilder.java | 20 +++++++++---------- .../MessageRulesRequestBuilder.java | 14 ++++++------- .../item/MessageRuleRequestBuilder.java | 20 +++++++++---------- .../messages/MessagesRequestBuilder.java | 14 ++++++------- .../AttachmentsRequestBuilder.java | 14 ++++++------- .../item/AttachmentRequestBuilder.java | 20 +++++++++---------- .../content/ContentRequestBuilder.java | 12 +++++------ .../extensions/ExtensionsRequestBuilder.java | 14 ++++++------- .../item/ExtensionRequestBuilder.java | 20 +++++++++---------- .../messages/item/MessageRequestBuilder.java | 20 +++++++++---------- ...ValueExtendedPropertiesRequestBuilder.java | 14 ++++++------- ...eLegacyExtendedPropertyRequestBuilder.java | 20 +++++++++---------- ...ValueExtendedPropertiesRequestBuilder.java | 14 ++++++------- ...eLegacyExtendedPropertyRequestBuilder.java | 20 +++++++++---------- ...ValueExtendedPropertiesRequestBuilder.java | 14 ++++++------- ...eLegacyExtendedPropertyRequestBuilder.java | 20 +++++++++---------- ...ValueExtendedPropertiesRequestBuilder.java | 14 ++++++------- ...eLegacyExtendedPropertyRequestBuilder.java | 20 +++++++++---------- .../messages/MessagesRequestBuilder.java | 14 ++++++------- .../AttachmentsRequestBuilder.java | 14 ++++++------- .../item/AttachmentRequestBuilder.java | 20 +++++++++---------- .../content/ContentRequestBuilder.java | 12 +++++------ .../extensions/ExtensionsRequestBuilder.java | 14 ++++++------- .../item/ExtensionRequestBuilder.java | 20 +++++++++---------- .../messages/item/MessageRequestBuilder.java | 20 +++++++++---------- ...ValueExtendedPropertiesRequestBuilder.java | 14 ++++++------- ...eLegacyExtendedPropertyRequestBuilder.java | 20 +++++++++---------- ...ValueExtendedPropertiesRequestBuilder.java | 14 ++++++------- ...eLegacyExtendedPropertyRequestBuilder.java | 20 +++++++++---------- 35 files changed, 294 insertions(+), 294 deletions(-) diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java index d644c58a2..52fd5cd3d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/InferenceClassificationRequestBuilder.java @@ -158,7 +158,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Infere * Delete navigation property inferenceClassification for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -172,7 +172,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -187,7 +187,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -201,7 +201,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get inferenceClassification from users * @return a CompletableFuture of InferenceClassification */ - public java.util.concurrent.CompletableFuture< InferenceClassification > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -215,7 +215,7 @@ public java.util.concurrent.CompletableFuture< InferenceClassification > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassification */ - public java.util.concurrent.CompletableFuture< InferenceClassification > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -230,7 +230,7 @@ public java.util.concurrent.CompletableFuture< InferenceClassification > get(@ja * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassification */ - public java.util.concurrent.CompletableFuture< InferenceClassification > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -247,7 +247,7 @@ public java.util.concurrent.CompletableFuture< InferenceClassification > get(@ja * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassification */ - public java.util.concurrent.CompletableFuture< InferenceClassification > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -275,7 +275,7 @@ public InferenceClassificationOverrideRequestBuilder overrides(@javax.annotation * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassification body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassification body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -292,7 +292,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassification body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassification body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -310,7 +310,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassification body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassification body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java index a8a0ddfb2..beb563359 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/OverridesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Inferen * Get overrides from users * @return a CompletableFuture of OverridesResponse */ - public java.util.concurrent.CompletableFuture< OverridesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< OverridesResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of OverridesResponse */ - public java.util.concurrent.CompletableFuture< OverridesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< OverridesResponse > get(@javax.an * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of OverridesResponse */ - public java.util.concurrent.CompletableFuture< OverridesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< OverridesResponse > get(@javax.an * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of OverridesResponse */ - public java.util.concurrent.CompletableFuture< OverridesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< OverridesResponse > get(@javax.an * @param body * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > post(@javax.annotation.Nonnull final InferenceClassificationOverride body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final InferenceClassificationOverride body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > post(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > post(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java index 26c982d8a..281c06bfd 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/inferenceClassification/overrides/item/InferenceClassificationOverrideRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Infere * Delete navigation property overrides for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get overrides from users * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InferenceClassificationOverride */ - public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< InferenceClassificationOverride > * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassificationOverride body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassificationOverride body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final InferenceClassificationOverride body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java index e27572087..dec9ec5f3 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/MailFoldersRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MailFol * Get mailFolders from users * @return a CompletableFuture of MailFoldersResponse */ - public java.util.concurrent.CompletableFuture< MailFoldersResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< MailFoldersResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFoldersResponse */ - public java.util.concurrent.CompletableFuture< MailFoldersResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< MailFoldersResponse > get(@javax. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFoldersResponse */ - public java.util.concurrent.CompletableFuture< MailFoldersResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< MailFoldersResponse > get(@javax. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFoldersResponse */ - public java.util.concurrent.CompletableFuture< MailFoldersResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< MailFoldersResponse > get(@javax. * @param body * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java index ee46f4ea8..75172bfa5 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/ChildFoldersRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MailFol * Get childFolders from users * @return a CompletableFuture of ChildFoldersResponse */ - public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ChildFoldersResponse */ - public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get(@javax * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ChildFoldersResponse */ - public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get(@javax * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ChildFoldersResponse */ - public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< ChildFoldersResponse > get(@javax * @param body * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java index 33a35f7b9..0a776db96 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/childFolders/item/MailFolderRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MailFo * Delete navigation property childFolders for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get childFolders from users * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotatio * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java index df29725d8..b5ad92657 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/item/MailFolderRequestBuilder.java @@ -207,7 +207,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MailFo * Delete navigation property mailFolders for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -221,7 +221,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -236,7 +236,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -250,7 +250,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get mailFolders from users * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -264,7 +264,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -279,7 +279,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -296,7 +296,7 @@ public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MailFolder */ - public java.util.concurrent.CompletableFuture< MailFolder > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -350,7 +350,7 @@ public MultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperti * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -367,7 +367,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -385,7 +385,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MailFolder body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java index 66f8508ac..4783d5d0a 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/MessageRulesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Message * Get messageRules from users * @return a CompletableFuture of MessageRulesResponse */ - public java.util.concurrent.CompletableFuture< MessageRulesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< MessageRulesResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRulesResponse */ - public java.util.concurrent.CompletableFuture< MessageRulesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< MessageRulesResponse > get(@javax * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRulesResponse */ - public java.util.concurrent.CompletableFuture< MessageRulesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< MessageRulesResponse > get(@javax * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRulesResponse */ - public java.util.concurrent.CompletableFuture< MessageRulesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< MessageRulesResponse > get(@javax * @param body * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture< MessageRule > post(@javax.annotation.Nonnull final MessageRule body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MessageRule body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< MessageRule > post(@javax.annotat * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture< MessageRule > post(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< MessageRule > post(@javax.annotat * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture< MessageRule > post(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java index 36666d668..99b03b536 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messageRules/item/MessageRuleRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Messag * Delete navigation property messageRules for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get messageRules from users * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture< MessageRule > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< MessageRule > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture< MessageRule > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< MessageRule > get(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture< MessageRule > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< MessageRule > get(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessageRule */ - public java.util.concurrent.CompletableFuture< MessageRule > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< MessageRule > get(@javax.annotati * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MessageRule body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MessageRule body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MessageRule body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java index 890eef6f9..ae216cf3f 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/MessagesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Message * Get messages from users * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture< MessagesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< MessagesResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.ann * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.ann * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.ann * @param body * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java index 0859e59e0..d9a500178 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/AttachmentsRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Attachm * Get attachments from users * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture< AttachmentsResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< AttachmentsResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax. * @param body * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java index f5a02c278..983313cad 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/attachments/item/AttachmentRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Attach * Delete navigation property attachments for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get attachments from users * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< Attachment > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotatio * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java index 5256fb9b5..3e6f339a6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/content/ContentRequestBuilder.java @@ -99,7 +99,7 @@ public RequestInfo createPutRequestInfo(@javax.annotation.Nonnull final InputStr * Get media content for the navigation property messages from users * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture< InputStream > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -113,7 +113,7 @@ public java.util.concurrent.CompletableFuture< InputStream > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -128,7 +128,7 @@ public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -143,7 +143,7 @@ public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotati * @param body Binary request body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body) { + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( @@ -160,7 +160,7 @@ public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( @@ -178,7 +178,7 @@ public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java index d7fc9c2c7..16d2b0320 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/ExtensionsRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Extensi * Get extensions from users * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture< ExtensionsResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< ExtensionsResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.a * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.a * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.a * @param body * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java index 54aed8adf..c2d75a73c 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/extensions/item/ExtensionRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Extens * Delete navigation property extensions for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get extensions from users * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< Extension > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java index b5816e1a1..7c5fd593b 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/item/MessageRequestBuilder.java @@ -207,7 +207,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Messag * Delete navigation property messages for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -221,7 +221,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -236,7 +236,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -263,7 +263,7 @@ public ExtensionRequestBuilder extensions(@javax.annotation.Nonnull final String * Get messages from users * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -277,7 +277,7 @@ public java.util.concurrent.CompletableFuture< Message > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -292,7 +292,7 @@ public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -309,7 +309,7 @@ public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -337,7 +337,7 @@ public MultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperti * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -354,7 +354,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -372,7 +372,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java index 0b26946de..941cc50f0 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MultiVa * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param body * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java index e1e288c7e..aa201056d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MultiV * Delete navigation property multiValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java index 138d5de79..92b1cb9aa 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final SingleV * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param body * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java index c1c3f5af5..438a7d9fe 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Single * Delete navigation property singleValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java index 012a1777d..82c5307e1 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MultiVa * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param body * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java index 69bea40e2..4c35d8dad 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MultiV * Delete navigation property multiValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java index b87769caa..6dc9c1d86 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final SingleV * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param body * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java index f9fc821bf..a7dce10e3 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/mailFolders/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Single * Delete navigation property singleValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java index 82d110a8d..ddce087af 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/MessagesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Message * Get messages from users * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture< MessagesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< MessagesResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.ann * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.ann * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MessagesResponse */ - public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< MessagesResponse > get(@javax.ann * @param body * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java index 0c6eb6f5c..38b8f5635 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/AttachmentsRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Attachm * Get attachments from users * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture< AttachmentsResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< AttachmentsResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax. * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of AttachmentsResponse */ - public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< AttachmentsResponse > get(@javax. * @param body * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java index 733f97db7..01b1c98a4 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/attachments/item/AttachmentRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Attach * Delete navigation property attachments for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get attachments from users * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< Attachment > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Attachment */ - public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< Attachment > get(@javax.annotatio * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Attachment body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java index 99bbf4761..634c6f5cb 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/content/ContentRequestBuilder.java @@ -99,7 +99,7 @@ public RequestInfo createPutRequestInfo(@javax.annotation.Nonnull final InputStr * Get media content for the navigation property messages from users * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture< InputStream > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -113,7 +113,7 @@ public java.util.concurrent.CompletableFuture< InputStream > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -128,7 +128,7 @@ public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotati * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of InputStream */ - public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -143,7 +143,7 @@ public java.util.concurrent.CompletableFuture< InputStream > get(@javax.annotati * @param body Binary request body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body) { + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( @@ -160,7 +160,7 @@ public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( @@ -178,7 +178,7 @@ public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonn * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture put(@javax.annotation.Nonnull final InputStream body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPutRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java index 801957f79..a65dc6032 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/ExtensionsRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final Extensi * Get extensions from users * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture< ExtensionsResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< ExtensionsResponse > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.a * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.a * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of ExtensionsResponse */ - public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< ExtensionsResponse > get(@javax.a * @param body * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotatio * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java index bbbee98b0..94e57cf0d 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/extensions/item/ExtensionRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Extens * Delete navigation property extensions for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get extensions from users * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< Extension > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Extension */ - public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< Extension > get(@javax.annotation * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Extension body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java index 06900c8ac..1feb87eee 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/item/MessageRequestBuilder.java @@ -207,7 +207,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Messag * Delete navigation property messages for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -221,7 +221,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -236,7 +236,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -263,7 +263,7 @@ public ExtensionRequestBuilder extensions(@javax.annotation.Nonnull final String * Get messages from users * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -277,7 +277,7 @@ public java.util.concurrent.CompletableFuture< Message > get() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -292,7 +292,7 @@ public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -309,7 +309,7 @@ public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of Message */ - public java.util.concurrent.CompletableFuture< Message > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -337,7 +337,7 @@ public MultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperti * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -354,7 +354,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -372,7 +372,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Message body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java index 6fe70c317..749402185 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final MultiVa * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< MultiValueExtendedPropertiesRespo * @param body * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java index 64b704e63..c01414355 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/multiValueExtendedProperties/item/MultiValueLegacyExtendedPropertyRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final MultiV * Delete navigation property multiValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get multiValueExtendedProperties from users * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of MultiValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< MultiValueLegacyExtendedProperty * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final MultiValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java index 115d00cf2..40f7bad91 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.java @@ -122,7 +122,7 @@ public RequestInfo createPostRequestInfo(@javax.annotation.Nonnull final SingleV * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -136,7 +136,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -151,7 +151,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -168,7 +168,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueExtendedPropertiesResponse */ - public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResponse > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -183,7 +183,7 @@ public java.util.concurrent.CompletableFuture< SingleValueExtendedPropertiesResp * @param body * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -200,7 +200,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( @@ -218,7 +218,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPostRequestInfo( diff --git a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java index 876c35b6c..5dc3946e6 100644 --- a/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java +++ b/msgraph-mail/java/utilities/src/main/java/graphjavav4/utilities/users/messages/singleValueExtendedProperties/item/SingleValueLegacyExtendedPropertyRequestBuilder.java @@ -150,7 +150,7 @@ public RequestInfo createPatchRequestInfo(@javax.annotation.Nonnull final Single * Delete navigation property singleValueExtendedProperties for users * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete() { + public java.util.concurrent.CompletableFuture delete() { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -164,7 +164,7 @@ public java.util.concurrent.CompletableFuture< Void > delete() { * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( ); @@ -179,7 +179,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture delete(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createDeleteRequestInfo( h @@ -193,7 +193,7 @@ public java.util.concurrent.CompletableFuture< Void > delete(@javax.annotation.N * Get singleValueExtendedProperties from users * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get() { + public java.util.concurrent.CompletableFuture get() { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -207,7 +207,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( ); @@ -222,7 +222,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( h @@ -239,7 +239,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of SingleValueLegacyExtendedProperty */ - public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty > get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer q, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { try { final RequestInfo requestInfo = createGetRequestInfo( q, h @@ -254,7 +254,7 @@ public java.util.concurrent.CompletableFuture< SingleValueLegacyExtendedProperty * @param body * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -271,7 +271,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo( @@ -289,7 +289,7 @@ public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.No * @param responseHandler Response handler to use in place of the default response handling provided by the core service * @return a CompletableFuture of void */ - public java.util.concurrent.CompletableFuture< Void > patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { + public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final SingleValueLegacyExtendedProperty body, @javax.annotation.Nullable final java.util.function.Consumer> h, @javax.annotation.Nullable final ResponseHandler responseHandler) { Objects.requireNonNull(body); try { final RequestInfo requestInfo = createPatchRequestInfo(